# Wayback Machine Snapshots Scraper (`properscraper/wayback-machine-snapshots-scraper`) Actor

List the archived copies of any page, site or whole domain held by the Internet Archive Wayback Machine: capture date, archived link, status code, content type and size. Uses the official CDX API.

- **URL**: https://apify.com/properscraper/wayback-machine-snapshots-scraper.md
- **Developed by:** [jake mcclure](https://apify.com/properscraper) (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 $0.20 / 1,000 snapshot saveds

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 Snapshots Scraper

List the archived copies of any page, site or whole domain held by the Internet Archive's Wayback Machine. For each capture you get the date, a link to the archived copy, the status code, the content type and the size.

It uses the Internet Archive's official CDX API, the index behind the Wayback Machine.

Use it to:

- find old versions of a page, for research, journalism or legal evidence
- recover the list of pages a site used to have, before a redesign or migration
- see how often and when a page changed
- collect archived links to feed into your own downloader or analysis

### Input

| Field | What it does |
|---|---|
| **Pages or domains** | One web address or domain per line. |
| **Scope** | This exact page, pages starting with this address, all pages on this host, or all pages on the domain and its subdomains. |
| **Maximum snapshots per line** | Stop after this many snapshots for each line. Default 1,000. |
| **One snapshot per** | Thin out the list: one capture per day, month or year, only captures where the content changed, or one capture of each different address. |
| **Captured from / Captured until** | Only captures made within this date range. |
| **Only successful captures** | Keep only captures saved with status 200. |

```json
{
    "urls": ["example.com"],
    "matchType": "domain",
    "onePer": "url",
    "onlySuccessful": true,
    "maxSnapshotsPerUrl": 5000
}
```

That example lists every different page ever archived on a domain, which is a quick way to recover an old site map.

### Output

One record per capture, oldest first:

```json
{
    "input": "apify.com",
    "url": "https://apify.com/",
    "capturedAt": "2020-01-09T13:07:05.000Z",
    "timestamp": "20200109130705",
    "snapshotUrl": "https://web.archive.org/web/20200109130705/https://apify.com/",
    "rawSnapshotUrl": "https://web.archive.org/web/20200109130705id_/https://apify.com/",
    "statusCode": 200,
    "mimeType": "text/html",
    "digest": "D4P2GPUK3PEGEFYQFUENG7MNTQI3ZRN4",
    "sizeBytes": 29306,
    "scrapedAt": "2026-11-11T22:30:00.000Z"
}
```

- `snapshotUrl` opens the archived page as the Wayback Machine shows it. `rawSnapshotUrl` returns the file exactly as it was captured, without the Wayback Machine's toolbar or rewritten links.
- `digest` is a fingerprint of the content. Two captures with the same digest have identical content.
- `statusCode` is empty for a repeat capture (content type `warc/revisit`), which the archive stores as a pointer to an earlier identical capture.
- `sizeBytes` is the compressed size of the stored record.

A `SUMMARY` record in the run's key-value store lists, for each line, how many snapshots were saved and any error.

### Pricing

Pay per result. You are charged once for each snapshot saved to the dataset, at the per-result price shown on this page.

Addresses with no captures cost nothing. The run stops as soon as it reaches the maximum charge you set for it.

### Limits

- This Actor lists captures; it does not download the archived pages themselves. Use the links it returns for that.
- The Internet Archive is a free public service and can be slow, especially for whole-domain listings of large sites. The Actor sends one request at a time with a pause between requests, and waits when asked to slow down.
- Some site owners have asked the Internet Archive not to show their site. Those sites return an error and are not charged.
- "One snapshot per" compares each capture with the one before it, as the CDX API does, so content that changes and later changes back is listed again.

### Is this allowed?

The Actor uses the Internet Archive's public CDX API, which is provided for querying the Wayback Machine index programmatically. You are responsible for how you use the data.

# Actor input Schema

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

One web address or domain per line, for example https://example.com/pricing or example.com.

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

What to list for each line: only that exact page, every page whose address starts with it, every page on that host, or every page on the domain and all its subdomains.

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

Stop after this many snapshots for each line. Popular sites have millions of captures, so set this with care.

## `onePer` (type: `string`):

Thin out the list. For example, keep one capture per month, only captures where the content changed, or one capture of each different address.

## `dateFrom` (type: `string`):

Only list captures made on or after this date (YYYY-MM-DD).

## `dateTo` (type: `string`):

Only list captures made on or before this date (YYYY-MM-DD).

## `onlySuccessful` (type: `boolean`):

Leave out redirects, errors and repeat captures; keep only captures saved with status 200.

## Actor input object example

```json
{
  "urls": [
    "apify.com"
  ],
  "matchType": "exact",
  "maxSnapshotsPerUrl": 1000,
  "onePer": "none",
  "onlySuccessful": false
}
```

# Actor output Schema

## `snapshots` (type: `string`):

Every archived snapshot saved by the run, one record per capture.

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

Totals for the run and, for each URL, how many results were saved and any error.

# 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": [
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("properscraper/wayback-machine-snapshots-scraper").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": ["apify.com"] }

# Run the Actor and wait for it to finish
run = client.actor("properscraper/wayback-machine-snapshots-scraper").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": [
    "apify.com"
  ]
}' |
apify call properscraper/wayback-machine-snapshots-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,properscraper/wayback-machine-snapshots-scraper"
        }
    }
}
```

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/gd9A0Q4scFzh2vzl3/builds/FphoqD5eoCszJgG2F/openapi.json
