# Wayback Machine Lookup API

> Find the closest Wayback Machine snapshot of a URL (optionally near a target timestamp). Returns the snapshot URL, its capture timestamp, and HTTP status.

Category: [Data APIs](https://upapi.io/apis/data) · Last updated 2026-06-12

## How to call it

- Endpoint: `POST https://api.upapi.io/archive-wayback.get`, key in the `X-Api-Key` header, JSON body.
- Cost: 1 weighted unit per call.
- Timeout: 15 seconds.
- Cache: identical requests are served from cache for 3600 seconds, unbilled.
- Try it without writing code: https://app.upapi.io/try/archive-wayback.get

```bash
curl -X POST https://api.upapi.io/archive-wayback.get \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "url": "https://github.com" }'
```

## Request parameters

- `url` (string, required) — URL to look up in the Wayback Machine
- `timestamp` (string) — Optional target time YYYYMMDDhhmmss (partial ok). Omit for the newest snapshot.

## Response fields

- `found` (boolean, required)
- `closest` (object, required)
- `fetchedAt` (string, required)
- `queriedUrl` (string, required)

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "url": "https://github.com"
}
```

```json
{
  "found": false,
  "closest": {
    "url": "https://github.com",
    "status": 1,
    "takenAt": "example",
    "timestamp": "example"
  },
  "fetchedAt": "example",
  "queriedUrl": "example"
}
```

## Frequently asked questions

### How much does the Wayback Machine Lookup API cost per call?

Each call spends 1 weighted unit of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the Wayback Machine Lookup API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are Wayback Machine Lookup API responses cached?

Yes — identical requests are served from cache for 3600 seconds, and a cache hit is not billed.

## More Data APIs

- [Geolocate IP Address](https://upapi.io/apis/data/ip-geolocation)
- [Get Current Weather](https://upapi.io/apis/data/weather-current)
- [Get Wikipedia Article Summary](https://upapi.io/apis/data/wikipedia-article)
- [Look Up Timezone](https://upapi.io/apis/data/timezone-lookup)
- [Get BBC News Headlines](https://upapi.io/apis/data/bbc-news)
