v32

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

Get Live watching duration via CDN

Calculates a time series of live streams watching duration in minutes. Views of only those streams 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/stream/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

stream_idinteger

Filter by stream_id

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

clientinteger required