# Wayback History Evidence API (`nexgenwatch/wayback-history-evidence-api`) Actor

Resolves each target URL against the public Wayback Machine and returns validated snapshot evidence records — archived playback URL, capture timestamp, CDX status/MIME/digest, a live re-check of the playback URL, and the coverage window.

- **URL**: https://apify.com/nexgenwatch/wayback-history-evidence-api.md
- **Developed by:** [NexGen Watch](https://apify.com/nexgenwatch) (community)
- **Categories:** Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $33.50 / 1,000 wayback history evidence api verdicts

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 History Evidence API

Resolves each target URL against the public Wayback Machine and returns validated snapshot evidence records — archived playback URL, capture timestamp, CDX status/MIME/digest, a live re-check of the playback URL, and the coverage window — selected by earliest / latest / nearest. A read-only archive evidence API; it never submits captures.

Output is one `archive_snapshot` row per result; billing is pay-per-event, the value event being one wayback history evidence api verdict (a $0.02 start fee per run, then $0.05 per wayback history evidence api verdict). Source: archive.org, web.archive.org.

No login, no API key and no CAPTCHA solving are involved: the source is read logged-out with an identified contact User-Agent.

### 📊 Sample Output

[![Wayback History Evidence API sample output — a table of real wayback history evidence api verdict rows (target\_url, snapshot\_timestamp, snapshot\_datetime, original\_url) from run l9dj5dpbafX57LJVl on build 0.1.7](https://api.apify.com/v2/key-value-stores/8gLgXMBveEI1tTz1z/records/wayback-history-evidence-api-sample)](https://apify.com/nexgenwatch/wayback-history-evidence-api?fpr=2ayu9b)

Real rows from run `l9dj5dpbafX57LJVl` on build 0.1.7 (2026-09-23), the same input as the Quick start below — every value is as the source published it (emails masked, long text shortened):

| target\_url | snapshot\_timestamp | snapshot\_datetime | original\_url | cdx\_mimetype | cdx\_digest |
|---|---|---|---|---|---|
| https://example.com/ | 20260923083248 | 2026-09-23T08:32:48Z | https://example.com/ | text/html | PKUMGV5XIIUJG5CKD4HZMCRWKUMVP5S6 |

The run finished with the status message: `1 snapshot record(s): 1 validated+charged, 0 unbilled (no-coverage/unvalidated/blocked/unreachable/unparseable) | archive_snapshot_check charged=1`

### ✅ What you get

Each row is flat JSON with these fields (from the dataset schema and the sample run; a field the source does not publish for a given row is `null`):

- `target_url` (string/null) — e.g. `https://example.com/`
- `selector` (string/null) — e.g. `latest`
- `snapshot_timestamp` (string/null) — e.g. `20260923083248`
- `snapshot_datetime` (string/null) — e.g. `2026-09-23T08:32:48Z`
- `archived_url` (string/null) — e.g. `https://web.archive.org/web/20260923083248/https://example.com/`
- `original_url` (string/null) — e.g. `https://example.com/`
- `cdx_statuscode` (string/null) — e.g. `200`
- `cdx_mimetype` (string/null) — e.g. `text/html`
- `cdx_digest` (string/null) — e.g. `PKUMGV5XIIUJG5CKD4HZMCRWKUMVP5S6`
- `validated` (boolean/null) — e.g. `True`
- `validation_http_status` (integer/string/null) — e.g. `200`
- `validation_mime` (string/null) — e.g. `text/html`
- `coverage_earliest` (string/null) — e.g. `2002-01-20T14:25:10Z`
- `coverage_latest` (string/null) — e.g. `2026-09-23T08:32:48Z`
- `total_captures` (integer/string/null) — e.g. `1000+`
- `evidence_chain` (string/null) — e.g. `{"cdx_query":"https://web.archive.org/cdx/search/cdx?url=https%3A%2F%2Fexample.c`
- `faults` (string/null) — null in every sample row
- `record_type` (string) — e.g. `archive_snapshot`
- `source` (string/null) — e.g. `public Wayback Machine (web.archive.org) CDX index`
- `outcome` (string/null) — e.g. `answer`
- `input` (string/null) — e.g. `https://example.com/`
- `outcome_reason` (string/null) — null in every sample row
- `observed_at` (string/null) — null in every sample row
- `terminal` (string/null) — null in every sample row

**Output & billing**

One row per requested selector per target. A snapshot that is **returned by the archive AND whose playback URL live-validates (HTTP 200–399)** carries `outcome: answer` and bills once. Identical capture digests are de-duplicated so one physical snapshot never double-bills. A target with no archive coverage, a returned-but-unvalidated snapshot, or an archive query blocked/unreachable, is an unbilled status. Push-then-charge: every row is delivered **before** its charge, so a billing hiccup can only ever undercharge.

### ⚙️ Sample inputs

**1. Quick start — the Store example (this is what the sample above came from)**

```json
{
  "urls": [
    "https://example.com/"
  ],
  "selectors": [
    "latest"
  ],
  "maxUrls": 5,
  "userAgent": "Mozilla/5.0 (compatible; NexGenWatchBot/1.0; +https://apify.com/nexgenwatch)"
}
```

The sample run charged exactly: 1 × $0.02 apify-actor-start + 1 × $0.05 archive\_snapshot\_check = **$0.07** on the Free tier — every delivered row was billed.

**2. A smaller, narrowed run**

```json
{
  "urls": [
    "https://example.com/"
  ],
  "selectors": [
    "latest"
  ],
  "maxUrls": 5,
  "userAgent": "Mozilla/5.0 (compatible; NexGenWatchBot/1.0; +https://apify.com/nexgenwatch)",
  "nearTimestamp": "20200101"
}
```

A bounded run for checking the field shape before scheduling. `nearTimestamp` narrows what the source is asked for.

**3. A full-size run**

```json
{
  "urls": [
    "https://example.com/"
  ],
  "selectors": [
    "latest"
  ],
  "maxUrls": 5,
  "userAgent": "Mozilla/5.0 (compatible; NexGenWatchBot/1.0; +https://apify.com/nexgenwatch)"
}
```

The same input run on a schedule; each run is billed only for what it delivers.

### 🧾 JSON sample record

One real record from run `l9dj5dpbafX57LJVl`, exactly as it lands in the dataset (emails masked, long text shortened):

```json
{
  "target_url": "https://example.com/",
  "selector": "latest",
  "snapshot_timestamp": "20260923083248",
  "snapshot_datetime": "2026-09-23T08:32:48Z",
  "archived_url": "https://web.archive.org/web/20260923083248/https://example.com/",
  "original_url": "https://example.com/",
  "cdx_statuscode": "200",
  "cdx_mimetype": "text/html",
  "cdx_digest": "PKUMGV5XIIUJG5CKD4HZMCRWKUMVP5S6",
  "validated": true,
  "validation_http_status": 200,
  "validation_mime": "text/html",
  "coverage_earliest": "2002-01-20T14:25:10Z",
  "coverage_latest": "2026-09-23T08:32:48Z",
  "total_captures": "1000+",
  "evidence_chain": "{\"cdx_query\":\"https://web.archive.org/cdx/search/cdx?url=https%3A%2F%2Fexample.com%2F&output=json&fl=timestamp,original,statuscode,mimetype,digest&limit=1000\",\"selector_source\":\"cdx\",\"playback_validation\":\"HTTP 200\"}",
  "faults": null,
  "record_type": "archive_snapshot",
  "source": "public Wayback Machine (web.archive.org) CDX index",
  "outcome": "answer",
  "input": "https://example.com/",
  "outcome_reason": null
}
```

### 🔧 How it works

**Transport.** Plain HTTPS from the Apify platform, no proxy. robots.txt is read first and a disallowed path is never fetched. Every request carries an identified contact User-Agent.

**Terminal states.** A run ends NORMAL, CAPPED (your cap was reached), PARTIAL (something was withheld and the message says what), GENUINE\_EMPTY (the source was read and truly had nothing in scope) or BLOCKED (the source refused or changed shape — the run FAILS loud and bills nothing). A zero-row run is never reported as a silent success.

**Charging.** Each wayback history evidence api verdict is charged at the moment it is pushed (`archive_snapshot_check`); a row that fails to charge is not delivered, so the dataset count always equals the charged count.

**What you submit**

`urls` — target urls to look up in the archive. Target URLs to resolve against the public Wayback Machine CDX index. Per requested selector (earliest / latest / nearest) ONE validated snapshot record: archived playback URL, capture timestamp, original URL, CDX status/MIME/digest, a live validation of the playback URL, and coverage summary (earliest, latest, total captures). Only web.archive.org is contacted (SSRF- and robots-gated per the standing law; identical snapshot digests are de-duplicated so the same capture never double-bills). A validated snapshot record bills; a target with no archive coverage, or an archive query blocked/unreachable, is an unbilled status. No archive submissions are ever made.

**The runtime source gate (per submitted target)**

You choose the targets, so the source contract is enforced at run time — for every archive query — only web.archive.org / archive.org are ever contacted — per origin, before any page is read:

- **robots.txt** fetched once per origin and honored; no robots / 404 = permitted, a disallowed path or an unavailable/forbidden robots file = **BLOCKED**.
- **SSRF guard** — every host is resolved and must be public; private, loopback, link-local, reserved and cloud-metadata addresses are refused before a socket opens.
- **HTTP** — `403` / `429` / `5xx` = **BLOCKED**; DNS / timeout / connection faults = **UNREACHABLE**.

A **BLOCKED** or **UNREACHABLE** target is delivered as an unbilled status row — never a broken-site verdict, and never charged.

**Why this and not the obvious alternative**

validated Wayback snapshot evidence records (playback URL, digest, live re-check, coverage window) selected by earliest/latest/nearest — a read-only archive evidence API, not an archive submitter and not a live-site scraper.

**What is not done.** No login, no cookie or CAPTCHA bypass, no private or personal-account data, no browser automation.

### 💰 Pricing example

| Event | Free | Bronze | Silver | Gold |
|---|---|---|---|---|
| Actor Start (`apify-actor-start`) | $0.02 | $0.02 | $0.02 | $0.02 |
| Wayback History Evidence API verdict (`archive_snapshot_check`) | $0.05 | $0.04 | $0.04 | $0.03 |

Worked at the live Free-tier price:

- 1 wayback history evidence api verdicts: $0.02 start + 1 × $0.05 = **$0.07**
- 25 wayback history evidence api verdicts: $0.02 start + 25 × $0.05 = **$1.27**
- 100 wayback history evidence api verdicts: $0.02 start + 100 × $0.05 = **$5.02**

A run that delivers zero rows charges the $0.02 start fee only. A BLOCKED run (source refused) fails loud and charges no value event. The start fee is charged once per GB of run memory; the default run memory is 4096 MB.

Yield on the sample run: `1 snapshot record(s): 1 validated+charged, 0 unbilled (no-coverage/unvalidated/blocked/unreachable/unparseable) | archive_snapshot_check charged=1`.

### ⚖️ Legal & ToS

This actor reads public, logged-out pages and feeds published by archive.org, web.archive.org. It collects only what the source publishes to any visitor, keeps to the source's robots rules (checked on every run), identifies itself with a contact User-Agent, and does not access accounts, private data or anything behind authentication. Use the output in line with the source's terms and your local law; the intended use is B2B research and monitoring.

### ❓ FAQ

**Q: Do I need an API key or a login?**\
A: No. The source (archive.org, web.archive.org) is read logged-out; the input schema has no key field and the actor carries no secrets.

**Q: Why did my run return 0 rows?**\
A: Read the run's status message. GENUINE\_EMPTY means the source was read and had nothing in scope for your input; BLOCKED means the source refused and the run failed without billing a value event — retry later or narrow the input. A zero-row run bills the start fee only.

**Q: How fresh is the data?**\
A: Every run reads the source live at run time; nothing is cached between runs. Put it on a schedule for a continuous feed.

**Q: What formats can I export?**\
A: The dataset downloads as JSON, CSV, Excel, XML or RSS from the run's Dataset tab or the Apify API, and any run can push to a webhook or integration.

**Q: How is this different from the other NexGen Watch actors actors?**\
A: Same output shape and billing model; this one covers archive.org, web.archive.org. The siblings under **Related Actors** cover the other sources or slices — run several on one schedule for a combined feed.

**Q: Are there rate limits?**\
A: The actor paces itself against the source and honours its robots rules; there is no per-buyer limit beyond your Apify plan's concurrency.

### 🆘 Troubleshooting

- **Run FAILED with BLOCKED** → the source refused the request or changed its page shape → nothing was billed beyond the start fee; retry after a while, and if it persists open an Issue with the run id.
- **Fewer rows than expected** → the source had fewer items in scope → widen the input.
- **Input validation error on start** → a field is outside the schema's allowed values → start from the Quick start block and change one field at a time.
- **Run TIMED-OUT** → a very wide request on a slow day → raise the run timeout in Run options or narrow the input; what was delivered before the timeout is still in the dataset.

### 🔗 Related Actors

- [USGS MRDS Mineral Occurrence Master](https://apify.com/nexgenwatch/usgs-mrds-occurrence-master?fpr=2ayu9b) — same family, different source
- [Washington Contractor License Registry](https://apify.com/nexgenwatch/washington-contractor-license-registry?fpr=2ayu9b) — One structured registryrecord per record from the official public source, logged-out. Public, robots-honoured
- [Washington Transportation-Industry Business Licenses](https://apify.com/nexgenwatch/washington-transportation-business-licenses?fpr=2ayu9b) — same family, different source
- [AccessGUDID Device Release Feed](https://apify.com/nexgenwatch/accessgudid-device-release-feed?fpr=2ayu9b) — same family, different source
- 🏢 **About NexGenData** — NexGen Watch is NexGenData's fleet of 256 public monitoring and lookup actors built on official sources, pay-per-result. Browse the catalog at [apify.com/nexgenwatch](https://apify.com/nexgenwatch?fpr=2ayu9b).

### ⭐ Found this useful?

If this actor saved you a manual check, a quick **[review on the Apify Store](https://apify.com/nexgenwatch/wayback-history-evidence-api?fpr=2ayu9b)** helps other teams find it. Feature request or a source that changed? Open it from the **Issues** tab — every one is read.

# Actor input Schema

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

Target URLs to resolve against the public Wayback Machine CDX index. Per requested selector (earliest / latest / nearest) ONE validated snapshot record: archived playback URL, capture timestamp, original URL, CDX status/MIME/digest, a live validation of the playback URL, and coverage summary (earliest, latest, total captures). Only web.archive.org is contacted (SSRF- and robots-gated per the standing law; identical snapshot digests are de-duplicated so the same capture never double-bills). A validated snapshot record bills; a target with no archive coverage, or an archive query blocked/unreachable, is an unbilled status. No archive submissions are ever made.

## `selectors` (type: `array`):

Which snapshots to return per URL: earliest, latest, and/or nearest (to 'nearTimestamp').

## `nearTimestamp` (type: `string`):

Target date for the 'nearest' selector (e.g. 20200101). Defaults to today.

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

Hard cap on target URLs (bounds archive queries + billing).

## `userAgent` (type: `string`):

Override the transparent crawler UA.

## Actor input object example

```json
{
  "urls": [
    "https://example.com/"
  ],
  "selectors": [
    "latest"
  ],
  "nearTimestamp": "20200101",
  "maxUrls": 5,
  "userAgent": "Mozilla/5.0 (compatible; NexGenWatchBot/1.0; +https://apify.com/nexgenwatch)"
}
```

# 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/"
    ],
    "selectors": [
        "latest"
    ],
    "nearTimestamp": "20200101",
    "maxUrls": 5,
    "userAgent": "Mozilla/5.0 (compatible; NexGenWatchBot/1.0; +https://apify.com/nexgenwatch)"
};

// Run the Actor and wait for it to finish
const run = await client.actor("nexgenwatch/wayback-history-evidence-api").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/"],
    "selectors": ["latest"],
    "nearTimestamp": "20200101",
    "maxUrls": 5,
    "userAgent": "Mozilla/5.0 (compatible; NexGenWatchBot/1.0; +https://apify.com/nexgenwatch)",
}

# Run the Actor and wait for it to finish
run = client.actor("nexgenwatch/wayback-history-evidence-api").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/"
  ],
  "selectors": [
    "latest"
  ],
  "nearTimestamp": "20200101",
  "maxUrls": 5,
  "userAgent": "Mozilla/5.0 (compatible; NexGenWatchBot/1.0; +https://apify.com/nexgenwatch)"
}' |
apify call nexgenwatch/wayback-history-evidence-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nexgenwatch/wayback-history-evidence-api"
        }
    }
}
```

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/AHNw4MLFqle7aTR0z/builds/U0DJcNB6Kg8lrrZuT/openapi.json
