# Domain WHOIS (RDAP) (`domain.whois`)

Registration data of a domain from its registry over RDAP: registrar, creation and expiry dates, status codes, name servers and DNSSEC. No contact data.

- **Route:** `POST /v1/run/domain.whois`
- **Price:** $0.001 per request ($1.00 per 1,000) · `cost_usd` on every response
- **Source:** Registry RDAP servers (IANA bootstrap) (`rdap`) · failover: no
- **Measured latency:** p50 251 ms · p95 251 ms · p99 251 ms (1 calls, 30d)
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `domain` | string | yes |  | Domain name |

## Output (`output` in the run envelope)

| Field | Meaning |
|---|---|
| `registrar` | Registrar name and IANA id. |
| `created_at` | Registration date. |
| `expires_at` | Expiry date. |
| `days_until_expiry` | Days left before expiry. |
| `status` | EPP status codes. |
| `nameservers` | Delegated name servers. |
| `dnssec` | True when the delegation is signed. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/domain.whois \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain":"wikipedia.org"}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('domain.whois', {'domain': 'wikipedia.org'})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run domain.whois '{"domain":"wikipedia.org"}'
```

Quote first (free, validates input): `POST /v1/quote/domain.whois` with the same body.
