Menu

WHOIS is being replaced by RDAP: how to read domain expiry dates in bulk
📰

WHOIS is being replaced by RDAP: how to read domain expiry dates in bulk

DEV Community: api·Mouhamed Wade·about 18 hours ago
#BN8IduLa
#devtoapi#devto#dev#rdap#registry
Long article (472 words) — no AI summary yet.
Reading 0:00
15s threshold

If you still parse WHOIS text with regular expressions to watch domain expiry dates, there is a better way for most domains: RDAP, the Registration Data Access Protocol. It returns JSON over HTTPS, straight from the registry. Since 28 January 2025, ICANN no longer requires gTLD registries and registrars to provide WHOIS (with a few exceptions such as .com), and RDAP is the definitive source for gTLD registration data ( ICANN announcement ).

One domain, by hand

The quickest test goes through the public redirector rdap.org , which sends you to the right registry:

curl -sL https://rdap.org/domain/wikipedia.org

Enter fullscreen mode

Exit fullscreen mode

In the JSON, look at events : the entry with "eventAction": "expiration" holds the expiry date, and "registration" the creation date. status lists the EPP statuses, and the registrar is the entity with the role registrar .

Finding the right server yourself

For volume, do not send everything through a redirector.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.