Get Agent Visits
Changed onAggregate agent access log visits grouped by a chosen dimension (bot, response status, host, path).
Request
- Base URLhttps://api.peec.ai/customer/v1
- URLhttps://api.peec.ai/customer/v1/agent-analytics/visits
- Auth
- API key in header X-API-Key
- or API key in query parameter api_key
- or HTTP bearer
Query parameters
Required if using a company api key
full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21
full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21
Dimension(s) to group visit counts by.
[ "bot_id" ]
Optional list of bot IDs to filter by.
[ "AppleBot", "GoogleBot" ]
Verification statuses to include. Defaults to verified and unverifiable, excluding spoofed traffic. Include all three statuses to restore totals that contain spoofed traffic.
[ "verified", "unverifiable" ]
Optional time_bucket for grouping visits by time.
Response
Success
Example response
{
"data": [
{
"bot_id": "GPTBot",
"visits": 1402
},
{
"bot_id": "AppleBot",
"visits": 893
}
],
"total_count": 2,
"totalCount": 2
}Changes
- breaking
for the
queryrequest parameterlimit, the type changed fromnumbertointeger - breaking
for the
queryrequest parameteroffset, the type changed fromnumbertointeger - warning
for the
queryrequest parameteroffset, the max was set to9007199254740991.00 - info
added the new optional
queryrequest parameterverification_statuses
- breaking