Archive search methods: how to search the archived web at content level
Compiled 2 December 2026 during the third pass of the forum dossier (African/Caribbean diaspora discourse about Black Americans, 1993, 2013). Every tool below was either used in this pass or verified against its own documentation in this pass. Where a tool could not be exercised from the available text fetcher, that is stated as a fetcher limit, not as a property of the tool. Reuse this file on other research jobs.
0. The three problems that prompted this file, and what they actually are
- "web.archive.org returned HTTP 403." The block hits automated text fetchers, not the archive itself. The same URLs open fine in an ordinary browser session (verified in the dossier's third Wayback pass, which completed a full CDX enumeration in a real browser after the fetcher was refused). Rule: a 403 from a fetcher is a client problem. Switch client (real browser), do not conclude the archive is down or the captures absent, and do not route around a denial inside the same blocked client.
- "Broad CDX queries die with 504 Gateway Time-out." True of
matchType=domainand largematchType=hostqueries against big domains. The fix is query shape, not persistence: narrow prefix queries (matchType=prefixon a specific path), bounded withfrom=/to=,filter=statuscode:200,collapse=urlkeyand a positivelimit=. Every successful enumeration in this project used that shape. - "Internet Archive intermittently serves a 'Temporarily Offline' page." Real and transient. Retry later; a failed attempt is not a negative result. Log it as unverified, never as empty.
1. Wayback Machine CDX API (URL index: no full text)
Endpoint: https://web.archive.org/cdx/search/cdx. It searches the index of captured URLs, never page content. Anything content-level must be done by fetching captures the index returns.
Parameters that matter (per the CDX server documentation, github.com/internetarchive/wayback, wayback-cdx-server README):
| Parameter | Use |
|---|---|
url= |
Target URL or pattern; URL-encode it if it contains its own query string |
matchType=exact |
One URL (default) |
matchType=prefix |
Everything under a path: the workhorse for forum trees |
matchType=host / matchType=domain |
Whole host / host + subdomains: expensive, 504-prone on big domains |
from= / to= |
Inclusive timestamp bounds, 1, 14 digits (from=2006&to=2013) |
filter=statuscode:200 |
Repeatable [!]field:regex predicates; stack them |
collapse=urlkey |
One row per distinct URL: use to list a forum's archived threads |
collapse=timestamp:8 |
One capture per day; collapse=digest dedupes identical content (adjacency-based, not global) |
fl=urlkey,timestamp,original,statuscode,digest |
Trim returned fields |
output=json |
JSON array, first row is field names |
limit= |
Positive cap; showNumPages=true + page= for paging large result sets |
Worked pattern (forum thread enumeration):
https://web.archive.org/cdx/search/cdx?url=example.com/forums/&matchType=prefix&from=2006&to=2013&filter=statuscode:200&collapse=urlkey&limit=500&output=json
Content access once the index gives a timestamp: https://web.archive.org/web/<timestamp>id_/<original URL>: the id_ suffix returns the raw archived response without the Wayback toolbar/rewrite, which is the form to quote and grep.
Limits and traps:
- No full-text search exists over Wayback captures. The archive.org "Search archived websites" box is a URL search. Anyone claiming to "search Wayback for a word" is either using Arquivo.pt (below), Common Crawl WARC greps, or a third-party index.
- The Availability API (archive.org/wayback/available) is degraded: it returns empty archived_snapshots for URLs that are in fact archived. Use CDX as the primary mechanism.
- Retroactive robots.txt exclusion can hide captures that exist; a CDX zero is "not retrievable", not "never captured".
- The CDX index is sorted by URL then date; thread-level work means enumerating a forum's URL space first, then sampling captures: there is no shortcut around the enumeration step.
2. Arquivo.pt: the one true full-text archive search (use this first for content)
The Portuguese web archive exposes full-text search over the content of archived pages, which neither Wayback nor Common Crawl offers. This pass's single most productive tool: it found, by content, a 2006 Nigeriaworld article using "akata" and a 2009, 2013 diaspora blog comment thread stating the lazy/welfare pattern: neither findable by URL guessing.
Endpoints (all open, JSON, CORS-enabled; documentation at arquivo.pt/textsearch/api-docs/v3 and the Arquivo.pt API wiki):
- Term/phrase search:
https://arquivo.pt/textsearch?q=<terms>&maxItems=50&prettyPrint=true qterms are ANDed;"double quotes"= phrase.siteSearch=domain.comrestricts to a site: the highest-value parameter for forum work.from=/to=accept YYYY, YYYYMMDD or full timestamps (capture-date window).fields=originalURL,tstamp,titletrims the response to a usable size.offset=pages; max 500 results per request (maxItemscap).type=filters by document type (pdf, html, doc…);collection=restricts to named collections.- URL history:
https://arquivo.pt/textsearch?versionHistory=<url>&maxItems=50: Arquivo's captures of one URL (its CDX equivalent; Arquivo also runs a CDX-server API and a Memento API). - Extracted text of a capture:
https://arquivo.pt/textextracted?m=<url-encoded originalURL>%2F<tstamp>: returns the capture's plain text, the fastest way to read and grep a page without replay markup. - Replay:
https://arquivo.pt/wayback/<tstamp>/<url>(same Wayback syntax as web.archive.org).
Coverage and limits, honestly:
- Holdings centre on the Portuguese web (.pt, Portuguese language) plus broad international crawls (the AWP/EAWP collections). Big English-language sites appear, but diaspora-forum coverage is spotty and must be probed per domain: in this pass Arquivo held no BlackPlanet captures at all, only 2021, 22 captures of Nairaland, and thin GhanaWeb material: while still holding the 2006 Nigeriaworld article (captured 2021) that no other route surfaced.
- The full-text index lags the crawl, in places by years; recent captures may be in versionHistory before they are text-searchable.
- A bare rare-word query (q=akata) returns ~95k estimated results dominated by namesakes (a novel series, a manga publisher, Croatian legal "akata"). Site restriction and date windows are not optional refinements; they are what make the tool usable.
- Phrase-pair queries (two quoted phrases) behaved loosely in testing and returned noise; prefer one phrase + site restriction, or phrase + date window.
3. Common Crawl: URL index + byte-range WARC retrieval (the grep-it-yourself archive)
A crawl corpus, not a preservation archive, but the most machine-friendly route to dead pages: no throttling observed in the documentation and third-party probes, and records are individually retrievable.
- Collections list:
https://index.commoncrawl.org/collinfo.json: every crawl back to CC-MAIN-2008-2009 (May 2008, Jan 2009). Nothing before 2008 exists here; for 1995, 2007 Common Crawl is simply not a source. - Index query (per crawl, no all-crawl index):
https://index.commoncrawl.org/<CRAWL>-index?url=<pattern>&output=jsonwith the same dialect as Wayback CDX:matchType=prefix|host|domain,filter=(e.g.=status:200,mime:text/html),fl=,collapse=urlkey,showNumPages=true+page=N. Each line of output is JSON:url,timestamp,status,mime,digest, and the WARC pointer (filename,offset,length). - Retrieval: HTTP Range GET of exactly
offset..offset+lengthfromhttps://data.commoncrawl.org/<filename>, gunzip: the record contains the WARC header, the HTTP response headers, then the page body. Grep the body locally. Worked end-to-end in third-party verification (a 722 KB PDF recovered from a WARC record in two requests). - WET files (per-crawl extracted plain text) exist for bulk text work; for targeted thread-hunting the index + range-GET pattern is cheaper.
- Columnar (URL) index on AWS S3/Athena supports SQL-style queries across crawls but needs an AWS account: credential-gated, noted for completeness.
- cdx_toolkit (
cdxtCLI / PythonCDXFetcher) queries both Common Crawl and IA CDX indices with one interface and can write captures out as WARC. - Like Wayback, the index is URL-only: content search = enumerate URLs, fetch records, grep locally.
Fetcher note from this pass: through the text fetcher available here, index.commoncrawl.org index queries returned HTTP 503 on every attempt while collinfo.json itself loaded and reported the service up: the same fetcher-side pattern as the Wayback 403. A direct HTTP client or real browser is the working route; the queries are specified in the dossier, Section 8, for that route.
4. Internet Archive item search: full text for items, not for web captures
Two different things share the archive.org brand; conflating them wastes hours.
- advancedsearch.php (
https://archive.org/advancedsearch.php?q=...&output=json): Lucene-syntax search over item metadata (title, creator, description, collection, date ranges). Finds items, not passages. - "Search text contents" (Full-Text Search): searches inside texts items (books, scanned documents, OCR'd files). It does not search Wayback web captures. BookReader "Search Inside" does the same for one item.
- The bulk-file route that actually works for forums/Usenet: identify the collection item (e.g.
usenet-soc), download the underlying files (https://archive.org/download/<identifier>/<file>), and grep locally with word-boundary discipline. Pass 2 of the dossier did exactly this with four Usenet mboxes (~1.5 GB of text) and moved the earliest dated item from 1998 to 1993. For any pre-web or bulk-corpus question, this is the strongest method in this file. - Item metadata:
https://archive.org/metadata/<identifier>lists every file in an item: check file lists before downloading anything large.
5. archive.today: on-demand snapshots only (2012, )
Mirrors: archive.today / .ph / .is / .fo / .md / .li (one service). Founded 2012; it crawls nothing: every capture exists because a user submitted that URL. Consequences: coverage of 1990s, 2000s forum threads is near zero by construction, and it can only ever hold the 2012+ state of a page, never its earlier state.
- Search: the site's second search box lists captures of a URL; the research toolbar supports
insite:, quoted phrases and*wildcards over captured URL/title space. - Timemap (Memento):
https://archive.ph/timemap/<url>lists all captures of a URL; per-domain listings (archive.today/offset=<n>/<domain>) show only the latest ~2,500 captures. - It ignores robots.txt, so it sometimes holds pages Wayback excludes: its one real advantage.
- Trust caveat for evidence use: English Wikipedia banned archive.today links in February 2026 after findings that included altered capture text. Treat any archive.today capture as needing corroboration before it is cited as evidence.
6. Memento / Time Travel: the aggregator is gone; use per-archive timemaps
Memento (RFC 7089) standardises datetime negotiation: a TimeGate returns the capture of a URL nearest a requested datetime, and a TimeMap lists all captures across archives. The LANL Time Travel aggregator (timetravel.mementoweb.org) shut down in September 2025 (the Memento Project concluded 5 September 2025): older guides that route every archive lookup through it are stale, and its API endpoints no longer resolve. Working substitutes:
- Per-archive TimeMaps directly (Wayback and archive.today both expose them; Arquivo.pt runs a Memento API).
- MemGator (Old Dominion University): a self-hostable Memento aggregator, if a job ever justifies standing one up.
- In practice: query each archive's own index (Sections 1, 3): with only three archives that matter for this kind of work, aggregation saves little.
7. Usenet web archives: Google Groups is decayed; the mboxes are the record
- Google withdrew Usenet posting/support in February 2024; groups.google.com still displays much of the archive but its search has decayed to the point of unreliability for term-level work (pass 1 of the dossier retrieved nothing for 1994, 2002 through it, in groups where pass 2's grep later found the material).
- usenetarchives.com provides a working per-group, per-message web front end (
view.php?id=<group>&mid=<message-id>) and was citable in pass 1. - The authoritative route remains Section 4's: IA
usenet-socmboxes + local grep, with two earned warnings: (a) substring counts lie: "akata" substring hits were mostly katakata, yakata, barakatahu, place names and surnames; word-boundary filtering and full reads of every candidate are mandatory; (b) coverage is skewed per group (soc.culture.african.american's mbox holds only ~173 messages dated 1993, 2002 against tens of thousands per year a decade later), so a zero in a thin group is a coverage artefact, not a finding.
8. Decision table
| Question | Tool | Pattern |
|---|---|---|
| "Find pages whose text contains X" | Arquivo.pt textsearch | q="phrase"&siteSearch=domain&from=&to= then textextracted |
| "What captures exist of this URL / under this path?" | Wayback CDX | narrow matchType=prefix, collapse=urlkey, bounded dates, filter=statuscode:200 |
| "Wayback has nothing / is blocked / excluded" | Common Crawl (2008+) | per-crawl index query → Range GET the WARC record → grep locally |
| "Search a whole corpus" (Usenet, lists, dumps) | IA item files | archive.org/metadata/<id> → download → local grep with word boundaries |
| "Did anyone save this page since 2012?" | archive.today | search box / archive.ph/timemap/<url>; corroborate before citing |
| "Which archive holds this URL at all?" | Per-archive timemaps (Memento aggregator defunct) | query Wayback CDX + Arquivo versionHistory + CC index in turn |
| "Search inside a book/scan" | IA "Search text contents" / BookReader | texts items only: never web captures |
9. Standing rules earned in this pass
- A fetcher's 403/503 is a client fact, not an archive fact. Change client before concluding anything; never route around a denial inside the blocked client, and never report a blocked lane as an empty archive.
- Shape beats persistence: every failed broad query in this project succeeded when narrowed (prefix + dates + filters + collapse + limit).
- Full text exists in exactly one public web archive (Arquivo.pt). Everything else is enumerate-then-fetch-then-grep. Budget the work accordingly.
- Coverage is per-domain and must be probed, never assumed: the same archive that held nothing of BlackPlanet held the one 2006 Nigeriaworld article that mattered.
- Date-window everything. Undated archive queries drown in namesakes and later material.
- A zero is a statement about a specific index, query and date: record all three, or the zero is worthless.