GET
/
streaming
/
statistics
/
stream
/
watching_duration
/
total
curl --request GET \
  --url https://api.gcore.com/streaming/statistics/stream/watching_duration/total \
  --header 'APIKey: <api-key>'
[
  {
    "client": 123,
    "client_user_id": 102,
    "duration": 1000
  }
]

Authorizations

APIKey
string
header
required

API key for authentication.

Query Parameters

from
string

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

to
string

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

stream_id
integer

Filter by stream_id

client_user_id
integer

Filter by field "client_user_id"

Response

200
application/json

OK

The response is of type object[].