performance_query
Retrieves Google Search Console performance metrics—clicks, impressions, CTR and position—by dimension, search type, date range and filters to analyze traffic and SEO results.
Instructions
Search performance (clicks, impressions, CTR, position) for any dimension combination, search type, date range and filters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Days ending yesterday (PT); ignored if start_date is given | |
| site | Yes | Property: 'sc-domain:example.com', 'https://www.example.com/' or 'example.com' | |
| filters | No | AND filters: [{dimension: query|page|country|device|searchAppearance, operator: equals|notEquals|contains|notContains|includingRegex|excludingRegex, expression}] | |
| sort_by | No | Sort rows | clicks |
| end_date | No | YYYY-MM-DD (Pacific Time) | |
| max_rows | No | Rows to fetch (pages of 25,000) | |
| data_state | No | 'all' matches the UI (includes fresh data); 'final' = finalised only | all |
| dimensions | No | Group-by dimensions. 'hour' gives hourly data for recent days. Empty = totals only | |
| export_csv | No | Write all fetched rows to a CSV file | |
| start_date | No | YYYY-MM-DD (Pacific Time) | |
| aggregation | No | How results are aggregated | auto |
| return_rows | No | Rows to return in chat; the rest only in the CSV | |
| search_type | No | Search Console search type; 'discover' = Discover report | web |