Documentation menuAPI: Events

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.

ParameterMeaningDefault
page_sizeEvents per request. Maximum 1,00050
before_timestampReturns events older than this time
since_timestampReturns 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.

EndpointReturnsExtra parameters
GET /sites/:siteId/events/countEvents per bucket, split by typebucket, default day
GET /sites/:siteId/events/time-seriesCounts per bucket for the top custom eventsbucket, default hour. limit from 1 to 10, default 5
GET /sites/:siteId/events/namesCustom event names with counts, up to 1,000
GET /sites/:siteId/events/propertiesProperty keys and values for one event, up to 500event_name, required
GET /sites/:siteId/events/autocaptureCaptured interactions grouped by value, up to 1,000type, required: outbound, button_click, form_submit or copy
GET /sites/:siteId/events/outboundOutbound links with click counts, up to 1,000

The two bucket endpoints return only buckets that have events. An unknown bucket returns status 400.