# Wayback Machine Scraper: All Archived URLs & Snapshots (`veenkes/veenkes-wayback-urls`) Actor

Get every URL the Wayback Machine (archive.org) ever captured for a domain, or the full snapshot history of a page: timestamp, status code, MIME type, size and direct archive links. Filters for status, file type and dates. Great for SEO, content recovery and recon.

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

## Pricing

from $0.15 / 1,000 result saveds

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: All Archived URLs & Snapshots

A **Wayback Machine scraper** for the archive.org CDX index. Get **every URL ever archived for a domain** (deduplicated) or the **full snapshot history of a page**, each with **capture date, HTTP status, MIME type, size and a direct archive link**.

Filter by status code, file type and date range. No API key.

### Why use this Wayback Machine scraper?

- 🗂️ **All unique URLs of a domain** — find old pages, lost content, forgotten files and URL structures.
- 🕰️ **Snapshot history** of any page, deduplicated by content (only captures where the page changed).
- 🔎 **Filters**: HTTP 200 only, MIME types (HTML, PDF, images…), date range, subdomains.
- 🔗 **Archive links** in normal and raw (`id_`) form for direct download.
- 💸 **$0.15–$0.30 per 1,000 results**, far below other Wayback actors.
- 💸 **From $0.15 per 1,000 results.** No monthly rental.

### Who is it for?

- **SEO specialists:** recover lost pages and backlinks after migrations, audit old URL structures.
- **Content teams:** find and restore deleted articles.
- **Security researchers:** map historical endpoints and files of a target (authorized testing only).
- **Researchers and journalists:** track how a page changed over time.

### What data does it extract?

| Field | Example |
|---|---|
| `url` | `https://apify.com/agentx/tiktok-live-profile/output-schema` |
| `timestamp` | `2026-02-17T20:16:16Z` |
| `statusCode`, `mimeType`, `length`, `digest` | `200`, `text/html`, `74011` |
| `archiveUrl`, `rawArchiveUrl` | `https://web.archive.org/web/20260217201616/https://apify.com/...` |

### How to use it

1. Enter **domains** (URL mode) or **page URLs** (snapshot mode).
2. Optionally set filters and **max results**.
3. Click **Start** and export to CSV, Excel or JSON.

### Run it from the API

You can start this Actor from any language with the official [Apify API client](https://docs.apify.com/api/client/python). Replace `YOUR_APIFY_TOKEN` with a token from [Apify Console > Integrations](https://console.apify.com/account/integrations). Never put the token in a public repo.

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("veenkes/veenkes-wayback-urls").call(run_input={
    "targets": [
        "openai.com"
    ],
    "mode": "urls",
    "mimeTypes": [
        "text/html"
    ],
    "maxResultsPerTarget": 5000
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('veenkes/veenkes-wayback-urls').call({
    "targets": [
        "openai.com"
    ],
    "mode": "urls",
    "mimeTypes": [
        "text/html"
    ],
    "maxResultsPerTarget": 5000
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

Schedule the Actor, send results to a webhook, or connect it in Zapier, Make or n8n. Store page: <https://apify.com/veenkes/veenkes-wayback-urls>.

### Use from AI agents (Apify MCP)

AI agents can run this Actor through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Connect Claude, Cursor or any MCP-compatible client to Apify, then ask the agent to call `veenkes/veenkes-wayback-urls` with an input like the example above. The agent discovers the tool from the Actor title and description.

### How much does it cost?

| Apify plan tier | Price per 1,000 results |
|---|---|
| FREE | $0.30 |
| BRONZE | $0.25 |
| SILVER | $0.20 |
| GOLD and above | $0.15 |

There is also a $0.00005 start fee per run.

### Input example

```json
{
    "targets": [
        "openai.com/blog"
    ],
    "mode": "urls",
    "includeSubdomains": false,
    "onlyStatus200": true,
    "mimeTypes": [
        "text/html"
    ],
    "fromDate": "2023-01-01",
    "maxResultsPerTarget": 1000
}
```

### Output example

```json
{
    "target": "apify.com",
    "url": "https://apify.com/agentx/tiktok-live-profile/output-schema",
    "timestamp": "2026-02-17T20:16:16Z",
    "statusCode": 200,
    "mimeType": "text/html",
    "length": 74011,
    "archiveUrl": "https://web.archive.org/web/20260217201616/https://apify.com/agentx/tiktok-live-profile/output-schema"
}
```

The key-value store record `SUMMARY` lists every input with its status and the number of items saved.

### Limitations

- The Wayback Machine index can be slow: a large domain may take a minute per few thousand URLs, and archive.org sometimes returns temporary errors (retried automatically).
- In URL mode each URL appears once with its first matching capture.
- Only what archive.org has captured is available.

### Why this one?

URL and snapshot modes, practical filters and the lowest price per result, with automatic retries for archive.org hiccups.

### FAQ

**Do I need an archive.org account?**
No.

**Why is a run slow?**
archive.org's index is slow for big domains; narrow with a path, file type or date range.

**Is it legal?**
It reads archive.org's public index. Use it for lawful purposes.

***

### Integrations

- **Apify API** — Python and JavaScript clients (examples above), plus a REST API.
- **AI agents** — run it via the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp).
- **Automation tools** — Zapier, Make, n8n, or an Apify webhook when a run finishes.
- **Export** — download the dataset as JSON, CSV, Excel or XML, or load it from a scheduled run.

[Open the Actor in Apify Store](https://apify.com/veenkes/veenkes-wayback-urls).

*Not affiliated with or endorsed by the Internet Archive.*

# Actor input Schema

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

Domains (openai.com), path prefixes (openai.com/blog) or exact page URLs for snapshot mode.

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

List every unique URL ever archived, or every distinct capture of specific pages.

## `includeSubdomains` (type: `boolean`):

In URL mode, also list URLs on subdomains (blog.example.com, docs.example.com…).

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

Skip redirects, 404s and errors.

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

Only these MIME types, e.g. text/html, application/pdf, image/jpeg.

## `fromDate` (type: `string`):

Only captures on or after this date.

## `toDate` (type: `string`):

Only captures on or before this date.

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

Maximum URLs or snapshots saved per target.

## Actor input object example

```json
{
  "targets": [
    "openai.com"
  ],
  "mode": "urls",
  "includeSubdomains": false,
  "onlyStatus200": true,
  "maxResultsPerTarget": 100
}
```

# Actor output Schema

## `urls` (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": [
        "openai.com"
    ],
    "maxResultsPerTarget": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("veenkes/veenkes-wayback-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": ["openai.com"],
    "maxResultsPerTarget": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("veenkes/veenkes-wayback-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": [
    "openai.com"
  ],
  "maxResultsPerTarget": 100
}' |
apify call veenkes/veenkes-wayback-urls --silent --output-dataset

```

## MCP server setup

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