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

client = Gcore(
    api_key="My API Key",
)
views_by_hostname = client.streaming.statistics.get_views_by_hostname(
    date_from="date_from",
    date_to="date_to",
)
print(views_by_hostname.data)
{
  "data": [
    {
      "views": 123,
      "host": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Query Parameters

date_from
string
required
date_to
string
required

Response

data
object[]