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.…