Retrieve analytics for block clicks over a specified date range, with various filters and aggregation levels. The endpoint supports filtering by collection, token, block type, and various other parameters. Results can be aggregated at different time intervals (daily, weekly, monthly, quarterly, yearly).
The API key required for accessing protected routes. It should be included in the request headers as x-api-key.
Filter by team ID. One of team_id, team_slug, team_ids, or team_slugs required.
Filter by team slug.
Comma-separated team IDs. Mutually exclusive with team_id/team_slug.
Comma-separated team slugs. Mutually exclusive with team_id/team_slug.
The start date for the analytics in ISO 8601 format (e.g., "2024-09-01"). Required.
The end date for the analytics in ISO 8601 format (e.g., "2024-09-30"). If not provided, defaults to current date.
The aggregation level for the data.
daily, weekly, monthly, quarterly, yearly The collection ID to filter by.
The collection slug to filter by.
The token ID to filter by.
x >= 1The block ID to filter by.
The block type to filter by.
external_url, reward, dialog, all The action type to filter by.
video, image, carousel, post, iframe, url, all The country code to filter by.
The region code to filter by.
The device type to filter by.
mobile, tablet, desktop, all The minimum block index to filter by.
The maximum block index to filter by.
The field to order by.
date, total_clicks, unique_users, avg_dialog_duration The sort order (ascending or descending).
asc, desc The number of results per page.
x >= 1The offset for pagination.
x >= 0