# Wayback Machine captures of a URL API

Get Wayback Machine Captures 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 queried URL or domain, 14-digit Wayback capture timestamp, formatted capture timestamp, captured target URL, and archived HTTP status code to build url change timelines, discover archived domain paths, and feed historical content extraction.

Documentation: https://openany.si/market/apis/wayback-machine/wayback-machine-captures-of-a-url-api/?offering=9d127696-05c8-4d1c-84e2-6e677ba485a0
API ID: 9d127696-05c8-4d1c-84e2-6e677ba485a0
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/wayback/v1/snapshots
Page update time: 2026-12-03T02:55:00.570Z
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. Price update time: not supplied.
Contract update time: 2026-12-03T02:55:00.232Z. 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": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Wayback Machine captures of a URL 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://."
        },
        "from": {
          "type": "string",
          "description": "From date: YYYY, YYYYMM, YYYYMMDD or YYYYMMDDhhmmss (dashes allowed)."
        },
        "to": {
          "type": "string",
          "description": "To date, same forms."
        },
        "match": {
          "type": "string",
          "description": "exact (default), prefix, host or domain.",
          "enum": [
            "exact",
            "prefix",
            "host",
            "domain"
          ]
        },
        "status": {
          "type": "string",
          "description": "HTTP status filter: 200, 3xx, !404."
        },
        "mime": {
          "type": "string",
          "description": "MIME type filter: text/html, application/pdf, image/*."
        },
        "collapse": {
          "type": "string",
          "description": "One capture per hour, day, month, year, content or url.",
          "enum": [
            "hour",
            "day",
            "month",
            "year",
            "content",
            "url"
          ]
        },
        "order": {
          "type": "string",
          "description": "oldest (default) or newest.",
          "enum": [
            "oldest",
            "newest"
          ]
        },
        "limit": {
          "type": "integer",
          "description": "Captures per page, up to 1000 (default 100)."
        },
        "cursor": {
          "type": "string",
          "description": "next_cursor from the previous page."
        },
        "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": {
    "applied_filters": {
      "type": "object",
      "properties": {}
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "limit": {
      "type": "integer"
    },
    "next_cursor": {
      "type": "string"
    },
    "snapshots": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "date": {
                "type": "string"
              },
              "digest": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "length": {
                "type": "integer"
              },
              "mime": {
                "type": "string"
              },
              "raw_url": {
                "type": "string"
              },
              "snapshot_url": {
                "type": "string"
              },
              "status": {
                "type": "integer"
              },
              "timestamp": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "urlkey": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "url": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/wayback/v1/snapshots?output=json&url=example.com' \
  -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
{
  "applied_filters": {},
  "cached": false,
  "count": 100,
  "credits_used": 1,
  "limit": 100,
  "next_cursor": "eJxLzs_VSa1IzC3ISdXUVzAyMDAxMDMyMzQ0MDI1AgB_dgeP",
  "snapshots": [
    {
      "date": "2002-01-20T14:25:10Z",
      "digest": "HT2DYGA5UKZCPBSFVCV3JOBXGW2G5UUA",
      "id": "20020120142510/http://example.com:80/",
      "length": 1792,
      "mime": "text/html",
      "raw_url": "https://web.archive.org/web/20020120142510id_/http://example.com:80/",
      "snapshot_url": "https://web.archive.org/web/20020120142510/http://example.com:80/",
      "status": 200,
      "timestamp": "20020120142510",
      "url": "http://example.com:80/",
      "urlkey": "com,example)/"
    },
    {
      "date": "2002-03-28T01:28:21Z",
      "digest": "UY3I2DT2AMWAY6DECFCFYMT5ZOTFHUCH",
      "id": "20020328012821/http://www.example.com:80/",
      "length": 481,
      "mime": "text/html",
      "raw_url": "https://web.archive.org/web/20020328012821id_/http://www.example.com:80/",
      "snapshot_url": "https://web.archive.org/web/20020328012821/http://www.example.com:80/",
      "status": 200,
      "timestamp": "20020328012821",
      "url": "http://www.example.com:80/",
      "urlkey": "com,example)/"
    },
    "… 98 more"
  ],
  "url": "example.com"
}
```

## 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.

## Available implementations
- apish: https://openany.si/market/apis/wayback-machine/wayback-machine-captures-of-a-url-api/?offering=9d127696-05c8-4d1c-84e2-6e677ba485a0

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