Get Single Query History
get_single_query_historyRetrieve search statistics history for a specific query using its query_id. Tracks shows, clicks, and average position over a chosen date range.
Instructions
Get search statistics history for a specific query (by query_id from get_popular_queries).
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>",
"query_id": "<query_id>",
"date_from": "<date_from>",
"date_to": "<date_to>"
},
"name": "get_single_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 | |
| query_id | Yes | Query ID from get_popular_queries response | |
| 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 |