Query search analytics
query_search_analyticsRetrieve Google Search Console performance data with clicks, impressions, CTR, and average position. Filter by query, page, country, device, and more over a custom date range.
Instructions
The core Search Console performance query. Returns clicks, impressions, CTR and average position, broken down by the dimensions you request, over a date range. Use top_queries / top_pages for quick cases.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Search type. Defaults to web. | |
| endDate | No | YYYY-MM-DD. Defaults to 2 days ago (GSC data lags ~2 days). | |
| siteUrl | No | Property as shown in Search Console: a URL-prefix property ends with a slash (e.g. "https://example.com/") or a domain property uses "sc-domain:example.com". May be a registered alias, or omitted to use the active/default site. | |
| rowLimit | No | Default 1000. | |
| startRow | No | For pagination. Default 0. | |
| dataState | No | 'all' includes fresh, not-yet-finalized data. | |
| startDate | No | YYYY-MM-DD. Defaults to 28 days ago. | |
| dimensions | No | Group results by these. Omit for site-wide totals. | |
| aggregationType | No | ||
| dimensionFilters | No | AND-combined filters, e.g. filter page contains '/blog/'. |