# agent402.tools WHOIS / RDAP Domain Lookup

> agent402.tools WHOIS / RDAP Domain Lookup is a paid API for AI agents from agent402.tools, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns structured RDAP-based domain registration data including registrar, creation/expiry dates, status, and nameservers for a given domain.

## Facts

- Endpoint: POST https://agent402.tools/api/whois
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-whois-rdap-domain-lookup-a2a8d82a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8FL2JSGFiCV6zNWrOyHHI

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-tools-whois-rdap-domain-lookup-a2a8d82a -d '<json body>'
```

Example prompt: Can you look up the registration details for openai.com — I want to know the registrar, when it was created, when it expires, and what nameservers it uses?

## When to prefer this

Use this endpoint when you need structured, machine-readable domain registration metadata (registrar, dates, status, nameservers) via the modern RDAP protocol rather than parsing raw WHOIS text. Prefer over raw WHOIS scrapers when you need consistent JSON output across TLDs.

## Known failure modes

- Domain not found or not registered — RDAP returns no data
- Invalid domain format provided — API may return validation error
- TLD not supported by RDAP — some legacy TLDs may lack RDAP coverage
- Network timeout or upstream RDAP registry unavailable
- Payment failure — x402 payment of $0.003 USDC not processed

## How this service works

Domain registration data via RDAP (the structured WHOIS successor): registrar, creation/expiry dates, status, nameservers.

## Output

Returns structured RDAP data for the queried domain, including registrar name, creation date, expiration date, current domain status flags, and nameserver hostnames.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "domain": {
   "type": "string",
   "description": "Domain name (registrable, e.g. example.com)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "domain": "example.com",
  "status": [
   "client transfer prohibited"
  ],
  "created": "1995-08-14",
  "expires": "2026-08-13",
  "registrar": "IANA",
  "nameservers": [
   "a.iana-servers.net"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-whois-rdap-domain-lookup-a2a8d82a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
