hosting

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

Edge hits, bytes and country breakdown for a site.

Tutti gli endpoint hosting

Autenticazione

Invia una chiave API come token di tipo bearer. La chiave deve disporre dell'autorizzazione sites.view; una chiave sprovvista di tale autorizzazione viene rifiutata con 403 anziché 404.

Questo endpoint non richiede alcun ID organizzazione. La tua chiave identifica già l'organizzazione a cui appartiene e la risposta è limitata ad essa.

Provalo

Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua dashboard.

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

Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API

Dettagli

Points are returned in the vendor's own buckets and in time order, not re-aggregated: re-bucketing would invent numbers the CDN did not measure. Requires `sites.view`.

Parametri

NomeTipoObbligatorioChe cos'è
siteId (path)UuidSite ID (UUIDv7).
window (query)string<Last24Hours, Last30Days, Last12Months>NoWhich bucket of hits and bytes to return.
period (query)string<Last1Hour, Last24Hours, Last7Days>NoWhich window the country breakdown covers. ⛔ **A different vocabulary from `window`** — the two vendor endpoints underneath do not share one, and `Last30Days` is a valid `window…

Risposta

NomeTipoObbligatorioChe cos'è
windowstring
windowsstring[]
hitsSiteCdnPoint[]
bytesSiteCdnPoint[]
periodstringThe window the country breakdown covers, or empty when the requested `period` is not one this vendor endpoint accepts.
periodsstring[]
countriesSiteCdnCountry[]

Errori che questo endpoint può restituire

401 · 403 · 404 · 422 · 429 · 503