Skip to main content
GET
/
fastedge
/
v1
/
stats
/
calls
Python
import os
from datetime import datetime
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
response = client.fastedge.statistics.get_call_series(
    from_=datetime.fromisoformat("2019-12-27T18:11:19.117"),
    step=0,
    to=datetime.fromisoformat("2019-12-27T18:11:19.117"),
)
print(response.stats)
{
  "stats": [
    {
      "time": "2023-11-07T05:31:56Z",
      "count_by_status": [
        {
          "status": 123,
          "count": 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<date-time>
required

Reporting period start time in RFC3339 format

to
string<date-time>
required

Reporting period end time in RFC3339 format (exclusive)

step
integer
default:60
required

Reporting time granularity in seconds. Common values are 60 (1 minute), 300 (5 minutes), 3600 (1 hour).

id
integer<int64>

Filter statistics by specific application ID

network
string<string>

Filter statistics by edge network name

Response

Returns call statistics for the specified time period

stats
object[]
required