Get Stats
Retrieve aggregate analytics statistics for a site.
Get Stats
Returns aggregate statistics for the given time period.
Endpoint
GET /api/v1/organizations/:orgId/sites/:siteId/analytics/stats
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
period | string | No | Time period (day, 7d, 30d, month, 12mo, custom) |
date | string | No | Base date (ISO 8601) |
from | string | No | Start date for custom range |
to | string | No | End date for custom range |
filters | string | No | JSON-encoded filter array |
Response fields
| Field | Type | Description |
|---|---|---|
pageviews | number | Total pageviews in the period |
unique_visitors | number | Unique visitors (distinct hashes) |
sessions | number | Unique sessions |