Get Price History
get_price_historyFetch historical Amazon prices for any ASIN across Amazon, new third-party, used, and buy box listings. Choose from time ranges like 30d, 6m, 1y to track price trends and make informed purchase decisions.
Instructions
Fetch historical price data for an Amazon ASIN from Keepa.
Returns a decoded, downsampled time series (at most 60 data points) for:
Amazon price (sold by Amazon directly)
New (3P) price (lowest new third-party price)
Used price (lowest used price)
Buy box price
Keepa stores prices in cents. All prices returned are in USD. Keepa time values (minutes since 2011-01-01) are decoded to ISO dates.
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:
"Show price history for B08N5WRWNW over the past year" -> range="1y"
"What has the Amazon price been for B07PXGQC1Q in the last 30 days?" -> range="30d"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asin | Yes | Amazon ASIN | |
| range | No | Time range for history. Examples: "30d" (30 days), "6m" (6 months), "1y" (1 year), "all" (full history). Default: 90d | 90d |
| domain | No | Keepa domain id (1 = amazon.com) |