GET
/
streaming
/
statistics
/
vod
/
watching_duration
curl --request GET \
  --url https://api.gcore.com/streaming/statistics/vod/watching_duration \
  --header 'APIKey: <api-key>'
[
  {
    "client": 123,
    "metrics": {
      "vod": [
        [
          1640995210,
          10
        ],
        [
          1640995310,
          10
        ],
        [
          1640995410,
          10
        ],
        [
          1640995510,
          20
        ],
        [
          1640995610,
          20
        ]
      ]
    }
  }
]

Authorizations

APIKey
string
header
required

API key for authentication.

Query Parameters

from
string
required

Start of the time period for counting minutes of watching. Format is date time in ISO 8601.

to
string

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

slug
string

Filter by video's slug

client_user_id
integer

Filter by field "client_user_id"

granularity
enum<string>
default:1h

Data is grouped by the specified time interval

Available options:
1m,
5m,
15m,
1h,
1d,
1mo

Response

200
application/json

OK

The response is of type object[].