Domain availability (RDAP)
POST /api/domain-availabilityIs a domain name registered? Send POST /api/domain-availability with the required field domain and pay $0.001 per call over x402 or MPP (there is no free tier). It returns a JSON object with domain, registered, status, registrar, source and 2 more.
Asks the TLD's own registry over RDAP, the IETF registration data protocol (IANA's bootstrap names the registry): registered true, false, or null for a name under a registered domain (registeredParent names it), the registry status codes and the registrar when it is taken, the registry's notices as links (registryNotices, its terms among them) when it gives them, and when the registry was read. Availability can change at any moment; registration happens at a registrar.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | yes | Domain name to check, e.g. example.com (a URL or an internationalized name is accepted) Also accepted as host, hostname, site. |
Example request
curl -i -X POST https://agent402.tools/api/domain-availability \
-H "Content-Type: application/json" \
-d '{"domain":"example.com"}'Without payment this returns HTTP 402 Payment Required with the exact price for domain-availability; any x402 v2 or MPP client pays it and retries.
Watch a call get paid
POST /api/domain-availability$0.001 USDCPAYMENT-SIGNATUREon 14 chains200 OKAgent402-ReceiptEd25519Example response
{
"domain": "example.com",
"registered": true,
"status": [
"client delete prohibited",
"client transfer prohibited",
"client update prohibited"
],
"registrar": "RESERVED-Internet Assigned Numbers Authority",
"source": "RDAP",
"checkedAt": "2026-11-22T12:00:00.000Z",
"note": "Read from the registry's RDAP service at checkedAt. Availability can change at any moment, and a name the registry reserves or blocks can read as not registered; registration itself happens at a registrar."
}| Field | Type | Always present | In the example |
|---|---|---|---|
domain | string | yes | example.com |
registered | boolean | yes | true |
status | array of string | yes | 3 items in the example |
registrar | string | yes | RESERVED-Internet Assigned Numbers Authority |
source | string | yes | RDAP |
checkedAt | string | yes | 2026-11-22T12:00:00.000Z |
note | string | yes | Read from the registry's RDAP service at checkedAt. Availability can change a... |
From an MCP client
catalog.call {
"slug": "domain-availability",
"params": {
"domain": "example.com"
}
}The hosted connector at https://agent402.tools/mcp needs a payment for domain-availability; the stdio package pays it from a wallet or from an AGENT402_CREDITS_KEY issued earlier. Local install: npx -y agent402-mcp@0.15.0.
Errors and behavior
domainis required. An input the tool rejects returns an HTTP 4xx whose body carrieserror,tool,expected,requiredandexample, so the caller can correct it.- A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement runs after the tool and only on a successful response. Some calls are paid before they run; a failed one can be retried free with the same payment, or is refunded. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - A
GETorHEADto /api/domain-availability returns the same 402 quote, so the price can be read without a body. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
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?.({ maxAmountPerPayment: "$0.001" }); // refuse any quote above this tool's price
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/domain-availability", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"domain": "example.com"
}),
});Related tools
Domain WHOIS (RDAP)
Domain registration data via RDAP (the structured WHOIS successor): registrar, creation/expiry dates, status.
A2A Agent Card fetch
Discover and fetch a site's A2A (Agent2Agent protocol) Agent Card - tries /.well-known/agent-card.json then.
ASN + IP geolocation
Look up the Autonomous System (ASN), its owner name, prefix, country, registry, and allocation date for an IPv4 address.
Certificate transparency search
Search public Certificate Transparency logs for every cert issued to a domain.
DKIM key lookup
Fetch and parse a DKIM public-key record at <selector>._domainkey.<domain> (RFC 6376).
DMARC check
Fetch and validate a domain's DMARC policy at _dmarc.<domain> (RFC 7489).