get_keyword_rank_history
Fetch daily keyword rank history for tracked apps, with optional date range and app filters, to analyze ranking trends and visibility.
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 }, where rank is null on days the app did not rank. 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) |