# See how a homepage changed between its first and latest capture

**Use case:** 

Compares the earliest Wayback Machine capture of a page with the latest one and returns a line-by-line diff of the visible text, plus the two capture dates and archive URLs. Useful for checking what a company used to claim, when pricing or wording changed, or for evidence in a dispute. Change the URL and the two dates to compare any pair of captures.

## Input

```json
{
  "mode": "diff",
  "urls": [
    "example.com"
  ],
  "matchType": "exact",
  "limit": 20,
  "collapse": "digest",
  "dates": [
    "earliest",
    "latest"
  ],
  "statusFilter": [
    "200"
  ],
  "mimeFilter": [
    "text/html"
  ],
  "snapshotFormat": "text",
  "diffGranularity": "line",
  "maxSnapshotKb": 2048,
  "maxRunSecs": 240
}
```

## Output

```json
{
  "url": {
    "label": "Compared URL",
    "format": "string"
  },
  "fromIsoDate": {
    "label": "Before capture (ISO)",
    "format": "string"
  },
  "toIsoDate": {
    "label": "After capture (ISO)",
    "format": "string"
  },
  "similarityRatio": {
    "label": "Similarity ratio",
    "format": "number"
  },
  "changedCount": {
    "label": "Changed lines",
    "format": "integer"
  },
  "addedLineCount": {
    "label": "Added line count",
    "format": "integer"
  },
  "removedLineCount": {
    "label": "Removed line count",
    "format": "integer"
  },
  "titleChanged": {
    "label": "Title changed",
    "format": "boolean"
  },
  "headingsChanged": {
    "label": "Headings changed",
    "format": "boolean"
  },
  "pricesChanged": {
    "label": "Prices changed",
    "format": "boolean"
  },
  "addedPrices": {
    "label": "Added prices",
    "format": "array"
  },
  "removedPrices": {
    "label": "Removed prices",
    "format": "array"
  },
  "summary": {
    "label": "Summary",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Wayback Machine Toolkit — Archived URLs, Snapshots & Diffs](https://apify.com/insight.solutions/wayback-toolkit.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/insight.solutions/wayback-toolkit.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/insight.solutions/wayback-toolkit.md

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`).
