Home / Guides / How to Look Up a Domain with RDAP

Updated

How to Look Up a Domain with RDAP (the JSON WHOIS)

RDAP is the JSON replacement for WHOIS. curl -sL https://rdap.org/domain/python.org returns the registrar (Gandi SAS), the registration date (1995-03-27), the expiry date (2033-03-28) and the status (client transfer prohibited) as structured JSON. An unregistered name returns HTTP 404. Owner contact details are redacted for most domains.

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

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

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.

Related tool