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

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Query Parameters

from
string
required

Start of time frame. Format is date time in ISO 8601

to
string
required

End of time frame. Format is date time in ISO 8601

slug
string

Filter by video "slug"

client_user_id
integer

Filter by user "id"

granularity
enum<string>
default:1h

Specifies the time interval for grouping data

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

Response

200
application/json

OK

The response is of type object[].