Get ranking history
get_ranking_historyGet one app's top-free chart position per day in one storefront, as ranking_position and created_at points. The chart is the overall chart (category_id 36) when the app holds as many days there as in its own category over the asked span, otherwise its category chart, so a different span can answer from a different chart; category_id in the answer names it. Look back 1 to 3650 days (default 30). Use it for trends and for explaining a move; use get_rankings for a whole chart on one day. Top paid and top grossing history is not collected.
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": {
"app_id": "<app_id>"
},
"name": "get_ranking_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days of history (1-3650, default: 30) | |
| app_id | Yes | App Store ID of the app | |
| country | No | Two-letter country code (default: "us") | us |