Skip to main content
GET
/
streaming
/
statistics
/
views
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
views = client.streaming.statistics.get_views(
    date_from="date_from",
    date_to="date_to",
)
print(views.data)
{
  "data": [
    {
      "views": 1000,
      "date": "2024-05-01",
      "type": "vod"
    },
    {
      "views": 2000,
      "date": "2024-05-02",
      "type": "vod"
    },
    {
      "views": 1000,
      "date": "2024-05-01",
      "type": "live"
    }
  ]
}

Authorizations

Authorization
string
header
required

Query Parameters

date_from
string
required
date_to
string
required
type
enum<string>
Available options:
live,
vod,
playlist
id
string
event
enum<string>
Available options:
init,
start,
watch
host
string
country
string
group
enum<string>[]

Response

data
object[]