API
Bots endpoints
These endpoints return the data behind the Bots report. Scope: analytics:read. Public sites and private links can call them. All three take the shared time parameters and segment_id.
Last updated . This guide belongs to Bot filtering.
Which endpoints are there?
| Endpoint | Returns |
|---|---|
GET /sites/:siteId/bots/overview | Totals, the bot share and a count per signal |
GET /sites/:siteId/bots/time-series | Bot requests per bucket. Default hour |
GET /sites/:siteId/bots/by-dimension | Bot requests per value of one dimension |
{ "data": { "bot_requests": 9120, "total_events": 31400, "bot_percentage": 29.04, "ua_pattern": 7800, "header_heuristics": 1450, "client_signals": 610, "bot_asn": 2300, "rate_anomaly": 95, "ai_requests": 1880, "ai_agent_requests": 140, "ai_crawler_requests": 1740 } }
total_events is bot requests plus human events. One request can match several signals, so the five signal counts can add up to more than bot_requests.
Which parameters narrow the result?
| Parameter | Values |
|---|---|
layer | ua_pattern, header_heuristics, client_signals, bot_asn or rate_anomaly |
purpose | ai, ai_crawler, ai_training, ai_search, ai_agent, search, social_preview, seo, monitoring, security, scripted or headless |
dimension | Required on by-dimension. For example bot_name, bot_operator, bot_purpose, bot_category, asn_org, pathname, country or browser |
by-dimension also takes limit. The default is 100 and the maximum is 1,000. A higher value is lowered to 1,000.
filters accepts fewer fields here: browser, operating system, location, device, referrer, hostname, pathname and query string. Other fields are ignored.