# Domain Availability & RDAP Lookup

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

Checks whether a domain name is registered and returns RDAP/WHOIS data including registrar, registration date, expiry date, days until expiry, and EPP status flags.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/domain-availability
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-72a0e9cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uMa3Z6xiYbd1Oa68B6bEn

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-72a0e9cc -d '<json body>'
```

Example prompt: Can you check if 'startupidea.io' is already registered, and if so, tell me who owns it, when it expires, and what its current EPP status is?

## When to prefer this

Use this endpoint when you need programmatic, structured domain registration data (registrar, dates, EPP flags) without screen-scraping a WHOIS website. Prefer over raw WHOIS when you need machine-readable JSON output, expiry countdowns, or EPP status flags. Works for all gTLDs and most ccTLDs via the RFC-7480 RDAP standard.

## Known failure modes

- Domain uses an unsupported TLD with no RDAP coverage — returns partial or empty data
- Malformed domain input — returns validation error
- RDAP registry timeout — may return error or incomplete data
- Domain is registered but RDAP record is sparse — some fields may be null

## How this service works

Domain availability / RDAP lookup / WHOIS replacement / domain registration checker / expiry date lookup. Returns is_registered, registrar, registration date, expiry date, days_until_expiry, and current EPP status flags for any TLD that supports RDAP (effectively all gTLDs and most ccTLDs). Backed by rdap.org, the public RFC-7480-compliant aggregator. 404s map to is_registered: false rather than an error.

## Output

Returns a JSON object with is_registered (boolean), registrar name, registration date, expiry date, days_until_expiry (integer), and EPP status flags (e.g. clientTransferProhibited). For unregistered domains, returns is_registered: false with no further data.

## Example request

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

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "domain"
     ],
     "properties": {
      "domain": {
       "type": "string",
       "description": "Domain to check (e.g. 'example.com'). Strip protocol/path automatically."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "domain": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "status": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "registrar": {
       "type": "string"
      },
      "expires_date": {
       "type": "string"
      },
      "last_changed": {
       "type": "string"
      },
      "is_registered": {
       "type": "boolean"
      },
      "registered_date": {
       "type": "string"
      },
      "days_until_expiry": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-72a0e9cc/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)
