Domain WHOIS (RDAP)

$0.005 per call · USDC via x402 · POST /api/whois

Domain registration data via RDAP (the structured WHOIS successor): registrar, creation/expiry dates, status, nameservers. Send POST /api/whois with the required field domain and pay $0.005 per call over x402 or MPP (there is no free tier). It returns a JSON object with domain, registrar, created, expires, nameservers and 1 more.

Category: Network & domains · Tags: whois rdap domain registration

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
domainstringyesDomain name (registrable, e.g. example.com) Also accepted as host, hostname, site.

Example request

curl -i -X POST https://agent402.tools/api/whois \
  -H "Content-Type: application/json" \
  -d '{"domain":"example.com"}'

Without payment this returns HTTP 402 Payment Required with the exact price for whois; any x402 v2 or MPP client pays it and retries.

Example response

{
  "domain": "example.com",
  "registrar": "IANA",
  "created": "1995-08-14",
  "expires": "2026-08-13",
  "nameservers": [
    "a.iana-servers.net"
  ],
  "status": [
    "client transfer prohibited"
  ]
}
FieldTypeAlways presentIn the example
domainstringyesexample.com
registrarstringyesIANA
createdstringyes1995-08-14
expiresstringyes2026-08-13
nameserversarray of stringyes1 item in the example
statusarray of stringyes1 item in the example

From an MCP client

catalog.call {
  "slug": "whois",
  "params": {
    "domain": "example.com"
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for whois; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/whois", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "domain": "example.com"
  }),
});

Part of these workflows

Domain WHOIS (RDAP) is one step in these 7 skill packs, each sold as a single call:

Related tools

A2A Agent Card fetch

$0.005 · POST /api/a2a-card-fetch

Discover and fetch a site's A2A (Agent2Agent protocol) Agent Card - tries /.well-known/agent-card.json then /.well-known…

ASN + IP geolocation

$0.001 · POST /api/asn-info

Look up the Autonomous System (ASN), prefix, country, registry, and allocation date for an IPv4 address - or for a hostn…

Certificate transparency search

$0.005 · POST /api/cert-transparency

Search public Certificate Transparency logs for every cert issued to a domain. Two independent public CT search services…

DKIM key lookup

$0.002 · POST /api/dkim-lookup

Fetch and parse a DKIM public-key record at <selector>._domainkey.<domain> (RFC 6376). Returns the parsed key params (al…

DMARC check

$0.001 · POST /api/dmarc-check

Fetch and validate a domain's DMARC policy at _dmarc.<domain> (RFC 7489). Surfaces the enforcement policy (none/quaranti…

DNS lookup

$0.001 · GET /api/dns

Live DNS lookup for a domain: returns name, type and records[]. Supported record types: A, AAAA (addresses as strings), …