# Wayback Machine Scraper - Snapshot History of Any URL (`laudedignus/wayback-snapshots`) Actor

List every Wayback Machine capture of a page, a folder or a whole domain: date, HTTP status, type, content hash and a direct link to the archived copy. Filter by date and status, group by day, month or content change. $0.50 per 1,000 captures.

- **URL**: https://apify.com/laudedignus/wayback-snapshots.md
- **Developed by:** [Mouhamed Wade](https://apify.com/laudedignus) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 captures

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/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: Snapshot History of Any URL

List every capture the Internet Archive's Wayback Machine holds for a page, a folder or a whole domain. Each row gives the capture date, the HTTP status, the content type, a content hash and a direct link to the archived copy.

The Actor reads the capture index through the CDX Server API that the Internet Archive documents for developers. No API key, no proxy, no browser. It sends one request at a time, well under the archive's pace limits.

### What can you do with it?

- **Recover lost content.** Find every archived address of a site that changed owner or was redesigned, then open the archived copies.
- **Build redirect maps for an SEO migration.** List every URL a domain ever had with **Keep one capture per: URL**, and catch old pages that still receive links.
- **See when a page changed.** With **Content change**, consecutive captures with identical content are dropped, so each row is a real change.
- **Check what a competitor published and when**: pricing pages, terms, job pages, month by month.
- **Research and due diligence**: the first and last time a site was online, the pages that returned errors, the PDFs it published.
- **Feed an AI agent** with the archive link of a page as it was on a given date.

### How to use it

1. Put addresses in **Web addresses**, one per line: `apify.com/pricing`, or `example.com` with **What to match** set to whole host or whole domain.
2. Optional: choose a date range, an HTTP status, a content type, and how to group captures.
3. Click **Start**. Export as JSON, CSV or Excel, or call the API.

### Input

```json
{
    "urls": ["apify.com"],
    "matchType": "exact",
    "groupBy": "month",
    "from": "2020-01-01",
    "to": "2026-12-31",
    "statusCode": "200",
    "order": "oldest",
    "maxResultsPerUrl": 1000
}
```

| Field | Choices |
|---|---|
| `matchType` | `exact` (this address), `prefix` (addresses starting with it), `host` (every page of the host), `domain` (host and subdomains). An address ending with `*` is read as `prefix`. |
| `groupBy` | `none`, `url` (one row per archived address), `content` (one row per content change), `day`, `month`, `year` |
| `order` | `oldest` (default, can page through any volume) or `newest` (the most recent captures up to the limit) |

### Output

One row per capture:

```json
{
    "type": "snapshot",
    "query": "apify.com",
    "url": "https://apify.com/",
    "capturedAt": "2020-01-09T13:07:05.000Z",
    "timestamp": "20200109130705",
    "statusCode": 200,
    "mimeType": "text/html",
    "digest": "D4P2GPUK3PEGEFYQFUENG7MNTQI3ZRN4",
    "lengthBytes": 29306,
    "archiveUrl": "https://web.archive.org/web/20200109130705/https://apify.com/",
    "rawUrl": "https://web.archive.org/web/20200109130705id_/https://apify.com/"
}
```

- `archiveUrl` opens the archived page with the Wayback Machine toolbar.
- `rawUrl` returns the page exactly as it was captured, without the toolbar or rewritten links.
- `digest` is a hash of the content: two captures with the same digest are identical.
- `statusCode`, `digest` and `lengthBytes` are `null` for "revisit" records, which the archive writes when a page had not changed.

One free summary row per address: number of captures, distinct addresses, first and last capture, and a notice when the list is partial.

### Pricing

**$0.50 per 1,000 captures** returned, plus the standard Actor start fee of $0.00005 per run. Summary rows, addresses with no capture and failed queries cost nothing. Set a maximum cost per run and the Actor stops when it is reached.

### Limits

- **The archive can be slow or briefly unavailable**, above all for whole-domain queries, which can take 30 to 60 seconds per page of results. The Actor retries, and if the archive still does not answer, the summary row says so and you are not charged for that query. Narrowing the dates or using a folder instead of a whole domain helps.
- **Some sites are excluded from the Wayback Machine** at their owner's request. The summary row says so.
- The Actor lists captures; it does not download the archived pages themselves. Use `rawUrl` with any HTTP client or scraper to fetch the ones you need.
- A capture date is when the archive visited the page, not when the page was written.

### FAQ

**How far back does it go?** As far as the Wayback Machine does: 1996 for the oldest sites.

**How do I get every URL of a domain?** Set **What to match** to whole domain and **Keep one capture per** to URL. Raise the maximum if the site is large.

**Is this allowed?** The Actor only uses the public index API that the Internet Archive documents for developers, at a gentle pace. It does not scrape the Wayback Machine website.

**Something looks wrong?** Open an issue in the Issues tab with the address and the run ID.

### More tools from the same developer

Same approach in each: public sources only, no login, one clear row per result, errors explained.

- [Security Headers Checker](https://apify.com/laudedignus/security-headers-audit): grade the HTTP security headers of any list of websites.
- [SEO Audit Tool](https://apify.com/laudedignus/seo-page-audit): score the on-page SEO of any list of URLs.
- [Tech Stack Detector](https://apify.com/laudedignus/tech-stack-detector): find the CMS, shop platform, analytics and hosting behind any list of websites.
- [Broken Link Checker](https://apify.com/laudedignus/broken-link-checker): crawl a website and list its dead links and 404s.
- [SPF, DKIM & DMARC Checker](https://apify.com/laudedignus/email-security-audit): check SPF, DKIM and DMARC for any list of domains.
- [App Store Reviews Scraper](https://apify.com/laudedignus/app-store-reviews): get the App Store reviews of an iOS app across 50+ countries.
- [Bulk WHOIS Lookup (RDAP)](https://apify.com/laudedignus/domain-rdap-lookup): look up registration, expiry and availability for thousands of domains.
- [Sitemap URL Extractor](https://apify.com/laudedignus/sitemap-url-extractor): list every URL a website declares in its sitemaps.
- [RSS Feed Reader](https://apify.com/laudedignus/rss-feed-reader): read RSS and Atom feeds and get only the new items on each run.

# Actor input Schema

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

Pages or websites to look up in the Wayback Machine, one per line. Example: apify.com/pricing

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

Exact page: only this address. Folder: every address that starts with it. Host: every page of this host. Domain: the host and all its subdomains.

## `groupBy` (type: `string`):

Reduce the list. "URL" gives the list of every archived address of a site (first capture of each). "Content change" drops consecutive captures whose content is identical.

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

Only captures on or after this date (YYYY-MM-DD).

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

Only captures on or before this date (YYYY-MM-DD).

## `statusCode` (type: `string`):

Keep only captures with this status, for example 200 for pages that worked or 404 for missing pages. Leave empty for all.

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

Keep only captures of this type, for example text/html or application/pdf. Leave empty for all.

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

Oldest first reads the archive from the beginning and can go on as long as needed. Newest first returns the most recent captures up to the limit; it is slower on addresses with a very long history.

## `maxResultsPerUrl` (type: `integer`):

Stop after this many rows for one address.

## Actor input object example

```json
{
  "urls": [
    "apify.com"
  ],
  "matchType": "exact",
  "groupBy": "none",
  "order": "oldest",
  "maxResultsPerUrl": 1000
}
```

# Actor output Schema

## `results` (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("laudedignus/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("laudedignus/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 laudedignus/wayback-snapshots --silent --output-dataset

```

## MCP server setup

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