Skip to main content
GET
Bot traffic

Authorizations

Authorization
string
header
required

An API key that starts with cs_sk_, created under API and MCP, API keys. A key covers every site of its workspace or a chosen list, and carries permissions per resource (Analytics, Revenue and payments, Goals and events, Funnels, Sites, Notes, Alerts) and extras (Visitor details, Raw events export, Team members, Workspace name, See API keys, Manage API keys). A change acts for the key's creator, with their current role. A request outside them answers 403 naming the missing permission.

Path Parameters

siteId
string
required

The site's id, from GET /sites. demo is a public demo site.

Query Parameters

range
enum<string>

Preset period: today (today), yesterday (yesterday), 24h (last 24 hours), 7d (last 7 days), 30d (last 30 days), 90d (last 90 days), wtd (week to date), mtd (month to date), last_month (last month), ytd (year to date), 12m (last 12 months), all (all time). Defaults to 30d. Use either this or from and to.

Available options:
today,
yesterday,
24h,
7d,
30d,
90d,
wtd,
mtd,
last_month,
ytd,
12m,
all
from

Start of a custom period: a day, YYYY-MM-DD, inclusive, in the timezone; or an exact ISO-8601 timestamp with its offset, such as 2026-12-01T09:30:00Z. Requires to.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
to

End of a custom period: a day, YYYY-MM-DD, inclusive, in the timezone; or an exact ISO-8601 timestamp with its offset (exclusive). Requires from.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
timezone
string

IANA timezone the period's days and buckets are counted in, such as America/New_York. Defaults to the site's timezone.

Maximum string length: 64
compare
enum<string>

Also return the comparison period: "previous" (the period just before, same length), "year" (same period a year earlier) or "custom" (the days in compareFrom and compareTo). Defaults to none.

Available options:
previous,
year,
custom,
none
compareFrom
string<date>

First day of a custom comparison, YYYY-MM-DD, inclusive, in the site's timezone. Only with compare "custom"; requires compareTo.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
compareTo
string<date>

Last day of a custom comparison, YYYY-MM-DD, inclusive, in the site's timezone. Only with compare "custom"; requires compareFrom.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
filter
string[]

Narrow the data. Repeat the parameter to add filters; all must match. Format: dimension:op:value, for example country:is:DE. Dimensions: page, entry_page, exit_page, hostname, channel, source, referrer, utm_source, utm_medium, utm_campaign, utm_term, utm_content, country, region, city, browser, os, device, language, event, ai_assistant. Operators: is, is_not, contains.

granularity
enum<string>

Bucket size of the series.

Available options:
hour,
day,
week,
month
verified
boolean

true: count only hits whose source address was verified as the crawler operator's. Defaults to false.

includeHidden
boolean

true: also count the crawlers this site hides in its bot settings. Defaults to false, as on the dashboard.

category
enum<string>

Only crawlers of this purpose: training, search or user (fetching a page a person asked an assistant about).

Available options:
training,
search,
user
operator
string

Only crawlers of this operator, such as "OpenAI" or "Anthropic". Case does not matter.

Required string length: 1 - 60
crawler
enum<string>

Only this crawler, such as GPTBot.

Available options:
GPTBot,
OAI-SearchBot,
ChatGPT-User,
ClaudeBot,
Claude-SearchBot,
Claude-User,
PerplexityBot,
Perplexity-User,
Google-Extended,
GoogleOther,
Applebot-Extended,
Amazonbot,
Bytespider,
CCBot,
Meta-ExternalAgent,
Meta-ExternalFetcher,
MistralAI-User,
DuckAssistBot,
cohere-ai,
YouBot

Response

Done.

Bot traffic.