# Wayback Snapshot

Is this URL in the Internet Archive, and where's the closest snapshot? The first question anyone linking to the past needs answered.

- Method: `GET`
- Path: `/v1/wayback`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `url` | string | required | The full URL to look up. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/wayback \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "url": "https://www.wikipedia.org/",
    "available": true,
    "snapshot_url": "http://web.archive.org/web/20260820000621/https://www.wikipedia.org/",
    "snapshot_timestamp": "20260820000621",
    "snapshot_status": "200"
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-20T16:30:00.000Z",
    "age_seconds": 120,
    "next_update_at": "2026-08-20T17:00:00.000Z"
  }
}
```