F

fetchx402 · Tools Whois

by fetchx402

GETBase

$0.005

per call · USD Coin on Base

Look up domain registration facts via RDAP (registrar, status, dates, nameservers, DNSSEC). Use when you need live registry data and must not guess. Unregistered names return not_found.

Endpoint

GET https://api.fetchx402.com/v1/tools/whois

1

Calls / 30d

1

Unique payers / 30d

Aug 16

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.fetchx402.com/v1/tools/whois", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://api.fetchx402.com/v1/tools/whois?domain=example.com" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "created_at": "1995-08-14T04:00:00Z",
  "dnssec": true,
  "domain": "example.com",
  "expires_at": "2025-08-13T04:00:00Z",
  "handle": "2336799_DOMAIN_COM-VRSN",
  "nameservers": [
    "a.iana-servers.net",
    "b.iana-servers.net"
  ],
  "rdap_server": "https://rdap.verisign.com/com/v1/",
  "registrar": {
    "iana_id": "376",
    "name": "RESERVED-Internet Assigned Numbers Authority"
  },
  "source": "rdap",
  "status": [
    "client delete prohibited",
    "client transfer prohibited",
    "client update prohibited"
  ],
  "updated_at": "2024-08-14T07:01:39Z"
}

Payment details

Pay to0x33236133bece789d551d0b5c4f9a50095d4b57d3
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from fetchx402 & similar services