GET
/
streaming
/
statistics
/
systems
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
views_by_operating_system = client.streaming.statistics.get_views_by_operating_system(
    date_from="date_from",
    date_to="date_to",
)
print(views_by_operating_system.data)
{
  "data": [
    {
      "views": 100500,
      "os": "Windows"
    },
    {
      "views": 3000,
      "os": "Android"
    }
  ]
}

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

date_from
string
required

Start of time frame. Datetime in ISO 8601 format.

date_to
string
required

End of time frame. Datetime in ISO 8601 format.

Response

200
application/json

OK

The response is of type object.