Query shape analysis (AI Mode fingerprints)
analyze_query_shapesClassifies a property's queries by SHAPE to surface the fingerprints of AI Overviews / AI Mode fan-out traffic (the app's Query Analysis report). Buckets: reply artefacts ("yes", "show me"), pivot follow-ups ("what about gemini"), conversational questions, LLM tracker probes, agent harnesses, pasted strings, long uncategorised, and conventional keywords. Returns per-bucket query/click/impression counts and shares, zero-click counts, average position, and top example queries, plus an aiShaped roll-up of the conversational buckets. Heuristic pattern matching in 27 languages: it judges how a query LOOKS, not what the searcher meant, so treat single rows as evidence rather than proof. Reads the ClickHouse warehouse when available, else the live Search Console API. Date range is optional: omit startDate/endDate to analyze the last 28 settled days (data lags ~2-3 days).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buckets | No | Optional. Only return these buckets, e.g. ["reply_artefact","pivot_follow_up","conversational_question"] for the AI-conversation shapes. Omit for all buckets. | |
| endDate | No | Optional. Window end as YYYY-MM-DD (e.g. 2026-05-31). You do NOT need to know today's date or the latest available date: omit this and the server uses the latest settled Search Console date (data lags ~2-3 days behind today). Never pass null or the string "null". | |
| siteUrl | Yes | ||
| startDate | No | Optional. Window start as YYYY-MM-DD (e.g. 2026-05-03). You do NOT need to know today's date. Omit BOTH startDate and endDate to analyze the last 28 settled days automatically (Search Console data lags ~2-3 days). Never pass null or the string "null". | |
| searchType | No | web | |
| examplesPerBucket | No | How many top example queries (by impressions) to return per bucket. 0 returns counts only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| range | No | ||
| totals | No | ||
| buckets | No | ||
| siteUrl | No | ||
| aiShaped | No | ||
| languages | No | ||
| truncated | No | ||
| dataSource | No | ||
| searchType | No | ||
| candidateFiltered | No | ||
| candidatesScanned | No | ||
| questionFormQueries | No |