Commoncrawl

v0.2.1
io.github.pipeworx-io/commoncrawl Checked 1 day ago Published 1 month ago

Common Crawl's public web archive — find every time a URL was crawled since 2008 and read the…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

commoncrawl_crawls

List the Common Crawl monthly crawl collections (crawl ids like "CC-MAIN-2026-34") with the date range each one covers. AUTHORITATIVE for "which Common Crawl snapshot covers <date>" — call this first to pick the crawl id that commoncrawl_index_search needs. Newest first. Keyless.

ParameterTypeDescription
contains_datestringOptional ISO date, e.g. "2025-01-15". Returns only the crawl(s) whose capture window covers that date — the answer to "which snapshot would have seen my page then".
limitnumberHow many crawls to return, newest first. Default 20, max 120 (the full history back to 2008).

commoncrawl_fetch_record

Read one archived page back out of Common Crawl by byte range — pass the filename, offset and length from a commoncrawl_index_search result and get the WARC headers, the captured HTTP response headers, and the page body as it was crawled. AUTHORITATIVE for "what did this page actually say when it was crawled", including pages that have since changed or gone offline. The body is truncated to a byte cap you control. Keyless.

ParameterTypeDescription
filename *stringWARC path from a capture row, e.g. "crawl-data/CC-MAIN-2025-05/segments/1736703361969.6/warc/CC-MAIN-20250112194358-20250112224358-00433.warc.gz".
length *numberCompressed byte length of the record (the capture row's "length"). Max 10485760 (10 MB).
offset *numberByte offset of the record within that WARC file (the capture row's "offset").
max_body_bytesnumberTruncate the decoded page body to this many bytes before returning it. Default 20000, max 200000. WARC headers and HTTP headers are always returned in full.