Commoncrawl
v0.2.1Common 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.
| Parameter | Type | Description |
|---|---|---|
contains_date | string | Optional 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". |
limit | number | How many crawls to return, newest first. Default 20, max 120 (the full history back to 2008). |
commoncrawl_index_search
Search one Common Crawl collection's CDX index for archived captures of a URL, host, or whole domain. PREFER OVER WEB SEARCH when the question is "what did this page look like in <month>", "did Common Crawl ever see this URL", or "list the URLs crawled under this domain" — it returns the crawl record (timestamp, HTTP status, MIME type, detected language, content digest) plus the WARC filename/offset/length that commoncrawl_fetch_record needs to read the page bytes. Keyless.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL, host, or domain to look up, e.g. "example.com", "https://www.nasa.gov/news", "*.python.org". |
crawl | string | Crawl collection id from commoncrawl_crawls, e.g. "CC-MAIN-2026-34". Defaults to the most recent crawl. |
filter | string | Optional CDX field filter, e.g. "=status:200" (only successful captures), "=mime:text/html", "~url:.*blog.*". Repeatable filters are not supported here — pass one. |
from | string | Optional lower bound on capture timestamp, as YYYY, YYYYMM, or YYYYMMDD, e.g. "202501". |
limit | number | Maximum captures to return. Default 20, max 200. |
match_type | string | How to match `url`: "exact" (that URL only), "prefix" (that path and everything under it), "host" (every URL on that exact host), "domain" (that host and all subdomains). Default "exact". |
page | number | Zero-based page number for paging through a large domain query. Default 0. |
to | string | Optional upper bound on capture timestamp, same format as `from`. |
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.
| Parameter | Type | Description |
|---|---|---|
filename * | string | WARC 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 * | number | Compressed byte length of the record (the capture row's "length"). Max 10485760 (10 MB). |
offset * | number | Byte offset of the record within that WARC file (the capture row's "offset"). |
max_body_bytes | number | Truncate 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. |