GET
/
waap
/
v1
/
domains
/
{domain_id}
/
traffic
curl --request GET \
  --url https://api.gcore.com/waap/v1/domains/{domain_id}/traffic \
  --header 'APIKey: <api-key>'
[
  {
    "timestamp": 123,
    "ajax": 0,
    "api": 0,
    "ddosBlocked": 0,
    "origin2xx": 0,
    "origin3xx": 0,
    "originError4xx": 0,
    "originError5xx": 0,
    "monitored": 0,
    "uncategorized": 0,
    "static": 0,
    "responseTime": 0,
    "originTimeout": 0,
    "customAllowed": 0,
    "total": 0,
    "passedToOrigin": 0,
    "customBlocked": 0,
    "policyAllowed": 0,
    "policyBlocked": 0
  }
]

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

domain_id
integer
required

The domain ID

Query Parameters

resolution
enum<string>
required

Specifies the granularity of the result data.

Available options:
daily,
hourly,
minutely
start
string
required

Filter traffic starting from a specified date in ISO 8601 format

end
string

Filter traffic up to a specified end date in ISO 8601 format. If not provided, defaults to the current date and time.

Response

200
application/json

Successful Response

The response is of type TrafficMetrics · object[].