v32

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

Get Live watching duration total via CDN

Calculates the total duration of live streams watching 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.

get/streaming/statistics/stream/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 missed, then the current time is taken

stream_idinteger

Filter by stream_id

client_user_idinteger

Filter by field "client_user_id"

Response

OK

clientinteger required
durationinteger required

count of minutes

stream_idstring
client_user_idinteger

Example response

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