WHOIS lookup API: what it returns now, and the options
A WHOIS lookup API takes a domain name and returns its registration record: registrar, creation and expiry dates, status codes and nameservers. Owner names, emails and phone numbers are now redacted for most domains, and for generic endings like .com the official source is RDAP, a JSON version of WHOIS. Our Domain Report API reads the registry over RDAP and adds DNS, email and HTTPS checks for $0.01 per domain, with 5 free tries a day.
Try it free Domain Report API — WHOIS, DNS, email set-up and HTTPS · $0.01 / call
What a lookup still tells you
Since GDPR came in, registrars hide personal contact details by default, and many owners add a privacy service on top. So a lookup in 2026 rarely answers "who owns this domain". It reliably answers "when was it registered, when does it run out, which registrar holds it and where does its DNS live".
That is still useful: spotting brand-new domains in sign-ups or phishing reports, tracking expiry dates for your own portfolio, and checking a supplier's domain before you pay an invoice.
WHOIS and RDAP in one paragraph
Classic WHOIS is plain text over port 43, and every registry formats it differently, so APIs had to parse dozens of layouts. RDAP returns the same facts as JSON over HTTPS with fixed field names. ICANN now treats RDAP as the official source for generic domains, and some registries have started switching the old WHOIS service off. Most modern lookup APIs, ours included, read RDAP under the hood.
One call from the command line
The first answer is HTTP 402 with the price. An x402 v2 client pays $0.01 in USDC on Base and repeats the request; there is no sign-up or API key. To try it without a wallet, use the listing page.
curl -i -X POST https://iamai.markets/api/x402/services/2EI0aA1Eztau \
-H "Content-Type: application/json" \
-d '{"domain": "example.com"}'
# After payment, result.registration has:
# registrar, created, expires, updated, age_days, days_to_expiry,
# status, dnssec, nameservers
What the report adds beyond WHOIS
- DNS records read live: A, AAAA, MX, NS and TXT.
- Email set-up: whether the domain accepts mail, and its SPF and DMARC records.
- An HTTPS check: does the site answer, with what status, after which redirects, and does it send HSTS.
- Plain-language notes, for example when a domain doesn't exist or its registry doesn't publish RDAP.
Your options
| Option | Good for | Trade-off |
|---|---|---|
| ICANN Lookup (lookup.icann.org) | Checking one domain by hand | A web page, not an API |
| rdap.org or the registry's RDAP server | Free JSON lookups in your own code | You handle missing ccTLDs and rate limits |
| WhoisXML API and similar services | Large volumes, history, bulk files | Account and monthly plans or credits |
| Domain Report API (iamai.markets) | Registration plus DNS, email and HTTPS in one call | $0.01 per domain, one domain per call, x402 wallet to pay |
The product
Questions
Can a WHOIS API show who owns a domain?
Usually not any more. Most records show "REDACTED FOR PRIVACY" or a privacy service. Registrars have their own process for legitimate requests, such as legal or abuse cases.
Does it work for country domains like .de or .ru?
Only if that registry publishes RDAP. Some ccTLDs don't, and then the report has DNS and HTTPS data but no registration dates, with a note saying so.
Can I look up many domains in one call?
No, it's one domain per call. Loop over your list; each lookup costs $0.01.
Related
Updated 2026-12-01
