Get AI traffic attribution
Google Analytics sessions from AI referrers, matched to the prompts whose answers cited your pages. An estimate: coverage always travels with it, and money is in integer cents.
Authorizations
An API key from Workspace settings → API keys, sent as Authorization: Bearer <key>.
Path Parameters
Query Parameters
A named window ending today in the project's market, or custom with from and to. Default 30d.
7d, 30d, 90d, 180d, 365d, custom First day, inclusive. Required with window=custom.
^\d{4}-\d{2}-\d{2}$Last day, inclusive. Required with window=custom.
^\d{4}-\d{2}-\d{2}$Response
OK
The project asked about.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$connected, syncing, low_coverage, not_connected, auth_expired The window in words, e.g. last 30 days.
^\d{4}-\d{2}-\d{2}$^\d{4}-\d{2}-\d{2}$-9007199254740991 <= x <= 9007199254740991Matched sessions over every AI session. No band: both are counts.
Your branded and comparison prompts, kept out of the headline.