# Wayback Machine Scraper - Domain History, Snapshots & URLs (`technicaldost/wayback-machine-scraper-archived-urls`) Actor

Check any domain's Wayback Machine history in one row: first archived date, domain age, captures by year, gap years, status codes, versions and past titles. Also list snapshots, every archived URL of a site, or archived page content as Markdown.

- **URL**: https://apify.com/technicaldost/wayback-machine-scraper-archived-urls.md
- **Developed by:** [Technical Dost Solutions](https://apify.com/technicaldost) (community)
- **Categories:** SEO tools, Developer tools, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 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.

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 - Domain History, Snapshots & URLs

**Try it in under 30 seconds for less than $0.02:** the prefilled input returns a full archive history for `apify.com` and `stripe.com`.

**New: Domain history mode.** Enter any list of domains and get **one decision row per domain**: first archived date, domain age in years, days captured, captures by year, gap years (when the site went dark), HTTP status mix, number of distinct content versions, last healthy capture, whether it redirects today, and optionally its homepage title year by year. Ideal for **expired-domain due diligence, website age checks, M\&A and brand research, and spotting spammy domain pasts** before you buy.

Scrape the Internet Archive's Wayback Machine in four ways from one Actor: **summarise a domain's whole archive history**, **list every snapshot of a page**, **discover every URL ever archived on a domain**, or **extract the archived content of a page as it looked on any date**. Built for SEO audits, expired-domain research, competitor history, compliance evidence and content recovery.

- **Snapshots:** capture time, archived link, HTTP status, file type, size and content hash for any URL, filtered by date, status and file type. Use *Changes only* to keep a capture only when the page actually changed.
- **Archived URLs:** every distinct URL of a site or path with its first capture. Use it to find lost pages, old sitemaps and redirect targets, or to audit a domain before you buy it.
- **Page content:** the capture closest to a date, with title, meta description, H1, clean text, **Markdown** and outbound links. The bytes come straight from the archive, with no Wayback toolbar.

No login, no proxy and no browser. It uses the Internet Archive's public CDX and Availability APIs, with polite, sequential requests.

### What can I do with it?

| Goal | Mode | Example settings |
|---|---|---|
| Check a domain's age and history before buying it | Domain history | `urls: ["example.com"]`, `includeTitles: true` |
| Bulk website-age check for a lead list | Domain history | `urls: ["a.com", "b.com", ...]` |
| See how often a page was archived | Snapshots | `urls: ["example.com"]`, collapse `One per year` |
| Track when a pricing page changed | Snapshots | `urls: ["competitor.com/pricing"]`, collapse `Changes only` |
| Find all old URLs of a site (SEO, 404 recovery) | Archived URLs | `urls: ["example.com"]`, status `Any status` |
| Find archived PDFs on a site | Archived URLs | `mimeFilter: "pdf"` |
| Read a page as it was in 2019 | Page content | `timestamp: "2019-06-15"` |
| Get alerts when a page is newly archived | Snapshots + monitor | `newestFirst: true`, `onlyNew: true`, scheduled |

### Output examples

A domain-history row:

```json
{
  "type": "history",
  "inputUrl": "apify.com",
  "firstSeen": "2015-03-21T00:00:00Z",
  "lastSeen": "2026-11-19T00:00:00Z",
  "domainAgeYears": 11.7,
  "captureDays": 2140,
  "activeYears": 12,
  "capturesByYear": { "2015": 41, "2016": 88, "...": 0 },
  "gapYears": [],
  "statusCodes": { "200": 1890, "301": 250 },
  "uniqueVersions": 1702,
  "lastOkCapture": "2026-11-19T00:00:00Z",
  "currentlyRedirects": false,
  "titleHistory": [{ "year": 2025, "title": "Apify: Full-stack web scraping and data extraction platform", "archiveUrl": "https://web.archive.org/web/..." }],
  "archiveUrl": "https://web.archive.org/web/20261119.../http://apify.com/"
}
```

A snapshot or archived-URL row:

```json
{
  "type": "snapshot",
  "inputUrl": "example.com",
  "originalUrl": "http://example.com/",
  "urlKey": "com,example)/",
  "timestamp": "20020120142510",
  "capturedAt": "2002-01-20T14:25:10Z",
  "archiveUrl": "https://web.archive.org/web/20020120142510/http://example.com/",
  "rawArchiveUrl": "https://web.archive.org/web/20020120142510id_/http://example.com/",
  "statusCode": 200,
  "mimeType": "text/html",
  "digest": "HT2DYGA5UKZCPBSFVCV3JOBXGW2G5UUA",
  "lengthBytes": 1792,
  "scrapedAt": "2026-11-10T08:00:00.000Z"
}
```

A page-content row adds `title`, `metaDescription`, `canonicalUrl`, `h1`, `language`, `text`, `markdown`, `wordCount`, `links` and `linkCount`.

### How much does it cost?

- **Domain history:** **$0.006 per domain** ($6 per 1,000 domains), title history included.
- **Snapshots, archived URLs and page content:** **$0.0008 per result** saved to the dataset, which is **$0.80 per 1,000 results**.

There is no extra start fee beyond Apify's negligible platform start event. A page-content row counts as one result.

Not charged: duplicates, captures already delivered in monitor mode, URLs with no archived copy, and failed requests.

### Input

| Field | What it does |
|---|---|
| Mode | `history` (domain summary), `snapshots`, `urls` (archived URLs) or `content` (archived page). |
| Include title history | Domain history mode: homepage `<title>` once per year for the latest 12 years. |
| URLs or domains | Pages or domains. Wayback links are accepted too. |
| Match type | Auto, Exact, Prefix (a path and below), Host (whole site), Domain (site plus subdomains). |
| From and To date | `2015`, `2015-06` or `2015-06-30`. |
| Collapse | Changes only, or one capture per year, month, day or hour. |
| HTTP status | 200 (default), 2xx, 3xx, 4xx, 5xx or any. |
| File type filter | `text/html`, `application/pdf`, or a fragment such as `pdf`. |
| Newest first | Most recent captures first (up to 10,000 per URL). |
| Snapshot date | Content mode: the capture closest to this date. Empty means the latest. |
| Max results / per URL | Hard caps; you never pay for more. |
| Only new results | Monitor mode: deliver only captures or URLs not delivered before. |

### Output views

- **Domain history:** one row per domain with age, first/last archived, gaps, status mix, versions and redirects.
- **Captures and URLs:** capture time, original URL, status, type, size, content hash and Wayback link.
- **Archived page content:** title, meta description, H1, words, links and Markdown.
- **All fields (JSON)** and **CSV** exports.
- **Run summary:** URLs processed, results found and saved, duplicates, already-seen, CDX requests and errors (`RUN_SUMMARY` in the key-value store).

### FAQ

**Why are some pages missing?** The Wayback Machine archives only what its crawlers or users saved, and site owners can exclude their sites. Excluded or never-archived URLs are reported in the run summary and are not charged.

**How far back does it go?** To the first capture the Internet Archive holds, often the late 1990s.

**Can I get the full history of a big site?** Yes. Snapshots and Archived URLs page through the index with resume keys. Set *Max results* to what you need. Large domains can have millions of captures.

**Why are requests sequential?** The Internet Archive is a non-profit that serves everyone. This Actor sends about one request per second and backs off when asked, so it stays reliable and polite. Please don't use it to mirror whole sites.

**Can an AI agent use it?** Yes. The input is simple, the output is structured JSON, and Page content mode returns Markdown ready for an LLM. Call it through the Apify API, MCP server, Make, n8n or Zapier.

*This Actor is not affiliated with or endorsed by the Internet Archive.*

Found a problem or need a field? Open an issue on the Issues tab. Issues are usually answered within a day.

***

Found it useful? A short review on the Store helps other buyers find it — and issues get fixed fast on the Issues tab.

# Actor input Schema

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

Domain history: one decision row per domain — first and last archive date, domain age, captures by year, gap years, HTTP status mix, content versions, redirect status and optional homepage title history (great for expired-domain due diligence and website age checks). Snapshots: every capture of a URL. Archived URLs: every distinct URL ever archived on a site. Page content: the archived page closest to a date, with title, text, Markdown and links.

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

Pages or domains, for example example.com, https://example.com/pricing. Wayback links (web.archive.org/web/...) are accepted too.

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

Auto uses Exact for snapshots and content, and Host for archived URLs. Prefix matches everything under a path, Host the whole hostname, Domain the hostname plus all subdomains.

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

Optional. Earliest capture date: 2015, 2015-06 or 2015-06-30.

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

Optional. Latest capture date: 2020, 2020-12 or 2020-12-31.

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

Snapshots mode. Changes only keeps a capture only when the page content changed. Year, month, day or hour keep at most one capture per period. Ignored in Archived URLs mode (always one row per URL).

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

Keep captures with this HTTP status. Use Any to include redirects and 404s (useful for finding removed pages).

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

Optional. A full type such as text/html or application/pdf, or a fragment such as pdf, image or json.

## `newestFirst` (type: `boolean`):

Return the most recent captures first (up to 10,000 per URL). Off returns oldest first and pages through everything.

## `timestamp` (type: `string`):

Page content mode: return the capture closest to this date, for example 2019-06-15. Leave empty for the latest capture.

## `maxItems` (type: `integer`):

Stop after this many results in total. You never pay for more.

## `maxItemsPerUrl` (type: `integer`):

Optional cap per input URL so one large site cannot use the whole budget.

## `onlyNew` (type: `boolean`):

Return and charge only captures or URLs this Actor has not returned to you before for the same settings. Schedule it to get alerts when a page is newly archived.

## `monitorName` (type: `string`):

Optional name of the key-value store that remembers delivered results. Use different names for independent monitors.

## `includeTitles` (type: `boolean`):

Fetch the archived homepage once per year (latest 12 years) and return its <title>. Shows what the site used to be — useful for spotting past owners, niche changes or spam history. Adds about one request per year per domain.

## Actor input object example

```json
{
  "mode": "history",
  "urls": [
    "apify.com",
    "stripe.com"
  ],
  "matchType": "auto",
  "collapse": "year",
  "statusFilter": "200",
  "newestFirst": false,
  "maxItems": 50,
  "onlyNew": false,
  "includeTitles": false
}
```

# Actor output Schema

## `history` (type: `string`):

One row per domain: first/last archived, age, captures by year, gaps, status mix, versions, redirects and title history.

## `overview` (type: `string`):

Capture time, original URL, HTTP status, file type, size, content hash and Wayback link.

## `content` (type: `string`):

Title, meta description, H1, word count, links and Markdown of archived pages (Page content mode).

## `fullJson` (type: `string`):

Every field of every result, including text, Markdown and outbound links.

## `csv` (type: `string`):

Spreadsheet export of the overview columns.

## `runSummary` (type: `string`):

URLs processed, results found and saved, duplicates, already-seen results, CDX requests and errors.

# 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 = {
    "mode": "history",
    "urls": [
        "apify.com",
        "stripe.com"
    ],
    "collapse": "year",
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("technicaldost/wayback-machine-scraper-archived-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 = {
    "mode": "history",
    "urls": [
        "apify.com",
        "stripe.com",
    ],
    "collapse": "year",
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("technicaldost/wayback-machine-scraper-archived-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 '{
  "mode": "history",
  "urls": [
    "apify.com",
    "stripe.com"
  ],
  "collapse": "year",
  "maxItems": 50
}' |
apify call technicaldost/wayback-machine-scraper-archived-urls --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,technicaldost/wayback-machine-scraper-archived-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/Gz2IXqhtz8OQ4L3g9/builds/ZeqBmOaq6qjft03LV/openapi.json
