hosting

GET /v1/site-imports/snapshots

What a web archive holds for a domain, by day.

Բոլոր hosting վերջնակետերը

Բոլոր մշակողների փաստաթղթերը

Նույնականացում

Ուղարկեք API բանալին որպես bearer token: Բանալին պետք է ունենա sites.view թույլտվությունը. առանց դրա բանալին մերժվում է 403, և ոչ թե 404 կարգավիճակով:

Այս վերջնակետը կազմակերպության ID չի ընդունում: Ձեր բանալին արդեն իսկ նույնականացնում է այն կազմակերպությունը, որին պատկանում է, և պատասխանը սահմանափակված է դրանով:

Փորձել

Փոխարինեք անկյունային փակագծերում գտնվող ցանկացած բան ձեր սեփական արժեքներով, և բանալու տեղապահը՝ ձեր վահանակի բանալիով:

curl -X GET https://api.zinndigital.com/v1/site-imports/snapshots?domain=<domain> \
  -H "Authorization: Bearer zdk_live_…"

Մուտք գործե՞լ եք: Ձեր վահանակի API վահանակը լրացնում է ձեր իրական կազմակերպության ID-ն և ձեր սեփական բանալին և գործարկում է հարցումը ուղիղ API-ի դեմ, որպեսզի կարողանաք տեսնել փաստացի պատասխանը: Բացեք այս վերջնակետը 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.

Պատասխան

ԱնունՏեսակՊահանջվում էԻնչ է դա
domainstringԱյո
statestring<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.
daysArchiveSnapshotDay[]Այո
total_capturesintegerԱյո
truncatedbooleanԱյո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 the…
errorstringԱյոWhy the last refresh failed; empty when it did not.
fetched_atstringՈչ

Այս վերջնակետի կողմից վերադարձվող սխալները

401 · 403 · 422 · 429