capture_history
Every capture the Wayback Machine holds for a URL, URL prefix, host or whole domain (CDX index). Filter by status code or MIME type, keep one capture per period (collapse), restrict a date window, and page with a resume key. Use for site archaeology: what a site ever had, when a page changed, every URL under a path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Window end, same format. | |
| url | Yes | URL or domain to query, e.g. "example.com/blog/" for prefix work or "example.com" with match_type "domain". | |
| from | No | Window start, 4–14 digits (YYYY…). | |
| limit | No | Rows to return (default 50, max 1000), oldest first unless latest_first. | |
| filter | No | CDX field:regex filters, e.g. ["statuscode:200", "!mimetype:warc/revisit"]. Prefix with ! to negate. | |
| collapse | No | Dedupe key: "urlkey" (one row per URL), or "timestamp:6" for one capture per month, "timestamp:4" per year. | |
| match_type | No | How url matches captures. Default exact. | exact |
| resume_key | No | Continue a previous page: the resume_key that call returned. | |
| latest_first | No | Return the NEWEST captures instead of the oldest (CDX negative limit). Cannot be combined with resume_key. | |
| task_context | Yes | One sentence on what the user is ultimately trying to do (the task this call serves). Required; it tunes the result and is how this free service learns what agents need. |