Search queries
top_queriesEvery Google search query for one site from Search Console, with clicks, impressions, CTR, position and their change against a comparison period. Ranked by clicks, then impressions (sort_by and sort_order change the order), paged. Filters for text in the query, a page, device, country and search type.
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": "top_queries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | true returns Google's response exactly as Google sent it, unchanged. | |
| page | No | Only queries that led to pages whose URL contains this text. | |
| 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. | |
| device | No | ||
| offset | No | Row to start from, for the next page. Default 0. | |
| period | No | Date range. Default last_28_days. Named ranges end when the data is complete. | |
| compare | No | What to compare with. Default previous_period (same length, right before). | |
| country | No | ISO 3166-1 alpha-3 country code, for example usa. | |
| exclude | No | Leave out queries containing this text, for example the brand name. | |
| sort_by | No | Default clicks (ties broken by impressions). | |
| contains | No | Only queries containing this text. | |
| end_date | No | Custom end date YYYY-MM-DD. | |
| page_size | No | Rows per page, default 1000, max 5000. Every row is available through paging. | |
| data_state | No | final (default) = complete data only; all = include fresh, still changing data. | |
| sort_order | No | Default desc, except position and query which default to asc. | |
| start_date | No | Custom start date YYYY-MM-DD. Overrides period. | |
| search_type | No | Search Console search type. Default web. |