# Wayback Machine Website Changes & CDX Scraper | $0.70/1K (`kaitoeasyapi/wayback-machine-historical-website-changes-scraper`) Actor

Wayback Machine CDX & Website Change Scraper ($0.70–$1.00/1K snapshots): track historical corporate website captures, archived URLs, content digest changes, titles & SaaS pricing diffs via Internet Archive CDX.

- **URL**: https://apify.com/kaitoeasyapi/wayback-machine-historical-website-changes-scraper.md
- **Developed by:** [Kaito T](https://apify.com/kaitoeasyapi) (community)
- **Categories:** SEO tools, Developer tools, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 historical website snapshot results

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 Website Changes & CDX Scraper

Track **corporate website evolution**, **SaaS pricing page changes**, **SHA-1 content digest diffs**, **historical URL discovery**, and **archived HTML title / H1 / pricing token snapshots** using official Internet Archive Wayback CDX and Availability indices.

### Core Capabilities & Scope Guardrails

1. **CDX Content-Digest Change Timeline**: Queries Wayback CDX indices with optional duplicate-digest collapsing (`collapseDuplicates: true`), computing `contentChangedFromPrevious` and `daysSincePreviousChange` across sequential captures.
2. **Prefix URL Discovery & Availability Fallback**: Supports `matchType: "prefix"` to enumerate historical subpaths under a corporate domain, with automatic Availability endpoint failover when CDX indices return partial responses.
3. **Archived HTML Metadata & Pricing Token Diff (`includeSnapshotMeta: true`)**: Optionally inspects up to 5 archived HTML captures per run to extract historical `<title>`, meta description, `<h1>`, and visible `$` / `€` / `£` price points (`pricingTokens`).
4. **Corporate Website Scope Only**: Enforces a strict blocklist rejecting social media and personal user-generated content platforms alongside post-DNS SSRF validation and polite `<= 2 req/s` request pacing.

### Example Input

```json
{
  "urls": [
    "stripe.com/pricing"
  ],
  "fromDate": "20230101",
  "collapseDuplicates": true,
  "maxItems": 10
}
```

### Example Output Record

```json
{
  "recordType": "wayback_snapshot",
  "domain": "stripe.com",
  "originalUrl": null,
  "timestamp": "20240514123015",
  "capturedAt": "2024-05-14T12:30:15.000Z",
  "statusCode": 200,
  "mimeType": "text/html",
  "digest": "3PCBQHPQSZXVEZTPNABHLSNWDU47NKNK",
  "lengthBytes": 121872,
  "contentChangedFromPrevious": true,
  "daysSincePreviousChange": 42.5,
  "waybackSnapshotUrl": null,
  "waybackRawUrl": null,
  "snapshotMeta": null,
  "sourceRail": "wayback_cdx",
  "scrapedAt": "2026-11-20T02:00:00.000Z"
}
```

# Actor input Schema

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

Corporate website or product/pricing page URLs to inspect (social media and personal UGC domains are strictly blocked).

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

Use 'exact' to track historical changes of a specific page URL, or 'prefix' to discover archived URLs under a path prefix.

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

Optional earliest Wayback capture timestamp filter (for example '20230101' or '2023').

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

Optional latest Wayback capture timestamp filter.

## `collapseDuplicates` (type: `boolean`):

When enabled, collapses consecutive snapshots with identical SHA-1 content digests so each record reflects an actual page change.

## `includeSnapshotMeta` (type: `boolean`):

Fetches up to 5 archived HTML snapshots to extract historical page titles, meta descriptions, H1 headings, and visible $/€/£ pricing tokens.

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

Maximum number of historical snapshot records to return in this run.

## Actor input object example

```json
{
  "urls": [
    "https://stripe.com/pricing"
  ],
  "matchType": "exact",
  "fromDate": "20230101",
  "collapseDuplicates": true,
  "includeSnapshotMeta": false,
  "maxItems": 10
}
```

# Actor output Schema

## `dataset` (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://stripe.com/pricing"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kaitoeasyapi/wayback-machine-historical-website-changes-scraper").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://stripe.com/pricing"] }

# Run the Actor and wait for it to finish
run = client.actor("kaitoeasyapi/wayback-machine-historical-website-changes-scraper").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://stripe.com/pricing"
  ]
}' |
apify call kaitoeasyapi/wayback-machine-historical-website-changes-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kaitoeasyapi/wayback-machine-historical-website-changes-scraper"
        }
    }
}
```

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/3hknSiGpm5JNbr13L/builds/GqJRufX56552hizbb/openapi.json
