Back to Learning Center
Monitoring

How to Check a Domain's Expiry Date: RDAP, WHOIS and Registrar Reminders

6 min read·Updated November 2026·By CertNotify Team

A domain's expiry date is held by its registry, and the most reliable way to read it is RDAP, the Registration Data Access Protocol. One curl request to rdap.org returns the registry's record as JSON, and the date sits in the event named expiration. It is the same whichever registrar sold the domain.

One request

curl -sL https://rdap.org/domain/example.com

rdap.org looks up which registry runs the domain's TLD in the IANA bootstrap file and redirects there; for example.com that is Verisign. -L follows the redirect. The JSON response has an events list, and RFC 9083 defines the expiration event as the date the object "will be removed at a predetermined date and time from the registry".

To print only that date:

curl -sL https://rdap.org/domain/example.com | python3 -c 'import json,sys; print(next(e["eventDate"] for e in json.load(sys.stdin)["events"] if e["eventAction"]=="expiration"))'
2027-08-13T04:00:00Z

A list of domains

With one registered domain per line in domains.txt:

#!/bin/sh
# Usage: sh rdap-expiry.sh domains.txt
# Prints each registered domain's expiry date as the registry reports it
# over RDAP, via the rdap.org redirector. Needs curl and python3.
while read -r domain; do
  [ -z "$domain" ] && continue
  date=$(curl -sL "https://rdap.org/domain/$domain" | python3 -c 'import json, sys
try:
    data = json.load(sys.stdin)
except ValueError:
    sys.exit(0)
for event in data.get("events", []):
    if event.get("eventAction") == "expiration":
        print(event["eventDate"])')
  echo "$domain  ${date:-no RDAP expiry date}"
done < "$1"

Output on 30 November 2026:

example.com  2027-08-13T04:00:00Z
certnotify.com  2028-04-15T15:55:07Z
google.co.in  2027-06-23T14:02:33.027Z
denic.de  no RDAP expiry date

Use the registered domain, not a subdomain: example.com, not www.example.com. The last line is the case RDAP does not cover. .de had no RDAP service in the bootstrap file, so rdap.org answered 404. For TLDs like that, the registrar's control panel or the registry's own WHOIS service is the source.

Why not WHOIS?

WHOIS still works for many TLDs, but it returns free text, and the label for the expiry line differs between registries and registrars. A script that parses one registry's format breaks on the next. RFC 9082 describes RDAP as addressing WHOIS's "lack of standardized output", which is why the script above needs no per-registry parsing.

Who gets the registrar's reminders

For generic TLDs such as .com, ICANN's Expired Registration Recovery Policy requires the registrar to send renewal reminders approximately one month and one week before expiry, and at least one more within five days after it. They go to the registrant contact on record. If that is a personal mailbox, or the address of someone who has left, the reminders arrive and nobody reads them.

After expiry, the same policy requires the registrar to interrupt the domain's DNS, so the website and email stop, for at least the last eight days during which it can still be renewed. Once the registration is deleted, generic-TLD registries other than sponsored ones offer a 30-day Redemption Grace Period, during which DNS stays off and transfers are blocked. Country-code TLDs set their own rules.

Checking it every day

CertNotify reads each monitored domain's registration expiry over RDAP once a day, alongside its certificate, and emails you every day once the date is inside your lead time. That reminder goes to your team, not to whatever address is on the registration. The free domain expiry check does a single lookup without an account. Agencies whose clients own their domains should also read the handover checklist.

Common questions

How do I find a domain's expiry date?

Ask the registry over RDAP: request https://rdap.org/domain/<your domain> and read the event whose eventAction is "expiration". The rdap.org service forwards the request to the right registry.

Why use RDAP instead of WHOIS?

RDAP answers in JSON with fields defined by RFC 9083, so the expiry date is always the "expiration" event. WHOIS answers in free text whose labels differ from one registry to the next.

Does every domain have RDAP?

No. RDAP covers the registries listed in the IANA bootstrap file. On 30 November 2026, .com, .org, .in and .uk answered, and .de returned 404 from rdap.org.

Will the registrar remind me before the domain expires?

For generic TLDs such as .com, ICANN's Expired Registration Recovery Policy requires reminders about one month and one week before expiry, and one within five days after. They go to the registrant's email on record.

References and further reading

The specifications and primary documentation this article is based on.

Read next

More guides on the same subject.

Get the reminder the registrar sends to someone else

CertNotify checks registration and certificate expiry for every domain you add, daily, and alerts your team inside the lead time you choose.

Start 14-day Pro trial