API
Events endpoints
These endpoints return the events a site has collected, raw or counted. Scope: events:read.
Last updated . This guide belongs to API access and data export.
GET /sites/:siteId/events
Returns single events, newest first. Not available for public sites. A private link gets it without personal fields.
| Parameter | Meaning | Default |
|---|---|---|
page_size | Events per request. Maximum 1,000 | 50 |
before_timestamp | Returns events older than this time | |
since_timestamp | Returns events newer than this time, at most 500 |
Of the time parameters, only start_date and end_date apply here. filters and segment_id work as usual.
{ "data": [ { "timestamp": "2026-11-18 10:05:30", "type": "custom_event", "event_name": "signup_click", "properties": "{\"plan\":\"business\"}", "session_id": "a1b2c3d4e5f6", "pathname": "/pricing", "country": "NO" } ], "cursor": { "hasMore": true, "oldestTimestamp": "2026-11-18 10:05:30" } }
To page, send cursor.oldestTimestamp as before_timestamp in the next request. properties is a JSON object written as text.
The cursor works on whole seconds. Events in the same second as the boundary can be skipped.
Which counting endpoints are there?
All of these take the shared time parameters, filters and segment_id. Public sites and private links can call them.
| Endpoint | Returns | Extra parameters |
|---|---|---|
GET /sites/:siteId/events/count | Events per bucket, split by type | bucket, default day |
GET /sites/:siteId/events/time-series | Counts per bucket for the top custom events | bucket, default hour. limit from 1 to 10, default 5 |
GET /sites/:siteId/events/names | Custom event names with counts, up to 1,000 | |
GET /sites/:siteId/events/properties | Property keys and values for one event, up to 500 | event_name, required |
GET /sites/:siteId/events/autocapture | Captured interactions grouped by value, up to 1,000 | type, required: outbound, button_click, form_submit or copy |
GET /sites/:siteId/events/outbound | Outbound links with click counts, up to 1,000 |
The two bucket endpoints return only buckets that have events. An unknown bucket returns status 400.