# Wayback Machine Snapshots & Change History (`adaptive_labs/wayback-machine-snapshots`) Actor

Get Wayback Machine (archive.org) snapshots for any URL: content change history, daily or monthly captures, and every archived URL on a domain. Track competitor page changes. Free.

- **URL**: https://apify.com/adaptive_labs/wayback-machine-snapshots.md
- **Developed by:** [Adaptive Labs](https://apify.com/adaptive_labs) (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

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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 & Change History

See **how any web page has changed over time** using the Internet Archive's Wayback Machine. Give this Actor a page, domain or path and it returns the archived snapshots with **capture date, archive link, HTTP status, size and whether the content changed** since the previous snapshot.

Use **Content changes** mode for a clean change history (one row each time the page actually changed), daily, monthly or yearly snapshots for timelines, or **Archived URLs** mode to list every page ever archived under a domain, including deleted pages. No login, no API key and no proxy needed.

### What you get

- Content change history: one snapshot per real change, with size change and days since the previous change
- Daily, monthly, yearly or all captures for timelines and research
- Archived URLs mode: every URL the Wayback Machine holds for a domain or path (great for finding deleted pages and old redirects)
- Direct archive links plus raw (unstyled) archive links for further scraping
- Date range and HTTP 200 filters
- Only-new mode: schedule it and get only snapshots captured since the last run
- Many URLs per run, newest results first

### Who uses it

- **Competitor monitoring**: see when a competitor changed its pricing, homepage or terms
- **SEO and migrations**: recover old URLs, deleted pages and past redirects for a domain
- **Research and journalism**: build a timeline of how a page or statement changed
- **Legal and compliance**: find proof of what a page said on a given date
- **Brand and domain due diligence**: check a domain's history before buying it

### Quick start (under a minute)

1. Enter one or more **pages or domains** (the example `https://apify.com/pricing` works out of the box).
2. Pick **What to return**: content changes, one per day, month or year, all captures or archived URLs.
3. Click **Start**. Snapshots appear in the **Snapshots** table within seconds.
4. To get alerts, turn on **Only new since last run**, set a **Monitor name** and add a daily schedule.

### Input example

```json
{
  "urls": [
    "https://competitor.example/pricing"
  ],
  "mode": "changes",
  "maxSnapshotsPerUrl": 50,
  "fromDate": "2024-01-01",
  "onlyOk": true,
  "onlyNew": false
}
```

#### Input fields

- **urls**: A full page URL, a domain or a path. In Archived URLs mode a domain lists the whole site and a path lists everything under it.
- **mode**: changes, daily, monthly, yearly, all or urls.
- **fromDate, toDate**: Optional. Any of 2024, 2024-06 or 2024-06-30.

### Output example

```json
{
  "inputUrl": "https://apify.com/pricing",
  "originalUrl": "https://apify.com/pricing",
  "capturedAt": "2026-11-10T07:33:31Z",
  "timestamp": "20261110073331",
  "archiveUrl": "https://web.archive.org/web/20261110073331/https://apify.com/pricing",
  "rawArchiveUrl": "https://web.archive.org/web/20261110073331id_/https://apify.com/pricing",
  "statusCode": 200,
  "mimeType": "text/html",
  "digest": "U5KAEJWOT7J62CPEE6HPFX72GIKKJVB4",
  "sizeBytes": 86925,
  "contentChanged": true,
  "daysSincePrevious": 6,
  "sizeChangePct": 2.4,
  "mode": "changes",
  "scrapedAt": "2026-11-12T16:30:00.000Z"
}
```

#### Output fields

- **contentChanged**: True when the archived content differs from the previous snapshot in the list.
- **rawArchiveUrl**: The original HTML without the Wayback toolbar, handy for scraping old versions.
- **sizeBytes**: Compressed size of the archived capture, a quick signal of big changes.

### Use it from your code or tools

**Apify API (cURL)**: start a run and get the results in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/adaptive_labs~wayback-machine-snapshots/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://apify.com/pricing"], "mode": "changes", "maxSnapshotsPerUrl": 10}'
```

**JavaScript / TypeScript**

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('adaptive_labs/wayback-machine-snapshots').call({
  "urls": [
    "https://apify.com/pricing"
  ],
  "mode": "changes",
  "maxSnapshotsPerUrl": 10
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**Python**

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("adaptive_labs/wayback-machine-snapshots").call(run_input={
  "urls": [
    "https://apify.com/pricing"
  ],
  "mode": "changes",
  "maxSnapshotsPerUrl": 10
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**No-code and AI agents**

- **Make, Zapier, n8n, Google Sheets, Slack**: use the Apify integration for your tool, pick this Actor and map the dataset fields.
- **Schedules and webhooks**: add the Actor to an Apify schedule (for example every morning) and send results anywhere with a webhook.
- **AI agents and MCP**: this Actor works with the Apify MCP server, so Claude, ChatGPT, Cursor and other MCP clients can call it as a tool. Clean, flat JSON output is easy for LLMs to read.
- **Export**: download results as JSON, CSV, Excel, XML or HTML from the Storage tab.

### FAQ

**Is this the official Wayback Machine API?**
It uses the public CDX index of the Internet Archive's Wayback Machine, the same index the website uses. No key is needed.

**Why are some results slow?**
Archived URLs mode on a large domain makes the Wayback Machine scan a big index. Start with a small limit or a path such as example.com/blog/.

**Can I see the old page content?**
Yes. Open archiveUrl to view it, or fetch rawArchiveUrl to get the original HTML.

**What happens if archive.org is down or busy?**
The run still finishes successfully and explains what happened, with an error row for that URL, so you can simply run it again later.

**How do alerts work?**
Turn on Only new since last run and schedule the Actor. Each run then saves only snapshots it has not returned before for that monitor name.

### Pricing

This Actor is **free to use**. You only pay for your own Apify platform usage (compute), and small runs use very little compute, so light use fits within the free monthly credit on Apify's free plan.

### Feedback and support

We build and maintain this Actor at **Adaptive Labs** and we read every message.

- If it helped you, please **leave a quick review** on the Actor page. It really helps other people find it.
- Feature requests, bugs or a source you would like added: email **support@adaptivelabs.app** or open an issue on the Issues tab.

### Responsible use

This Actor reads the public Wayback Machine index provided by the Internet Archive, a non-profit. Keep request volumes modest and consider supporting the Internet Archive if you rely on it.

***

If this Actor saved you time, a quick review on Apify Store would mean a lot. Ideas or problems? Email support@adaptivelabs.app.

# Actor input Schema

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

One per line, for example https://competitor.com/pricing, example.com or example.com/blog/. The Wayback Machine (archive.org) is searched for each one.

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

Content changes: one snapshot each time the page content changed (best for change history). Daily, monthly or yearly: one snapshot per period. All captures: everything. Archived URLs: every URL archived under a domain or path (finds old or deleted pages).

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

Newest results are kept first. Archived URL lists for big domains can be slow, so start small.

## `fromDate` (type: `string`):

Optional. Earliest capture date, for example 2024-01-01 or 2024.

## `toDate` (type: `string`):

Optional. Latest capture date, for example 2025-12-31.

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

Skip redirects, errors and blocked captures.

## `onlyNew` (type: `boolean`):

Save only snapshots not returned by an earlier run with the same monitor name. Schedule it daily for alerts.

## `monitorName` (type: `string`):

Name of the saved state for only-new mode. Use a different name for each watch.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com/pricing"
  ],
  "mode": "changes",
  "maxSnapshotsPerUrl": 10,
  "onlyOk": false,
  "onlyNew": false,
  "monitorName": "default"
}
```

# Actor output Schema

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

Snapshots (overview view).

# 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://apify.com/pricing"
    ],
    "mode": "changes",
    "maxSnapshotsPerUrl": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("adaptive_labs/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": ["https://apify.com/pricing"],
    "mode": "changes",
    "maxSnapshotsPerUrl": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("adaptive_labs/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": [
    "https://apify.com/pricing"
  ],
  "mode": "changes",
  "maxSnapshotsPerUrl": 10
}' |
apify call adaptive_labs/wayback-machine-snapshots --silent --output-dataset

```

## MCP server setup

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