Analytics
GET /analytics/events
Changed onRequest
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- AuthHTTP bearer
Query parameters
start_datestring required
Start date in format YYYY-MM-DD HH:MM:SS
end_datestring required
End date in format YYYY-MM-DD HH:MM:SS
project_idinteger required
Project ID or slug
limitinteger
Maximum number of results to return
environment_idinteger
Environment ID (optional)
custom_events_onlyboolean
Only return custom events, excluding system events like page_view, page_leave, heartbeat (default: true)
breakdownstring
Breakdown by geography: 'country', 'region', or 'city' (optional)
Response
Successfully retrieved event counts
Changes
- info
api operation id
get_events_countremoved and replaced withget_analytics_events_count
- info