# Wayback Snapshot Monitor: page history and what changed (`asunoki/wayback-snapshot-monitor`) Actor

For a list of URLs: when each page first appeared in the Internet Archive, how many distinct content versions exist, when it last changed, and links to the snapshots. Schedule it with Only new to get just the pages that changed since the last run.

- **URL**: https://apify.com/asunoki/wayback-snapshot-monitor.md
- **Developed by:** [Seisuke Nagahara](https://apify.com/asunoki) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 url summaries

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 Snapshot Monitor: page history and what changed

Give it page URLs. For each one you get **when the Internet Archive first saw it, how many distinct content versions it has, when it last changed, and direct links to the snapshots**. Turn on **Only what changed since the last run** and schedule it to get just the pages that changed since last time.

It uses the Internet Archive's public CDX index. Pages are never downloaded, so a run is fast and cheap: there is no HTML to parse and no browser.

### Who uses it

- **SEO and content teams**: "When did this competitor change their pricing page?" and "Which of my old URLs lost content?"
- **Domain buyers and due diligence**: first capture date, how long a page existed, whether it was ever replaced.
- **Link builders**: find the last good snapshot of a dead page to reclaim links.
- **Legal and compliance**: link to the exact snapshot before and after a terms or policy change.

### Input

- **Page URLs or domains**: exact page match (`https://example.com/pricing`). A bare domain checks its home page.
- **What to return**: one **summary** row per URL, or a **timeline** with one row per content change.
- **Only what changed since the last run**: the first run returns everything and remembers it; later runs return only URLs (summary) or versions (timeline) that are newer. Use a different memory-store name for each list you track.
- **Version detail**: at most one changed version per day (default), per month, or every distinct capture.
- **Count only successful captures (HTTP 200)**: on by default. The summary still shows the latest capture's status code, so removed pages stay visible.

### Sample summary row

Real output of a local test run on 2026-11-14 (granularity: month):

```json
{
  "url": "https://nodejs.org/en/about",
  "status": "ok",
  "firstCapturedAt": "2015-09-05T05:55:00Z",
  "latestCapturedAt": "2026-11-12T09:56:54Z",
  "latestStatusCode": 200,
  "contentVersions": 109,
  "contentVersionsCapped": false,
  "lastContentChangeAt": "2026-11-02T16:27:05Z",
  "daysSinceLastContentChange": 11,
  "latestSnapshotUrl": "https://web.archive.org/web/20261112095654/https://nodejs.org/en/about",
  "lastChangeSnapshotUrl": "https://web.archive.org/web/20261102162705/https://nodejs.org/en/about",
  "previousVersionSnapshotUrl": "https://web.archive.org/web/20261001120938/https://nodejs.org/en/about",
  "checkedAt": "2026-11-14T07:49:18.056Z"
}
```

Timeline rows carry `change` (`first_seen`, `content_changed`, `status_changed`, `redirect`, `removed_or_error`), `capturedAt`, `snapshotUrl` and `previousSnapshotUrl`, so you can open "before" and "after" side by side.

### Run it from code

```js
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('asunoki/wayback-snapshot-monitor').call({
  urls: ['https://example.com/pricing', 'https://example.com/terms'],
  onlyNew: true, stateStoreName: 'competitor-pages',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

Schedule it weekly in Apify Schedules, and connect the dataset to Slack, Google Sheets or a webhook.

### Pricing (pay per event)

- **url-summary**: $0.004 per summary row ($4 per 1,000 URLs).
- **change**: $0.001 per timeline row.
- Plus a small start fee. URLs that are invalid or have no captures are saved as error rows and **are not charged**. A run with nothing new in "only what changed" mode charges nothing beyond the start fee.
- You do not pay platform usage on top of these events.

### Limits and honesty

- The Internet Archive only has what it captured. Rarely visited pages may have few or no captures; those are reported as `not_archived`.
- A "content version" is a different content fingerprint (digest) in the archive. Pages with dynamic parts (dates, counters, ads) look like they change daily. The day and month settings reduce that noise, but this tool cannot tell a typo fix from a redesign. Use the snapshot links to compare.
- Exact URL match only. It does not crawl a whole site.
- Requests are paced politely (about 1.5 per second), so large lists take time: roughly 100 URLs in 3 to 4 minutes. Raise the run timeout for long lists. If the archive is busy the run retries, then reports `archive_busy`.
- Not affiliated with the Internet Archive.

# Actor input Schema

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

Pages to look up, e.g. https://example.com/pricing or example.com. Exact URL match (a page, not a whole site).

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

Summary: first capture, latest capture, number of distinct versions, last content change. Timeline: every time the saved content changed, with before/after snapshot links.

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

The first run returns everything and remembers it. Later runs return only URLs (summary) or versions (timeline) that are newer than the last run. Use a different memory-store name for each list you track.

## `granularity` (type: `string`):

Busy sites change many times a day. 'day' keeps at most one changed version per day; 'month' gives a short history of long-lived pages.

## `successOnly` (type: `boolean`):

Ignores redirect and error captures when counting versions. The latest capture's status code is always reported in the summary, so removed pages stay visible.

## `sinceDate` (type: `string`):

YYYY-MM-DD. Applies to the timeline output.

## `maxVersionsPerUrl` (type: `integer`):

The most recent N content versions are read. A summary row says when the number was capped.

## `stateStoreName` (type: `string`):

Use different names to track different lists separately.

## Actor input object example

```json
{
  "urls": [
    "https://nodejs.org/en/about",
    "https://www.python.org/"
  ],
  "output": "summary",
  "onlyNew": false,
  "granularity": "day",
  "successOnly": true,
  "maxVersionsPerUrl": 500,
  "stateStoreName": "wayback-snapshot-monitor-state"
}
```

# Actor output Schema

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

All rows.

## `runStatistics` (type: `string`):

Counts and charged events (key-value store record STATS).

# 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://nodejs.org/en/about",
        "https://www.python.org/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("asunoki/wayback-snapshot-monitor").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://nodejs.org/en/about",
        "https://www.python.org/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("asunoki/wayback-snapshot-monitor").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://nodejs.org/en/about",
    "https://www.python.org/"
  ]
}' |
apify call asunoki/wayback-snapshot-monitor --silent --output-dataset

```

## MCP server setup

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

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/0SEybhkStuaXHSePu/builds/uLgGTWuMkLcSqn3Wj/openapi.json
