Documentation
APIAPI reference

Realtime

Activity from the last few minutes: active visitors, recent events, and live sessions.

POST/api/v1/sites/{siteId}/analytics/realtime/snapshot

Get realtime snapshot

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.

Scopesanalytics:readBatchable
Path parameters
siteIdstringrequired

ID of the site (see List sites).

≥ 1 chars
Request bodyapplication/json
timeRangeobjectrequired

Reporting 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.

limitintegerrequired

Maximum number of events and sessions, 1–500.

Default 1001–500
Responses
POST/api/v1/sites/{siteId}/analytics/realtime/active-visitors

Get active visitors

Returns the number of visitors active in the time range.

Scopesanalytics:readBatchable
Path parameters
siteIdstringrequired

ID of the site (see List sites).

≥ 1 chars
Request bodyapplication/json
timeRangeobjectrequired

Reporting 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.

Responses
POST/api/v1/sites/{siteId}/analytics/realtime/events

List realtime events

Lists the most recent page views and events, newest first.

Scopesanalytics:readBatchable
Path parameters
siteIdstringrequired

ID of the site (see List sites).

≥ 1 chars
Request bodyapplication/json
timeRangeobjectrequired

Reporting 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.

limitintegerrequired

Maximum number of rows to return.

Default 1001–500
Responses
POST/api/v1/sites/{siteId}/analytics/realtime/sessions

List live sessions

Lists sessions that were active in the time range.

Scopesanalytics:readBatchable
Path parameters
siteIdstringrequired

ID of the site (see List sites).

≥ 1 chars
Request bodyapplication/json
timeRangeobjectrequired

Reporting 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.

limitintegerrequired

Maximum number of rows to return.

Default 1001–500
Responses