Get IP ranges reports
Fetch reports for the observed IP address ranges in the given period
Available on:

Query parameters
-
Observed period for the report
Values are
TODAY,YESTERDAY,THIS_WEEK,LAST_WEEK,THIS_MONTH,LAST_MONTH,LAST_30_DAYS, orLAST_3_MONTHS. -
Sort the IPs by a specified parameter. Use '-' prefix to indicate a descending sort. Default: '-total_clicks'.
Values are
last_seen,first_seen,total_clicks,invalid_clicks, orflagged_clicks. -
Paginating parameter. Offset the result by a specified number. Default: 0.
-
Paginating parameter. Limit the number of result by a specified number. Max: 100. Default: 50.
-
Search IP ranges by given query
-
Fetch all IP range reports for the given array of IP ranges.
-
Status of an IP range
Values are
NORMAL,SUSPICIOUS, orBLOCKED.
GET
/accounts/{account_id}/reports/ip-ranges
curl \
-X GET https://api.clickguard.com/accounts/{account_id}/reports/ip-ranges?period=TODAY \
-H "X-API-KEY: $API_KEY"
Response examples (200)
"[\n {\n \"ip_range\": \"123.211.0.0/16\",\n \"ip_wildcard\": \"123.211.*.*\",\n \"status\": \"NORMAL\",\n \"total_clicks\": 2,\n \"normal_clicks\": 1,\n \"invalid_clicks\": 1,\n \"suspicious_clicks\": 0,\n \"flagged_clicks\": 0,\n \"first_seen\": \"2020-12-22T10:37:26.262Z\",\n \"last_seen\": \"2021-03-02T16:22:34.573Z\",\n \"last_campaign_id\": \"9263669976\",\n \"last_country\": \"Australia\",\n \"last_city\": \"Sunshine Coast\"\n },\n ...\n]"
Response examples (200)
[
{
"ip_range": "string",
"ip_wildcard": "string",
"status": "string",
"total_clicks": 42.0,
"normal_clicks": 42.0,
"suspicious_clicks": 42.0,
"flagged_clicks": 42.0,
"invalid_clicks": 42.0,
"first_seen": "2025-05-04T09:42:00Z",
"last_seen": "2025-05-04T09:42:00Z",
"last_campaign_id": "string",
"last_country": "string",
"last_city": "string"
}
]