# Wayback Machine Snapshots & Archived URLs Extractor (`ponderable_ironwork/wayback-machine-snapshots`) Actor

Get Internet Archive Wayback Machine capture history for URLs and domains via the official CDX API: snapshot dates, status codes, archive links, first/last seen, and every archived URL on a domain.

- **URL**: https://apify.com/ponderable_ironwork/wayback-machine-snapshots.md
- **Developed by:** [Zac Vincent](https://apify.com/ponderable_ironwork) (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

from $0.70 / 1,000 results

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 Scraper: Snapshots, Archived URLs & Domain History (CDX API)

**Pull the full capture history of any page from the Internet Archive's Wayback Machine, or list every URL ever archived on a domain.** Each row has the capture date, HTTP status, MIME type, size and a direct archive link. It's built on the official **Wayback CDX API**, so it's fast and reliable and doesn't scrape HTML. **$1.00 per 1,000 results.**

Three modes:

1. **Snapshots**: every capture of a URL. Deduplicate to *content changes only*, or keep one per hour, day, month or year.
2. **Archived URLs on a domain**: every unique URL the Wayback Machine has seen for a domain and its subdomains. Useful for **SEO site migrations, recovering lost pages and security recon**.
3. **Summary**: one row per site with first seen, last seen, archive age in years and the years that have captures. It's a quick domain-history and trust check.

- ✅ Date range, HTTP 200 only and MIME type filters (e.g. only PDFs)
- ✅ Handles domains with millions of archived URLs (resumable CDX paging)
- ✅ No proxies; respects the Archive's rate limits
- 💲 **$1.00 per 1,000 results**

### How to get Wayback Machine snapshots in bulk

1. Add pages (`example.com/pricing`) or domains (`example.com`) to **URLs or domains**. The protocol is optional.
2. Pick **What to extract**: *Snapshots*, *Archived URLs* or *Summary*.
3. Optionally set **From / To** dates (`2020`, `2020-06` or `2020-06-15`), **Deduplicate snapshots** (*Content changes* is best for tracking edits) and **Only successful captures**.
4. Set **Max results per target** to control cost (default 1,000), then click **Start**.

#### Input example

```json
{ "targets": ["apify.com", "example.com/pricing"], "mode": "snapshots", "collapse": "digest", "from": "2020", "onlyStatus200": true }
```

#### Output example (snapshots mode, real run)

```json
{
  "input": "apify.com",
  "originalUrl": "http://www.apify.com:80/",
  "timestamp": "20070531101538",
  "capturedAt": "2007-05-31T10:15:38Z",
  "statusCode": 200,
  "mimeType": "text/html",
  "contentDigest": "EE6FCHP3MKBC3EV5D5Q4WQJNZNVUTNU6",
  "lengthBytes": 1013,
  "archiveUrl": "https://web.archive.org/web/20070531101538/http://www.apify.com:80/"
}
```

#### Output example (summary mode)

```json
{ "input": "apify.com", "archived": true, "firstCapturedAt": "2007-05-31T10:15:38Z", "lastCapturedAt": "2026-11-21T14:19:23Z", "archiveAgeYears": 19, "yearsWithCaptures": [2007, 2008, 2011, 2012, 2013] }
```

### Use cases

- **SEO**: build redirect maps before a migration, find pages that used to rank, recover deleted content and old backlink targets
- **Competitive research**: see how a competitor's pricing page or homepage changed over time (`collapse: digest`)
- **Due diligence**: check a domain's history before buying it or partnering with its owner
- **Security and OSINT**: discover forgotten endpoints and files on your own domains

### Why use this Actor?

| | This Actor | Browsing web.archive.org | Scraping archived HTML |
|---|---|---|---|
| Many URLs/domains per run | ✅ | One at a time | ✅ but slow |
| Every archived URL on a domain | ✅ (incl. subdomains) | Limited UI | ❌ |
| Change-only dedupe (content digest) | ✅ | ❌ | DIY |
| Output | JSON, CSV, Excel | Web page | Raw HTML |
| Price | **$1.00 per 1,000 results** | Free, manual | Proxy and compute costs |

### Use it from AI agents (MCP) and code

**MCP (Claude, Cursor, VS Code, ChatGPT and other MCP clients).** Add this Actor as a single tool through Apify's hosted MCP server. You sign in with your Apify account on first use:

```json
{
  "mcpServers": {
    "apify-wayback-machine-snapshots": {
      "url": "https://mcp.apify.com?tools=ponderable_ironwork/wayback-machine-snapshots"
    }
  }
}
```

The tool appears as `ponderable_ironwork--wayback-machine-snapshots`. Try a prompt like: *"When was example.com first archived, and how did its /pricing page change each year?"*

**API (one call, results back as JSON).** Replace `<APIFY_TOKEN>` with your token from Apify Console → Settings → API & Integrations:

```bash
curl -X POST "https://api.apify.com/v2/acts/ponderable_ironwork~wayback-machine-snapshots/run-sync-get-dataset-items?token=<APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"targets": ["example.com/pricing"], "mode": "snapshots", "collapse": "year"}'
```

The Apify [JavaScript](https://docs.apify.com/api/client/js/) and [Python](https://docs.apify.com/api/client/python/) clients, **schedules**, **webhooks** and the **Make, n8n and Zapier** integrations work too. Every run's dataset downloads as JSON, CSV, Excel or XML.

### Pricing

**$1.00 per 1,000 results** (lower on higher Apify plans), platform usage included. *Max results per target* caps the cost for each target.

### FAQ

**Does it download page content?** No. It returns capture metadata and archive links; open `archiveUrl` to view a page as it was.

**What about big domains?** Archived-URL lists can run to millions of rows. The Actor pages through them with the CDX resume key, so set *Max results per target* to what you need.

**Is this allowed?** It uses the Internet Archive's public CDX API at a polite rate (2 parallel requests, automatic back-off). If it's valuable to you, please consider [donating to the Internet Archive](https://archive.org/donate).

### More data tools from this developer

- [Career Page Jobs API](https://apify.com/ponderable_ironwork/ats-jobs-feed): every open job from Greenhouse, Lever, Ashby, Workable, Recruitee & Workday boards, $1.50 per 1,000 jobs
- [Bulk PageSpeed Insights & Core Web Vitals](https://apify.com/ponderable_ironwork/pagespeed-bulk-audit): Lighthouse scores and real-user LCP/INP/CLS for hundreds of URLs, $3.00 per 1,000 audits
- [Sitemap URL Extractor](https://apify.com/ponderable_ironwork/sitemap-urls-extractor): every URL from a site's XML sitemaps with lastmod and hreflang, $0.50 per 1,000 URLs
- [Bulk Domain Availability, RDAP WHOIS & DNS](https://apify.com/ponderable_ironwork/domain-rdap-dns-checker): availability, registrar, expiry, MX/SPF/DMARC, $1.00 per 1,000 domains
- [OpenAlex Academic Papers Search](https://apify.com/ponderable_ironwork/openalex-papers-search): 250M+ papers with citations, abstracts and BibTeX, $1.00 per 1,000 papers
- [Hacker News Search & Comment Threads](https://apify.com/ponderable_ironwork/hacker-news-search): stories and full comment threads by keyword, domain or date, $0.60 per 1,000 results
- [RSS, Atom & Podcast Feed Reader](https://apify.com/ponderable_ironwork/rss-feed-reader): any feed to clean JSON with auto-discovery, $0.80 per 1,000 items

Found a bug or need a field? Open an issue on the **Issues** tab. Fixes usually ship within days.

# Actor input Schema

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

Pages (example.com/pricing) or domains (example.com). Protocol is optional.

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

Snapshots: capture history of each URL. Archived URLs: every unique URL the Wayback Machine has for the domain (incl. subdomains) — great for SEO migrations, finding lost pages and security recon. Summary: one row per target with first/last capture and years archived.

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

Earliest capture date: YYYY, YYYY-MM or YYYY-MM-DD, e.g. 2019 or 2021-06. Empty = from the first capture.

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

Latest capture date: YYYY, YYYY-MM or YYYY-MM-DD. Empty = up to today.

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

Snapshots mode only. 'Content changes' keeps a capture only when the page content changed.

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

Skip redirects (3xx) and error pages (4xx/5xx) so every row is a real archived page.

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

Keep only captures of these content types, e.g. text/html for web pages or application/pdf for documents. Empty = all types.

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

Caps rows (and cost) per URL or domain. Use 50-100 for a quick look. 0 = up to 100,000.

## Actor input object example

```json
{
  "targets": [
    "apify.com"
  ],
  "mode": "snapshots",
  "collapse": "year",
  "onlyStatus200": false,
  "maxResultsPerTarget": 50
}
```

# Actor output Schema

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

All items produced by the run.

## `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"
    ],
    "collapse": "year",
    "maxResultsPerTarget": 50
};

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

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

```

## MCP server setup

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