Get keyword rank history
get_keyword_rank_historyRetrieve daily rank history for a tracked keyword across apps, including events like notes and updates that may explain rank changes.
Instructions
Get the daily rank history of one tracked keyword, with one series per app that tracks it. Returns keyword, store, country, lang, the resolved from/to dates, and apps[] entries holding app_id, app_title and history[] of { date (YYYY-MM-DD), rank }, one entry per day a ranking run measured: rank is null on days the app did not rank, and a day not measured yet (today before the daily update) is omitted. Each app entry also has events { notes[], app_updates[], store_updates[] } over the range: the user's notes on the app, its updates detected, and the store algorithm updates of the keyword's market, what may explain a move. Defaults to the last 30 days. The window is capped at 400 days and at the plan history depth: a start date beyond it returns a PLAN_LIMIT error. Reversed dates are swapped and future dates are clamped to today. Pass keyword_id from list_keywords, and app_id to narrow the output to one app. For the visibility of a whole app rather than one keyword, use get_app_score_history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date in YYYY-MM-DD format. Defaults to today. | |
| from | No | Start date in YYYY-MM-DD format. Defaults to 30 days ago. | |
| app_id | No | Filter by specific app ID | |
| keyword_id | Yes | The keyword internal ID (numeric, from list_keywords results) |