# Domain Availability (`domain.availability`)

Check whether a domain name is registered, by asking its registry over RDAP and checking its name servers. Says how sure the answer is.

- **Route:** `POST /v1/run/domain.availability`
- **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 104 ms · p95 104 ms · p99 104 ms (1 calls, 30d)
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `domain` | string | yes |  | Registrable domain name, e.g. example.com |

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

| Field | Meaning |
|---|---|
| `available` | True, false, or null when it cannot be known. |
| `registered` | True when a registration exists. |
| `confidence` | registry (the registry answered) or dns_only. |
| `has_nameservers` | True when the name is delegated in DNS. |
| `note` | What the answer is based on. |

## Example

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

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

```bash
getallapis run domain.availability '{"domain":"getallapis.com"}'
```

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