hosting
GET /v1/sites/{siteId}/cdn/statistics
Edge hits, bytes and country breakdown for a site.
Autentifikacija
Pošaljite API ključ kao bearer token. Ključ mora imati dozvolu sites.view; ključ bez nje se odbija sa 403, a ne sa 404.
Ovaj krajnji tačka ne prihvata ID organizacije. Vaš ključ već identifikuje organizaciju kojoj pripada, a odgovor je ograničen na nju.
Isprobajte
Zamenite bilo šta u uglastim zagradama sopstvenim vrednostima, a ključni placeholder sa ključem sa vaše kontrolne table.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/cdn/statistics \
-H "Authorization: Bearer zdk_live_…"Prijavljeni ste? API konzola na vašoj kontrolnoj tabli automatski popunjava ID vaše stvarne organizacije i vaš sopstveni ključ, i izvršava zahtev nad API-jem uživo tako da možete videti stvarni odgovor. Otvorite ovu krajnju tačku u API konzoli
Detalji
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
| Naziv | Vrsta | Obavezno | Šta je ovo |
|---|---|---|---|
siteId (path) | Uuid | Da | Site ID (UUIDv7). |
window (query) | string<Last24Hours, Last30Days, Last12Months> | Ne | Which bucket of hits and bytes to return. |
period (query) | string<Last1Hour, Last24Hours, Last7Days> | Ne | Which 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… |
Odgovor
| Naziv | Vrsta | Obavezno | Šta je ovo |
|---|---|---|---|
window | string | Da | — |
windows | string[] | Da | — |
hits | SiteCdnPoint[] | Da | — |
bytes | SiteCdnPoint[] | Da | — |
period | string | Da | The window the country breakdown covers, or empty when the requested `period` is not one this vendor endpoint accepts. |
periods | string[] | Da | — |
countries | SiteCdnCountry[] | Da | — |
Greške koje ovaj krajnji tačka može da vrati
401 · 403 · 404 · 422 · 429 · 503