# Wayback Machine page and site capture statistics API

Get Wayback Capture Stats 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, resolved hostname, and date to estimate domain history, plan targeted snapshot queries, and benchmark site archive footprint.

Documentation: https://openany.si/wayback-machine/wayback-machine-page-and-site-capture-statistics-api/75687006-f5d9-41ed-b391-a30e4e976595/
API ID: 75687006-f5d9-41ed-b391-a30e4e976595
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/wayback/v1/summary
Page update time: 2026-12-03T02:55:14.778Z
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:12.522Z. 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 Capture Stats API

Pass url (a webpage URL or domain, with or without https://) in the GET query string. The response returns total\_captures, first\_capture, last\_capture, per-year and per-month capture arrays for the URL, plus site-wide archive totals and yearly MIME/KB stats.

## What You Can Build

- **Estimate domain history**: Check first\_capture.date and yearly activity before researching an older domain.
- **Plan targeted snapshot queries**: Identify active years and months before filtering date ranges in the Wayback Machine Captures API.
- **Benchmark site archive footprint**: Compare site.totals.captures, urls\_captured and archived\_kb across domains.

## Returned Data

| Field | Meaning |
| --- | --- |
| `url` | Queried URL or domain |
| `host` | Resolved hostname |
| `total_captures` | Total archived captures for the URL |
| `first_capture.date` | Timestamp of the earliest recorded capture |
| `last_capture.date` | Timestamp of the most recent recorded capture |
| `years[].year` | Calendar year in the URL capture breakdown |
| `years[].captures` | Capture count for that year |
| `site.totals.captures` | Total archived captures across the host |
| `site.totals.urls_captured` | Total distinct URLs captured on the host |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Wayback Machine page and site capture statistics 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://."
        },
        "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": {
    "cached": {
      "type": "boolean"
    },
    "credits_used": {
      "type": "integer"
    },
    "first_capture": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string"
        },
        "snapshot_url": {
          "type": "string"
        },
        "timestamp": {
          "type": "string"
        }
      }
    },
    "host": {
      "type": "string"
    },
    "last_capture": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string"
        },
        "snapshot_url": {
          "type": "string"
        },
        "timestamp": {
          "type": "string"
        }
      }
    },
    "site": {
      "type": "object",
      "properties": {
        "host": {
          "type": "string"
        },
        "indexed_at": {
          "type": "string"
        },
        "totals": {
          "type": "object",
          "properties": {
            "captures": {
              "type": "integer"
            },
            "new_urls": {
              "type": "integer"
            },
            "urls_captured": {
              "type": "integer"
            }
          }
        },
        "years": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "archived_kb": {
                    "type": "integer"
                  },
                  "captures": {
                    "type": "integer"
                  },
                  "captures_by_type": {
                    "type": "object",
                    "properties": {
                      "image/gif": {
                        "type": "integer"
                      },
                      "text/html": {
                        "type": "integer"
                      },
                      "application/pdf": {
                        "type": "integer"
                      },
                      "image/jpeg": {
                        "type": "integer"
                      }
                    }
                  },
                  "new_urls": {
                    "type": "integer"
                  },
                  "new_urls_by_type": {
                    "type": "object",
                    "properties": {
                      "image/gif": {
                        "type": "integer"
                      },
                      "text/html": {
                        "type": "integer"
                      },
                      "application/pdf": {
                        "type": "integer"
                      },
                      "image/jpeg": {
                        "type": "integer"
                      }
                    }
                  },
                  "urls": {
                    "type": "integer"
                  },
                  "urls_by_type": {
                    "type": "object",
                    "properties": {
                      "image/gif": {
                        "type": "integer"
                      },
                      "text/html": {
                        "type": "integer"
                      },
                      "application/pdf": {
                        "type": "integer"
                      },
                      "image/jpeg": {
                        "type": "integer"
                      }
                    }
                  },
                  "year": {
                    "type": "integer"
                  }
                }
              },
              {
                "type": "string"
              }
            ]
          }
        }
      }
    },
    "total_captures": {
      "type": "integer"
    },
    "url": {
      "type": "string"
    },
    "years": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "captures": {
                "type": "integer"
              },
              "months": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "captures": {
                          "type": "integer"
                        },
                        "month": {
                          "type": "integer"
                        },
                        "name": {
                          "type": "string"
                        },
                        "status": {
                          "type": "null"
                        }
                      }
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "year": {
                "type": "integer"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/wayback/v1/summary?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
{
  "cached": false,
  "credits_used": 1,
  "first_capture": {
    "date": "1996-10-22T10:54:58Z",
    "snapshot_url": "https://web.archive.org/web/19961022105458/apple.com",
    "timestamp": "19961022105458"
  },
  "host": "apple.com",
  "last_capture": {
    "date": "2026-11-04T01:14:31Z",
    "snapshot_url": "https://web.archive.org/web/20261104011431/apple.com",
    "timestamp": "20261104011431"
  },
  "site": {
    "host": "apple.com",
    "indexed_at": "2026-05-28T07:41:20Z",
    "totals": {
      "captures": 247664229,
      "new_urls": 41593190,
      "urls_captured": 46287759
    },
    "years": [
      {
        "archived_kb": 122243,
        "captures": 48,
        "captures_by_type": {
          "image/gif": 4,
          "text/html": 44
        },
        "new_urls": 21,
        "new_urls_by_type": {
          "image/gif": 2,
          "text/html": 19
        },
        "urls": 21,
        "urls_by_type": {
          "image/gif": 2,
          "text/html": 19
        },
        "year": 1996
      },
      {
        "archived_kb": 7770160,
        "captures": 1595,
        "captures_by_type": {
          "application/pdf": 7,
          "image/gif": 685,
          "image/jpeg": 43,
          "text/html": 860
        },
        "new_urls": 1511,
        "new_urls_by_type": {
          "application/pdf": 7,
          "image/gif": 681,
          "image/jpeg": 43,
          "text/html": 780
        },
        "urls": 1532,
        "urls_by_type": {
          "application/pdf": 7,
          "image/gif": 683,
          "image/jpeg": 43,
          "text/html": 799
        },
        "year": 1997
      },
      "… 29 more"
    ]
  },
  "total_captures": 809021,
  "url": "apple.com",
  "years": [
    {
      "captures": 9,
      "months": [
        {
          "captures": 0,
          "month": 1,
          "name": "jan",
          "status": null
        },
        {
          "captures": 0,
          "month": 2,
          "name": "feb",
          "status": null
        },
        "… 10 more"
      ],
      "year": 1996
    },
    {
      "captures": 21,
      "months": [
        {
          "captures": 0,
          "month": 1,
          "name": "jan",
          "status": null
        },
        {
          "captures": 0,
          "month": 2,
          "name": "feb",
          "status": null
        },
        "… 10 more"
      ],
      "year": 1997
    },
    "… 29 more"
  ]
}
```

## 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
### Does this endpoint return individual snapshot URLs for every date?
It returns first_capture and last_capture links plus yearly/monthly counts; use the Wayback Machine Captures API to list individual snapshots.

### What is the difference between years[] and site.years[]?
years[] summarizes captures for the requested URL, while site.years[] summarizes host-wide captures, new URLs and archived kilobytes.

### Does first_capture.date prove when a domain was registered?
No. It marks the earliest capture recorded in the Wayback Machine, which may be later than domain registration.

### Can I pass a domain without https://?
Yes. Pass either a full page URL or a bare domain such as example.com.

### How can I reduce response size for long-lived domains?
Pass raw=0 to omit bulky raw blocks or use fields to request only summary totals.

### How fresh are the archive statistics?
Responses may be served from a 24-hour cache by default; pass fresh=1 to query live archive statistics.

## Available implementations
- apish: https://openany.si/wayback-machine/wayback-machine-page-and-site-capture-statistics-api/75687006-f5d9-41ed-b391-a30e4e976595/

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