Skip to content

Network

Know who registered a domain, when, and how it handles email

Send a domain, a URL or an email address. The API finds the RDAP server of the registry in the IANA bootstrap file and reads the registration: creation and expiry dates, age, registrar, status codes, nameservers and DNSSEC. It resolves the A, AAAA, MX, NS and TXT records and sums up email authentication: MX, SPF, DMARC policy and whether the domain is a disposable email domain.

What one lookup returns

The fields this product reads from the response. The full schema is in the API reference.

FieldTypeMeaning
statusstringregistered, not_registered or unknown.
rdap.statusstringfound, not_found, unsupported (no RDAP server for the TLD) or error.
registration.created_atstring or nullRegistration date, from the registry.
registration.expires_atstring or nullExpiration date, from the registry.
registration.age_daysinteger or nullWhole days since the registration date.
registration.registrar.namestring or nullName of the registrar.
registration.statusesarrayRDAP status values, such as client transfer prohibited.
registration.nameserversarrayNameservers the registry delegates to.
registration.dnssecboolean or nulltrue when the delegation is signed.
dns.aarrayIPv4 addresses of the domain.
dns.mxarrayMail exchangers, by priority.
dns.txt.verificationsarrayServices whose verification token is published in TXT.
email.spfbooleantrue when the domain publishes an SPF record.
email.dmarc_policystring or nullnone, quarantine or reject.
email.disposablebooleantrue when the domain is a disposable email domain.

Live example

The response below was returned by the API for this request.

Request
curl https://api.qelka.com/v1/domain \
  -H "Authorization: Bearer sk_test_your_key" \
  -H "Content-Type: application/json" \
  -d '{"domain":"cloudflare.com"}'
Request fields
domainstring · RequiredA domain name. A URL or an email address also works: its registrable domain is used.
freshboolean · Default falsetrue skips the result cache and runs the lookup again.

Response

{
  "id": "lkp_01M875D1RE89KBPYC9QGDPVNSN",
  "object": "domain",
  "input": "cloudflare.com",
  "domain": "cloudflare.com",
  "tld": "com",
  "status": "registered",
  "rdap": {
    "status": "found",
    "server": "https://rdap.verisign.com/com/v1/"
  },
  "registration": {
    "created_at": "2009-02-17T22:07:54.000Z",
    "updated_at": "2024-01-09T16:45:28.000Z",
    "expires_at": "2033-02-17T22:07:54.000Z",
    "age_days": 6488,
    "expires_in_days": 2277,
    "registrar": {
      "name": "Cloudflare, Inc.",
      "iana_id": "1910"
    },
    "statuses": [
      "client delete prohibited",
      "client transfer prohibited",
      "client update prohibited",
      "server delete prohibited",
      "server transfer prohibited",
      "server update prohibited"
    ],
    "nameservers": [
      "ns3.cloudflare.com",
      "ns4.cloudflare.com",
      "ns5.cloudflare.com",
      "ns6.cloudflare.com",
      "ns7.cloudflare.com"
    ],
    "dnssec": true
  },
  "dns": {
    "status": "NOERROR",
    "a": [
      "104.16.132.229",
      "104.16.133.229"
    ],
    "aaaa": [
      "2606:4700::6810:84e5",
      "2606:4700::6810:85e5"
    ],
    "mx": [
      {
        "priority": 5,
        "exchange": "mxa-canary.global.inbound.cf-emailsecurity.net"
      },
      {
        "priority": 5,
        "exchange": "mxb-canary.global.inbound.cf-emailsecurity.net"
      },
      {
        "priority": 10,
        "exchange": "mxa.global.inbound.cf-emailsecurity.net"
      },
      {
        "priority": 10,
        "exchange": "mxb.global.inbound.cf-emailsecurity.net"
      }
    ],
    "ns": [
      "ns3.cloudflare.com",
      "ns4.cloudflare.com",
      "ns5.cloudflare.com",
      "ns6.cloudflare.com",
      "ns7.cloudflare.com"
    ],
    "txt": {
      "records": 29,
      "spf": "v=spf1 ip4:199.15.212.0/22 ip4:173.245.48.0/20 include:_spf.google.com include:spf1.mcsv.net include:spf.mandrillapp.com include:mail.zendesk.com include:stspg-customer.com include:_spf.salesforce.com -all",
      "verifications": [
        "apple",
        "atlassian",
        "cisco",
        "facebook",
        "google",
        "microsoft",
        "miro",
        "onetrust",
        "stripe"
      ]
    }
  },
  "email": {
    "mx": true,
    "null_mx": false,
    "provider": null,
    "spf": true,
    "spf_all": "fail",
    "dmarc": true,
    "dmarc_policy": "reject",
    "disposable": false
  },
  "credits_used": 1,
  "cached": false
}

Use cases

Screen new sign-ups

A domain registered a few days ago, without MX or DMARC, is worth a second look before you grant a trial.

Qualify leads

Read the age, mail provider and DNS setup of a company domain before sales reaches out.

Watch your own domains

Track expiry dates, registry locks and DNSSEC on the domains your business depends on.

Review suppliers and partners

Check that the domain in an invoice or a payment request is not days old.

Price

1 credit per lookup, from the same balance as every other product.

Starter
$2.90 per 1,000 lookups
Growth
$1.98 per 1,000 lookups
Scale
$1.50 per 1,000 lookups
Business
$1.07 per 1,000 lookups

The free plan includes 100 credits every month. Errors, upstream failures and test keys are never billed.

See pricing

Data source and freshness

Queried live from the source at request time. Results are cached for 1 days; send "fresh": true to query again.

Data sources

Frequently asked questions

Where does the registration data come from?
From the RDAP server of the registry of the TLD. RDAP (RFC 9083) is the structured successor of WHOIS; ICANN requires it from generic TLD registries. The API finds the right server in the bootstrap file IANA publishes (RFC 9224), cached one day.
Why is the registration empty for some domains?
Some country-code registries, such as the one for .de, run no public RDAP server, so the IANA bootstrap file lists none. The result then says rdap.status unsupported and still returns DNS and email data; status is registered when the domain is delegated in DNS.
How is the age computed?
From the registration event of the RDAP record: whole days between that date and the time of the lookup. A domain that was deleted and registered again starts over, because the registry only keeps the current registration.
Does the response include the owner of the domain?
No. The API returns the registrar, not the registrant. Most registries redact registrant contacts in public RDAP answers, and this product does not collect them.
What costs a credit?
Each lookup costs 1 credit and is cached 24 hours. When the RDAP server of the registry does not answer, the result says rdap.status error, credits_used is 0 and nothing is cached.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time