A site's visitors, pageviews and breakdowns for a range
GET
/api/v1/analytics/statsNeeds deploy.manage. Ranges over 31 days come from the daily totals: source is daily and the breakdowns they do not keep are listed in unavailable.
En esta página
Parámetros
| Campo | En | Tipo | Descripción |
|---|---|---|---|
scopeTypeobligatorio | consulta | string |
|
scopeId | consulta | string |
|
rangeobligatorio | consulta | string |
|
filters | consulta | string | JSON list of filters, as the Analytics address carries them
|
compare | consulta | string |
|
breakdown | consulta | string | Comma list of breakdowns; all when omitted
|
Petición de ejemplo
curl -X GET "https://polaris.example.com/api/v1/analytics/stats" \
-H "Authorization: Bearer $POLARIS_API_KEY"Respuestas
| Estado | Qué es |
|---|---|
200 | OK |
También puede dar los errores comunes 400, 401, 403, 404, 429. Ver errores comunes