# Wayback Machine Snapshots & Page Change Timeline (`kacperor/wayback-snapshots`) Actor

List archived versions of any URL or whole domain from the Internet Archive: only the captures where the content actually changed, or one per day, month or year. Returns direct links to each snapshot and its raw content.

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

## Pricing

$0.50 / 1,000 snapshots

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 & Page Change Timeline

Look up the history of any page or whole website in the Internet Archive and get it as clean rows: when it was captured, a direct link to each archived version, a link to the raw original content, and a content fingerprint.

The default mode answers the question people actually have — **"when did this page change?"** — by keeping a capture only when the content differs from the previous one.

### What you can do with it

- **Change history** — pricing pages, terms of service, product pages, job listings: see every date the content changed.
- **Research and due diligence** — reconstruct what a company's site said at a given time.
- **SEO and migrations** — recover old URLs of a domain (`matchType: prefix` or `domain`) to build redirects or find lost content.
- **Datasets** — one snapshot per month or year for trend studies, with raw-content links ready to download.

### Input

| Field | What it does |
|---|---|
| `urls` | Pages or domains, e.g. `apify.com/pricing` |
| `mode` | `changes` (content changed), `daily`, `monthly`, `yearly`, `all` |
| `matchType` | `exact`, `prefix`, `host`, `domain` |
| `from`, `to` | `YYYY`, `YYYY-MM` or `YYYY-MM-DD` |
| `onlyOk` | Keep only captures with HTTP 200 |
| `maxSnapshotsPerUrl` | Default 1,000 |

### Output

Real output from a run on 16 Nov 2026 (long text and lists shortened here).

```json
{
  "url": "apify.com/pricing",
  "originalUrl": "https://www.apify.com/pricing",
  "capturedAt": "2017-10-27T07:20:08Z",
  "timestamp": "20171027072008",
  "snapshotUrl": "https://web.archive.org/web/20171027072008/https://www.apify.com/pricing",
  "rawContentUrl": "https://web.archive.org/web/20171027072008id_/https://www.apify.com/pricing",
  "statusCode": 200,
  "mimeType": "text/html",
  "contentDigest": "WJX5I2L46FZCT2Y4YGPCZKHFX5M4R2EU",
  "sizeBytes": 5816
}
```

`rawContentUrl` returns the page exactly as archived, without the Wayback toolbar — convenient for downloading or diffing. Two rows with the same `contentDigest` have identical content.

### Good to know

- Data comes from the Internet Archive's public index. Pages it never captured, or that were excluded at the owner's request, are not available.
- The archive can be slow at busy times; the tool retries, and reports a URL as failed rather than returning partial data.
- You pay per snapshot row.

# Actor input Schema

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

Pages or sites to look up, e.g. apify.com/pricing.

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

"Changes" keeps a capture only when the page content differs from the previous one.

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

Exact URL, everything under a path, a whole host, or a domain with subdomains.

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

YYYY, YYYY-MM or YYYY-MM-DD.

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

YYYY, YYYY-MM or YYYY-MM-DD.

## `onlyOk` (type: `boolean`):

Keep captures with HTTP status 200.

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

Upper limit of rows returned for one input URL.

## Actor input object example

```json
{
  "urls": [
    "apify.com/pricing"
  ],
  "mode": "changes",
  "matchType": "exact",
  "onlyOk": true,
  "maxSnapshotsPerUrl": 1000
}
```

# 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/pricing"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kacperor/wayback-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/pricing"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kacperor/wayback-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/zPkimuCLR3fJzasgi/builds/jfxbcpNncq27uqux3/openapi.json
