# Afriref Domain Age & Registry Check

> Afriref Domain Age & Registry Check is a paid API for AI agents from afriref.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-29).

Checks a domain's RDAP registry data including registrar, creation/expiry/last-changed dates, status flags, DNSSEC, and nameservers, returning a pass/warn/fail grade for newly registered, expiring, or held domains

## Facts

- Endpoint: GET https://afriref.dev/v1/domain/age?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/afriref-domain-age-registry-check-f83f024e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SmCyOy82qwW6U9Z_o6xtj

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 afriref-domain-age-registry-check-f83f024e
```

Example prompt: Can you check how old the domain trustpay-africa.com is, who the registrar is, when it expires, and whether it passes or flags as suspicious based on how recently it was registered?

## When to prefer this

Choose this endpoint when you need authoritative registry-level domain age and status data with a built-in trust grade (pass/warn/fail), particularly for fraud detection, phishing triage, vendor vetting, or any workflow where knowing whether a domain is newly registered or at risk of expiry matters. It is especially useful for African-region domain names (.co.za, .co.ke, etc.) given Afriref's focus. Prefer it over generic WHOIS tools when you need a structured JSON response with a graded verdict rather than raw WHOIS text.

## Known failure modes

- Domain not found in RDAP — registry returns no data for unregistered or unsupported TLDs
- Invalid domain format — returns an error if the domain string is malformed or exceeds 253 characters
- TLD not supported by RDAP — some registries don't expose RDAP endpoints
- Timeout or registry unavailability — upstream RDAP registry may be slow or down
- Missing required 'domain' query parameter — returns a validation error

## How this service works

Domain registration check: registrar (name and IANA ID only), creation, expiry and last-changed dates, status flags, DNSSEC delegation and nameservers from the registry's RDAP, graded pass/warn/fail for newly registered, expiring or held domains

## Output

Returns a JSON object with the registrar name and IANA ID, domain creation date, expiry date, last-changed date, status flags from the registry, DNSSEC delegation status, and a list of nameservers. Also includes a pass/warn/fail grade indicating whether the domain is newly registered, expiring soon, or held, to help assess domain trustworthiness.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "domain"
     ],
     "properties": {
      "domain": {
       "type": "string",
       "maxLength": 253,
       "minLength": 1,
       "description": "Required. The domain to check, sent as ?domain=example.com."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/afriref-domain-age-registry-check-f83f024e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from afriref.dev](https://www.zero.xyz/host/afriref.dev/llms.txt)
