Search analytics query
gsc_search_analyticsQuery Search Console performance data to retrieve clicks, impressions, CTR, and average position with filters by query, page, country, device, and date.
Instructions
Query Search Console performance data (clicks, impressions, CTR, position). Data is available for the last 16 months and usually lags 2–3 days. CTR is returned as a fraction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Default web. Web includes AI Overviews and AI Mode; the API can't separate them. | |
| endDate | No | Default: yesterday | |
| filters | No | ANDed together. Regex operators use RE2 syntax. | |
| siteUrl | No | Property: 'sc-domain:example.com' (domain property) or 'https://example.com/' (URL-prefix, trailing slash). Defaults to the project's linked property. | |
| rowLimit | No | Default 100 | |
| startRow | No | ||
| queryType | No | Uses the project's brand terms (gsc_set_brand_terms) | |
| startDate | No | Default: 28 days ago | |
| dimensions | No | 'hour' returns hourly rows for the last ~10 days (dataState hourly_all). Discover and Google News don't support 'query'. |