# Wayback Machine Site History: Snapshots & First Seen (`fjordlabs/wayback-history`) Actor

Look up any domain or URL in the Internet Archive's Wayback Machine via the official CDX API. Get every archived snapshot (date, status, MIME type, digest, archive link) or a history summary: first and last seen, snapshot count, pages, versions, captures per year. Errors are free.

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

## Pricing

from $0.35 / 1,000 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 Site History: Snapshots, First Seen, Yearly Counts

See the **full archive history of any website or page** from the Internet Archive's **Wayback Machine**, as a clean table. Enter domains or URLs and get either **every archived snapshot** (capture date, original URL, HTTP status, MIME type, content digest, size, and links to the archived copy) or a **history summary per site**: first seen, last seen, number of snapshots, distinct pages, distinct content versions and **captures per year**. Or ask for the **snapshot closest to a date** ("what did this page look like on 1 January 2020?").

It uses the Wayback Machine's **official, keyless CDX API**, so there's no login, no browser and no proxy: fast, cheap and reliable. **$0.50 per 1,000 snapshots, $0.004 per site summary.** Errors and sites that were never archived are free.

![Example output of Wayback Machine History Scraper: a table with input, firstSeen, lastSeen, snapshotCount, distinctVersions and more](https://api.apify.com/v2/key-value-stores/bp61pnREuVYPEvqbu/records/output-wayback-history)

### Who it's for

- **Domain investors and buyers:** check a domain's age and past use before you buy it: when it was first archived, how active it was each year, which pages it had, and whether it was parked or redirected (status codes).
- **SEO specialists and agencies:** recover old URLs of a site after a migration (match type **host** + collapse **one per URL**), find lost pages for redirects, see how often a page's content changed.
- **Researchers, journalists and OSINT analysts:** build timelines of a website, prove what a page said at a given date, and get stable `web.archive.org` links for citations.
- **Competitor and brand monitoring:** how often did a competitor's pricing page change (collapse **content changes**)? When did their site launch a section?
- **Data and scraping pipelines:** a list of archived URLs with `rawUrl` links (the original archived bytes without the Wayback toolbar) to feed into another scraper.
- **AI agents:** a single-purpose tool over MCP: domain in, clean JSON history out.

### How it works

1. Add **domains or URLs**, one per line: `apify.com`, `https://apify.com/store`, `example.com/blog/*` (everything under a folder) or `*.example.com` (all subdomains).
2. Choose the **output**: snapshots, summary, both, or the closest snapshot to a date.
3. Optionally narrow it down: **match type** (exact URL, prefix, host, domain), **from/to dates** (`2015`, `2020-06-01` or `5 years`), **collapse** (content changes only, one per day/month/year, or one row per distinct URL), **HTTP status** (200, 2xx, 3xx, 4xx, 5xx) and **content type** (HTML, PDF, images, …). Advanced users can add raw CDX filters such as `!statuscode:404`.
4. Click **Start** and export to CSV, Excel or JSON, or call the Actor from the API.

### Input example

```json
{
  "urls": ["apify.com", "https://example.com/", "apify.com/store/*"],
  "mode": "both",
  "collapse": "digest",
  "statusFilter": "200",
  "dateFrom": "2018",
  "maxSnapshotsPerInput": 20,
  "maxSnapshots": 60
}
```

### Output example

One row per snapshot:

```json
{
  "type": "snapshot",
  "input": "apify.com",
  "url": "https://apify.com/",
  "urlKey": "com,apify)/",
  "timestamp": "20261104215254",
  "capturedAt": "2026-11-04T21:52:54Z",
  "statusCode": 200,
  "mimeType": "text/html",
  "isRevisit": false,
  "digest": "47S4AYNCPSZ5YJP6AO24CGAGMOCA7ATM",
  "length": 87683,
  "archiveUrl": "https://web.archive.org/web/20261104215254/https://apify.com/",
  "rawUrl": "https://web.archive.org/web/20261104215254id_/https://apify.com/",
  "matchType": "exact",
  "scrapedAt": "2026-11-08T02:22:33Z"
}
```

And one summary row per input (real run, captures with status 200 since 2018, content changes only):

```json
{
  "type": "summary",
  "input": "apify.com",
  "query": "apify.com",
  "matchType": "exact",
  "firstSeen": "2018-01-05T04:58:47Z",
  "lastSeen": "2026-11-04T21:52:54Z",
  "firstSnapshotUrl": "https://web.archive.org/web/20180105045847/https://www.apify.com/",
  "lastSnapshotUrl": "https://web.archive.org/web/20261104215254/https://apify.com/",
  "snapshotCount": 927,
  "distinctUrls": 1,
  "distinctVersions": 923,
  "yearsWithCaptures": 9,
  "missingYears": [],
  "yearlyCounts": {"2018": 65, "2019": 97, "2020": 65, "2021": 57, "2022": 63, "2023": 119, "2024": 178, "2025": 149, "2026": 134},
  "statusCounts": {"200": 927},
  "topMimeTypes": {"text/html": 927},
  "complete": true,
  "filters": {"dateFrom": "2018", "dateTo": null, "collapse": "digest", "statusFilter": "200", "mimeTypeFilter": "any", "customFilters": []}
}
```

`statusCode` is `null` for `warc/revisit` records (a capture whose content equals an earlier one; `isRevisit: true`). Choose HTTP status **Any except revisits** or **2xx** to drop them. In **Closest** mode each row also has `closestTo`.

Inputs that can't be queried (invalid URL, site excluded from the archive, archive.org errors) and inputs with **no captures** get a row with an `error` message and **are not charged**. A run summary is saved as `SUMMARY` in the key-value store.

### Pricing

Pay only for results:

| Event | Price |
|---|---|
| Actor start | $0.00005 |
| Snapshot (one snapshot row, also in Closest mode) | $0.0005 (**$0.50 per 1,000 snapshots**) |
| Site summary (one summary row per input) | $0.004 |

A history summary of 100 domains costs $0.40. 10,000 snapshots cost $5. Counting captures for a summary is included in its price, however many there are. Error rows and inputs without captures are **never charged**. Use **Max snapshots** or the run's max charge to control spend; the Actor stops when the limit is reached.

### Notes and limits

- **Data source:** the Internet Archive's public Wayback CDX server and availability API. The Actor lists captures and links to them; it doesn't download the archived pages (open `archiveUrl` or `rawUrl` for that).
- **Polite by design:** at most one request every 1.5 seconds per run (slower after a 429), up to 3 inputs in parallel, retries with backoff on 429/5xx, and a clear user agent. archive.org is a non-profit; please don't run thousands of domain-wide queries at once.
- **Speed:** archive.org answers simple queries in 1–5 s, but **host/domain** queries on big sites, or with filters across many years, can take up to a minute per request, and occasionally time out. Narrow them with dates, filters or **prefix** match. A request that keeps failing becomes a free error row.
- **Large histories:** a summary counts up to **Max captures counted per summary** (50,000 by default, up to 1 million). Beyond that it's marked `complete: false` with a note; counts are lower bounds, and for an exact URL `lastSeen` is still exact. Popular homepages have hundreds of thousands of captures; use **collapse** (e.g. content changes or one per day) to make the counts meaningful and fast.
- **Collapse** works on neighbouring results, as the CDX API does: "content changes only" drops a capture whose digest equals the previous capture of the same URL.
- **Excluded sites:** site owners can ask the Internet Archive to hide their site; those queries return a free error row.
- **Personal data:** the Actor returns URLs and capture metadata only, no page content. Archived URLs can occasionally contain e-mail addresses or names in query strings; handle the output under your own GDPR obligations.

### Changelog

- **2026-11-21:** Public on the Apify Store.
- **2026-11-10:** Invalid input now ends as a successful run with one free error row that says what to fix, instead of a failed run.
- **2026-11-08:** Built, reviewed and tested on Apify before launch.

### How to use Wayback Machine Site History

1. Add **domains or URLs**, one per line (`apify.com`, `example.com/blog/*`, `*.example.com`).
2. Pick the **output**: snapshots, a history summary per site, both, or the closest snapshot to a date.
3. Optionally set **dates**, **collapse** (content changes, one per day/month/year, one per URL) and **status/content type** filters.
4. Click **Start** and export the history to CSV/Excel or Google Sheets.

### Use it from code (API)

Run it from Python with the official client (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("fjordlabs/wayback-history").call(run_input={'urls': ['apify.com'], 'mode': 'summary'})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

Or with one HTTP call that returns the results directly:

```bash
curl -X POST "https://api.apify.com/v2/acts/fjordlabs~wayback-history/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" -d '{"urls": ["apify.com"], "mode": "summary"}'
```

It also works with Make, Zapier, n8n, Google Sheets and webhooks through Apify's integrations.

### Use with AI agents (MCP)

Agents can call this Actor as a tool through Apify's MCP server (mcp.apify.com). Add `fjordlabs/wayback-history` to the server's Actors. Results are clean JSON with a small default size, so they fit well in an agent's context.

### FAQ

**Where does the data come from?**
From the Internet Archive's official, keyless Wayback CDX API and availability API. No login, browser or proxy is used.

**How do I check how old a domain is?**
Use mode Summary: firstSeen is the first capture in the Wayback Machine, and yearlyCounts shows how active the site was each year.

**Does it download the archived pages?**
No. It lists captures with links: archiveUrl opens the archived page and rawUrl gives the original archived bytes without the Wayback toolbar.

**Do I pay for sites that were never archived?**
No. Inputs without captures, sites excluded from the archive and archive.org errors become free rows.

**Am I charged for errors?**
No. Rows that fail are never charged; you only pay for results.

### More from fjordlabs

- [Google Trends Scraper](https://apify.com/fjordlabs/google-trends)
- [Google Trends Trending Now](https://apify.com/fjordlabs/google-trending-now)
- [Google News Scraper](https://apify.com/fjordlabs/google-news)
- [Google Play Reviews & App Data Scraper](https://apify.com/fjordlabs/google-play-reviews)
- [App Store Reviews & App Data Scraper (iOS)](https://apify.com/fjordlabs/app-store-reviews)
- [Bulk PageSpeed & Core Web Vitals Audit](https://apify.com/fjordlabs/pagespeed-audit)
- [Google Autocomplete Keyword Expander](https://apify.com/fjordlabs/google-autocomplete)
- [App Store & Google Play Search Rank + Top Charts (ASO)](https://apify.com/fjordlabs/app-store-search-charts)
- [SEO & AI-Search Readiness Audit](https://apify.com/fjordlabs/seo-ai-readiness-audit)
- [Website Tech Stack Detector](https://apify.com/fjordlabs/tech-stack-detector)
- [Steam Reviews & Game Data Scraper](https://apify.com/fjordlabs/steam-reviews)
- [Chrome Web Store Extension Details Scraper](https://apify.com/fjordlabs/chrome-web-store)
- [Google Ads Transparency Center Scraper](https://apify.com/fjordlabs/google-ads-transparency)
- [Hacker News Scraper](https://apify.com/fjordlabs/hacker-news)
- [Shopify Store Products Scraper](https://apify.com/fjordlabs/shopify-products)
- [Sitemap URL Extractor](https://apify.com/fjordlabs/sitemap-extractor)
- [EU Public Tenders Scraper (TED)](https://apify.com/fjordlabs/eu-tenders-ted)
- [Domain Intel: WHOIS/RDAP, DNS, SSL, SPF/DMARC](https://apify.com/fjordlabs/domain-intel)
- [App Store & Google Play App Details + Developer Portfolio](https://apify.com/fjordlabs/app-details-portfolio)
- [Website Screenshot API: Full Page, Mobile, PDF](https://apify.com/fjordlabs/website-screenshot)

# Actor input Schema

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

Websites or pages to look up in the Wayback Machine, one per line: apify.com, https://apify.com/store, example.com/blog/\* (prefix) or \*.example.com (all subdomains). Wildcards override 'Match type' for that line.

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

Snapshots: one row per archived capture. Summary: one history row per input (first/last seen, snapshot count, distinct pages and versions, captures per year). Both: snapshots and a summary. Closest: the one capture nearest to 'Closest to date' per URL.

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

exact: only this URL. prefix: every URL that starts with it (a folder like /blog/). host: every page on this host name. domain: the host and all its subdomains. Host and domain queries on big sites are slow on archive.org's side; use dates and filters to narrow them.

## `dateFrom` (type: `string`):

Only captures on or after this date: YYYY, YYYY-MM, YYYY-MM-DD, YYYYMMDDhhmmss, or a period like '30 days', '6 months', '5 years'.

## `dateTo` (type: `string`):

Only captures up to and including this date (same formats). '2020' includes all of 2020.

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

Thin out the results. Content changes: skip captures whose content is identical to the previous one (same digest). Per hour/day/month/year: at most one capture per URL per period. One per URL: list every distinct archived URL once (great with host/domain match).

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

Keep only captures with this HTTP status. 'Any except revisits' drops the duplicate 'warc/revisit' records.

## `mimeTypeFilter` (type: `string`):

Keep only captures of this type.

## `customFilters` (type: `array`):

Extra filters in the CDX server's syntax \[!]\[~]field:regex, field = urlkey, timestamp, original, mimetype, statuscode, digest or length. Examples: '!statuscode:404', 'original:.\*.pdf$'. All filters must match.

## `closestTo` (type: `string`):

For 'Closest snapshot to a date': the date to look around, e.g. 2020-01-01. Empty = now (the newest capture).

## `maxSnapshotsPerInput` (type: `integer`):

Stop listing snapshots for one domain/URL after this many rows. Each snapshot is one result row.

## `maxSnapshots` (type: `integer`):

Stop after this many snapshot rows across all inputs.

## `maxCapturesPerSummary` (type: `integer`):

A summary reads the capture index (10,000 rows per request) up to this many captures. Popular sites have millions; the summary then says complete = false and its counts are lower bounds (for an exact URL, lastSeen is still exact). Counting is included in the summary price.

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

How many inputs to query at the same time (1–3). Requests to archive.org are spaced out politely either way.

## Actor input object example

```json
{
  "urls": [
    "apify.com",
    "https://example.com/"
  ],
  "mode": "both",
  "matchType": "exact",
  "collapse": "digest",
  "statusFilter": "any",
  "mimeTypeFilter": "any",
  "maxSnapshotsPerInput": 50,
  "maxSnapshots": 200,
  "maxCapturesPerSummary": 50000,
  "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 = {
    "urls": [
        "apify.com",
        "https://example.com/"
    ],
    "mode": "both",
    "collapse": "digest",
    "maxSnapshotsPerInput": 50,
    "maxSnapshots": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("fjordlabs/wayback-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",
        "https://example.com/",
    ],
    "mode": "both",
    "collapse": "digest",
    "maxSnapshotsPerInput": 50,
    "maxSnapshots": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("fjordlabs/wayback-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",
    "https://example.com/"
  ],
  "mode": "both",
  "collapse": "digest",
  "maxSnapshotsPerInput": 50,
  "maxSnapshots": 200
}' |
apify call fjordlabs/wayback-history --silent --output-dataset

```

## MCP server setup

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