# Wayback Machine Scraper — Snapshots, History & Archived Pages (`tagadanar/wayback-snapshots`) Actor

Wayback Machine history for any URL or domain: every archived snapshot with date, status and links, a one-row history summary per URL (first and last capture, count, gaps) or the archived page text. $1.00 per 1,000 snapshots, $1.50 per 1,000 summaries, $2.00 per 1,000 pages + $0.001/run.

- **URL**: https://apify.com/tagadanar/wayback-snapshots.md
- **Developed by:** [Tagada Data](https://apify.com/tagadanar) (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

from $0.70 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Scraper: snapshots, history and archived pages

Paste URLs or domains and get their Internet Archive history back as clean rows. Three ways to read it:

- **Snapshot list**: one row per archived capture, with the capture date, the HTTP status and file type the site served, the content digest, and two links (the normal Wayback page and the raw archived file).
- **History summary**: one row per URL with the first and last capture, the capture count, the years covered, how many months were served as 200 / redirects / errors, and the longest gap with no captures. It is the quick check before buying an expired domain.
- **Archived page content**: the snapshot rows plus each archived page's title, meta description, first heading, language and visible text (optionally the raw HTML).

Only archive.org is contacted: your URLs are looked up in the Wayback Machine's public index and are never fetched from the live site. No API key, no login, no proxy.

**$1.00 per 1,000 snapshots, $1.50 per 1,000 history summaries, $2.00 per 1,000 archived pages read, plus $0.001 per run. Platform usage is included.**

### What you get

#### Snapshot rows (list mode, and the base of content mode)

| Field | What it is |
| --- | --- |
| `inputUrl` | The entry you pasted |
| `matchScope` | `exact`, `prefix`, `host` or `domain` |
| `url` | The archived URL, as the archive recorded it |
| `timestamp` | Wayback timestamp (14 digits, UTC) |
| `capturedAt` | Capture date and time, ISO 8601 UTC |
| `snapshotUrl` | The capture in the Wayback Machine viewer |
| `rawSnapshotUrl` | The original archived bytes, without the Wayback toolbar |
| `statusCode` | HTTP status the site answered when it was archived (null for archive-internal records) |
| `mimeType` | Content type of the capture |
| `digest` | Content hash: two captures with the same digest have the same content |
| `length` | Size of the archived record in bytes |
| `rowType` | `snapshot`, `content` or `summary` |

#### Content fields (content mode)

| Field | What it is |
| --- | --- |
| `title` | Page title |
| `metaDescription` | Meta description (or og:description) |
| `h1` | First heading |
| `language` | The page's declared language |
| `canonicalUrl` | Canonical link of the page |
| `linkCount` | Number of links on the page |
| `text` | Visible text, one block per line, capped by `maxTextChars` |
| `textLength` | Full length of the visible text |
| `wordCount` | Words in the visible text |
| `html` | Raw archived HTML, first 500,000 characters (only with `includeHtml`) |
| `contentTimestamp` | Timestamp of the capture the content was read from; the archive sometimes serves a capture through a neighbouring copy of the same page (usually minutes to days apart), and this says which |
| `contentBytes` | Size of the archived page read |
| `contentError` | Why the page has no content (not a 2xx page, not HTML, the archive could not serve it) |

#### Summary rows (summary mode)

| Field | What it is |
| --- | --- |
| `archived` | Whether the Wayback Machine holds any capture of the URL |
| `firstCapture` | First capture, ISO 8601 |
| `lastCapture` | Latest capture, ISO 8601 |
| `captureCount` | Number of captures |
| `capturesByYear` | Captures per year, for example `{"2019": 54469, "2020": 68368}` |
| `yearsCovered` | Years with at least one capture |
| `yearCount` | How many years have captures |
| `monthsWithCaptures` | How many months have captures |
| `monthsByStatus` | Months whose captures were served as `2xx`, `3xx`, `4xx` or `5xx` |
| `lastMonthStatus` | Status class of the latest captured month |
| `longestGapMonths` | Longest run of months with no capture between the first and last capture |
| `longestGapFrom` | First month of that gap (YYYY-MM) |
| `longestGapTo` | Last month of that gap (YYYY-MM) |
| `daysSinceLastCapture` | Days since the latest capture |
| `firstSnapshotUrl` | Link to the first capture |
| `lastSnapshotUrl` | Link to the latest capture |
| `calendarUrl` | The URL's Wayback calendar page |
| `source` | `wayback-calendar`, or `cdx-monthly` when the calendar did not answer and the history was rebuilt from the index (capture counts are then null) |
| `note` | Plain-words caveat, for example "The Wayback Machine has not archived this URL." |

### Who uses it

- **Expired-domain buyers and SEO agencies**: run a list of domains in summary mode to see how old each site is, whether it was live or redirecting, and when it went dark, before buying it.
- **SEO and content teams**: list every archived URL of a site (host or domain scope) to rebuild a redirect map after a migration, or find old pages that still earn links.
- **Competitor and brand watchers**: pull a competitor's homepage or pricing page once per month, or only when it changed, with the archived text to compare positioning over time.
- **Researchers, journalists and legal teams**: recover the text of a page that has been edited or deleted, with a dated link to the archived copy.

### Examples

Snapshot list of a site's homepage, only when its content changed (the prefill):

```json
{"urls": ["apify.com"]}
```

Expired-domain check, one summary row per domain:

```json
{"urls": ["example.com", "example.org", "example.net"], "mode": "summary"}
```

Captures from anywhere on one host (`www.` included), every capture whatever its status:

```json
{"urls": ["apify.com"], "matchScope": "host", "statusFilter": "any", "collapse": "none", "maxSnapshotsPerUrl": 30}
```

Host-wide and domain-wide lookups on big sites are slow at the archive: the example above took 15 to 30 seconds to answer, and a domain-wide file-type filter (for example every PDF under `*.example.com`) can get no answer within the actor's 60-second wait. Such a URL is named REFUSED in the run status, never "no captures".

A pricing page once a month in 2020-2024, with the archived text:

```json
{"urls": ["https://example.com/pricing"], "mode": "content", "collapse": "month", "from": "2020", "to": "2024", "maxSnapshotsPerUrl": 60}
```

The 10 most recent captures of a page:

```json
{"urls": ["https://example.com/"], "order": "newest", "maxSnapshotsPerUrl": 10, "statusFilter": "any", "collapse": "none"}
```

#### Input options

- **Match scope**: this URL only, everything under a path, the whole host, or the domain with subdomains. You can also write `*.example.com` or `example.com/blog/*` on one entry.
- **Keep**: only captures whose content changed (default), one per day, month or year, or every capture.
- **From / to**: a year, a month or a day.
- **HTTP status** (200 by default) and **file type** filters.
- **Order**: oldest first, or newest first for single URLs. With newest first and "only when content changed", each row is the most recent capture of unchanged content (the last date it was seen), not the date the content changed; use oldest first for change dates.
- **Same page, several spellings**: `example.com`, `https://example.com/` and `www.example.com` are one lookup at the archive, so they are looked up and charged once (the first spelling is kept). Different paths and queries stay separate.
- **Max snapshots per URL**: 100 by default, up to 100,000 (10,000 newest-first).

### Results, zeros and errors

- A URL the archive has no matching capture for is named in the run status ("no captures match") and costs nothing in list and content modes. In summary mode it gets a row with `archived: false`, because that is the answer you asked for.
- A URL the archive excludes (removed at the owner's request, or blocked by robots.txt) is named as EXCLUDED.
- In content mode, a capture that is not a 2xx HTML page, or that the archive cannot serve, is still returned with its snapshot fields and `contentError`, at the snapshot price.
- The Internet Archive is a non-profit library, so the actor reads it politely: about one index request every 2.5 seconds, at most two archived pages at a time, and a 60-second pause if the archive asks it to slow down. A URL the archive keeps rate-limiting is named in the status (never reported as "no captures"); try it again later.
- Invalid input ends the run right away with an "Input error: ..." message and only the $0.001 start charge.

### Pricing

- $0.001 per run (start).
- $1.00 per 1,000 snapshot rows (list mode, and content-mode rows whose page could not be read).
- $1.50 per 1,000 history summaries (summary mode).
- $2.00 per 1,000 archived pages read (content mode rows with page content).
- Lower prices on higher Apify plans: $0.70 / $1.05 / $1.40 per 1,000 on Gold. Platform usage is included.

Set a maximum charge per run in Apify if you want a hard ceiling; the actor stops at it and says so in the status.

### FAQ

**Is this the same data as the Wayback Machine website?** Yes. Snapshot rows come from the Wayback Machine's CDX index, summaries from the data behind its calendar view, and page content from the archived copy itself.

**Why do I get fewer snapshots than the calendar shows?** The defaults keep only captures served with status 200 and only when the content changed. Set "HTTP status" to "Any status" and "Keep" to "Every capture" to get them all.

**Can I download the archived files?** Every row has `rawSnapshotUrl`, the original archived bytes. Content mode extracts the text of HTML pages; it does not store images or PDFs.

**Does it check whether a domain is available to register?** No, it reads the archive history only. Pair it with a domain availability checker.

### Data use

The data comes from the Internet Archive's public Wayback Machine APIs. Archived pages can contain personal data published on the original sites; you are responsible for using it lawfully (GDPR and similar rules) and in line with the Internet Archive's terms of use.

# Changelog

This Actor's version history is a separate document: https://apify.com/tagadanar/wayback-snapshots/changelog.md

# Actor input Schema

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

Pages or domains to look up in the Wayback Machine: example.com, https://example.com/pricing, a Wayback link, *.example.com (whole domain with subdomains) or example.com/blog/* (everything under that path). Up to 1,000 per run. Only archive.org is contacted; the live site is never fetched.

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

list: one row per archived snapshot (date, status, type, links). summary: one row per URL with first and last capture, capture count, years covered, status history and the longest gap (an expired-domain check). content: snapshot rows plus the archived page's title, meta description and visible text (priced per page read).

## `matchScope` (type: `string`):

Which captures count for each entry. exact: this URL only. prefix: every URL under this path. host: every URL on this host name. domain: the host and all its subdomains. List and content modes; summary mode always reads the URL itself.

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

Thin out repeated captures. changed: only when the archived content changed. day / month / year: at most one capture per period. none: every capture.

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

Earliest capture date, e.g. 2015, 2015-06 or 2015-06-30. Leave empty for the first capture.

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

Latest capture date, e.g. 2020, 2020-12 or 2020-12-31. Leave empty for the latest capture.

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

Keep captures by the status code the site answered when it was archived. 200 (default) skips redirects and errors.

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

Keep captures of one content type. Content mode always reads web pages (HTML).

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

oldest: from the first capture forward. newest: the most recent captures first (single URLs only; at most 10,000 per URL).

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

Cap on snapshot rows per entry (list and content modes). Default 100, max 100,000.

## `maxTextChars` (type: `integer`):

Content mode: cap on the visible text kept per archived page (textLength still gives the full length). 0 drops the text. Default 10,000, max 100,000.

## `includeHtml` (type: `boolean`):

Content mode: also return the archived page's raw HTML (first 500,000 characters).

## Actor input object example

```json
{
  "urls": [
    "apify.com"
  ],
  "mode": "list",
  "matchScope": "exact",
  "collapse": "changed",
  "statusFilter": "200",
  "mimeFilter": "any",
  "order": "oldest",
  "maxSnapshotsPerUrl": 100,
  "maxTextChars": 10000,
  "includeHtml": false
}
```

# Actor output Schema

## `dataset` (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"
    ]
};

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

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

```

## MCP server setup

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