Domain Age
The registration dates of a domain from its registry, and the age they imply. Age is one of the cheapest reputation signals there is: phishing and spam domains are days old, established businesses are years old. This endpoint answers that one question without the rest of the WHOIS record.
/api/domain-ageCosts 1 creditAPI keyReport a domain's registration dates and age (1 credit)
Where the dates come from
The registry's RDAP server first, falling back to WHOIS over port 43 for registries that have none. The answer describes the registration the name belongs to: a host name such as shop.example.com returns example.com's dates with registered_domain set.
- Age counts calendar days, months and years on UTC dates since
creation_date; months and years tick over on the anniversary. days_until_expiryis negative once the expiry date has passed; the domain is then in its grace or redemption period and may still be renewed.registered: falsewithlookup_status: not_foundmeans the registry says the domain is available.
Issue codes
| code | type | Means |
|---|---|---|
| LOOKUP_FAILED | error | The registry did not answer |
| DOMAIN_VERY_RECENT | warning | Registered within the last 30 days |
| REGISTRATION_EXPIRED | warning | The expiry date has passed |
| CREATION_DATE_UNAVAILABLE | warning | The registry does not publish the creation date |
| DOMAIN_RECENT | info | Registered within the last 90 days |
| REGISTRATION_EXPIRES_SOON | info | Fewer than 30 days left on the registration |
| NOT_REGISTERED | info | The domain is not registered |
Request
| Field | Type | Description |
|---|---|---|
| domain* | string | Domain name to check (e.g. example.com) |
Authenticate with API key. Send it as the X-API-Key header.
curl -X POST "https://api.senapati.io/api/domain-age" \
-H "X-API-Key: $SENAPATI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain":"github.com"}'Response
Every success is wrapped in { "data": … } with a request_id; the fields below describe data. See Errors for the failure shape.
{"request_id": "req_2d27a848","timestamp": "2026-10-28T07:37:48.243802+00:00","data": {"domain": "github.com","registered_domain": "github.com","registered": true,"creation_date": "2007-10-09T18:20:50+00:00","expiration_date": "2028-10-09T18:20:50+00:00","updated_date": "2026-09-07T09:22:52+00:00","domain_age_days": 6959,"domain_age_months": 228,"domain_age_years": 19,"days_until_expiry": 712,"domain_very_recent": false,"domain_recent": false,"registrar": "MarkMonitor Inc.","source": "rdap","lookup_status": "ok","lookup_failed": false,"issues_found": [],"elapsed_ms": 638}}
domain_very_recent (30 days) and domain_recent (90 days) use the same thresholds as the URL report.
| Field | Type | Description |
|---|---|---|
| domain* | string | |
| registered_domain* | string | null | The registration the dates belong to, when a host name was asked |
| registered* | boolean | null | False when the registry says the domain is not registered |
| creation_date* | string | null | |
| expiration_date* | string | null | |
| updated_date* | string | null | |
| domain_age_days* | integer | null | |
| domain_age_months* | integer | null | |
| domain_age_years* | integer | null | |
| days_until_expiry* | integer | null | Negative once past |
| domain_very_recent* | boolean | Registered within the last 30 days |
| domain_recent* | boolean | Registered within the last 90 days |
| registrar* | string | null | |
| source* | "rdap" | "whois" | null | Protocol that answered the lookup |
| lookup_status* | "ok" | "not_found" | "error" | null | |
| lookup_failed* | boolean | True when the registry did not answer |
| issues_found* | Finding[] | |
| ↳ code* | string | Stable machine-readable code, e.g. CERT_EXPIRED |
| ↳ type* | "error" | "warning" | "info" | error: clients or browsers reject it; warning: it works but is weaker than it should be; info: a note, not a defect |
| ↳ message* | string | What was found and why it matters |
| elapsed_ms | integer | default 0 |
Errors
- 401missing or invalid API key / token
- 402not enough credits on the account
- 422the request body or a parameter failed validation
- 429plan rate limit exceeded
Nested objects
| Field | Type | Description |
|---|---|---|
| code* | string | Stable machine-readable code, e.g. CERT_EXPIRED |
| type* | "error" | "warning" | "info" | error: clients or browsers reject it; warning: it works but is weaker than it should be; info: a note, not a defect |
| message* | string | What was found and why it matters |
Notes
- Some country-code registries publish no dates at all, or only the expiry date; the age fields are then null and
CREATION_DATE_UNAVAILABLEsays why. - A transfer or a drop-and-re-register resets the creation date. A long history under the same registrant is not something a registry records.
- A report with
lookup_failed: truegot no answer from the registry; retry it before acting on it.