# Wayback Machine snapshots: `POST /v1/archive/wayback`

Cost: 2 credits (2 (a URL with no snapshot and failed requests are free)). Docs: https://scrapercompany.com/docs/reference/archive-wayback

Wayback Machine captures of one URL.

mode=available answers the closest snapshot (optionally near a
timestamp); mode=snapshots lists captures oldest first with their
snapshot URLs. A URL with no snapshot is a 404 and is not charged.

Request body (JSON):

- `url` (string; required; max length 2000): Page URL (scheme optional).
- `mode` (string; optional; default available; one of available, snapshots): available: the closest snapshot. snapshots: the capture list, oldest first.
- `timestamp` (string | null; optional; max length 14): With mode=available, prefer snapshots near this YYYYMMDDhhmmss time.
- `limit` (integer; optional; default 100; min 1, max 1000): With mode=snapshots, max captures.
- `year_from` (integer | null; optional; min 1000, max 9999): With snapshots, first year.
- `year_to` (integer | null; optional; min 1000, max 9999): With snapshots, last year.

Base URL: `https://api.scrapercompany.com`. Auth: send your key in the `x-api-key` header. A failed request (4xx or 5xx) or an empty result costs 0 credits.

- [Full API reference as one Markdown file](https://scrapercompany.com/llms-full.txt)
- [OpenAPI spec](https://scrapercompany.com/openapi.json)
