# Expiry calendar API

One calendar of when your domains expire, straight from the registries.

`POST /v1/expiry-calendar`

- Price: Costs 2 credits per name; cached answers cost the same. Names that fail upstream are free.
- Cache: Never cached; every call runs again.
- MCP tool: `export_expiry_calendar`

Each domain's expiry date, days left, state (active, expiring, expired, ending, not registered or unknown), registrar name and EPP status codes, from the registry's RDAP or WHOIS service. Costs 2 credits per name; cached answers cost the same. Names that fail upstream are free. Never cached; every call runs again.

## Request body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `domains` | array of string | yes | Up to 200 domains, one per line. |
| `fresh` | boolean | no | Skip the cache and ask the registries again; costs the same. |

## Response

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `job_id` | string | yes | The job's ID; poll GET /v1/jobs/{id} |
| `tool` | string | yes |  |
| `target` | string | yes |  |
| `status` | "ok" | "partial" | "error" | yes |  |
| `fetched_at` | string | no |  |
| `cached` | boolean | no |  |
| `credits_used` | integer | no | Credits this call took from your balance. 0 for free tools, for a replay of an earlier call, and for a free check run on the website without signing in |
| `summary` | string | yes |  |
| `score` | integer or null | no |  |
| `findings` | array of object | no |  |
| `credits_remaining` | integer | yes | Your balance after this call. It can be below zero after a refund; free tools still work then |
| `data` | object | yes | This tool's result |
| `data.name` | string | yes |  |
| `data.unicode` | string | yes |  |
| `data.tld` | string | yes |  |
| `data.tier` | "A" | "B" | "C" | "D" | yes |  |
| `data.reduced_from` | string or null | no |  |
| `data.registered` | boolean or null | no |  |
| `data.expires` | string or null | no |  |
| `data.expires_at` | string or null | no |  |
| `data.days_to_expiry` | integer or null | no |  |
| `data.state` | "active" | "expiring" | "expired" | "ending" | "not_registered" | "unknown" | no |  |
| `data.unknown_reason` | "unsupported_tld" | "unpublished" | "unparsed" or null | no |  |
| `data.registrar` | string or null | no |  |
| `data.statuses` | array of string | no |  |
| `data.source` | "rdap" | "whois" or null | no |  |
| `data.checked_at` | string | yes |  |
| `data.retry_after_s` | number or null | no |  |

## Errors

- `400` Invalid domain, URL or parameter, a TLD this tool can't check, or an X-Request-Id already used for another call (`invalid_domain`, `invalid_url`, `invalid_request`, `unsupported_tld`)
- `401` Missing, unknown or revoked API key, or one whose creator is no longer a member of the account (`unauthorized`)
- `402` Balance below the call's price (`insufficient_credits`)
- `403` Account suspended, the key's creator is over the plan's seats, or an anonymous check without a valid proof-of-work or for a tool that needs an account, or bulk checks before a first purchase (`account_suspended`, `plan_limit`, `challenge_required`, `sign_in_required`, `bulk_locked`)
- `429` Too many requests, today's free checks are used up, or too many website scans at once; wait for the number of seconds in the Retry-After header (`rate_limited`, `free_limit_reached`, `too_many_jobs`). Not charged
- `500` Unexpected error (`internal_error`)

## Example

```sh
curl -X POST "https://api.dnssuper.com/v1/expiry-calendar" \
  -H "Authorization: Bearer $DNSSUPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

```python
import os

import httpx

client = httpx.Client(
    base_url="https://api.dnssuper.com",
    headers={"Authorization": f"Bearer {os.environ['DNSSUPER_API_KEY']}"},
    timeout=60,
)
response = client.post("/v1/expiry-calendar", json={})
response.raise_for_status()
result = response.json()
print(result["summary"], result["credits_used"])
```

```ts
const response = await fetch("https://api.dnssuper.com/v1/expiry-calendar", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.DNSSUPER_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({}),
});
if (!response.ok) throw new Error((await response.json()).error.message);
const result = await response.json();
console.log(result.summary, result.credits_used);
```

## MCP

```json
{
  "tool": "export_expiry_calendar",
  "arguments": {}
}
```

```text
verisign.com expires on 1 June 2034 (in 2756 days).
Expires: 1 Jun 2034 (2756 days); state active
Registrar: CSC Corporate Domains, Inc.
Statuses: clientDeleteProhibited, clientTransferProhibited, clientUpdateProhibited, serverDeleteProhibited, serverTransferProhibited, serverUpdateProhibited
No issues found.
Credits: 2 credits used, 498 remaining | fresh | checked 2026-11-14 10:00 UTC
```
