Get Query History
get_query_historyRetrieve aggregated Yandex Webmaster search query statistics over time, including daily shows, clicks, and average positions for a specified host.
Instructions
Get aggregated search query statistics (all queries) over time — shows, clicks, positions by day.
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": {
"user_id": "<user_id>",
"host_id": "<host_id>",
"date_from": "<date_from>",
"date_to": "<date_to>"
},
"name": "get_query_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_to | Yes | End date (YYYY-MM-DD) | |
| host_id | Yes | Host ID (format: https:example.com:443) | |
| user_id | Yes | Yandex Webmaster user ID | |
| date_from | Yes | Start date (YYYY-MM-DD) | |
| query_indicator | No | Comma-separated: TOTAL_SHOWS,TOTAL_CLICKS,AVG_SHOW_POSITION,AVG_CLICK_POSITION | |
| device_type_indicator | No | ALL, DESKTOP, MOBILE, PHONE, TABLET |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |