hosting

GET /v1/site-imports/snapshots

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

כל נקודות הקצה מסוג hosting

אימות

שלחו מפתח API כאסימון נושא (bearer token). על המפתח לכלול את הרשאה sites.view; מפתח שאינו כולל אותה יידחה בסטטוס 403, ולא 404.

נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.

נסה זאת

החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.

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

מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-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 t…
errorstringכןWhy the last refresh failed; empty when it did not.
fetched_atstringלא

שגיאות שנקודה קצה זו עשויה להחזיר

401 · 403 · 422 · 429