hosting
GET /v1/site-imports/snapshots
What a web archive holds for a domain, by day.
Упълномощаване
Изпратете API ключ като токен за носене. Ключът трябва да притежава разрешението sites.view; ключ без него се отхвърля с 403, а не с 404.
Този ендпойнт не изисква идентификатор на организация. Вашият ключ вече идентифицира организацията, към която принадлежи, и отговорът е ограничен до нея.
Опитайте
Заменете всичко в квадратни скоби със собствени стойности, а ключовия заместващ символ – с ключ от вашето табло за управление.
curl -X GET https://api.zinndigital.com/v1/site-imports/snapshots?domain=<domain> \
-H "Authorization: Bearer zdk_live_…"Влязохте ли в профила си? API конзолата във вашето табло за управление попълва действителното идентификационно число на вашата организация и вашия собствен ключ и изпълнява заявката спрямо реалното API, за да можете да видите действителния отговор. Отворете този крайpoint в API конзолата
Детайли
The date picker's data for a Wayback restore. ⛔ **A cached database read, never a live archive call.** The Internet Archive's CDX index answered a two-row query in 41.9 seconds when measured on 2026-08-06, so an endpoint that blocked on it would hold a worker per customer and read as broken. When the cache is absent or stale this starts a durable refresh workflow and answers `202` with `state: "pending"`; poll it. `state` has four values and they are not interchangeable — `pending` (never fetched), `ready` (fresh), `stale` (usable but past its TTL, a refresh is running) and `error` (the archive refused, and the reason is in `error`). Requires `sites.view`.
Параметри
| Име | Тип | Задължително | Какво представлява |
|---|---|---|---|
domain (query) | string | Да | The domain to look up, e.g. `example.com`. `www.` is ignored. |
Отговор
| Име | Тип | Задължително | Какво представлява |
|---|---|---|---|
domain | string | Да | — |
state | string<pending, ready, stale, error> | Да | Four states, and they are not interchangeable — collapsing `error` into `pending` leaves a customer watching a spinner for something that will never arrive. |
days | ArchiveSnapshotDay[] | Да | — |
total_captures | integer | Да | — |
truncated | boolean | Да | True when the archive stopped short of the whole index. Reported rather than swallowed: a picker showing the first 50,000 of 400,000 captures while implying completeness tells t… |
error | string | Да | Why the last refresh failed; empty when it did not. |
fetched_at | string | Не | — |
Грешки, които този крайpoint може да върне
401 · 403 · 422 · 429