A domain's WHOIS creation date tells you when the current registration started. It does not tell you whether the name had a previous life. Expired domains are re-registered every day, and a domain that looks two months old in WHOIS may have ten years of history, including history the new owner would rather you did not see. When I vet sites for links or partnerships, I compare two dates: the registration date and the first time the Internet Archive saw the site. A big gap between them is worth a closer look.

The Wayback CDX API

The Internet Archive exposes a simple index of captures at web.archive.org/cdx/search/cdx. You can ask for the earliest capture of a domain with a few parameters:

https://web.archive.org/cdx/search/cdx?url=example.com&output=json&limit=1&fl=timestamp,statuscode 

Results are sorted oldest first, so limit=1 returns the first capture. Timestamps look like 20120314093012 (YYYYMMDDhhmmss).

A small Python helper

import json import urllib.request from datetime import datetime def first_capture(domain): url = ('https://web.archive.org/cdx/search/cdx?url=' + domain + '&output=json&limit=1&fl=timestamp,statuscode') with urllib.request.urlopen(url, timeout=30) as r: rows = json.load(r) if len(rows) < 2: # first row is the header return None return datetime.strptime(rows[1][0], '%Y%m%d%H%M%S') def history_gap(domain, registered): first = first_capture(domain) if first is None: return None return (registered - first).days reg = datetime(2026, 9, 1) # creation date from WHOIS or RDAP gap = history_gap('example.com', reg) print(gap) 

A positive gap of several hundred days means the archive saw content on that name long before the current registration. That usually means the domain expired and someone picked it up.

Reading the result

Gap What it usually means
None (no captures) Brand-new name, or a site the archive never crawled
Around 0 days Normal: first capture shortly after registration
Hundreds or thousands of days Earlier owner; check what the old site was

A gap is not proof of anything bad. Plenty of businesses buy an old domain that matches their brand. But it is your cue to open the earliest captures and look: was it a dentist in another country, a casino, a link farm? If the topic changed completely, any backlinks the domain still has were earned by someone else for something else.

Going a step further

  • Pull a handful of captures across the years with &collapse=timestamp:4 (one per year) to see how the site changed.
  • Check statuscode values: long runs of redirects or 404s can mark the period when the domain lapsed.
  • Be polite to the API. Add a short sleep between domains and cache results; the archive is a free public service.

Where the creation date comes from

You still need a reliable registration date for the comparison. RDAP is the modern source, and for quick one-off checks I use DAPA Checker's domain age checker rather than parsing WHOIS output by hand. Put the two dates side by side and the domain's real story is usually obvious within a minute.