Get Search Query Stats
get_query_statsRetrieve search query performance—clicks, impressions, CTR, and average positions—with date filters, aggregation, sorting, and pagination to analyze SEO results without context bloat.
Instructions
Retrieves search query performance (clicks, impressions, CTR, avg positions). Supports local date-range filtering, aggregation, sorting, and pagination to prevent context bloat.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"siteUrl": "<siteUrl>"
},
"name": "get_query_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows to return (default 50, max 500). | |
| order | No | Sort direction. | desc |
| offset | No | Pagination offset. | |
| prefix | No | Case-insensitive prefix filter on query or URL. | |
| sortBy | No | Field to sort results by. | |
| endDate | No | Filter rows on or before YYYY-MM-DD (applied locally). | |
| siteUrl | Yes | Verified site root URL in Bing Webmaster Tools (e.g. "https://example.com/") | |
| contains | No | Case-insensitive substring filter on query or URL. | |
| aggregate | No | Aggregate daily rows by query/page (true, default) or return raw daily rows (false). | |
| minClicks | No | Minimum clicks threshold. | |
| startDate | No | Filter rows on or after YYYY-MM-DD (applied locally). | |
| minImpressions | No | Minimum impressions threshold. |