Documentation menuAPI: Overview

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.

FieldContent
sessions, pageviews, usersCounts for the period
pages_per_sessionPageviews divided by sessions
bounce_rateA percentage from 0 to 100
session_durationThe 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.

ParameterValuesDefault
bucketminute, five_minutes, ten_minutes, fifteen_minutes, hour, day, week, month, yearhour
{ "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.

ParameterMeaningDefault
minutesHow far back to look5
{ "count": 17 }