# Wayback Machine Snapshot Lookup (`snappytools/wayback-machine-snapshot-lookup`) Actor

Give it a web page URL and an optional date, and it tells you the Wayback Machine snapshot closest to that date, with a working archive link and the capture time. If the page was never archived, you get a clear not_found row instead. You paste in a list of URLs.

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

## Pricing

$1.10 / 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 Snapshot Lookup – archived URL and date API

Wayback Machine lookup for bulk URLs: give it web page URLs and an optional date, and it returns the closest archived snapshot with a working link and capture time. If a page was never archived, you get a clear `not_found` row instead.

You paste in a list of URLs. You get back one row per URL, in the same order, with `status`, `snapshotUrl`, `snapshotTimestamp`, `snapshotDate` and the HTTP status the archive recorded. Bad or unarchived URLs still get a row with a plain reason, so one bad value never sinks the run.

You can run it on a schedule to check that pages you cite or link to still have archived copies.

### Why this one

- **Answers come from the Internet Archive itself.** Every lookup uses the Wayback availability API at archive.org.
- **One row per input, in order.** Your output lines up with your list, so it is easy to join back to a spreadsheet.
- **Dates per URL.** Add a date after any URL, or set one **Target date** for the whole list.
- **Failures are rows, not crashes.** Invalid URLs, missing snapshots and network errors each get a `status` and a `reason`.
- **Polite to the archive.** It waits between requests and retries on rate limits and server errors.
- **Cheap.** $1.10 per 1,000 results, and runs with no results cost nothing.

### Quick start

```json
{
  "urls": [
    "https://example.com",
    "https://www.nasa.gov 20100101",
    "https://www.wikipedia.org 20050601"
  ],
  "date": "",
  "maxItems": 5
}
```

This returns one row per URL, each with the closest archived snapshot link and its capture time.

### What you can use it for

| Who | What for |
| --- | --- |
| Researchers and journalists | Replace dead citations with archived copies near the publish date |
| SEO specialists | Check what an expired domain or old page showed in a past year |
| Legal and compliance teams | Confirm a public page was captured on or near a given date |
| Web editors | Audit a link list and find archive fallbacks in bulk |

### How to use it

1. Click **Try for free**.
2. In **URLs**, add one URL per line, e.g. `https://example.com`. Add a date after a space to target it, e.g. `https://www.nasa.gov 20100101`.
3. Optionally set **Target date**, e.g. `20150101`, for URLs without their own date. Leave it empty for the most recent snapshot.
4. Optionally set **Max items** (1 to 200) to cap the run.
5. Click **Start**.

Tip: schedule it weekly to keep an eye on whether your key pages are being archived.

### What data you get

Each row describes one input URL and its closest snapshot.

| Field | What it is | Example |
| --- | --- | --- |
| `id` | Stable id from the URL and requested date | `https://www.nasa.gov@20100101` |
| `input` | The line you supplied | `https://www.nasa.gov 20100101` |
| `status` | `found`, `not_found`, `invalid` or `error` | `found` |
| `reason` | Plain explanation when not found or failed | `null` when found |
| `url` | The URL that was looked up | `https://www.nasa.gov` |
| `requestedDate` | Date you asked for, or null for latest | `20100101` |
| `snapshotUrl` | Link to the archived copy | `https://web.archive.org/web/20100101030425/http://www.nasa.gov/` |
| `snapshotTimestamp` | Wayback capture timestamp | `20100101030425` |
| `snapshotDate` | Capture time in ISO 8601 | `2010-01-01T03:04:25Z` |
| `snapshotHttpStatus` | HTTP status the archive recorded | `200` |
| `checkedAt` | When the lookup ran | `2026-11-20T08:47:54.590Z` |
| `source` | Service used and its public link | `{"name":"Internet Archive Wayback Machine","url":"https://web.archive.org/web/*/https://www.nasa.gov"}` |

### Pricing

| Event | Price |
| --- | --- |
| Result (one row written to the dataset) | $0.0011 |

| Run | Cost |
| --- | --- |
| 100 results | $0.11 |
| 1,000 results | $1.10 |
| 10,000 results | $11.00 |

There is no start fee. Runs with no results cost nothing.

### Good to know

- **Limits**: up to 200 URLs per run, set by **Max items**. Extra URLs are ignored. Requests are spaced out to respect the archive.
- **Where the data comes from**: the public Internet Archive Wayback availability API. No login is needed.
- **Not included**: page content, full capture history, or screenshots. You get one closest snapshot per URL.
- **Closest, not exact**: the archive returns the nearest capture it has, which may be before or after your date.
- **Freshness**: brand new captures can take a while to show up in the API.
- **Not affiliated**: this tool isn't affiliated with or endorsed by the Internet Archive.

### FAQ

**What date format do I use?**
YYYYMMDD, or shorter like YYYY or YYYYMM. Leave it out for the latest snapshot.

**How do I check if a page is on the Wayback Machine in bulk?**
Paste your URLs into **URLs**, one per line, and click **Start**. Each gets a `found` or `not_found` row.

**Why did a page I know is archived come back not_found?**
The availability API sometimes misses captures for unusual URL forms. Try the bare domain or the www version.

**Does it save new snapshots?**
No. It only looks up existing ones.

### Getting the data out

Download results as Excel, CSV or JSON from the Output tab. Send them to Google Sheets, Slack, Zapier, Make or webhooks from the **Integrations** tab. Every run is available through the Apify API, and you can run it regularly from **Schedules**.

### Questions or problems

Open an issue on the **Issues** tab and include the run link. I reply within one business day.

### Related tools

- [Bulk Email Syntax and MX Validator](https://apify.com/snappytools/email-syntax-mx-validator): check lists of email addresses in bulk
- [TED Europa Tender Scraper](https://apify.com/snappytools/ted-europa-tender-scraper): export public tenders from TED Europa
- [Companies House Company Scraper](https://apify.com/snappytools/companies-house-uk-scraper): pull UK company records

# Actor input Schema

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

Public web page URLs to look up, one per line, e.g. https://example.com. To target a date for one URL, add a space and the date as YYYYMMDD, e.g. https://www.nasa.gov 20100101. Up to 200 per run.

## `date` (type: `string`):

Optional default date as YYYYMMDD (or YYYY, YYYYMM) used for URLs without their own date, e.g. 20150101. Leave empty to get the most recent snapshot.

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

Maximum number of URLs processed in this run, from 1 to 200. Extra URLs are ignored. Example: 50.

## Actor input object example

```json
{
  "urls": [
    "https://example.com",
    "https://www.nasa.gov 20100101",
    "https://www.wikipedia.org 20050601"
  ],
  "date": "",
  "maxItems": 100
}
```

# Actor output Schema

## `results` (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": [
        "https://example.com",
        "https://www.nasa.gov 20100101",
        "https://www.wikipedia.org 20050601"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("snappytools/wayback-machine-snapshot-lookup").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": [
        "https://example.com",
        "https://www.nasa.gov 20100101",
        "https://www.wikipedia.org 20050601",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("snappytools/wayback-machine-snapshot-lookup").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": [
    "https://example.com",
    "https://www.nasa.gov 20100101",
    "https://www.wikipedia.org 20050601"
  ]
}' |
apify call snappytools/wayback-machine-snapshot-lookup --silent --output-dataset

```

## MCP server setup

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

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/7UkaoaUlDDTapJrzf/builds/apc9S3iDIMpe8k2AE/openapi.json
