API
Overview endpoints
These three endpoints return the headline numbers for a site. All of them need the analytics:read scope. They also answer for public sites and private links.
Last updated . This guide belongs to API access and data export.
GET /sites/:siteId/overview
Returns the totals for the period. Takes the shared time parameters, filters and segment_id.
| Field | Content |
|---|---|
sessions, pageviews, users | Counts for the period |
pages_per_session | Pageviews divided by sessions |
bounce_rate | A percentage from 0 to 100 |
session_duration | The average in seconds |
{ "data": { "sessions": 1843, "pageviews": 4120, "users": 1502, "pages_per_session": 2.235, "bounce_rate": 54.31, "session_duration": 96.4 } }
users counts your own user ID for identified visitors and the anonymous ID for the rest.
GET /sites/:siteId/overview/time-series
Returns the same numbers per time bucket. Empty buckets come back as zero.
| Parameter | Values | Default |
|---|---|---|
bucket | minute, five_minutes, ten_minutes, fifteen_minutes, hour, day, week, month, year | hour |
{ "data": [ { "time": "2026-11-18 00:00:00", "sessions": 72, "pageviews": 151, "users": 64, "pages_per_session": 2.1, "bounce_rate": 51.39, "session_duration": 88.2 } ] }
time is cut to the bucket in the time zone you send. Weeks start on Monday.
GET /sites/:siteId/live-user-count
Returns the number of visitors with an event in the last few minutes.
| Parameter | Meaning | Default |
|---|---|---|
minutes | How far back to look | 5 |
{ "count": 17 }