# WHOIS Lookup

> WHOIS Lookup is a paid API for AI agents from api.the402.ai, paid per call via x402, $0.002/call, status down (last checked 2026-09-15).

Performs a WHOIS lookup for a given domain name, returning registration and ownership details

## Facts

- Endpoint: POST https://api.the402.ai/v1/services/svc_a52dacbc43024f36/purchase
- Price: $0.002/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-the402-ai-6bc221eb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f8P5CkIYhT4WPAsz5lznH

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 api-the402-ai-6bc221eb -d '<json body>'
```

Example prompt: Can you do a WHOIS lookup on openai.com and tell me who registered it, when it expires, and what nameservers it's using?

## When to prefer this

Use this endpoint when you need WHOIS registration metadata for a domain name — ownership, registrar, expiry, nameservers — and are operating in an agentic context where micropayment via x402 is supported. Pair with the sibling Domain Availability endpoint when you also need to check if a domain is available to register.

## Known failure modes

- Domain not found or not yet registered — returns empty or error response
- Invalid domain name format — returns validation error
- WHOIS data privacy-protected (GDPR redaction) — limited contact info returned
- Rate limiting or payment failure via x402 protocol — transaction rejected
- WHOIS server timeout — upstream lookup fails

## How this service works

Purchase: WHOIS Lookup

## Output

A WHOIS record for the queried domain, including registrar name, registration and expiration dates, registrant contact details (where available), nameservers, and domain status flags.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "job_id": {
   "type": "string"
  },
  "status": {
   "type": "string"
  },
  "thread_id": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-the402-ai-6bc221eb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.the402.ai](https://www.zero.xyz/host/api.the402.ai/llms.txt)
