# Wayback Machine Snapshot Finder (`nordic-data/wayback-machine-snapshots`) Actor

List Internet Archive Wayback Machine captures for any URL, path or domain: timestamps, archive links, status, MIME type and content digest. Find old pages, track changes, recover content. $0.0004 per snapshot.

- **URL**: https://apify.com/nordic-data/wayback-machine-snapshots.md
- **Developed by:** [Niklas Bergström](https://apify.com/nordic-data) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.40 / 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 Snapshot Finder

List every **Internet Archive Wayback Machine capture** of a page, a path or a whole domain — with the capture date, a ready-to-open archive link, a raw-content link, HTTP status, MIME type, content digest and size. Built on the official, free Wayback CDX API: no browser, no API key.

**$0.0004 per snapshot.** Invalid inputs, URLs with no captures and API errors are free. `maxSnapshotsPerUrl` caps the cost per input.

### What you can do

- **See how a page changed:** one capture per day, month or year, or only captures whose content changed (`collapse: digest`).
- **Discover old URLs** of a site for SEO migrations and backlink recovery: `matchType: prefix` or `domain` with `collapse: url` lists every archived URL once.
- **Recover lost content:** open `archiveUrl`, or fetch `rawContentUrl` for the original HTML without the Wayback toolbar.
- **Due diligence and research:** when did a company launch its site, change pricing or remove a page?
- **Find archived files:** filter by MIME type, e.g. `application/pdf`.

### Input example

```json
{
  "urls": ["apify.com/store"],
  "matchType": "prefix",
  "collapse": "url",
  "fromDate": "2022",
  "toDate": "2024-12-31",
  "order": "oldest",
  "onlyStatus200": true,
  "mimeType": "text/html",
  "maxSnapshotsPerUrl": 100
}
```

### Output example

```json
{
  "recordType": "snapshot",
  "query": "apify.com",
  "originalUrl": "https://apify.com/",
  "timestamp": "20261110073331",
  "capturedAt": "2026-11-10T07:33:31Z",
  "archiveUrl": "https://web.archive.org/web/20261110073331/https://apify.com/",
  "rawContentUrl": "https://web.archive.org/web/20261110073331id_/https://apify.com/",
  "statusCode": 200,
  "mimeType": "text/html",
  "digest": "…",
  "lengthBytes": 98231
}
```

### Options

| Option | Values |
|---|---|
| `matchType` | `exact`, `prefix` (path and below), `host`, `domain` (with subdomains) |
| `collapse` | `none`, `hourly`, `daily`, `monthly`, `yearly`, `digest` (changed content), `url` (unique URLs) |
| `order` | `oldest` or `newest` first |
| `fromDate` / `toDate` | `2015`, `2020-06`, `2020-06-01` … |
| `onlyStatus200`, `mimeType` | Filters |

The Actor paces requests and retries when the Internet Archive is busy. Archive content belongs to its owners; respect copyright when reusing it. If you find the Wayback Machine useful, consider [donating to the Internet Archive](https://archive.org/donate).

### Related Actors

- [Domain WHOIS & DNS Lookup](https://apify.com/nordic-data/domain-whois-dns-lookup)
- [Bulk URL Status & Redirect Chain Checker](https://apify.com/nordic-data/bulk-url-status-redirect-checker): check whether old URLs still resolve.
- [Website Tech Stack Detector](https://apify.com/nordic-data/website-tech-stack-detector)

# Changelog

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

# Actor input Schema

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

Pages or domains to look up in the Internet Archive, e.g. apify.com or https://example.com/pricing.

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

exact: only this URL. prefix: every URL under this path. host: every URL on this host. domain: host plus all subdomains.

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

Thin out captures. 'Changed content' keeps only captures whose content differs from the previous one. 'Unique URL' lists each archived URL once (great with prefix/domain to discover old pages).

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

Earliest capture, e.g. 2015 or 2020-06-01.

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

Latest capture, e.g. 2023-12-31.

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

Oldest captures first, or the most recent ones first.

## `onlyStatus200` (type: `boolean`):

Skip archived redirects and error pages.

## `mimeType` (type: `string`):

Optional, e.g. text/html, application/pdf or image/\*.

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

Cap on snapshots returned (and charged) for each input (1-100,000).

## Actor input object example

```json
{
  "urls": [
    "apify.com"
  ],
  "matchType": "exact",
  "collapse": "daily",
  "order": "oldest",
  "onlyStatus200": true,
  "maxSnapshotsPerUrl": 100
}
```

# Actor output Schema

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

Main results (view: Overview).

## `runStats` (type: `string`):

Counts of delivered, hidden, invalid, duplicate and failed inputs.

# 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("nordic-data/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"] }

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

```

## MCP server setup

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