Get keyword reports
Fetch reports for the observed keywords in the given period
Available on:
Path parameters
-
ID of an account
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 string
Sort the keywords 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
. -
offset number
Paginating parameter. Offset the result by a specified number. Default: 0.
-
limit number
Paginating parameter. Limit the number of result by a specified number. Max: 100. Default: 50.
-
query string
Search keywords by given query
-
ids[] array[string]
Fetch all keyword reports for the given array of keyword IDs.
GET /accounts/{account_id}/reports/keywords
curl \
-X GET https://api.clickguard.com/accounts/{account_id}/reports/keywords?period=TODAY \
-H "X-API-KEY: $API_KEY"
Response examples (200)
"{\n \"id\": \"540789309495\",\n \"text\": \"my keyword\",\n \"total_clicks\": 1,\n \"normal_clicks\": 0,\n \"invalid_clicks\": 0,\n \"suspicious_clicks\": 0,\n \"flagged_clicks\": 1,\n \"first_seen\": \"2021-04-15T06:36:52.564Z\",\n \"last_seen\": \"2021-04-15T06:36:52.564Z\"\n}"
Response examples (200)
[
{
"id": "string",
"text": "string",
"total_clicks": 42.0,
"normal_clicks": 42.0,
"suspicious_clicks": 42.0,
"flagged_clicks": 42.0,
"invalid_clicks": 42.0,
"first_seen": "2024-05-04T09:42:00+00:00",
"last_seen": "2024-05-04T09:42:00+00:00"
}
]