Check a domain's past before you buy it.
Reads the domain's homepage history from the Wayback Machine CDX API (output=json, fl, filter=statuscode:200, collapse=timestamp:6 for one snapshot a month, from/to, limit): first and last snapshot, snapshots per year and gaps longer than a year. It reads 5-10 snapshots spread over the history in raw (id_) mode for the title, the language and a text sample, and matches the topic against the project's words from brand.json, indexgap.json or a build folder (--project): high, medium or low. It looks for doorway titles, a language change, parking pages, casino, pharma, adult and payday-loan words outside the project's niche, and PBN traces (a homepage linking to many unrelated sites). --links reads an export you made: Ahrefs API v3 field names (domain, anchor, first_seen, url_from, is_spam, links_to_target, refdomains) or a simple domain,anchor,first_seen CSV; no other format is guessed. The verdict is buy-and-build, redirect-only (a 301 to a related project) or skip, with reasons and a note on Google's expired domain abuse policy (developers.google.com/search/docs/essentials/spam-policies#expired-domains). Without --fetch the network is not touched and the command prints the requests it would make; --fetch waits two seconds between requests and sends the package's User-Agent; --save keeps the CDX response and the snapshots for --cdx-file and --snapshots. Public archive data only: nothing is bought or submitted.
usage: indexgap domain-check [-h] --project PROJECT [--topic TOPIC]
[--links [DOMAIN=]links.csv] [--fetch] [--online]
[--cdx-file cdx.json] [--snapshots DIR]
[--save DIR] [--samples SAMPLES] [--from YYYY]
[--to YYYY] [--delay DELAY] [--json]
DOMAIN [DOMAIN ...]
[experimental] a domain before you buy it: Wayback Machine history, topic,
spam traces, links from an export and a verdict. Network only with --fetch
positional arguments:
DOMAIN domains to check
options:
-h, --help show this help message and exit
--project PROJECT the project's topic: indexgap.json, brand.json or a
build folder
--topic TOPIC add words to the project's topic
--links [DOMAIN=]links.csv
a links export: Ahrefs API fields (referring-domains,
anchors) or a CSV domain,anchor,first_seen
--fetch query the CDX API and the archive snapshots. Without
the flag the network is not touched
--online turn on every network read of this command: --fetch.
Writes nothing to outside services — only --send does
that
--cdx-file cdx.json a saved CDX response (output=json) or a folder with
<domain>.json
--snapshots DIR a folder of saved snapshots <timestamp>.html for
--cdx-file
--save DIR with --fetch: save the CDX response and snapshots for
--cdx-file
--samples SAMPLES how many snapshots to read, 5 to 10 (default 8)
--from YYYY start of the archive window (from in CDX)
--to YYYY end of the archive window (to in CDX)
--delay DELAY pause between requests in seconds (default 2)
--json print the result as JSON — for scripts and agents