Domain All docs

Domain API Reference

One route. Base URL https://api.apifor.dev, authenticated with x-api-key. Failed calls are not charged. Overview, limits and sources are on the Domain lookup API page.

GET/v1/domain2 credits

RDAP registration (IANA bootstrap), DNS over HTTPS (A, AAAA, MX, NS, TXT, CAA), SPF and DMARC parsing, and a disposable-mail flag. Cached 24 hours per domain. 2 credits.

ParameterInTypeRules
name *querystringmax 253 chars
GET/v1/domain
curl 'https://api.apifor.dev/v1/domain?name=example.com' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": {
    "name": "example.com",
    "registered": true,
    "registration": {
      "status": "ok",
      "queried": "example.com",
      "server": "rdap.verisign.com",
      "registrar": "RESERVED-Internet Assigned Numbers Authority",
      "registrar_iana_id": "376",
      "created": "1995-08-14T04:00:00Z",
      "updated": "2026-08-14T08:01:43Z",
      "expires": "2027-08-13T04:00:00Z",
      "statuses": [
        "client delete prohibited",
        "client transfer prohibited"
      ],
      "nameservers": [
        "elliott.ns.cloudflare.com",
        "hera.ns.cloudflare.com"
      ],
      "dnssec": true
    },
    "dns": {
      "resolved": true,
      "status": "ok",
      "a": [
        "172.66.147.243",
        "104.20.23.154"
      ],
      "aaaa": [
        "2606:4700:10::ac42:93f3",
        "2606:4700:10::6814:179a"
      ],
      "mx": [],
      "ns": [
        "elliott.ns.cloudflare.com",
        "hera.ns.cloudflare.com"
      ],
      "txt": [
        "v=spf1 -all",
        "_k2n1y4vw3qtb4skdx9e7dxt97qrmmq9"
      ],
      "caa": []
    },
    "email": {
      "accepts_mail": false,
      "null_mx": true,
      "spf": {
        "present": true,
        "valid": true,
        "record": "v=spf1 -all",
        "all": "fail",
        "includes": [],
        "mechanisms": [
          "-all"
        ],
        "dns_lookups": 0,
        "warnings": []
      },
      "dmarc": {
        "present": true,
        "valid": true,
        "record": "v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s",
        "policy": "reject",
        "subdomain_policy": "reject",
        "pct": 100,
        "rua": [],
        "ruf": [],
        "adkim": "s",
        "aspf": "s"
      },
      "dkim": null,
      "dkim_note": "DKIM keys live under selectors that cannot be listed from DNS, so they are not checked."
    },
    "disposable": false,
    "tls": null,
    "tls_note": "Certificate details are not exposed to Cloudflare Workers fetch, so TLS expiry is not reported.",
    "checked_at": "2026-11-28T15:30:44.480Z",
    "cached": false
  }
}
  • 200Domain report
  • 400Invalid input
  • 401Missing or invalid API key
  • 402Not enough credits
  • 429Rate limit reached
  • 502DNS and RDAP both failed (not charged)

Error handling · Rate limits · Prices