GET
/
waap
/
v1
/
domains
/
{domain_id}
/
requests
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
page = client.waap.domains.statistics.get_requests_series(
    domain_id=1,
    start="2024-04-13T00:00:00+01:00",
)
page = page.results[0]
print(page.id)
{
  "limit": 123,
  "offset": 123,
  "count": 123,
  "results": [
    {
      "id": "<string>",
      "path": "<string>",
      "client_ip": "<string>",
      "method": "<string>",
      "rule_name": "<string>",
      "country": "<string>",
      "action": "<string>",
      "rule_id": "<string>",
      "domain": "<string>",
      "user_agent": "<string>",
      "user_agent_client": "<string>",
      "organization": "<string>",
      "request_time": 123,
      "reference_id": "<string>",
      "status_code": 123,
      "result": "passed",
      "traffic_types": "<string>"
    }
  ]
}

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

Path Parameters

domain_id
integer
required

The domain ID

Required range: x > 0

Query Parameters

ordering
string

Sort the response by given field.

ip
string

Filter the response by IP.

reference_id
string

Filter the response by reference ID.

Examples:

"ad07c06f19054e484974fa22e9fb6bb1"

status_code
integer

Filter the response by response code.

Required range: 100 <= x <= 599
security_rule_name
string

Filter the response by security rule name.

countries
string[]

Filter the response by country codes in ISO 3166-1 alpha-2 format.

actions
enum<string>[]

Filter the response by actions.

traffic_types
enum<string>[]

Filter the response by traffic types.

start
string
required

Filter data items starting from a specified date in ISO 8601 format

Examples:

"2024-04-13T00:00:00+01:00"

end
string | null

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

Examples:

"2024-04-14T12:00:00Z"

limit
integer
default:100

Number of items to return

Required range: 0 <= x <= 100
offset
integer
default:0

Number of items to skip

Required range: 0 <= x <= 100000

Response

Successful Response

limit
integer
required

Number of items requested in the response

offset
integer
required

Items response offset used

count
integer
required

Number of items contain in the response

results
RequestSummary · object[]
required

List of items returned in the response following given criteria