# Wayback Machine Snapshot Finder - Archived URLs & Site History (`wood-between-studio/wayback-machine-snapshots`) Actor

List every Wayback Machine snapshot of a URL, path or whole domain: capture date, status code, MIME type, content hash and archive links, with daily/monthly/yearly or content-change collapse. Or find the closest snapshot to a date. $0.20 per 1,000 snapshots.

- **URL**: https://apify.com/wood-between-studio/wayback-machine-snapshots.md
- **Developed by:** [Wood Between Studio](https://apify.com/wood-between-studio) (community)
- **Categories:** SEO tools, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.20 / 1,000 snapshot returneds

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 Finder: List Archived URLs and Site History in Bulk

**List every Internet Archive Wayback Machine snapshot of a page, a path or a whole domain**, with capture date, HTTP status, MIME type, content hash, size and ready-to-open archive links. Or get the **closest snapshot to any date** for a list of URLs.

### Why use it?

- **Whole sites, not just one page.** Match an exact URL, everything under a path, a whole host, or a domain with all subdomains.
- **Only what matters.** Collapse to one capture per day, month or year, only captures where the **content changed**, or one row per **unique archived URL** (the fast way to find a site's old pages).
- **Filters.** Date range, status code (200, 404, 3..), MIME type (text/html, application/pdf).
- **Past the limits.** Pages through big result sets automatically with resume keys.
- **Cheap and fair.** **$0.20 per 1,000 snapshots**, no start fee. URLs with no snapshots are free.

### Use cases

- SEO: recover old URLs after a migration, find lost pages and redirects to set up, see when content changed
- Domain research: check a domain's history before buying it
- Competitor tracking: when did a pricing or product page change, and what did it say?
- Research, journalism and evidence: cite archived versions of pages
- Content recovery: get the raw archived HTML (`rawContentUrl`) of pages that no longer exist

### Input

| Field | Default | Notes |
|---|---|---|
| `urls` | (required) | Pages or domains |
| `mode` | `snapshots` | `closest` = one snapshot per URL nearest to `closestTo` |
| `matchType` | `exact` | `prefix`, `host`, `domain` |
| `collapse` | `digest` | `none`, `hourly`, `daily`, `monthly`, `yearly`, `url` |
| `from` / `to` | | YYYY, YYYYMM or YYYY-MM-DD |
| `statusFilter` / `mimeFilter` | | e.g. `200`, `text/html` |
| `order` | `oldest` | `newest` returns the latest N |
| `maxSnapshotsPerUrl` | `1000` | |

```json
{ "urls": ["example.com"], "collapse": "yearly" }
```

List all archived pages of a site:

```json
{ "urls": ["example.com"], "matchType": "domain", "collapse": "url", "statusFilter": "200", "maxSnapshotsPerUrl": 5000 }
```

### Output (one row per snapshot)

```json
{
  "input": "example.com", "timestamp": "20020120142510", "capturedAt": "2002-01-20T14:25:10Z",
  "originalUrl": "http://example.com:80/", "statusCode": 200, "mimeType": "text/html",
  "digest": "HT2DYGA5UKZCPBSFVCV3JOBXGW2G5UUA", "lengthBytes": 1792,
  "archiveUrl": "https://web.archive.org/web/20020120142510/http://example.com:80/",
  "rawContentUrl": "https://web.archive.org/web/20020120142510id_/http://example.com:80/", "status": "success"
}
```

URLs with nothing archived get one free row with `status: "not-archived"`. A `SUMMARY` record in the key-value store has counts per URL.

### Pricing

Pay per event: **$0.0002 per snapshot returned** ($0.20 per 1,000). No start fee.

### Notes

Uses the Internet Archive's official public CDX and Availability APIs, politely (low concurrency, backoff on rate limits). Data comes from the Internet Archive; please consider supporting it at archive.org/donate. Built by Wood Between Studio. Questions or ideas? Open an issue on the Issues tab.

# Actor input Schema

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

Pages (example.com/pricing) or domains (example.com).

## `mode` (type: `string`):

"Closest" returns one snapshot per URL nearest to "Closest to date".

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

Prefix, host and domain list every archived page (great for finding old URLs).

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

"One per unique URL" is the fastest way to list all archived URLs of a site.

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

Optional. YYYY, YYYYMM or YYYY-MM-DD.

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

Optional. YYYY, YYYYMM or YYYY-MM-DD.

## `closestTo` (type: `string`):

For "Closest" mode. YYYY-MM-DD (default: today).

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

Optional, e.g. 200 or 404. Regex allowed (e.g. 3..).

## `mimeFilter` (type: `string`):

Optional, e.g. text/html or application/pdf.

## `order` (type: `string`):

Newest first returns the latest N snapshots.

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

Safety limit.

## `maxConcurrency` (type: `integer`):

Kept low to be polite to the Internet Archive.

## Actor input object example

```json
{
  "urls": [
    "apify.com",
    "example.com/index.html"
  ],
  "mode": "snapshots",
  "matchType": "exact",
  "collapse": "digest",
  "order": "oldest",
  "maxSnapshotsPerUrl": 1000,
  "maxConcurrency": 2
}
```

# Actor output Schema

## `results` (type: `string`):

No description

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

No description

# 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",
        "example.com/index.html"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("wood-between-studio/wayback-machine-snapshots").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",
        "example.com/index.html",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("wood-between-studio/wayback-machine-snapshots").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",
    "example.com/index.html"
  ]
}' |
apify call wood-between-studio/wayback-machine-snapshots --silent --output-dataset

```

## MCP server setup

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

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/nkpAAs8LqkJIJuSz9/builds/bhWwEPvukPEPyhx5G/openapi.json
