/video/analyticsRetrieve video usage analytics
Retrieves usage analytics for video assets, including metrics such as bandwidth consumption and top assets. Provide metrics and a date_range with start_at and end_at; the date range can span no more than 60 days. Use group_by to select hourly, daily, or monthly aggregation.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Video analytics query with the requested metrics, date range, and optional filters and grouping.
The timeframe to get the data for. Currently we only support a maximum of 60 days between start_at and end_at.
Optional filters for the video workspace. Prefer workspace_id; collection_id and source_id are deprecated alternatives.
Group by hourly, daily or monthly. If you don't specify anything it's hourly by default.
Define the metric you need the data for. Supported values: bandwidth_consumption, asset_duration, storage_unit, top_assets, drm_requests, ai_credit_usage, and errored_videos.
Count of video assets that should be returned. Max assets count is 1000 per page.
top_assets metric may get paginated response. Iterate this parameter to get more data.
The unit for bandwidth saving data.
Indicates whether the list of top assets is exhaustive or if it has more assets.
The unit for the storage data.
One documented failure
invalid_parameter_valueThe parameter value is invalid.
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.
A 400 indicates an invalid request; a 401 indicates a missing or invalid API key or bearer token. A 403 indicates an unpaid account or insufficient role permissions. metrics and date_range are required; the date range must contain start_at and end_at in yyyy-MM-dd format and span no more than 60 days, and each metric must be an accepted value.