# Web Archive Snapshots & Archived URLs (Wayback Machine data) (`innovative_cookie/web-archive-snapshots`) Actor

List archived pages of any domain, URL prefix or URL from the Wayback Machine (Internet Archive CDX API). Unique URLs or every snapshot, with capture date, HTTP status, MIME type and snapshot link. Filter by date, status and file type. No browser.

- **URL**: https://apify.com/innovative_cookie/web-archive-snapshots.md
- **Developed by:** [Innovative Cookie](https://apify.com/innovative_cookie) (community)
- **Categories:** SEO tools, Developer tools
- **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

### What does Web Archive Snapshots & Archived URLs do?

**Web Archive Snapshots & Archived URLs** lists the **archived pages of any website** from the **Wayback Machine** of the Internet Archive. Give it domains, URL prefixes or exact URLs, and it returns every **archived URL** (or every **snapshot**) with its **capture date**, the **HTTP status code** and **MIME type** recorded at the time, the content digest and a direct **snapshot link**. Export the list to **JSON, CSV or Excel**, or use it through the API.

It reads the official, public **Wayback CDX Server API** over plain HTTP: no browser, no proxy, no login. Requests are paced to stay under the API's rate limit, and `429` answers are never forced.

### Why use this Actor?

- 🔎 **Find all old URLs of a domain**: pages that no longer exist, former site structures, forgotten subdomains, old PDFs and images.
- 🧭 **SEO and site migrations**: recover lost URLs to build 301 redirect maps, find old pages that still have backlinks, compare an old URL structure with today's sitemap.
- 🕰️ **Snapshot history of one page**: every capture of a URL, one per day, month or year, or only when the content changed.
- 🧹 **Filters done by the archive**: date range, HTTP status (`200`, `301`, `404`, `3xx`...), MIME type (`text/html`, `application/pdf`, `image/*`) and a URL regular expression.
- 📦 **Bulk and paginated**: many targets per run, up to 100,000 rows per target, fetched 5,000 at a time with resume keys.
- 🔐 **Privacy by default**: `user:password@` credentials, e-mail addresses and the values of sensitive query parameters are removed from archived URLs (best effort).
- 🔌 **Works in pipelines**: API, webhooks, Make, Zapier, n8n, Google Sheets, or an AI agent through the Apify MCP server.

### How to list archived URLs from the Internet Archive

1. Click **Try for free**.
2. Paste one or more **domains or URLs**, one per line: `example.com`, `*.example.com` (with subdomains), `example.com/blog/*` (a section) or an exact URL.
3. Choose **Rows to return**: one row per unique URL (default) or every snapshot.
4. Optional: add a date range, status codes or MIME types.
5. Click **Start**, then export the table or read it through the API.

Check which archived URLs still work today with [URL Status & Redirect Checker](https://apify.com/innovative_cookie/url-status-redirect-checker), and compare them with the current pages from [Sitemap URL Extractor](https://apify.com/innovative_cookie/sitemap-extractor).

### Input

```json
{
    "targets": ["apify.com"],
    "matchType": "host",
    "collapse": "url",
    "from": "2020",
    "to": "2025",
    "statusCodes": ["200"],
    "mimeTypes": ["text/html"],
    "maxResultsPerTarget": 1000,
    "maxResults": 10000,
    "redactSensitiveData": true
}
```

| Target                                           | Match  | What you get                                |
| ------------------------------------------------ | ------ | ------------------------------------------- |
| `example.com`                                    | host   | every URL of `example.com`                  |
| `*.example.com`                                  | domain | `example.com` and all its subdomains        |
| `example.com/blog/*`                             | prefix | every URL starting with `example.com/blog/` |
| `https://example.com/about` + Match type `exact` | exact  | the snapshots of that one page              |

The default input is small on purpose so a test run finishes in a few seconds.

### Output

One row per unique archived URL (or per snapshot):

```json
{
    "target": "example.com",
    "matchType": "host",
    "url": "http://example.com:80/",
    "timestamp": "20020120142510",
    "capturedAt": "2002-01-20T14:25:10Z",
    "statusCode": 200,
    "mimeType": "text/html",
    "isRevisit": false,
    "digest": "HT2DYGA5UKZCPBSFVCV3JOBXGW2G5UUA",
    "lengthBytes": 1792,
    "snapshotUrl": "https://web.archive.org/web/20020120142510/http://example.com:80/",
    "rawSnapshotUrl": "https://web.archive.org/web/20020120142510id_/http://example.com:80/",
    "redacted": null,
    "urlTruncated": false
}
```

- With **One row per unique URL**, each row is the first capture of that URL in the selected date range.
- `statusCode` is the status the website returned when the page was archived, not today. It is `null` for revisit records (`isRevisit`: same content as an earlier capture).
- `rawSnapshotUrl` opens the archived file without the Wayback toolbar.
- When a URL was changed by the privacy filter, `redacted` gives the counts of removed items and both snapshot links are `null`.
- The archive also stores malformed URLs found in links and scripts. Filter on status `200` and MIME type `text/html` for clean page lists.

The `SUMMARY` record in the key-value store gives, for each target, its status (`listed`, `no_captures`, `invalid`, `blocked`, `http_error`, `skipped` or `error`), the number of rows, the first and last capture, and whether the row limit was reached.

### How much does it cost?

There is currently no Actor fee: you only pay Apify platform usage, which is very low because one API request returns up to 5,000 rows and no browser is used. The Apify Free plan includes $5 of monthly credit.

### Is it legal?

The Actor only reads the public **Wayback CDX Server API** of the Internet Archive, which lists what the archive has captured. It does not log in, does not access excluded or private captures and does not get around any limit or protection: when the API answers `429` or `503`, the Actor slows down and then stops, it never forces access.

To limit personal data, credentials, e-mail addresses and the values of sensitive query parameters are removed from archived URLs by default (best effort: some formats may be missed). Other personal information, such as names in URL paths, may still appear. Only look up websites you have a legitimate reason to research, and follow the Internet Archive's terms of use and the websites' terms of use.

You are responsible for complying with data protection law (for example GDPR) for what you do with the results: if the results contain personal data, you are the data controller and need a lawful basis, and you should keep only the data you need. Do not use this Actor to build profiles of individuals or contact lists for unsolicited marketing. If unsure, consult a lawyer.

**Not affiliated with, sponsored or endorsed by** the Internet Archive or the websites you look up. "Wayback Machine" is a trademark of the Internet Archive, used here only to name the data source.

Results come from the Internet Archive as is: captures may be missing, incomplete or out of date, and a list of captures does not by itself prove that a page was or was not online on a given date.

### Responsible use

- The Actor lists captures and links to them; it does not download or republish archived content. Archived pages may be protected by copyright or other rights: do not reuse or redistribute content you have no rights to, and respect any machine-readable text and data mining opt-out set by the rights holder.
- The Actor only returns what the Internet Archive shows publicly. Captures excluded or removed at the request of site owners are not returned, and the Actor never tries to recover them. To ask for content to be excluded, contact the Internet Archive directly.
- Politeness limits are built in: at least 2.5 seconds between two API requests (24 requests per minute at most, 3 seconds by default), a descriptive user agent, `Retry-After` honoured, robots.txt respected, no captcha or bot-protection bypass, no paid proxy.
- Large domains are paginated 5,000 rows at a time. Use a URL prefix, dates or filters rather than very large runs.

### FAQ

#### Does it download the archived pages?

No. It lists the snapshots and gives links to them. Open `snapshotUrl` in a browser, or `rawSnapshotUrl` for the original file.

#### Why do I get fewer rows than the Wayback Machine website shows?

The website counts every capture; with **One row per unique URL** each URL appears once. Choose **Every snapshot** to get all captures. Filters, dates and your row limits also reduce the list.

#### A large domain returns an error

Very large sites can time out on the archive side (`HTTP 504`). Split the run with URL prefixes (`example.com/blog/*`), a date range or a MIME type filter, and try again later.

#### Something does not work?

Open an issue in the **Issues** tab with your input and the `SUMMARY` record.

### Related actors

More Actors by the same author ([innovative_cookie on Apify](https://apify.com/innovative_cookie)):

- [Sitemap URL Extractor](https://apify.com/innovative_cookie/sitemap-extractor): list every URL of a website from its XML sitemaps.
- [URL Status & Redirect Checker](https://apify.com/innovative_cookie/url-status-redirect-checker): HTTP status and full redirect chain for many URLs.
- [Broken Link Checker](https://apify.com/innovative_cookie/broken-link-checker): find broken internal and external links on a website.
- [Website SEO Audit](https://apify.com/innovative_cookie/website-seo-audit): on-page SEO checks for titles, meta tags, headings and structured data.
- [PDF Text Extractor](https://apify.com/innovative_cookie/pdf-text-extractor): extract the text of public PDF files in bulk.

# Actor input Schema

## `targets` (type: `array`):

One per line. A domain (example.com), a URL prefix ending in \* (example.com/blog/*), a domain with all subdomains (*.example.com) or an exact URL (with Match type = exact).

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

host: every URL on this host. domain: this host and all its subdomains. prefix: every URL starting with the given path. exact: only this URL. A trailing \* or a leading \*. in a target overrides this setting.

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

url: one row per unique archived URL (its first capture). none: every capture. content: skip consecutive captures with identical content. day / month / year: at most one capture per URL per period.

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

Optional. Earliest capture date: YYYY, YYYYMM, YYYYMMDD or YYYY-MM-DD.

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

Optional. Latest capture date: YYYY, YYYYMM, YYYYMMDD or YYYY-MM-DD.

## `statusCodes` (type: `array`):

Optional. Keep only captures with these status codes, for example 200, 301, 404, or 3xx for a whole class.

## `mimeTypes` (type: `array`):

Optional. Keep only these content types, for example text/html, application/pdf or image/\*.

## `urlRegex` (type: `string`):

Optional. Keep only archived URLs matching this regular expression, applied by the Wayback Machine, for example .\*.pdf$ or /blog/.

## `maxResultsPerTarget` (type: `integer`):

Stop listing a target after this many rows.

## `maxResults` (type: `integer`):

Hard cap on the number of rows in this run, across all targets.

## `redactSensitiveData` (type: `boolean`):

On by default. Removes user:password@ credentials, e-mail addresses and the values of sensitive query parameters (email, user, name, phone, token, key, password, session...) from archived URLs. Snapshot links are left empty for the URLs that were changed. If you turn this off, you are responsible for any personal data in the output.

## `requestDelayMs` (type: `integer`):

Pause between two requests to the Wayback Machine API (at least 2,500 ms, i.e. 24 requests per minute at most). Each request returns up to 5,000 rows.

## `requestTimeoutSecs` (type: `integer`):

Large domains can take a while to answer. A request that does not finish in time is retried twice, then the target is reported as an error.

## Actor input object example

```json
{
  "targets": [
    "apify.com"
  ],
  "matchType": "host",
  "collapse": "url",
  "maxResultsPerTarget": 50,
  "maxResults": 100,
  "redactSensitiveData": true,
  "requestDelayMs": 3000,
  "requestTimeoutSecs": 120
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset with one row per snapshot or unique URL

## `summary` (type: `string`):

SUMMARY record: status, rows and first/last capture per target

# 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 = {
    "targets": [
        "apify.com"
    ],
    "maxResultsPerTarget": 50,
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("innovative_cookie/web-archive-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 = {
    "targets": ["apify.com"],
    "maxResultsPerTarget": 50,
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("innovative_cookie/web-archive-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 '{
  "targets": [
    "apify.com"
  ],
  "maxResultsPerTarget": 50,
  "maxResults": 100
}' |
apify call innovative_cookie/web-archive-snapshots --silent --output-dataset

```

## MCP server setup

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