# Wayback Machine historical page content API

Get Wayback Historical Page data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, url, and retrieve structured data including archived URL actually captured, archive capture timestamp, returned content format, extracted historical page content, and archived page meta description for recover removed articles or docs, compare historical revisions, and audit past disclosures.

Documentation: https://openany.si/wayback-machine/wayback-machine-historical-page-content-api/246ddcc1-2c05-42aa-84be-68eb8bbcec27/
API ID: 246ddcc1-2c05-42aa-84be-68eb8bbcec27
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/wayback/v1/page
Page update time: 2026-12-03T02:55:00.581Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:55:00.268Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Wayback Historical Page API

Send url (with or without https://), optional timestamp (YYYY through YYYYMMDDhhmmss) and format (markdown default, text, html or raw). The response returns extracted content, canonical URL, captured\_url, original\_server\_date, links\[\] and images\[\].

## What You Can Build

- **Recover removed articles or docs**: Fetch archived text or Markdown from a specific date when a live page is gone or changed.
- **Compare historical revisions**: Request two timestamps of the same URL to diff copy, links or metadata over time.
- **Audit past disclosures**: Inspect original\_server\_date, captured\_url and links\[\] for compliance or legal records.

## Returned Data

| Field | Meaning |
| --- | --- |
| `captured_url` | Archived URL actually captured |
| `date` | Archive capture timestamp |
| `format` | Returned content format |
| `content` | Extracted historical page content |
| `description` | Archived page meta description |
| `language` | Detected page language |
| `links[].url` | Extracted hyperlink target URL |
| `images[].url` | Extracted image URL |
| `raw_url` | Direct raw Wayback capture URL |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Wayback Machine historical page content API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "A page link or a domain, with or without https://."
        },
        "timestamp": {
          "type": "string",
          "description": "Date: YYYY, YYYYMM, YYYYMMDD or YYYYMMDDhhmmss (dashes allowed)."
        },
        "format": {
          "type": "string",
          "description": "markdown (default), text, html or raw.",
          "enum": [
            "markdown",
            "text",
            "html",
            "raw"
          ]
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      },
      "required": [
        "url"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "author": {
      "type": "null"
    },
    "cached": {
      "type": "boolean"
    },
    "canonical": {
      "type": "null"
    },
    "captured_url": {
      "type": "string"
    },
    "content": {
      "type": "string"
    },
    "content_type": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "date": {
      "type": "string"
    },
    "description": {
      "type": "null"
    },
    "format": {
      "type": "string"
    },
    "headings": {
      "type": "array",
      "items": {}
    },
    "image": {
      "type": "null"
    },
    "images": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "alt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "url": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "images_total": {
      "type": "integer"
    },
    "language": {
      "type": "null"
    },
    "length": {
      "type": "integer"
    },
    "links": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "internal": {
                "type": "boolean"
              },
              "text": {
                "type": "null"
              },
              "url": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "links_total": {
      "type": "integer"
    },
    "original_server_date": {
      "type": "string"
    },
    "published_at": {
      "type": "null"
    },
    "raw_url": {
      "type": "string"
    },
    "requested": {
      "type": "string"
    },
    "site_name": {
      "type": "null"
    },
    "snapshot_url": {
      "type": "string"
    },
    "timestamp": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "truncated": {
      "type": "boolean"
    },
    "url": {
      "type": "string"
    },
    "word_count": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/wayback/v1/page?output=json&url=bbc.com%2Fnews' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "author": null,
  "cached": false,
  "canonical": null,
  "captured_url": "http://www.apple.com/",
  "content": "# Apple\n\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n\n| ![](http://images.apple.c…",
  "content_type": "text/html",
  "credits_used": 1,
  "date": "2007-01-09T18:48:16Z",
  "description": null,
  "format": "markdown",
  "headings": [],
  "image": null,
  "images": [
    {
      "alt": null,
      "url": "http://images.apple.com/t/2007/us/en/i/1bg.gif"
    },
    {
      "alt": "Apple",
      "url": "http://images.apple.com/t/2007/us/en/i/1.gif"
    },
    "… 25 more"
  ],
  "images_total": 27,
  "language": null,
  "length": 30589,
  "links": [
    {
      "internal": true,
      "text": null,
      "url": "http://www.apple.com/"
    },
    {
      "internal": false,
      "text": null,
      "url": "http://store.apple.com/"
    },
    "… 31 more"
  ],
  "links_total": 33,
  "original_server_date": "Tue, 09 Jan 2007 18:47:33 GMT",
  "published_at": null,
  "raw_url": "https://web.archive.org/web/20070109184816id_/http://www.apple.com/",
  "requested": "2007-01-09",
  "site_name": null,
  "snapshot_url": "https://web.archive.org/web/20070109184816/http://www.apple.com/",
  "timestamp": "20070109184816",
  "title": "Apple",
  "truncated": false,
  "url": "apple.com",
  "word_count": 584
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What output formats are supported?
format accepts markdown (default), text, html or raw.

### What happens if I omit timestamp?
When timestamp is omitted, the endpoint resolves an available archived capture for the URL; check date and captured_url in the response.

### How precise can timestamp be?
Pass YYYY, YYYYMM, YYYYMMDD or YYYYMMDDhhmmss (dashes are allowed).

### Does the response include links and images from the archived page?
Yes. It returns links[] (with internal flag and anchor text), links_total, images[] and images_total.

### How do I find which dates have archived snapshots first?
Use the Wayback Machine Captures API or Wayback Nearest Capture API to inspect available timestamps.

### Are archived responses guaranteed to match live site content?
No. Responses represent historical captures recorded at the returned date and may differ from current pages.

## Available implementations
- apish: https://openany.si/wayback-machine/wayback-machine-historical-page-content-api/246ddcc1-2c05-42aa-84be-68eb8bbcec27/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
