Streaming Statistics
Get VOD watching duration via CDN
Calculates a time series of video watching duration 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.
Please note that the result for each time interval is in minutes, it is rounded to the nearest upper integer. You cannot use the sum of all intervals as the total watch time value; instead, use the /total method.
get/streaming/statistics/vod/watching_duration
Query parameters
fromstring required
Start of the time period for counting minutes of watching. Format is date time in ISO 8601.
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"
granularity'1m' | '5m' | '15m' | '1h' | '1d' | '1mo'
Data is grouped by the specified time interval
Response
OK