# Wayback History Intel: Captures, Changes and Gaps (`54m_music/wayback-history-intel`) Actor

Look up URLs or domains in the Wayback Machine and get each history scored: first capture (age proxy), captures per year, distinct content versions, content changes, last capture age, longest gap, frequently changing flag and status-code mix. Official CDX API, no login, no proxy.

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

## Pricing

from $10.00 / 1,000 analysed urls

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 History Intel: capture cadence, content changes and gaps

Look up URLs or domains in the Internet Archive's Wayback Machine and get each one's history **already
scored**: first capture (a proxy for how old a page or site is), how often it is archived, how many
distinct content versions it has had, how often the content changes, how long ago it was last archived,
its longest gap, a frequently-changing flag and the mix of status codes. Use it to date a domain or page,
to check whether a competitor's page changes weekly or never, to find pages that have disappeared, or to
feed an AI agent one row per URL instead of thousands of capture records.

### What you get for each URL

| Field | What it means |
| --- | --- |
| `url` | What you supplied |
| `firstCaptureAt`, `ageYears` | Date of the earliest capture and years since then (an age proxy: the page may be older than its first capture) |
| `lastCaptureAt`, `daysSinceLastCapture` | Date of the newest capture and days since then |
| `captureDays` | Days on which the page was archived at least once (several captures on one day count once) |
| `capturesPerYear` | `captureDays` divided by the years between first and last capture (at least 1) |
| `capturesLast365Days` | Capture days in the last 365 days |
| `longestGapDays`, `longestGapStartedAt` | The longest stretch between two consecutive capture days, and when it began |
| `distinctVersions` | Distinct content digests among captures that loaded (status 2xx or an archive revisit) |
| `contentChanges`, `changesPerYear`, `changesLast365Days` | Times the digest differs from the previous loaded capture; per year over the same span as `capturesPerYear`; and in the last 365 days |
| `lastChangeAt`, `daysSinceLastChange` | When the content last changed in the archive |
| `medianDaysBetweenChanges` | Median days between consecutive content changes |
| `frequentlyChanging` | `true` when `changesLast365Days` is at least your threshold (default 12) |
| `statusMixPct` | Share of each HTTP status code among captures that recorded one (top 6) |
| `okSharePct`, `redirectSharePct`, `errorSharePct` | Shares of 2xx, 3xx and 4xx/5xx among those captures |
| `revisitSharePct` | Share of capture days the archive stored as a revisit (content identical to an earlier capture, no status recorded) |
| `lastStatus` | Status code of the newest capture that recorded one |
| `likelyGone` | `true` when the 3 newest captures with a status are all 4xx or 5xx |
| `historyComplete` | `false` when a URL has more than 20,000 capture days and only the oldest 20,000 were read |

### Input

| Field | Default | Notes |
| --- | --- | --- |
| `urls` | three examples | URLs or domains. A bare domain means its home page. `http`, `https` and `www` forms are read together |
| `frequentChangesPerYear` | 12 | Threshold for `frequentlyChanging` |

```json
{ "urls": ["example.com", "https://example.com/pricing"], "frequentChangesPerYear": 12 }
```

### Output example

```json
{
  "url": "neverssl.com",
  "firstCaptureAt": "2016-12-04T17:32:24Z",
  "ageYears": 9.9,
  "lastCaptureAt": "2026-11-09T04:27:04Z",
  "daysSinceLastCapture": 4.2,
  "captureDays": 670,
  "capturesPerYear": 67.5,
  "capturesLast365Days": 75,
  "longestGapDays": 79.2,
  "distinctVersions": 19,
  "contentChanges": 254,
  "changesLast365Days": 43,
  "frequentlyChanging": true,
  "okSharePct": 100.0,
  "errorSharePct": 0.0,
  "likelyGone": false
}
```

### Pricing

Pay per event: you pay only for analysed URLs written to the dataset (see the Pricing tab), plus the
standard Apify start event. The Actor waits 6.5 seconds between requests to stay under 10 requests a
minute, so each URL takes roughly 7-20 seconds. Three URLs take about 30 seconds.

### How it works and limits

- Data comes from the Internet Archive's CDX API (`web.archive.org/cdx/search/cdx`), one request per URL,
  reading up to 20,000 capture days (several captures on one day are collapsed to one). No login and no
  scraping of archived pages. The Archive publishes no robots.txt restriction on this endpoint.
- Content versions are counted from the archive's content digest. A page that embeds changing ads, dates or
  tokens looks like it changes on every capture; a page that changes only in rendered scripts looks static.
  Treat `frequentlyChanging` as a lead to check, not proof of editing.
- The archive only knows what it captured. A long gap can mean the page was unchanged and unvisited, not that
  it was offline. `firstCaptureAt` is a lower bound on a page's age.
- The run stops at the first "too many requests" answer from the Archive and keeps what it already read.
  Addresses never archived are skipped and not charged.
- The run fails with a clear message when no URL had any captures, so you never pay for an empty run.
- Not affiliated with the Internet Archive.

### FAQ

**Can I analyse a whole domain?** Not as a crawl. A domain is read as its home page. Put the pages you
care about in `urls`.

**Why is `revisitSharePct` high?** The archive stores a repeat capture of identical content as a revisit
with no status code. A high share means the page rarely changes.

**What does `likelyGone` mean?** The latest captures all returned errors, so the page has probably been
removed or moved. Check `lastCaptureAt` and `lastStatus`.

# Actor input Schema

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

Pages to look up in the Internet Archive, for example example.com or https://example.com/pricing. A bare domain means its home page. The http, https and www versions of one address are read together.

## `frequentChangesPerYear` (type: `integer`):

A page is flagged frequently changing when its content changed at least this many times in the last 365 days.

## Actor input object example

```json
{
  "urls": [
    "neverssl.com",
    "httpbin.org",
    "info.cern.ch/hypertext/WWW/TheProject.html"
  ],
  "frequentChangesPerYear": 12
}
```

# Actor output Schema

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

Every scored row in the default dataset, overview table view.

## `allFields` (type: `string`):

Every row with all fields.

# 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": [
        "neverssl.com",
        "httpbin.org",
        "info.cern.ch/hypertext/WWW/TheProject.html"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("54m_music/wayback-history-intel").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": [
        "neverssl.com",
        "httpbin.org",
        "info.cern.ch/hypertext/WWW/TheProject.html",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("54m_music/wayback-history-intel").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": [
    "neverssl.com",
    "httpbin.org",
    "info.cern.ch/hypertext/WWW/TheProject.html"
  ]
}' |
apify call 54m_music/wayback-history-intel --silent --output-dataset

```

## MCP server setup

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

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/jbvdkwuNvMsarDlyd/builds/xcNxQEvHPbpKkJh6l/openapi.json
