Realtime
Activity from the last few minutes: active visitors, recent events, and live sessions.
Returns the active visitor count, recent events, and live visits in one response. Use a short time range ending now, such as the last 30 minutes.
siteIdstringrequiredID of the site (see List sites).
timeRangeobjectrequiredReporting window. Use { "kind": "preset", "preset": "last_7_days" } or an absolute range { "kind": "absolute", "from": "…", "to": "…" } with RFC 3339 timestamps. timeZone (IANA name) sets calendar boundaries for presets and buckets.
limitintegerrequiredMaximum number of events and sessions, 1–500.
Returns the number of visitors active in the time range.
siteIdstringrequiredID of the site (see List sites).
timeRangeobjectrequiredReporting window. Use { "kind": "preset", "preset": "last_7_days" } or an absolute range { "kind": "absolute", "from": "…", "to": "…" } with RFC 3339 timestamps. timeZone (IANA name) sets calendar boundaries for presets and buckets.
Lists the most recent page views and events, newest first.
siteIdstringrequiredID of the site (see List sites).
timeRangeobjectrequiredReporting window. Use { "kind": "preset", "preset": "last_7_days" } or an absolute range { "kind": "absolute", "from": "…", "to": "…" } with RFC 3339 timestamps. timeZone (IANA name) sets calendar boundaries for presets and buckets.
limitintegerrequiredMaximum number of rows to return.
Lists sessions that were active in the time range.
siteIdstringrequiredID of the site (see List sites).
timeRangeobjectrequiredReporting window. Use { "kind": "preset", "preset": "last_7_days" } or an absolute range { "kind": "absolute", "from": "…", "to": "…" } with RFC 3339 timestamps. timeZone (IANA name) sets calendar boundaries for presets and buckets.
limitintegerrequiredMaximum number of rows to return.