v1

latestOpenAPI 3.1.02026-07-24650272.2 KB
API Endpoints

Video Analytics

This endpoint gives usage analytics data of your videos. Ex - top assets, bandwidth consumption

post/video/analytics

Request body

metricsstring[] required

Define the metric you need the data for, currently we only support bandwidth_consumption, asset_duration, storage_unit, top_assets, bandwidth_consumption_by_collection, errored_videos and widget_data

top_assets_countstring

Count of video assets that should be returned. Max assets count is 1000 per page.

top_assets_pagestring

top_assets metric may get paginated response. Iterate this parameter to get more data.

Response

200

Example response

{
  "top_assets": [
    {
      "collection_id": "<COLLECTION_ID>",
      "asset_id": "<ASSET_ID>",
      "units": 162870,
      "collection_name": "<COLLECTION_NAME>"
    }
  ]
}