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.
On this page
Parameters
| Field | In | Type | Description |
|---|---|---|---|
scopeTyperequired | query | string |
|
scopeId | query | string |
|
rangerequired | query | string |
|
filters | query | string | JSON list of filters, as the Analytics address carries them
|
compare | query | string |
|
breakdown | query | string | Comma list of breakdowns; all when omitted
|
Example request
curl -X GET "https://polaris.example.com/api/v1/analytics/stats" \
-H "Authorization: Bearer $POLARIS_API_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
Can also answer the common errors 400, 401, 403, 404, 429. See common errors