Summary stats
Fetch summary of stats for the specific account
Available on:
Path parameters
-
ID of an account
Query parameters
-
Period to fetch stats for
Values are
TODAY
,YESTERDAY
,THIS_WEEK
,LAST_WEEK
,THIS_MONTH
,LAST_MONTH
,LAST_30_DAYS
, orLAST_3_MONTHS
.
GET /accounts/{account_id}/summary
curl \
-X GET https://api.clickguard.com/accounts/{account_id}/summary?period=TODAY \
-H "X-API-KEY: $API_KEY"
Response examples (200)
"{\n \"total_clicks\": 275,\n \"normal_clicks\": 220,\n \"suspicious_clicks\": 0,\n \"flagged_clicks\": 37,\n \"invalid_clicks\": 18,\n \"unique_ips\": 239\n}"
Response examples (200)
{
"total_clicks": 42.0,
"normal_clicks": 42.0,
"suspicious_clicks": 42.0,
"flagged_clicks": 42.0,
"invalid_clicks": 42.0,
"unique_ips": 42.0
}