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

client = Gcore(
    api_key="My API Key",
)
stream_series = client.streaming.statistics.get_stream_series(
    from_="from",
    to="to",
)
print(stream_series)
[
  {
    "client": 123,
    "metrics": {
      "streams": [
        123
      ]
    }
  }
]

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. Datetime in ISO 8601 format.

to
string
required

End of time frame. Datetime in ISO 8601 format.

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[].