Updated
How to Look Up a Domain with RDAP (the JSON WHOIS)
1. One domain with curl
curl -sL https://rdap.org/domain/python.org | jq '{domain: .ldhName, status, events: [.events[] | {(.eventAction): .eventDate}]}'rdap.org redirects to the RDAP server of the right registry. The events list holds registration, expiration, last changed and sometimes transfer; the registrar is the entity whose role is registrar.
2. Without the redirect service
IANA publishes which RDAP server serves each top-level domain at https://data.iana.org/rdap/dns.json. Cache that file and query the registry directly to avoid depending on a third-party redirector.
3. Common pitfalls
- Country-code domains: some ccTLDs have no RDAP server yet and still need port-43 WHOIS.
- Rate limits: registries throttle bulk queries; space requests out and retry on HTTP 429.
- Dates: they are ISO 8601 in UTC; compute days to expiry from today's UTC date.
4. Many domains, with more than registration data
Plainprobe Domain & Tech Stack Intelligence returns RDAP registrar and dates with days to expiry, plus DNS, SPF and DMARC, SSL and the detected technologies, as one JSON record per domain at $0.003 per domain; invalid and non-existent domains are free. See also How to check SPF and DMARC.
Limits to keep in mind
- RDAP shows registration data, not who runs the website.
- Do not collect the personal contact details that some registries still publish.
FAQ
What is RDAP and does it replace WHOIS?
RDAP (Registration Data Access Protocol) is the JSON successor of WHOIS. ICANN made it the reference protocol for generic top-level domains, so registrar, dates and status now come as structured JSON instead of free text that differs by registry.
How do I find when a domain expires?
Query RDAP and read the event whose eventAction is expiration. For python.org on 2 December 2026, curl -sL https://rdap.org/domain/python.org returned expiration 2033-03-28, registration 1995-03-27 and registrar Gandi SAS.
Why does RDAP return 404 for a domain?
A 404 from the registry RDAP server means the domain is not registered there. It is a strong hint that the name is free, but only a registrar can confirm availability.
Does RDAP show the owner of a domain?
Usually not: since GDPR, registrant names, e-mails and phone numbers are redacted for most domains. RDAP gives the registrar, dates, status and name servers.