Python
from gcore import Gcore client = Gcore( api_key="My API Key", ) vod_total_stream_duration_series = client.streaming.statistics.get_live_watch_time_total_cdn() print(vod_total_stream_duration_series)
[ { "client": 123, "client_user_id": 102, "duration": 1000 } ]
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.
Was this page helpful?