Search Console query
search_console_querySearch Console Search Analytics API query (searchanalytics.query) with every option: any search type (web, image, video, news, discover, googleNews), any dimensions (query, page, country, device, date, searchAppearance), dimension filter groups including regex, aggregation type, data state, and up to 25,000 rows per call with start_row paging. Rows are ranked by clicks, then impressions (date order when date is the first dimension). Returns every row and field Google sends.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_console_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | true returns Google's response exactly as Google sent it, unchanged. | |
| site | No | The site's domain (example.com) or its label. Optional when the account has exactly one site switched on. An unknown name returns an error that lists the switched on sites. | |
| period | No | Date range. Default last_28_days. Named ranges end when the data is complete. | |
| sort_by | No | Default clicks, ties broken by impressions (date when date is the first dimension). | |
| end_date | No | Custom end date YYYY-MM-DD. | |
| row_limit | No | Rows per call, default 1000, max 25000. | |
| start_row | No | Zero based row to start from, for paging. | |
| data_state | No | ||
| dimensions | No | ||
| sort_order | No | Default desc for clicks, impressions and ctr; asc for position and dimensions. | |
| start_date | No | Custom start date YYYY-MM-DD. Overrides period. | |
| search_type | No | Search Console search type. Default web. | |
| aggregation_type | No | ||
| dimension_filter_groups | No | Search Console dimensionFilterGroups, for example [{ "groupType": "and", "filters": [{ "dimension": "query", "operator": "includingRegex", "expression": "price|cost" }] }]. Operators: equals, notEquals, contains, notContains, includingRegex, excludingRegex. |