# Wayback Machine Scraper: Snapshots, URL History & Domain Age (`hirethomas/wayback-machine-snapshots-history`) Actor

List Wayback Machine (archive.org) snapshots for any URL, path or whole domain, with dates, status codes and archive links. Find old/deleted pages, track content changes, or get a domain's first-seen date and archive age. Official Internet Archive APIs, no login.

- **URL**: https://apify.com/hirethomas/wayback-machine-snapshots-history.md
- **Developed by:** [Brindlewave Data](https://apify.com/hirethomas) (community)
- **Categories:** SEO tools, Developer tools
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.90 / 1,000 result rows

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 Scraper: Snapshots, URL History & Domain Age

Pull the capture history of any web page or whole website from the Internet Archive's Wayback Machine, as clean rows you can export to CSV, Excel or JSON.

Uses the Internet Archive's official public CDX and availability APIs. No login, no browser.

### Use it for

- **SEO and content recovery**: list every URL a site ever had (match `domain` + collapse `unique-urls`) and find deleted pages, old blog posts and lost backlink targets.
- **Domain due diligence**: summary mode gives the first and last capture date, the years with captures and archive age, for expired-domain buying or vendor checks.
- **Change tracking**: collapse `content-changes` shows only captures where the page content changed.
- **Competitor history**: see how a pricing or landing page looked over time (open `archiveUrl`).

### Input

| Field | Example | Notes |
|---|---|---|
| urls | `["example.com", "example.com/pricing"]` | URLs, paths or domains |
| mode | `snapshots` or `summary` | summary = 1 row per input |
| matchType | `exact`, `prefix`, `host`, `domain` | domain includes subdomains |
| collapse | `unique-urls`, `one-per-month`, `content-changes`... | removes duplicates |
| from / to | `2015`, `202001`, `20231231` | optional date range |
| onlyStatus200 | `true` | skip redirects/errors |
| mimeTypeContains | `pdf` | e.g. find archived PDFs |
| maxSnapshotsPerUrl | `1000` | 0 = no limit |

### Output

Snapshot mode:

```json
{
  "inputUrl": "example.com",
  "url": "http://www.example.com:80/",
  "timestamp": "20020120142510",
  "capturedAt": "2002-01-20T14:25:10+00:00",
  "archiveUrl": "https://web.archive.org/web/20020120142510/http://www.example.com:80/",
  "rawArchiveUrl": "https://web.archive.org/web/20020120142510id_/http://www.example.com:80/",
  "statusCode": 200,
  "mimeType": "text/html",
  "contentDigest": "...",
  "lengthBytes": 1234
}
```

Summary mode:

```json
{
  "inputUrl": "example.com",
  "archived": true,
  "firstSnapshotAt": "2002-01-20T14:25:10+00:00",
  "lastSnapshotAt": "2026-10-01T00:00:00+00:00",
  "yearsWithSnapshots": ["2002", "2003", "..."],
  "yearsCount": 25,
  "archiveAgeYears": 24.7
}
```

`rawArchiveUrl` returns the original archived file without the Wayback toolbar.

### Pricing

You pay per row returned. Use `maxSnapshotsPerUrl` and `collapse` to keep runs small.

### Notes

- The Internet Archive is sometimes slow or rate-limits; the actor waits and retries automatically.
- Very large domains have millions of captures: start with collapse `unique-urls` or a date range.
- Pages excluded from the archive by their owners are not returned.

### Questions or a missing field?

Open an issue on the Issues tab; we usually answer within a day.

#### FAQ

##### How do I find old or deleted pages of a website?

Enter the domain with a domain-wide match. You get every archived URL with its capture dates and Wayback Machine links, including pages that no longer exist.

##### How do I check how old a domain is?

The first-seen date in the archive shows when the site was first captured, a good proxy for domain age and history.

##### Is there a Wayback Machine API?

archive.org offers the CDX API, which this Actor uses. You get the results as clean JSON or CSV without writing code, for many URLs at once.

##### Can I only get working snapshots?

Yes. Turn on `onlyStatus200` to skip redirects and error captures.

# Actor input Schema

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

e.g. example.com, example.com/blog, https://example.com/pricing

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

Summary returns one row per input: handy for domain age checks.

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

Use 'domain' or 'host' with collapse 'unique-urls' to list every archived URL of a site.

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

Reduce duplicates.

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

YYYY, YYYYMM or YYYYMMDD (optional).

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

YYYY, YYYYMM or YYYYMMDD (optional).

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

Skip redirects and errors.

## `mimeTypeContains` (type: `string`):

e.g. html, pdf, image (optional).

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

0 = no limit. Big domains can have millions of captures.

## Actor input object example

```json
{
  "urls": [
    "apify.com"
  ],
  "mode": "snapshots",
  "matchType": "exact",
  "collapse": "none",
  "onlyStatus200": false,
  "maxSnapshotsPerUrl": 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("hirethomas/wayback-machine-snapshots-history").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("hirethomas/wayback-machine-snapshots-history").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 hirethomas/wayback-machine-snapshots-history --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hirethomas/wayback-machine-snapshots-history"
        }
    }
}
```

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/cGNYG6G8GjEt0FFIS/builds/tmpHVLHnZdRam10VO/openapi.json
