Get Sales Rank History
get_sales_rank_historyFetch historical sales rank (BSR) data for any Amazon ASIN to assess demand trends. Returns a decoded time series and a trend summary showing whether demand is improving, worsening, or stable.
Instructions
Fetch historical sales rank data for an Amazon ASIN from Keepa.
Sales rank (BSR) is a proxy for demand: lower rank = faster sales velocity. Returns a decoded, downsampled time series plus a trend summary.
The trend summary indicates whether demand is improving (rank decreasing), worsening (rank increasing), or stable.
Args:
asin (string): Amazon ASIN
range (string, optional): Time range. "30d", "6m", "1y", "all". Default: "90d"
domain (number, optional): Keepa domain id (default 1 = amazon.com)
Examples:
"Is demand trending up or down for B08N5WRWNW?" -> use get_sales_rank_history
"Show 6-month BSR history for B07PXGQC1Q" -> range="6m"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asin | Yes | Amazon ASIN | |
| range | No | Time range for history. Examples: "30d", "6m", "1y", "all". Default: 90d | 90d |
| domain | No | Keepa domain id (1 = amazon.com) |