AI & Agent Traffic

What AI actually sends to your site: referral traffic covers humans arriving from AI assistants, agent traffic covers the AI crawlers hitting your origin server.

GET/metrics/ai_traffic

Returns the AI-referred traffic measured from a project's connected web analytics provider (Google Analytics 4, Adobe Analytics, PostHog, Plausible or Piano): per-day users, sessions and conversions grouped by AI source (ChatGPT, Perplexity, Gemini, Claude and others), with totals and a conversion rate. Requires the Scale plan or above and a connected provider; projects without one return ERR_AI_TRAFFIC_NOT_CONNECTED (404).

Params:
  • project_idrequired
  • range
  • from
  • to
  • granularityday|week|month
  • sourcerestrict to one AI source

GET/metrics/agent_traffic

Aggregated AI bot traffic for a project, grouped by bot or by company, with daily/weekly/monthly granularity.

Params:
  • project_idrequired
  • range
  • from
  • to
  • bot
  • company
  • group_bybot|company
  • granularityday|week|month

GET/dimensions/agent_bots

Static catalog of AI bots that Agent Analytics can identify. Use it to render filter UIs that mirror our internal classification (slug, display name, company, category, Cloudflare verified-bot mapping). Requires Scale or above; the MCP tool list_agent_bots is available on every plan.

Params:
  • project_idrequired