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.
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 |