hosting

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

Edge hits, bytes and country breakdown for a site.

Todos os endpoints de hosting

Autenticação

Envie uma chave de API como um token de portador. A chave deve ter a permissão sites.view; uma chave sem ela é recusada com 403, e não 404.

Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.

Experimente

Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.

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

Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API

Detalhes

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`.

Parâmetros

NomeTipoObrigatórioO que é
siteId (path)UuidSimSite ID (UUIDv7).
window (query)string<Last24Hours, Last30Days, Last12Months>NãoWhich bucket of hits and bytes to return.
period (query)string<Last1Hour, Last24Hours, Last7Days>NãoWhich 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…

Resposta

NomeTipoObrigatórioO que é
windowstringSim
windowsstring[]Sim
hitsSiteCdnPoint[]Sim
bytesSiteCdnPoint[]Sim
periodstringSimThe window the country breakdown covers, or empty when the requested `period` is not one this vendor endpoint accepts.
periodsstring[]Sim
countriesSiteCdnCountry[]Sim

Erros que este endpoint pode retornar

401 · 403 · 404 · 422 · 429 · 503