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
Enter fullscreen mode
Exit fullscreen mode
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 .…