# Wayback Machine Snapshot History (`dojito/wayback-snapshot-history`) Actor

List every Wayback Machine capture of a URL, folder or whole domain: date, archive link, HTTP status, MIME type, content digest and size. Or one summary row per URL: first/last capture, count, content changes. Official Internet Archive CDX API, polite pacing, no page downloads.

- **URL**: https://apify.com/dojito/wayback-snapshot-history.md
- **Developed by:** [Dongjin Kim](https://apify.com/dojito) (community)
- **Categories:** SEO tools, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

**Wayback Machine Snapshot History** lists the captures the Internet Archive's Wayback Machine holds for a page, a folder or a whole domain: **when** each capture was taken, a **link to the archived copy**, the **HTTP status**, **content type**, **content digest** and **size**. Or get **one summary row per URL**: first and last capture, number of captures, and how many times the content changed.

It reads the Internet Archive's own public [CDX server API](https://github.com/internetarchive/wayback/tree/master/wayback-cdx-server) — the index behind the Wayback Machine — one request at a time. It never downloads the archived pages themselves.

### How to use

1. Click **Start** — the input is prefilled with `https://example.com/`, so you see rows in a few seconds.
2. Replace it with your URLs or domains (`example.com`, `https://example.com/pricing`, `https://example.com/blog/`).
3. Pick **Match** (exact page, folder prefix, whole host, or domain with subdomains), optional **From / To** dates, and **Collapse → Only when content changed** to keep just the versions that differ.
4. Set **Max results** to cap what you pay, then click **Start**. Export the table as JSON, CSV or Excel, or use the Apify API.

### What you get

One row per capture (`rowType: "snapshot"`). The first rows of a real run (2026-11-15, input below):

```json
[
{"rowType": "snapshot", "query": "https://apify.com/pricing", "url": "https://apify.com/pricing", "timestamp": "2024-01-25T11:49:19Z", "waybackTimestamp": "20240125114919", "archiveUrl": "https://web.archive.org/web/20240125114919/https://apify.com/pricing", "rawArchiveUrl": "https://web.archive.org/web/20240125114919id_/https://apify.com/pricing", "statusCode": 200, "mimeType": "text/html", "digest": "P3KL3QZ5UVH4HFB2LVJU5K3WRRS4LFVP", "length": 37294, "isRevisit": false, "urlKey": "com,apify)/pricing"},
{"rowType": "snapshot", "query": "https://apify.com/pricing", "url": "https://apify.com/pricing", "timestamp": "2024-02-28T18:41:27Z", "waybackTimestamp": "20240228184127", "archiveUrl": "https://web.archive.org/web/20240228184127/https://apify.com/pricing", "rawArchiveUrl": "https://web.archive.org/web/20240228184127id_/https://apify.com/pricing", "statusCode": 200, "mimeType": "text/html", "digest": "NPWI7SC7KEVIOVDC7KUSQP73HMKCQE5S", "length": 38033, "isRevisit": false, "urlKey": "com,apify)/pricing"}
]
```

| Field | Meaning |
|---|---|
| `query` | The URL / domain entry this row belongs to (as sent to the archive). |
| `url` | The URL that was captured (for prefix / host / domain matches, every page found). |
| `timestamp` / `waybackTimestamp` | Capture time, ISO 8601 UTC / the archive's 14-digit form. |
| `archiveUrl` | The archived copy in the Wayback Machine. `rawArchiveUrl` = the same copy without the Wayback toolbar (`id_`). |
| `statusCode` | HTTP status the site answered when captured (200, 301, 404…). `null` for revisit records. |
| `mimeType` | Content type, e.g. `text/html`, `application/pdf`. `warc/revisit` = "same as an earlier capture". |
| `digest` | SHA-1 (base32) of the captured content. Same digest = same content. |
| `length` | Size of the stored record in bytes (compressed, as the archive stores it). |
| `isRevisit` | `true` when the archive stored the capture as a duplicate of an earlier one. |
| `urlKey` | The archive's normalized URL key (SURT); `http`/`https`/`www.` variants of a page share one key. |

**Summary rows** (`rowType: "summary"`, Output = Summary or Both), one per entry: `snapshots`, `uniqueUrls`, `firstSnapshot`, `lastSnapshot`, `firstArchiveUrl`, `lastArchiveUrl`, `contentChanges` (times the digest differed from the previous capture of the same URL), `statusCodes` (count per status), `mimeTypes` (top 10), `complete` (`false` if reading stopped before the last matching capture — the per-URL cap, Max results, max cost, or an error), plus the filters used.

### Use cases

- **Website change history** — when did a competitor change its pricing page or terms? Collapse = *Only when content changed* gives one row per version.
- **Domain due diligence / expired domains** — first and last capture, how many pages, how often it was live (Output = Summary, Match = Domain).
- **SEO and site migrations** — list old URLs of a site (Match = Host, Status = 200, MIME = text/html, Collapse = One per year) to build redirect maps.
- **Research and citations** — find the archived copy of a page as it was on a given date.
- **Link rot checks** — which of your cited URLs have an archived copy, and when the last one was taken.

### Input

| Field | What it does |
|---|---|
| `urls` | Pages, folders or domains (up to 1,000). No `*` wildcards — for a folder enter `https://example.com/blog/` and set `matchType` to `prefix`. |
| `matchType` | `exact` (default), `prefix` (folder), `host` (whole host name), `domain` (host + subdomains). For host/domain only the host name of each entry is used. |
| `from`, `to` | Dates, `2019`, `2019-06` or `2019-06-30` (UTC, inclusive). |
| `collapse` | `none`, `digest` (only when content changed — compares each capture with the previous capture of the same URL), `day`, `month`, `year` (first capture per URL in each period). |
| `statusFilter` | `any`, `200`, `2xx`, `3xx`, `4xx`, `5xx`. Note: `200`/`2xx` also drop revisit records, which have no status. |
| `mimeType` | Optional content type, exact (`text/html`, `application/pdf`) or with `*` (`image/*`). Like the status filter, it also drops revisit records (`warc/revisit`). |
| `output` | `snapshots` (default), `summary`, or `both`. |
| `maxSnapshotsPerUrl` | Captures read per entry (default 1,000, max 100,000). Order: oldest first for an exact URL; by URL, then time, for prefix / host / domain. |
| `newestFirst` | Read the most recent captures instead (up to 10,000 per URL, newest first). Exact URLs only. |
| `maxItems` | Total result rows per run (default 1,000, max 100,000). Summary rows count. |

The input behind the rows above (three URLs, versions that changed, Jan 2024 – Jun 2025, 5 captures each):

```json
{
  "urls": ["https://example.com/", "https://www.python.org/about/", "https://apify.com/pricing"],
  "collapse": "digest",
  "from": "2024",
  "to": "2025-06",
  "statusFilter": "200",
  "output": "both",
  "maxSnapshotsPerUrl": 5,
  "maxItems": 20
}
```

### Pricing

**$1.00 per 1,000 result rows** on the Free plan, **$0.70** on Bronze and **$0.50** on Silver and above (pay per event: one `apify-default-dataset-item` event per row, plus Apify's standard actor-start event of $0.00005 per run). In summary mode you pay only for the summary rows, not for the captures read to build them. Entries with no captures, and entries that failed before any row, are free and listed in the run report (if an entry fails part-way, the rows already delivered are billed and kept). Set a **maximum cost per run** and the actor stops cleanly when it is reached (`stoppedAtMaxCharge`); rows are saved page by page, so you keep everything you paid for.

### Run report

The **RUN_REPORT** record in the run's key-value store lists every entry that returned nothing or stopped on an error, with a reason. A run with zero rows ends **FAILED** if any entry hit an error or the rate limit (so schedules and alerts notice), and **SUCCEEDED** with a status note if the archive simply has no captures:

| reason | meaning |
|---|---|
| `no_snapshots` | The Wayback Machine has no captures matching your filters (or the site is excluded from the archive). |
| `archive_error` | The archive answered an error (after retries for 5xx / network errors), or an unreadable answer. |
| `rate_limited` | web.archive.org answered "429 too many requests" twice, so the actor stopped sending requests for the rest of the run (see Limits). |
| `robots_txt` | web.archive.org's robots.txt forbids the request, or could not be read after two retries (treated as closed, per RFC 9309). |

It also records the request count, `rateLimited429`, `stoppedByRateLimit`, `stoppedAtMaxItems` and `stoppedAtMaxCharge`.

### Limits — be aware

- **Speed: one request every 3 seconds.** The Internet Archive limits automated use of the Wayback Machine (about 60 requests per minute per IP, stricter since 2026) and blocks IPs that keep going after a 429. The actor sends one request at a time, 3 seconds apart; each request returns up to 5,000 captures. After a 429 it waits 65 seconds and tries once more; a second 429 ends the run (entries not reached are listed as `rate_limited`, free). Apify's cloud IPs are shared with other users, so an occasional rate-limited run can happen — run it again later.
- **Big domains are slow on the archive's side.** A `domain` match on a large site can have millions of captures and the archive may take tens of seconds per page or time out (`archive_error`). Narrow it with dates, `mimeType`, `statusFilter` or `collapse`.
- **Oldest first.** Captures come in the archive's order (by URL, then time — for one exact URL that is oldest first). The per-URL cap keeps the first ones in that order; use `from`/`to` or `newestFirst` for recent captures.
- **`collapse = digest` compares neighbours only** (the archive's rule): A, A, B, A gives three rows (A, B, A).
- **What the archive has, nothing more.** Captures are what the Wayback Machine stored; pages excluded at their owner's request are not shown. `statusCode` is what the site answered when it was captured, not today.
- **Metadata only.** The actor does not download, store or re-publish archived page content. Open `archiveUrl` to see a capture.

### Responsible use

- The data comes from the Internet Archive, a non-profit library. Its [Terms of Use](https://archive.org/about/terms.php) say access to its collections "is granted for scholarship and research purposes only" and ask users not to interfere with its servers. This actor takes care of the server side — one request at a time, 3 s apart, stops on rate limits, no downloads of archived content. Whether your own use fits the Archive's terms is your responsibility. Please keep runs proportionate, and consider [donating to the Internet Archive](https://archive.org/donate) if it is useful to you.
- The bot identifies itself: `DojitoWaybackBot/1.0 (+https://apify.com/dojito/wayback-snapshot-history; contact djkim@dojito.com)`.
- Output contains capture metadata (URLs, dates, status, type, digest, size) only — no page text, no personal data fields.
- General information, not legal advice — ask a lawyer about your own use.

### FAQ

**Does it save pages to the Wayback Machine ("Save Page Now")?** No. It only reads the existing capture index.

**Can I get the page content of each capture?** Not from this actor. Use `archiveUrl` / `rawArchiveUrl` to open a capture.

**Why do I see `http://` and `https://www.` variants for one page?** The archive keys captures by a normalized URL (`urlKey`), so all variants of a page are returned together. Group by `urlKey` if you want one page.

**How do I track new captures over time?** Schedule a daily run with `newestFirst` and a small `maxSnapshotsPerUrl`, or with `from` set to a recent date.

### More tools from this developer

Other public actors by [dojito](https://apify.com/dojito):

- [Product Price & Stock Checker for US Online Stores](https://apify.com/dojito/us-product-price-stock) — price, currency, in-stock status, SKU/GTIN and brand from public product pages that publish schema.org Product data (Shopify, WooCommerce, BigCommerce, Magento and others).
- [ATS Job Board Feed](https://apify.com/dojito/ats-job-boards-feed) — every open job from Greenhouse, Lever, Ashby, Recruitee, Personio and Teamtailor boards in one schema, from their documented public APIs and feeds.
- [Sitemap URL Extractor](https://apify.com/dojito/sitemap-url-extractor) — every URL in a website's sitemaps with lastmod, changefreq, priority and hreflang alternates. Never downloads the pages themselves.
- [Domain RDAP & DNS Lookup](https://apify.com/dojito/domain-rdap-dns-lookup) — registered or available, registrar, created and expiry dates, nameservers and DNSSEC from the registry's RDAP server, plus DNS records. One row per domain.

Using them together:

- **Checking a domain before you buy or link to it:** run Domain RDAP & DNS Lookup for registration status, expiry date and DNS, then Wayback Machine Snapshot History with Match = "Domain + subdomains" and Output = "Summary" to see when the site was first and last archived and how often its content changed.
- **Site migration or content audit:** list a site's URLs with Sitemap URL Extractor, then paste the pages you care about into Wayback Machine Snapshot History (Output = "Summary") to get each page's first and last capture.

***

Not affiliated with the Internet Archive. "Wayback Machine" is a trademark of the Internet Archive, used here only to describe the data source.

# Actor input Schema

## `urls` (type: `array`):

Pages, folders or domains to look up, e.g. https://example.com/pricing or example.com. No \* wildcards — for a folder enter https://example.com/blog/ and set Match to 'URL prefix (folder)'. Up to 1,000 per run. Each entry gets its own query and its own summary row.

## `matchType` (type: `string`):

exact = only this URL; prefix = every URL starting with it (a folder); host = every URL on this host name; domain = this host and all its subdomains. host and domain keep only the host name of what you entered.

## `from` (type: `string`):

Only captures on or after this date: 2019, 2019-06 or 2019-06-30 (UTC). Leave empty for the first capture ever.

## `to` (type: `string`):

Only captures up to this date, inclusive: 2021, 2021-12 or 2021-12-31 (UTC). Leave empty for today.

## `collapse` (type: `string`):

Skip near-duplicate captures. 'Only when content changed' drops a capture whose content digest equals the previous capture of the same URL. Day / month / year keep the first capture per URL in each period.

## `statusFilter` (type: `string`):

Keep only captures with this HTTP status. Note: '200' and '2xx' also drop 'revisit' records (captures the Archive stored as 'same as before', which have no status).

## `mimeType` (type: `string`):

Keep only this content type, exactly, e.g. text/html or application/pdf, or a family with *, e.g. image/* . Also drops revisit records (captures stored as 'same as before').

## `output` (type: `string`):

Snapshots: one row per capture. Summary: one row per URL / domain entry (first and last capture, capture count, number of content changes, status codes) — captures are read but only the summary row is returned. Both: the snapshot rows, then the summary row.

## `maxSnapshotsPerUrl` (type: `integer`):

Read at most this many captures for each entry. An exact URL is read oldest first (prefix / host / domain: by URL, then time), so captures beyond this cap are not read — use 'From date' or 'Newest first' to get recent ones. In summary mode this is how many captures the summary is based on; 'complete' in the summary row says whether all matching captures were read.

## `newestFirst` (type: `boolean`):

Turn on to get the most recent captures (up to 10,000 per URL), newest first, instead of the oldest. Works with Match = exact only.

## `maxItems` (type: `integer`):

Stop after this many result rows in total (you pay per row). Summary rows count as rows.

## Actor input object example

```json
{
  "urls": [
    "https://example.com/"
  ],
  "matchType": "exact",
  "collapse": "none",
  "statusFilter": "any",
  "output": "snapshots",
  "maxSnapshotsPerUrl": 1000,
  "newestFirst": false,
  "maxItems": 1000
}
```

# Actor output Schema

## `overview` (type: `string`):

One row per Wayback Machine capture (rowType = snapshot), and summary rows if you chose them. Each row is one paid result.

## `summary` (type: `string`):

Summary rows (rowType = summary): first / last capture, capture count, content changes, status codes.

## `runReport` (type: `string`):

JSON: rows, skipped URL counts by reason (no_snapshots, archive_error, rate_limited, robots_txt), details, request count. Free.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://example.com/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dojito/wayback-snapshot-history").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": ["https://example.com/"] }

# Run the Actor and wait for it to finish
run = client.actor("dojito/wayback-snapshot-history").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://example.com/"
  ]
}' |
apify call dojito/wayback-snapshot-history --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dojito/wayback-snapshot-history"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Vg8D2e0jrzJooigcR/builds/4FXyLfDI6LLeCPgto/openapi.json
