hosting

GET /v1/sites/{siteId}/cdn/analytics

Read edge traffic for a site's CDN zone.

Wszystkie punkty końcowe hosting

Uwierzytelnianie

Wyślij klucz API jako token bearer. Klucz musi posiadać uprawnienie sites.view; klucz bez niego jest odrzucany z kodem 403, a nie 404.

Ten punkt końcowy nie wymaga identyfikatora organizacji. Twój klucz już identyfikuje organizację, do której należy, a odpowiedź jest do niej ograniczona.

Wypróbuj

Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.

curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/cdn/analytics \
  -H "Authorization: Bearer zdk_live_…"

Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API

Szczegóły

Daily requests, bytes, threats and unique visitors as counted **at the CDN edge**. This is not the same measurement as `/v1/sites/{siteId}/cdn/statistics`, and the two will not agree. That endpoint reports the hosting platform's own edge cache for a site on a managed hosting plan; this one reports the Cloudflare zone's. A site may have one, the other, both or neither, and they are counted at different edges — collapsing them into one number would invent a figure that is true of neither. Requires `sites.view`.

Parametry

NazwaTypWymaganeCo to jest
siteId (path)UuidTakSite ID (UUIDv7).
days (query)integerNieHow many days to report, clamped to 1–30. Clamped rather than trusted: this is reachable from a screen a customer can refresh, against a provider API whose request budget is sha…

Odpowiedź

NazwaTypWymaganeCo to jest
site_idUuidTakUUIDv7 identifier — sortable by creation time (docs/02 §8).
supportedbooleanTak
daysCdnTrafficDay[]TakMost recent first.
total_requestsintegerTak
total_threatsintegerTak

Błędy, które ten punkt końcowy może zwrócić

401 · 403 · 404 · 429 · 503