v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-151,1412,2144.5 MB
Streaming Statistics

Get VOD watching duration total via CDN

Calculates the total duration of video watching in minutes. Views of only those videos that meet the specified filters are summed up.

The statistics are taken from the data of CDN and work regardless of which player the views were made with.

get/streaming/statistics/vod/watching_duration/total

Query parameters

fromstring

Start of the time period for counting minutes of watching. Format is date time in ISO 8601. If omitted, the earliest start time for viewing is taken

tostring

End of time frame. Datetime in ISO 8601 format. If omitted, then the current time is taken

slugstring

Filter by video's slug

client_user_idinteger

Filter by field "client_user_id"

Response

OK

clientinteger required
durationinteger required

count of minutes

slugstring
client_user_idinteger

Example response

[
  {
    "client": 123,
    "client_user_id": 102,
    "duration": 1000
  }
]