View Categories

Name to Social Handle

< 1 min read

Supported social handles by Web3Domain REST API:

  • Facebook = @facebook
  • Twitter = @twitter
  • Telegram = @telegram
  • Youtube = @youtube
  • Instagram = @instagram
  • Discord = @discord

Curl

curl -X 'GET' \
  'https://web3domain.org/api/v1/index.php?domain={DomainName}@twitter' \
  -H 'accept: application/json'

Request URL

https://web3domain.org/api/v1/index.php?domain={DomainName}@twitter

Server JSON response

{
"twitter": "https://twitter.com/web3_domain"
}
  • {DomainName} should be replaced by Web3Domain name which is already minted.
  • Response : “invalid” (parameter value is wrong”
  • Response: “error” (Domain not minted or no records assigned.)
  • Requested URL without @ parameter will return full JSON with all the fields available.
  • If you need multiple values, do not use parameter to reduce server queries and for fast response.