# Wayback Machine on Onekey > 3 endpoints for Wayback Machine (3 stable, 0 beta), 1 to 5 credits each. Category: Web tools. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/wayback Reference (Markdown): https://onekey.dev/docs/api/wayback.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 3 mapped Wayback Machine endpoints return each: - `entity.createdAt` (ISO 8601 date): 3 - `entity.url` (URL): 3 - `listing.available` (boolean): 2 - plus 4 platform-specific fields under `ext.` ## Endpoints ### wayback.available Most recent Wayback Machine snapshot of a URL. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/wayback/available?url=example.com` with header `x-api-key: YOUR_API_KEY` - Parameters: - `url` (string, required): URL to look up (scheme optional) - Fields returned: `entity.url`, `entity.createdAt`, `listing.available`, `ext.httpStatus` - Reference: https://onekey.dev/docs/api/wayback/available.md ### wayback.closest Wayback Machine snapshot closest to a given date. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/wayback/closest?url=example.com×tamp=20200101` with header `x-api-key: YOUR_API_KEY` - Parameters: - `url` (string, required): URL to look up (scheme optional) - `timestamp` (string, required): Target date YYYYMMDD or YYYYMMDDhhmmss - Fields returned: `entity.url`, `entity.createdAt`, `listing.available`, `ext.httpStatus` - Reference: https://onekey.dev/docs/api/wayback/closest.md ### wayback.snapshots Wayback Machine CDX index: successful captures of a URL (one per day, newest 25). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wayback/snapshots?url=example.com` with header `x-api-key: YOUR_API_KEY` - Parameters: - `url` (string, required): URL to look up (scheme optional) - Fields returned: `entity.createdAt`, `entity.url`, `ext.mimeType`, `ext.httpStatus`, `ext.digest`, `ext.length` - Reference: https://onekey.dev/docs/api/wayback/snapshots.md ## Sample request ```bash curl "https://api.onekey.dev/v1/wayback/available?url=example.com" \ -H "x-api-key: YOUR_API_KEY" ```