/video/assets/{asset_id}/analyticsGet analytics for a video asset
Retrieves analytics for a single video asset. Supply group_by, date_range, and metrics to choose the reporting interval, date range, and data to return. Use page_number and page_size to control pagination for applicable results.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
The Gumlet asset ID to retrieve analytics for.
Analytics request specifying the grouping interval, date range, metrics, and optional pagination settings.
Date interval for the analytics; include start_at and end_at in yyyy-MM-dd format.
Group the data by this period.
List of metrics to return in response.
Page number to fetch. Starting at 1
Number of items to return per page
Heatmap data
Data for top browsers
Data for top cities
Data for top countries
Data for top device types
Data for top pages
Views data
One documented failure
asset_id_not_validThe asset ID is not valid.
One documented failure
invalid_api_keyAPI key supplied with request is invalid
One documented failure
unauthorizedYou don't have access to this feature. Please contact your organization owner.
One documented failure
internal_server_errorWe have encountered some server error. We have been notified and will fix it soon.
A 400 is returned when the request is invalid; group_by must be daily, monthly, or weekly, and date_range must include start_at and end_at in yyyy-MM-dd format. A 401 is returned when the API key or bearer token is missing or invalid. A 403 is returned when the account has unpaid dues or the authenticated user lacks the required role permissions. A 500 indicates an internal server error. The asset_id path parameter must identify the asset to analyze.