Device type stats
Fetch statistics regarding different device types
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}/devices
curl \
-X GET https://api.clickguard.com/accounts/{account_id}/devices?period=TODAY \
-H "X-API-KEY: $API_KEY"
Response examples (200)
"[\n {\n \"device_type\": \"computer\",\n \"total_clicks\": 219,\n \"suspicious_clicks\": 0,\n \"flagged_clicks\": 32,\n \"invalid_clicks\": 12\n },\n {\n \"device_type\": \"mobile\",\n \"total_clicks\": 31,\n \"suspicious_clicks\": 0,\n \"flagged_clicks\": 1,\n \"invalid_clicks\": 1\n },\n]"
Response examples (200)
[
{
"device_type": "string",
"total_clicks": 42.0,
"suspicious_clicks": 42.0,
"flagged_clicks": 42.0,
"invalid_clicks": 42.0
}
]