ywm_get_query_history
Retrieve historical search query analytics, including shows, clicks, and average positions, for specified date ranges and device types.
Instructions
Get search query history
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": {
"query_id": "<query_id>",
"date_from": "<date_from>",
"date_to": "<date_to>",
"query_indicator": "<query_indicator>"
},
"name": "ywm_get_query_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_to | Yes | End date (YYYY-MM-DD) | |
| host_id | No | Host ID. Optional if YANDEX_WEBMASTER_HOST_URL is configured. | |
| query_id | Yes | Query ID | |
| date_from | Yes | Start date (YYYY-MM-DD) | |
| query_indicator | Yes | Query analytics indicator | |
| device_type_indicator | No | Device type filter | ALL |