# Wayback Machine URLs & Snapshots (`rowharbor1988/wayback-machine-urls`) Actor

Get every archived URL of a domain or all snapshots of a page from the Wayback Machine (official CDX API). Find old and lost pages, track page changes over time, filter by date, status and content type. Ideal for SEO relaunches and research.

- **URL**: https://apify.com/rowharbor1988/wayback-machine-urls.md
- **Developed by:** [rowharbor1988](https://apify.com/rowharbor1988) (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.21 / 1,000 archived url or 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 URLs & Snapshots – Archived URLs, History & Changes

Get everything the **Wayback Machine (archive.org)** knows about a website – fast, through the official archive.org CDX API, without a browser.

- **Unique URLs** – every URL ever archived for a domain, folder or page, once each, with its first capture. Ideal for SEO migrations, recovering lost pages, finding old landing pages, redirect maps and content audits.
- **All snapshots** – every capture of a page or site, optionally thinned out to one per hour, day, month or year.
- **Content changes only** – skip captures where nothing changed (same content digest). The quickest way to build a change history of a pricing page, terms page or competitor homepage.
- **Closest snapshot per URL** – for a list of pages: is it archived, and which snapshot is closest to your date?

No API key, no setup – just enter a domain.

### Input examples

| You enter | You get |
|---|---|
| `example.com` | all archived URLs of example.com (whole host) |
| `*.example.com` | all archived URLs including subdomains |
| `example.com/blog/*` | everything below /blog/ |
| `https://example.com/pricing` | only this page (use **All snapshots** or **Content changes only** for its history) |

Filters: date range (from/to), HTTP status (200 only, 2xx/3xx, errors only, all), file type (HTML, PDF, images, JS/CSS, JSON), "URL contains" text, skip assets (images, scripts, styles, fonts).

### Output

One row per URL or snapshot:

```json
{
  "url": "https://example.com/pricing",
  "capturedAt": "2021-05-17T09:30:00Z",
  "timestamp": "20210517093000",
  "snapshotUrl": "https://web.archive.org/web/20210517093000/https://example.com/pricing",
  "rawContentUrl": "https://web.archive.org/web/20210517093000id_/https://example.com/pricing",
  "statusCode": 200,
  "mimeType": "text/html",
  "contentDigest": "DDD444…",
  "archivedBytes": 8000,
  "target": "example.com",
  "mode": "urls",
  "firstCapturedAt": "2021-05-17T09:30:00Z",
  "allSnapshotsUrl": "https://web.archive.org/web/*/https://example.com/pricing"
}
```

- `snapshotUrl` opens the archived page as it looked then.
- `rawContentUrl` returns the original archived file without the Wayback toolbar – handy for downloading old HTML, PDFs or images.
- `contentDigest` changes whenever the content changed.

The **SUMMARY** record in the key-value store lists results per target, and whether more results were available than your limit.

### How to use

1. Enter one or more domains or URLs.
2. Choose **What to get** (default: Unique URLs).
3. Optional: set a date range and filters, and **Max results per target** (default 1,000).
4. Run. Export as JSON, CSV or Excel, or use the API.

### Pricing

Pay per delivered result – no start fee, no monthly fee. In "Closest snapshot" mode, URLs without any snapshot are listed but **not charged**. Use **Max results per target** and your run's spending limit to control cost; the Actor stops cleanly when the limit is reached.

### Good to know

- Large sites can have millions of archived URLs. Start with a limit and narrow down with folders, dates or file types.
- The Wayback Machine limits request rates. The Actor waits and retries automatically when archive.org is busy; keep **Targets in parallel** at 2 for large jobs.
- Data comes from the public Internet Archive. The Actor only reads the archive index (URLs, dates, status, type) – it does not collect personal data.

### Support

Found a problem or need another option? Open an issue on the Actor's Issues tab – I answer quickly.

# Actor input Schema

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

Domains (example.com), sub-folders (example.com/blog/*) or single pages (https://example.com/pricing). '*.example.com' includes all subdomains.

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

Unique URLs: every URL ever archived for the target (once, with its first capture) – great for SEO migrations, finding old pages, redirects and lost content. All snapshots: every capture. Content changes only: skip captures whose content did not change. Closest snapshot: for a list of pages, is it archived and which snapshot is closest to your date?

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

Auto: a domain covers the whole host, a URL with a path only that page; 'example.com/blog/\*' covers the folder. You can force a match type here.

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

Only captures on or after this date (YYYY, YYYY-MM or YYYY-MM-DD). In 'Closest snapshot' mode, the date to look near.

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

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

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

Status the page had when it was archived.

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

Only captures of this content type.

## `urlContains` (type: `string`):

Only URLs containing this text, e.g. /blog/ or .pdf

## `excludeAssets` (type: `boolean`):

Drop images, scripts, styles and fonts – keep pages and documents.

## `onePer` (type: `string`):

Only for 'All snapshots': thin out frequent captures, e.g. one per month for a price or content history.

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

Large domains can have millions of archived URLs. You only pay for delivered results.

## `maxConcurrency` (type: `integer`):

The Wayback Machine limits request rates; 2 is a safe value.

## Actor input object example

```json
{
  "targets": [
    "apify.com"
  ],
  "mode": "urls",
  "matchType": "auto",
  "statusFilter": "ok",
  "mimeFilter": "all",
  "excludeAssets": false,
  "onePer": "none",
  "maxResultsPerTarget": 1000,
  "maxConcurrency": 2
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "targets": [
        "apify.com"
    ]
};

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

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

```

## MCP server setup

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

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/pB7NnZpvannuMFrxG/builds/mhT3bLhQDQIbLgSsh/openapi.json
