# Wayback Machine search API — $0.0003/snapshot

> Wayback Machine search API: Internet Archive snapshots of a URL or domain. $0.0003 per delivered snapshot, nothing delivered means nothing charged.

[Home](https://quanticdata.io/) / [Collectors](https://quanticdata.io/collectors/) / Wayback Machine API

[All collectors](https://quanticdata.io/collectors/)

# Wayback Machine search API

OSINT & security · v1.1.0 · `wayback_machine`

$0.0003 / snapshot

$0.30 / 1K · pay per delivered snapshot

The Wayback Machine's CDX server is the index behind the Internet Archive — a queryable list of every capture it holds for a URL — but it answers in a terse columnar format with no field names and a raw timestamp you have to parse. This endpoint reads that CDX server for a target URL or domain and returns one row per snapshot: the timestamp both raw and as ISO 8601, the archived URL, MIME type, HTTP status, content digest, byte length and the playback link.

By [Aldo Morese](https://quanticdata.io/about/), founder of QuanticData · Published Aug 21, 2026 · Updated Sep 3, 2026

[Run in dashboard](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fwayback_machine&utm_source=collector-page&utm_medium=ai-twin&utm_campaign=data-api&utm_content=wayback-machine-api-hero) · [See the request](https://quanticdata.io/collectors/wayback-machine-api/#integration)

$0.0003 per delivered snapshot · $2 free every month · Failed runs never billed

On this page:

- [Try it](https://quanticdata.io/collectors/wayback-machine-api/#try)
- [What it is](https://quanticdata.io/collectors/wayback-machine-api/#what)
- [Limits](https://quanticdata.io/collectors/wayback-machine-api/#caps)
- [Output fields](https://quanticdata.io/collectors/wayback-machine-api/#output)
- [Inputs](https://quanticdata.io/collectors/wayback-machine-api/#input)
- [Pricing](https://quanticdata.io/collectors/wayback-machine-api/#pricing)
- [Integration](https://quanticdata.io/collectors/wayback-machine-api/#integration)
- [Use cases](https://quanticdata.io/collectors/wayback-machine-api/#use-cases)
- [Versus the alternatives](https://quanticdata.io/collectors/wayback-machine-api/#compare)
- [FAQ](https://quanticdata.io/collectors/wayback-machine-api/#faq)

What it does

## What a Wayback Machine API does

Point it at a single page and you get that page's capture history; set match_prefix and point it at a domain and you get every archived URL beneath it, which is how you reconstruct what a site looked like, or which pages it once had, across years. Near-identical captures are collapsed by their content digest, so a page archived hourly for a decade does not drown you in rows that never changed.

The value over calling CDX yourself is the shape. The raw endpoint returns positional columns whose order you have to remember and a timestamp like 20200114031502 you have to split into a date. Here every capture arrives as named fields with an ISO timestamp alongside the raw one, and a from/to range filters the history server-side so you fetch the window you want, not the whole life of the URL.

## Inputs

The whole request. Anything you leave out falls back to the default shown in the catalog.

| Input | Type | Required | What it does |
| --- | --- | --- | --- |
| `target` | string | yes | A page URL or a domain to look up snapshots for. |
| `match_prefix` | boolean | no | Match every URL under this path/domain, not just the exact URL. |
| `from` | string | no | Earliest capture, YYYYMMDD (or a longer timestamp). |
| `to` | string | no | Latest capture, YYYYMMDD. |
| `newest_first` | boolean | no | Return the most recent captures instead of the oldest. |
| `status_code` | string | no | Only captures with this HTTP status, e.g. 200. |
| `mimetype` | string | no | Only captures of this MIME type, e.g. text/html. |
| `max_results` | integer | no | How many snapshots to deliver at most (1–1000). You pay only for delivered snapshots. |

Outputs — 10 fields, one row per snapshot

## What one snapshot looks like

Every delivered snapshot carries these fields. Nullable means the source did not publish it — the field stays empty instead of being guessed.

| Field | Type | What it holds |
| --- | --- | --- |
| `rank` | integer | 1-based position (oldest first, or newest first with newest_first). |
| `timestamp` | string | Capture timestamp (yyyymmddhhmmss). |
| `captured_at` | string · nullable | Capture time (ISO 8601). |
| `original_url` | string · nullable | The URL as archived. |
| `mimetype` | string · nullable | Captured MIME type. |
| `status_code` | string · nullable | HTTP status at capture. |
| `digest` | string · nullable | Content digest. |
| `length` | integer · nullable | Capture size in bytes. |
| `snapshot_url` | string · nullable | Wayback playback URL. |
| `raw_url` | string · nullable | The capture exactly as archived (no toolbar, links not rewritten). |

Integration

## One POST, typed rows

Base URL `https://api.quanticdata.io/v1`, Bearer auth, the same key as every other Data API. Endpoint: `POST /v1/scraper/collectors/wayback_machine/run`.

cURL:

```bash
curl -X POST https://api.quanticdata.io/v1/scraper/collectors/wayback_machine/run \
  -H "Authorization: Bearer $QD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"target":"https://example.com","max_results":50}'
```

Python:

```python
import requests

r = requests.post(
    "https://api.quanticdata.io/v1/scraper/collectors/wayback_machine/run",
    headers={"Authorization": f"Bearer {QD_API_KEY}"},
    json={
        "target": "https://example.com",
        "max_results": 50
    },
    timeout=120,
)
for row in r.json()["payload"]["results"]:
    print(row)
```

Node.js:

```javascript
const res = await fetch(
  "https://api.quanticdata.io/v1/scraper/collectors/wayback_machine/run",
  {
    method: "POST",
    headers: {
      Authorization: `Bearer ${process.env.QD_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({"target":"https://example.com","max_results":50}),
  },
);
const { payload } = await res.json();
console.table(payload.results);
```

MCP:

```bash
claude mcp add quanticdata \
  -e QUANTICDATA_API_KEY=qd_live_your_key_here \
  -- npx -y quanticdata-mcp

# then, in the chat:
> run the wayback_machine collector with target="https://example.com" and max_results=50
```

Example response

POST /v1/scraper/collectors/wayback_machine/run

```bash
$ curl $QD/wayback_machine/run \
    -H "Authorization: Bearer $QD_API_KEY" \
    -d '{"target": "https: //example.com", "max_results": 50}'
{ "status": "done", "count": 50,
  "results": [
    {
      "timestamp": "…",
      "captured_at": "…",
      "original_url": "…",
      "mimetype": "…" } ],
  "cost": 0.015 }
# 50 snapshots × $0.0003 · nothing delivered, nothing charged
```

Price

## Limits, in plain numbers

Everything that bounds one run of this collector. No hidden throttles.

Max per run

1,000 snapshots

Price

$0.0003 / snapshot

Per 1,000

$0.30

Failed runs

Free zero rows, zero charge

Free every month

$2 no card

Rate limit

20 req/min on the free tier

Changelog

- `v1.1.0` 2026-10-04
- `v1.0.0` 2026-08-24 Initial release

Every run records the collector version it ran on. Breaking output changes bump the major version.

Try it

## Wayback Machine snapshots, running now

Change the input and run it against the live collector — nothing to install, no sign-up.

Run it from your own code, on your own inputs

Same collector, same rows — $2 of free API credit every month, no card.

[Get my free API key](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fwayback_machine&utm_source=collector-page&utm_medium=ai-twin&utm_campaign=data-api&utm_content=wayback-machine-api-closing)

![Wayback Machine API: from target, QuanticData reads the web archive snapshots and returns one row per snapshot with timestamp, captured_at and mimetype, at $0.0003 per delivered snapshot.](https://quanticdata.io/collectors/wayback-machine-api/diagram.webp?v=20261004f)

*You send target and match_prefix; the run reads the source and comes back as snapshots with rank, timestamp and captured_at — 10 fields on every row — and you are billed $0.0003 for each snapshot actually delivered, nothing for a run that delivers none.*

**$0.0003 / snapshot** · 6,666 snapshots on the free $2 every month

**Semantic input** · target, match_prefix, from — no URL lists

**Up to 1,000** snapshots per run, pagination handled for you

**No browser** · read over HTTP/TLS — cheaper and faster than rendering

Pricing

## Wayback Machine API pricing

$0.0003 per delivered snapshot. A run that delivers nothing costs nothing: blocked pages, challenges and retries are on us, and the $2 monthly allowance covers about 6,666 snapshots before you spend anything.

**$0.0003** per delivered snapshot · *$0.3 per 1,000 delivered snapshots*

**6,666 snapshots** · on the free allowance · *$2 every month, no card*

**Zero rows** · zero charge · *blocks, captchas and retries are on us*

**−30%** on volume tiers · *the catalog returns your key's price*

- [Pay as you go](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fwayback_machine&utm_source=collector-page&utm_medium=ai-twin&utm_campaign=data-api&utm_content=wayback-machine-api-tier-1): $0/mo · $2 free credit / month · 20 requests / min (300 on real balance) · List unit prices
- [Starter](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fwayback_machine&utm_source=collector-page&utm_medium=ai-twin&utm_campaign=data-api&utm_content=wayback-machine-api-tier-2): $19/mo · $15 free credit / month · 300 requests / min · 10% off unit prices
- [Growth](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fwayback_machine&utm_source=collector-page&utm_medium=ai-twin&utm_campaign=data-api&utm_content=wayback-machine-api-tier-3): Most popular · $79/mo · $50 free credit / month · 600 requests / min · 20% off unit prices
- [Scale](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fwayback_machine&utm_source=collector-page&utm_medium=ai-twin&utm_campaign=data-api&utm_content=wayback-machine-api-tier-4): $299/mo · $250 free credit / month · 1,200 requests / min · 30% off unit prices

Same wallet, same key and same $2 monthly allowance as every other [Data API](https://quanticdata.io/web-data-api-for-ai/). Prices are launch pricing read live from the billing config — `GET /v1/scraper/collectors` returns the price your key actually pays.

## What people build with the Wayback Machine API

Three shapes of work this endpoint was designed around.

### Content change tracking

Pull a page's capture history and diff the snapshots to see when copy, pricing or a claim on a competitor's site changed, with a playback URL to read each version.

### Domain footprint reconstruction

match_prefix over a domain lists the URLs the archive ever saw, surfacing old paths, retired products and pages that no longer exist live.

### Dead-link recovery

For a URL that now 404s, the snapshot rows give you the last good capture and its playback link, so a dataset built on since-deleted pages keeps a source.

## Wayback Machine API versus rolling your own

The differences that actually cost time when you build this in-house.

|  | DIY scraper | This collector |
| --- | --- | --- |
| Response shape | Positional CDX columns, no names | Named fields per snapshot |
| Timestamp | Raw 14-digit string to parse | Raw and ISO 8601, side by side |
| Duplicate captures | Every hourly re-crawl as a row | Collapsed by content digest |

## What people search for

Live autocomplete demand around Wayback Machine snapshots, pulled with our own Keyword ideas collector.

Searches:

- [wayback machine api rate limit](https://quanticdata.io/collectors/wayback-machine-api/#try)
- [wayback machine api key](https://quanticdata.io/collectors/wayback-machine-api/#try)
- [wayback machine api python](https://quanticdata.io/collectors/wayback-machine-api/#try)
- [wayback machine api cdx](https://quanticdata.io/collectors/wayback-machine-api/#try)
- [wayback machine api documentation](https://quanticdata.io/collectors/wayback-machine-api/#try)
- [wayback machine api limits](https://quanticdata.io/collectors/wayback-machine-api/#try)
- [wayback machine api github](https://quanticdata.io/collectors/wayback-machine-api/#try)
- [wayback machine api free](https://quanticdata.io/collectors/wayback-machine-api/#try)
- [time machine api](https://quanticdata.io/collectors/wayback-machine-api/#try)
- [internet archive wayback machine api](https://quanticdata.io/collectors/wayback-machine-api/#try)
- [wayback machine save api](https://quanticdata.io/collectors/wayback-machine-api/#try)
- [archive wayback machine api](https://quanticdata.io/collectors/wayback-machine-api/#try)
- [wayback machine availability api](https://quanticdata.io/collectors/wayback-machine-api/#try)
- [wayback machine search api](https://quanticdata.io/collectors/wayback-machine-api/#try)
- [wayback machine cdx server api](https://quanticdata.io/collectors/wayback-machine-api/#try)
- [how to use wayback machine api](https://quanticdata.io/collectors/wayback-machine-api/#try)

![Wayback Machine API: the POST to the wayback_machine collector, 50 snapshots delivered and the bill, 50 × $0.0003 = $0.015 in usage.cost_usd; zero snapshots would cost $0.](https://quanticdata.io/collectors/wayback-machine-api/diagram2.webp?v=20261004f)

*The same call you would paste into a terminal: a Bearer key, target, match_prefix and from in the body, and back the envelope every QuanticData endpoint returns — type, message, payload — where count is how many snapshots arrived and usage.cost_usd is $0.015, which is 50 × $0.0003. A run that delivers nothing costs nothing. The key is good for 20 req/min on the free tier.*

## Sources and standards

The platform documentation and standards this collector is built against — check any claim on this page against the primary source:

- [Internet Archive: the Wayback Machine APIs](https://archive.org/help/wayback_api.php)
- [IETF: RFC 7089, HTTP Framework for Time-Based Access to Resource States (Memento)](https://www.rfc-editor.org/rfc/rfc7089)

## FAQ

Questions we get about the Wayback Machine API.

[Something else? Ask us](https://quanticdata.io/collectors/wayback-machine-api/#ask)

### Does this save a page to the archive, or only read what is stored?

Read only. It queries the CDX index for captures the Internet Archive already holds; it does not trigger "Save Page Now". You give it a target and get back the snapshots that exist for it.

### Can I get every archived URL under a domain, not just one page?

Yes — set `match_prefix` and pass the domain as the `target`. Instead of one URL's history you get every captured URL beneath it, which is the query for mapping a site's past footprint.

### How do I limit the captures to a date range?

Pass `from` and `to` as YYYYMMDD. The CDX server filters by capture date on its side, so you retrieve only the window you asked for rather than paging through the entire history.

### Why so few rows for a page I know was archived hundreds of times?

Captures with an identical content digest are collapsed, so a page that did not change between crawls appears once, not once per crawl. You are seeing distinct versions, which is usually what you meant to count.

### Is there a free Wayback Machine API?

Every account gets $2 of credit every month with no card, which is about 6,666 delivered snapshots on this endpoint at $0.0003 each. It renews monthly, and a run that delivers nothing is never billed — so a failed or blocked attempt does not eat the allowance.

### How much does one run cost?

Multiply the rows you actually receive by $0.0003. A run capped at 1,000 snapshots — the maximum for this collector — costs $0.3 if every row comes back, and less when the source has fewer. Volume tiers take up to 30% off, and `GET /v1/scraper/collectors` returns the price your key actually pays.

## Run the Wayback Machine API now

$2 of free credit every month, no card. Your key returns its own prices from `GET /v1/scraper/collectors`.

[Run in dashboard](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fwayback_machine&utm_source=collector-page&utm_medium=ai-twin&utm_campaign=data-api&utm_content=wayback-machine-api-cta-3)

![Illustration: three coloured zones of the page that is read (Web archive snapshots) turn into clean JSON with the fields timestamp, captured_at and mimetype; 10 fields on every row.](https://quanticdata.io/collectors/wayback-machine-api/hero.webp?v=20261004h)

Related:

- [All 100+ collectors](https://quanticdata.io/collectors/)
- [Certificate transparency API](https://quanticdata.io/collectors/certificate-transparency-api/)
- [Company Data API](https://quanticdata.io/collectors/company-data-api/)
- [Google search results API](https://quanticdata.io/collectors/google-search-results-api/)
- [Documentation](https://quanticdata.io/docs/)

In code:

- [Wayback Machine API in Python](https://quanticdata.io/collectors/wayback-machine-api/python/)

---

Source: https://quanticdata.io/collectors/wayback-machine-api/ · Site index for AI: https://quanticdata.io/llms.txt
