# Wayback URL & Snapshot Extractor - Live Check (`digivibetech/wayback-url-snapshot-extractor`) Actor

Every archived URL of a domain from the Internet Archive's official CDX API: one row per unique URL with first and last seen, capture count, versions and snapshot links. Optional live check and redirect map for site migrations, and an only-new-since-last-run mode. $0.0009 per URL.

- **URL**: https://apify.com/digivibetech/wayback-url-snapshot-extractor.md
- **Developed by:** [DigiVibeTech](https://apify.com/digivibetech) (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

$0.90 / 1,000 unique archived url delivereds

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 URL & Snapshot Extractor - Live Check

**Wayback URL & Snapshot Extractor** — every archived URL of a domain from the Internet Archive's official CDX API: one row per unique URL with first and last seen, capture count, versions and snapshot links.

> **Try it free:** press **Start** — the prefilled input runs a small real job (up to 20 × unique archived url delivered, about $0.018 in events). Apify's free plan includes monthly platform credit, so a first test costs you nothing. You can also set a maximum cost per run.

- **What you get:** `url`, `firstSeen`, `lastSeen`, `captures`, `versions`, `archivedStatus`
- **Who it's for:** SEO teams, migration planners and researchers
- **Price:** $0.0009 per unique archived url delivered
- **Data source:** Uses the Internet Archive's official CDX API.

### What is Wayback URL & Snapshot Extractor?

List **archived URLs returned by the CDX API within your filters, capture-scan limit, output cap and runtime** for a domain, host or URL prefix, with **one row per unique URL** instead of one row per snapshot. Each row has the first and last capture date, the number of captures, how many distinct versions were archived, the archived HTTP status and links to the first and last snapshot.

Turn on the **live check** to see what each old URL does today (live, redirected, gone) and get a ready **redirect map** for a site migration or a 404 clean-up. Schedule it with **only new URLs since the last run** to monitor what gets archived.

Data comes from the Internet Archive's official **Wayback CDX API**. No login, no key, no archived page-body downloading. Optional live checks contact target sites.

### ✅ Why this one

- One row per unique URL, not one per snapshot: http/https, `www.` and case variants are merged, with first and last seen, captures and distinct versions on each row.
- $0.0009 per unique URL with no start fee.
- Only new URLs since the last run for schedules: repeat runs select URLs not previously delivered under the same state key. An interruption between delivery and state persistence can repeat a delivered URL.
- Data from the Internet Archive's official CDX API; targets with no captures or a busy archive are explained and not charged.

### 📸 Real-run screenshots

From real run `81rQi0NDdkbF7VXna` on Apify, 20 Nov 2026 (build 1.0.3). Images are rendered from that run's own input, dataset and charged events.

![Input of the real run](https://api.apify.com/v2/key-value-stores/8dx7mDMr71NbvtKdp/records/wayback-url-snapshot-extractor-std-01-input.png)
![Results table (dataset)](https://api.apify.com/v2/key-value-stores/8dx7mDMr71NbvtKdp/records/wayback-url-snapshot-extractor-std-02-results-table.png)
![One result item](https://api.apify.com/v2/key-value-stores/8dx7mDMr71NbvtKdp/records/wayback-url-snapshot-extractor-std-03-result-item.png)
![Charged events and run cost](https://api.apify.com/v2/key-value-stores/8dx7mDMr71NbvtKdp/records/wayback-url-snapshot-extractor-std-04-run-cost.png)

### ⬇️ What data you get

- **Deduplicated**: http and https, `www.`, `:80` and case variants of the same page are merged (the archive's own URL key).
- **History per URL**: `firstSeen`, `lastSeen`, `captures`, `versions` (distinct contents), `statusCounts`, `firstSnapshotUrl`, `lastSnapshotUrl`.
- **Filters**: dates (`from` / `to`), archived status codes (200, 3xx), MIME types, skip images/CSS/JS/fonts, extensions, include and exclude regex.
- **Live check** (optional, free): `liveStatus`, `liveState` (live, redirected, gone, error, unreachable), `liveFinalUrl`; plus **REDIRECT_MAP** (CSV) and **GONE** in the key-value store.
- **Only new since last run**: for schedules; only delivered URLs are committed to the named state store. Capped runs leave undelivered URLs eligible on the next run. Reuse a state key only for the same monitoring scope; avoid concurrent runs sharing it. When adopting this delivery-state repair from an earlier build, choose a fresh `stateKey`: old state may include scanned but never delivered URLs. Existing named stores are not deleted or migrated automatically.

### 🎯 Use cases

- Recover every old URL of a domain for a redirect map
- Find pages that existed before a redesign
- Check which archived URLs are still live

#### Who it is for

- **SEO and site migrations**: find old URLs that still get links and need a 301, recover lost pages and content ideas.
- **Developers and security reviews**: map old endpoints, files and parameters of your own site.
- **Researchers and journalists**: see when pages appeared and how often they changed.

### ▶️ How to use

1. Open the actor; the input is prefilled with a small real example.
2. Replace it with your own input and set `maxUrls` to control the cost.
3. Press **Start**. Results appear in the **Output** tab (Overview view).
4. Download JSON, CSV or Excel, call the results via API, or schedule the actor.

#### Try it first

Run the example input below with `maxUrls: 5` and **Max cost per run** set to $0.01: five unique URLs cost $0.0045, and reading the archive and the live check are free.

### ⚙️ Input

| Field | Default | Meaning |
|---|---|---|
| `targets` | (required) | Domains or URL prefixes, up to 100 |
| `matchType` | domain | domain (with subdomains), host, prefix or exact |
| `from` / `to` | all | Capture date range, such as 2015 or 2020-06-30 |
| `statusCodes`, `mimeTypes` | all | Archive filters |
| `skipAssets`, `excludeExtensions`, `includeRegex`, `excludeRegex` | off | URL filters |
| `checkLive` | false | Check every URL today |
| `onlyNewSinceLastRun`, `stateKey` | false, default | Monitoring mode |
| `maxUrls` | 1000 | Most unique URLs delivered (charged) |
| `maxCapturesScanned` | 300000 | Archive rows read per target (free) |

#### Example input

```json
{
  "targets": [
    "https://www.iana.org/help/example-domains"
  ],
  "matchType": "exact",
  "from": "2024",
  "maxUrls": 5,
  "checkLive": false
}
```

### ⬆️ Output

Real run on 10 Nov 2026 of the current private build 1.0.1. Input: four exact IANA URLs, captures from 2026, `checkLive: true`, `maxUrls: 5`. Four unique URLs delivered and charged from 2,046 captures scanned. Excerpt of the dataset from that run:

```csv
url,captures,versions,archivedStatus,liveState,liveStatus,liveFinalUrl
https://www.iana.org/domains,424,23,200,live,200,https://www.iana.org/domains
https://www.iana.org/help/example-domains,779,33,200,live,200,https://www.iana.org/help/example-domains
https://iana.org/domains/example,678,2,301,redirected,200,http://www.iana.org/help/example-domains
https://www.iana.org/domains/reserved,165,21,200,live,200,https://www.iana.org/domains/reserved
```

Capture counts and live results change over time; this is a dated example, not a present-day measurement.

#### Example record (real run `REYB7lTtgH68XGbZe`, 2026-11-10)

```json
{
  "url": "https://www.iana.org/domains",
  "target": "www.iana.org/domains",
  "host": "www.iana.org",
  "path": "/domains",
  "firstSeen": "2026-01-01T01:54:35Z",
  "lastSeen": "2026-11-02T08:00:54Z",
  "captures": 424,
  "versions": 23,
  "archivedStatus": 200,
  "mimeType": "text/html",
  "statusCounts": {
    "200": 253,
    "302": 4,
    "revisit": 167
  },
  "firstSnapshotUrl": "https://web.archive.org/web/20260101015435/http://www.iana.org/domains",
  "lastSnapshotUrl": "https://web.archive.org/web/20261102080054/http://www.iana.org/domains",
  "urlKey": "org,iana)/domains",
  "liveState": "live",
  "liveStatus": 200,
  "liveFinalUrl": "https://www.iana.org/domains",
  "liveRedirects": 0,
  "extractedAt": "2026-11-10T21:44:32.743256+00:00"
}
```

### 💵 Pricing and cost estimate

| Event | Price |
|---|---|
| Unique archived URL delivered | $0.0009 |

You pay per **unique URL**, not per snapshot: a page captured 500 times is one row. Reading the archive, the live check, the redirect map and failed targets are free, and there is no start fee. 1,000 URLs cost $0.90. Set a maximum cost per run and the actor stops before it is reached.

#### Cost estimate

| Unique archived url delivereds | Cost |
|---|---|
| 100 | $0.090 |
| 1,000 | $0.90 |
| 10,000 | $9.00 |

You pay only for these events: no subscription.

### 🔌 Integrations and API

Run it from **n8n, Make, Zapier, Clay** or any tool that can call an HTTP endpoint, connect a **webhook** to get notified when a run finishes, or let AI agents call it through the **Apify MCP server** (`mcp.apify.com`).

Run it and get the results in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/digivibetech~wayback-url-snapshot-extractor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"targets": ["iana.org"], "maxUrls": 20}'
```

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("digivibetech/wayback-url-snapshot-extractor").call(run_input={"targets": ["iana.org"], "maxUrls": 20})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

#### Use it with Make, Zapier or a webhook

Schedule a weekly run with `onlyNewSinceLastRun` on, then read the dataset or the `GONE` record (`/key-value-stores/{id}/records/GONE`) and post it to your team.

### ⚠️ Limits

- The archive only knows what it captured. Pages behind logins or blocked from archiving are missing.
- Very large domains have millions of captures. Reading is limited by `maxCapturesScanned` (default 300,000 rows per target); narrow the dates or raise the limit for broader coverage; a complete archive or site inventory is not guaranteed.
- The CDX API can be slow or busy. The actor waits at least 2 seconds between archive requests and stops politely when the archive keeps refusing; the target is then listed in ERRORS and not charged.
- The live check uses HEAD requests from cloud servers. Sites that block automated requests can show as error. URLs disallowed by robots.txt are not checked (`liveState`: not checked).
- It lists URLs and capture data, not the archived page content.

### 🛡️ Data source, privacy and legality

Uses the Internet Archive's official CDX API.

#### Responsible use

Archive data is read only from the official CDX API, one request at a time. The live check follows each site's **robots.txt**, sends about one request per second per host, uses an honest User-Agent (`WaybackURLExtractor/1.0`) and never logs in, uses proxies or bypasses bot protection. The output holds URLs, dates and status codes, URLs and query strings can contain personal data; do not submit personal or confidential values. Please respect the Internet Archive's terms and support it if you use it often.

#### Processing, retention and payment

Read the [actor processing disclosure](PROCESSING.md), [Apify storage and retention rules](https://docs.apify.com/storage#data-retention), and [pay-per-event explanation](https://docs.apify.com/actors/monetize/pay-per-event). DigiVibeTech [website privacy](https://digivibetech.com/privacy/) covers the website and support; it does not yet contain an Apify-specific section.

Apify Store: not yet listed, no date promised. No seven-day free actor-run window or separate product key applies.

### ❓ FAQ

#### How much does Wayback URL & Snapshot Extractor cost?

$0.0009 per unique archived url delivered. See the cost estimate table above. There is no monthly fee.

#### Can I try it for free?

Yes. Press Start with the prefilled input: it runs a small real job (up to 20 × unique archived url delivered, about $0.018 in events). Apify's free plan includes monthly platform credit, which covers a first test.

#### Is it legal to use Wayback URL & Snapshot Extractor?

Uses the Internet Archive's official CDX API. Use the results lawfully (terms of the source, GDPR where it applies). This is not legal advice.

#### Can I use it through the API or an MCP server?

Yes. Every run is available through the Apify API and the official client libraries, and AI agents can call the actor through the Apify MCP server. See Integrations and API above.

#### Something does not work. Where do I get help?

Open an issue on the Issues tab or use [digivibetech.com/support](https://digivibetech.com/support/). Include the run ID so we can reproduce it.

### 📝 Changelog

#### 20 Nov 2026 — listing refresh

- README, listing text and input form restructured to the DigiVibeTech Apify quality standard v1. No feature or price change.

#### 1.0 — builds 1.0.1 to 1.0.2

- First build 2026-10-26, latest build 2026-11-10 (2 successful builds).

### 🧩 More DigiVibeTech actors

- [Website SEO & AI Search Audit (GEO/AEO)](https://apify.com/digivibetech/ai-search-citation-readiness)
- [Broken Link & Image Checker - Sitemap or Crawl](https://apify.com/digivibetech/broken-link-image-checker)
- [Bulk WHOIS & DNS Lookup - Domain Expiry, RDAP, SPF, DMARC](https://apify.com/digivibetech/domain-whois-rdap-dns)
- [Redirect Chain & Migration Map Checker](https://apify.com/digivibetech/redirect-chain-migration-checker)

*Maintained by DigiVibeTech. Questions or bugs: use the Issues tab or [digivibetech.com/support](https://digivibetech.com/support/); we reply within 2–5 business days.*

# Changelog

This Actor's version history is a separate document: https://apify.com/digivibetech/wayback-url-snapshot-extractor/changelog.md

# Actor input Schema

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

Domains (iana.org) or URL prefixes (https://iana.org/help/) to list from the Internet Archive. Up to 100 per run.

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

domain = iana.org and every subdomain; host = only the exact host; prefix = every URL that starts with the target; exact = one URL (its capture history).

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

Only captures from this date on: 2015, 2015-06 or 2015-06-30. Empty = from the first capture.

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

Only captures up to this date: 2020, 2020-12 or 2020-12-31. Empty = up to today.

## `statusCodes` (type: `array`):

Keep only captures with these HTTP status codes, such as 200 or 3xx. Empty = all.

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

Keep only these MIME types, such as text/html or application/pdf (filtered by the archive, so fewer captures are read). Empty = all.

## `skipAssets` (type: `boolean`):

Drop URLs ending in .css, .js, .png, .jpg, .gif, .svg, .ico, .webp, font and media files.

## `excludeExtensions` (type: `array`):

Extra file extensions to drop, without the dot (pdf, xml).

## `includeRegex` (type: `string`):

Keep only URLs that match this regular expression, such as /blog/|/news/.

## `excludeRegex` (type: `string`):

Drop URLs that match this regular expression, such as ?replytocom=|/wp-json/.

## `checkLive` (type: `boolean`):

Request each archived URL now (HEAD, robots.txt respected) and add liveStatus, liveState (live, redirected, gone, error) and liveFinalUrl. Also writes REDIRECT_MAP (CSV) and GONE to the key-value store. Free, but slower: about 1 URL per second per host.

## `sortBy` (type: `string`):

Order of the results (oldest first by default).

## `maxUrls` (type: `integer`):

Most unique URLs to deliver (each one is charged). Reading the archive is free.

## `maxCapturesScanned` (type: `integer`):

Safety limit on archive rows read per target (free). Big sites have millions of captures; narrow the dates or raise this limit.

## `onlyNewSinceLastRun` (type: `boolean`):

Deliver (and charge) only URLs that were not in an earlier run with the same targets and state key. The first run delivers everything and saves the list. Useful for scheduled monitoring.

## `stateKey` (type: `string`):

Name for the saved list used by 'Only URLs new since the last run'. Use a different key per monitoring task.

## Actor input object example

```json
{
  "targets": [
    "iana.org"
  ],
  "matchType": "domain",
  "statusCodes": [],
  "skipAssets": false,
  "checkLive": false,
  "sortBy": "firstSeen",
  "maxUrls": 20,
  "maxCapturesScanned": 300000,
  "onlyNewSinceLastRun": false,
  "stateKey": "default"
}
```

# Actor output Schema

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

All result items (overview view)

## `errors` (type: `string`):

Inputs that could not be processed, with the reason

## `summary` (type: `string`):

Counts of processed, billed and failed items

# 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": [
        "iana.org"
    ],
    "statusCodes": [],
    "maxUrls": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("digivibetech/wayback-url-snapshot-extractor").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": ["iana.org"],
    "statusCodes": [],
    "maxUrls": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("digivibetech/wayback-url-snapshot-extractor").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": [
    "iana.org"
  ],
  "statusCodes": [],
  "maxUrls": 20
}' |
apify call digivibetech/wayback-url-snapshot-extractor --silent --output-dataset

```

## MCP server setup

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

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/omA5WS0MgBTcNCuqO/builds/QbkKNJ4GcE4TRAtqK/openapi.json
