# Common Crawl API reference

> Common Crawl publishes an index of the pages in each crawl. The CDX index server looks up captures by URL, host or domain and returns where each capture sits in the WARC files (filename, offset, length), with its timestamp, MIME type, status and digest. Each crawl has its own endpoint; the list is…

Source: https://osinttools.io/apis/common-crawl/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/common-crawl/

- Base URL: https://index.commoncrawl.org
- Authentication: No key needed.
- Rate limits: Not stated in the docs (they ask users not to overload the index server)
- Vendor docs: https://commoncrawl.org/get-started

## Overview

Common Crawl publishes an index of the pages in each crawl. The CDX index server looks up captures by URL, host or domain and returns where each capture sits in the WARC files (filename, offset, length), with its timestamp, MIME type, status and digest.

Each crawl has its own endpoint; the list is at `/collinfo.json`. Queries use the CDX server parameters and need no key. The docs ask users not to overload the index server, state no numeric limit, and recommend the Columnar Index for bulk filtering.

## Crawls

### List the crawl collections and their index endpoints.

`GET /collinfo.json`

- Footprint: passive (the target is not contacted)

A JSON list of the collection endpoints that replace the collection part of the CDX query path.

Response fields:

- `[].id` (string): Collection identifier
- `[].name` (string): Collection name
- `[].cdx-api` (string): URL of the CDX endpoint of the collection

```bash
curl 'https://index.commoncrawl.org/collinfo.json'
```

Example response (200):

```json
[
  {
    "id": "CC-MAIN-2024-10",
    "name": "Example crawl",
    "cdx-api": "https://index.commoncrawl.org/CC-MAIN-2024-10-index"
  }
]
```

## CDX index

### Search one crawl's index for captures of a URL, host or domain.

`GET /{collection}`

- Takes: Domain, URL
- Footprint: passive (the target is not contacted)

Use the collection endpoint path listed in /collinfo.json. With output=json each line is a separate JSON object. A minimal index may lack the mime and status fields. A page beyond the available count returns 400.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `collection` | path | string | yes | Collection endpoint path from /collinfo.json Example: CC-MAIN-2024-10-index |
| `url` | query | string | yes | URL or pattern; a trailing * is a prefix match and *.example.com a domain match Example: *.example.com |
| `matchType` | query | string | no | How the URL is matched Example: domain One of: exact, prefix, host, domain |
| `output` | query | string | no | Output format: cdxj, json (NDJSON), link (Memento TimeMap) or text Example: json One of: cdxj, json, link, text |
| `limit` | query | integer | no | Maximum number of index lines returned Example: 10 |
| `filter` | query | string | no | Repeatable filter as field:[!][=|~]expression (contains, exact, regex, negated) Example: status:200 |
| `fields` | query | string | no | Comma-separated list of fields to output Example: url,timestamp |
| `from` | query | string | no | Start of an inclusive date range, up to 14 digits Example: 2024 |
| `to` | query | string | no | End of an inclusive date range, up to 14 digits Example: 2024 |
| `page` | query | integer | no | Page number, starting at 0 Example: 0 |

Response fields:

- `urlkey` (string): Normalised search key of the URL
- `timestamp` (string): Capture time
- `url` (string): Captured URL
- `mime` (string): MIME type
- `status` (string): HTTP status of the capture
- `digest` (string): Content digest
- `length` (string): Record length in the WARC file
- `offset` (string): Record offset in the WARC file
- `filename` (string): WARC file holding the record

```bash
curl 'https://index.commoncrawl.org/CC-MAIN-2024-10-index?url=*.example.com'
```

Example response (200):

```json
{
  "urlkey": "org,example)/",
  "timestamp": "20240101000000",
  "url": "https://www.example.org/",
  "mime": "text/html",
  "status": "200",
  "digest": "EXAMPLEDIGEST",
  "length": "1234",
  "offset": "5678",
  "filename": "crawl-data/EXAMPLE/segments/example.warc.gz"
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
