# WHOIS / RDAP Domain Lookup

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

Queries IANA-mandated RDAP to return full domain registration details including age, expiry, registrar, nameservers, DNSSEC status, EPP statuses, risk flags, and optionally certificate-transparency summary.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/whois
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-d989c7b0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w0WH2ahach8194CaamyXw

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 x402-deployer-x402-deployer-workers-dev-d989c7b0 -d '<json body>'
```

Example prompt: Can you do a full WHOIS / RDAP lookup on openai.com — I want to know its registration date, how many days until it expires, the registrar, nameservers, whether DNSSEC is enabled, and any risk flags? Also include the certificate transparency summary.

## When to prefer this

Use this endpoint when you need authoritative, structured RDAP/WHOIS data for a domain including expiry, registrar, DNSSEC, and risk signals — especially for brand protection triage, security research, or domain monitoring workflows. Prefer over raw whois parsing tools because it returns structured JSON fields rather than unstructured text.

## Known failure modes

- Domain not found in RDAP — returns error or empty result
- TLD not supported by IANA RDAP — may return partial or no data
- RDAP bootstrap lookup failure — network or IANA service unavailable
- Invalid domain format submitted — returns validation error
- crt.sh unreachable when certificate transparency summary is requested
- Rate limiting from upstream RDAP server

## How this service works

WHOIS / RDAP / domain age / domain expiry / registrar finder / nameserver lookup / DNSSEC check / TLD registration record / brand-protection triage. Short alias of whois-lookup. Queries the IANA-mandated RDAP endpoint and returns registered_date, age_days, expiration_date, days_until_expiry, last_changed, registrar (name + IANA id), contacts, nameservers, dnssec_signed, EPP statuses, and risk flags. Optionally appends a crt.sh certificate-transparency summary.

## Output

A structured record containing registered_date, age_days, expiration_date, days_until_expiry, last_changed, registrar (name + IANA ID), contacts, nameservers list, dnssec_signed boolean, EPP status codes, risk flags, and optionally a crt.sh certificate-transparency summary for the queried domain.

## Example request

```json
{
 "input": {
  "body": {
   "domain": "example.com",
   "include_certificates": true
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "domain": {
       "type": "string",
       "description": "Apex domain to look up (e.g. 'example.com'). Subdomains are stripped to the registrable domain."
      },
      "include_certificates": {
       "type": "boolean",
       "description": "If true, attaches a crt.sh certificate-transparency summary. Default false."
      }
     },
     "required": [
      "domain"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "domain": {
       "type": "string"
      },
      "rdap_server": {
       "type": "string"
      },
      "registered_date": {
       "type": "string"
      },
      "expiration_date": {
       "type": "string"
      },
      "age_days": {
       "type": "integer"
      },
      "days_until_expiry": {
       "type": "integer"
      },
      "registrar": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        },
        "iana_id": {
         "type": "string"
        }
       }
      },
      "nameservers": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "dnssec_signed": {
       "type": "boolean"
      },
      "statuses": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "flags": {
       "type": "array"
      },
      "cert_summary": {
       "type": "null"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-d989c7b0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
