CORE ID Docs
  • Introduction
  • Connect to CORE ID using ethers.js
  • CID SDK
  • HTTP API
  • Published Contracts
  • Core rpc
  • CORE ID enabling your dapp
  • CORE ID Registry
  • Name processing
  • Public Resolver
  • Resolving Names On Chain
  • Reverse Registrar
  • Decentralized Website
    • Core.Limo Decentralized Gateway
    • Create a decentralized website
    • Quickly create decentralized website
    • Create decentralized blog
  • User Tutorials for .core Domain
    • Set Up a Wallet
    • Register for a .core Domain
    • Set your domain name
    • Set primary name
    • Set Subdomains
    • CID Token
  • App
  • Twitter
  • Telegram
Powered by GitBook
On this page

HTTP API

Convert Name to Address

// Replace "123.core" with your name
const name = "123.core";
const response = await fetch(`https://coreid.org/api?method=getAddress&name=${name}`);
const { address } = await response.json();
//0x810791a3f967EB66B75aEb62251795d181bce680

Convert Address to Name

// Replace "address" with the address you want to lookup.
const address = "0x1234...abcdef";
const response = await fetch(`https://coreid.org/api?method=getName&address=${address}`);
const { name } = await response.json();

Get all domains

const response = await fetch(`https://coreid.org/api?method=getAllDomains`);

Get Websites

const response = await fetch(`https://coreid.org/api?method=getWebsites`);
PreviousCID SDKNextPublished Contracts

Last updated 4 months ago