Skip to main content
GET
/
waap
/
v1
/
ip-info
/
counts
Fetch request and session metrics for a given IP address (and optionally a domain)
curl --request GET \
  --url https://api.gcore.com/waap/v1/ip-info/counts \
  --header 'Authorization: <api-key>'
{
  "total_requests": 123,
  "blocked_requests": 123,
  "unique_sessions": 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

ip
required

The IP address to check

domain_id
integer | null

The identifier for a domain. When specified, the response will exclusively contain data pertinent to the indicated domain, filtering out information from other domains.

Required range: x > 0

Response

Successful Response

total_requests
integer
required

The total number of requests made by the IP address

blocked_requests
integer
required

The number of requests from the IP address that were blocked

unique_sessions
integer
required

The number of unique sessions from the IP address