Query Search Console Search Analytics
gsc_query_search_analyticsRetrieve Google Search Console search analytics (clicks, impressions, CTR, position) filtered by query, page, country, device, or date to identify top queries and underperforming pages.
Instructions
Query Google Search Console's Search Analytics data: clicks, impressions, CTR, and average position, broken down by dimensions.
Args:
connection (string): Name of a configured Google connection
site_url (string): Exact site URL from gsc_list_sites (e.g. "sc-domain:example.com")
start_date, end_date (string): YYYY-MM-DD. Search Console data typically lags 2-3 days behind today.
dimensions (string[]): Any of "query", "page", "country", "device", "date", "searchAppearance" (default: ["query"])
row_limit (number): Max rows (default 25, max 25000)
start_row (number): Rows to skip, for pagination (default 0)
search_type ('web' | 'image' | 'video' | 'news' | 'discover' | 'googleNews'): default 'web'
filter_dimension, filter_operator, filter_value: Optional single filter, e.g. filter_dimension="page", filter_operator="contains", filter_value="/blog/"
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: For JSON: { "rows": [{ "keys": string[], "clicks": number, "impressions": number, "ctr": number, "position": number }] } "keys" holds one value per requested dimension, in the same order as the "dimensions" argument.
Use when: "What are our top search queries this month?" -> dimensions=["query"] Use when: "Which pages get the most impressions but low CTR?" -> dimensions=["page"], sort client-side on the returned rows. Don't use when: You need page indexing status (use gsc_inspect_url instead).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | Yes | ||
| site_url | Yes | ||
| row_limit | No | ||
| start_row | No | ||
| connection | Yes | ||
| dimensions | No | ||
| start_date | Yes | ||
| search_type | No | web | |
| filter_value | No | ||
| filter_operator | No | ||
| response_format | No | markdown | |
| filter_dimension | No |