Returns how far the sessions of a player got in the video
Returns, for each second of the video, how many sessions stopped there (their furthest point in the video), with the average watched time and the engagement rate. The items are a distribution, not a cumulative count: to get how many sessions reached second T, add the `total_users` of every item whose `timed` is T or greater.
Authorization
apiToken apiVersion userAgent Access the application and copy your api token, then, just set the header X-Api-Token with it.
In: header
The API version to use. Currently supported versions are:
- v1: The current stable version
A request without this header, or with any other value, is answered by the edge with 404 and {"error_msg":"404 Route Not Found"}.
In: header
A non-empty User-Agent identifying your integration is required.
Requests without it are rejected at the edge before reaching the API.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/times/user_engagement" \ -H "Content-Type: application/json" \ -d '{ "player_id": "64a5c8072e6fd10009828db2", "video_duration": 3600, "start_date": "2026-09-01 00:00:00", "end_date": "2026-09-30 23:59:59", "timezone": "America/Sao_Paulo" }'{ "grouped_timed": [ { "timed": 30, "total_users": 58 } ], "average_watched_time": 900.9, "engagement_rate": 38.5}Returns player leaderboards based on video engagement metrics POST
Ranks the players of the company by how many sessions had an event in a period. Several leaderboards, each with its own event, period and size, can be requested in one call. Periods are whole days in `timezone`.
Returns the engagement rate of a player for each day POST
Returns the engagement rate of each day of the period, in `timezone`. Days without sessions come with 0.