# AgentDiet WHOIS Lookup

> AgentDiet WHOIS Lookup is a paid API for AI agents from rag-diet.agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-23).

Performs a WHOIS lookup for a given domain name and returns registration and ownership information.

## Facts

- Endpoint: GET https://rag-diet.agentdiet.dev/v1/whois-lookup?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-whois-lookup-70805adf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E3jfJcxnfKz3ugPdGlnzo

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 agentdiet-whois-lookup-70805adf
```

Example prompt: Can you do a WHOIS lookup on openai.com and tell me who registered it, when it expires, and who the registrar is?

## When to prefer this

Choose this endpoint when an agent needs programmatic WHOIS data with micropayment-per-call pricing via x402/USDC on Base, without needing a subscription or API key. It is well-suited for agents that perform on-demand, pay-as-you-go domain lookups within A2A or MCP workflows.

## Known failure modes

- Domain not found or unregistered — empty or null WHOIS data returned
- Invalid domain format — malformed input may return an error
- Rate limiting or payment failure — x402 payment required per call; failed payment results in 402 response
- WHOIS privacy protection enabled — registrant details may be redacted
- TLD not supported — some ccTLDs may not return full WHOIS data

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.

## Output

Returns a JSON object with WHOIS data for the queried domain, including registrant information, registrar details, nameservers, registration and expiry dates, and status flags. The response includes a status field ('ok') and a roi_proof object showing compression ratio.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "domain": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-whois-lookup-70805adf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rag-diet.agentdiet.dev](https://www.zero.xyz/host/rag-diet.agentdiet.dev/llms.txt)
