Product History
Use the Product History API for Amazon product research. Review request parameters, response fields, and runnable examples.
/v1 /amazon /products /historyAPI data samples
Inspect the request body and complete response shape used by this endpoint.
{
"marketplace": "US",
"asin": "B08CK5Z5Q1"
}{
"request_id": "8fb43e59-4ff9-4dc8-a4b7-2ed164e45ab8",
"data": {
"marketplace": "US",
"asin": "B0DYL2DHVV",
"dataAsin": "B0DYL2DHVV",
"parentAsin": "B0DYL2DHVV",
"variationAsins": null,
"rootCategory": "283155",
"rootCategoryLabel": "Books",
"salesRankReference": "283155",
"salesRankReferenceHistory": [
{
"timePoint": 1754767200000,
"value": "283155"
}
],
"nodeIdPath": "283155:1000:48:5043:5045",
"nodeLabelPath": "Books:Subjects:Crafts, Hobbies & Home:Pets & Animal Care:Cats",
"productStatus": "STANDARD",
"availabilityAmazon": "3",
"title": "The BrownTrout Portrait Series: The Regal Cat | 2026 12 x 24 Inch (Hanging) Monthly Square Wall Calendar | Plastic-Free | Pet Kitten Feline",
"brand": null,
"asinUrl": "https://www.amazon.com/dp/B0DYL2DHVV",
"brandUrl": null,
"salesRankUrl": "https://www.amazon.com/b/?node=283155",
"imageUrl": "https://images-na.ssl-images-amazon.com/images/I/71G5e3fedaL._AC_US200_.jpg",
"zoomImageUrl": "https://images-na.ssl-images-amazon.com/images/I/71G5e3fedaL._AC_US600_.jpg",
"imageUrls": [
"https://images-na.ssl-images-amazon.com/images/I/71G5e3fedaL._AC_US200_.jpg"
],
"dimensions": "12 x 0.1 x 12 inches",
"dimensionsSize": [
305
],
"weight": "0.56 pounds",
"weightGram": 254,
"pkgDimensions": "12 x 12 x 0.1 inches",
"pkgDimensionsSize": [
305
],
"pkgWeight": "0.56 pounds",
"pkgWeightGram": 254,
"fbaFees": 3.43,
"fbaItems": "{\"pickAndPackFeeTax\":0,\"storageFee\":0,\"storageFeeTax\":0,\"pickAndPackFee\":3.43}",
"numberOfPages": 28,
"numberOfItems": 1,
"price": [
{
"timePoint": 1741427280000,
"value": 17.99
}
],
"dealPrice": [],
"buyBox": [],
"buyBoxSellerIdHistory": [],
"bsr": [
{
"timePoint": 1741427280000,
"value": -1
}
],
"subSalesRank": [
{
"nodeId": "5045",
"node": "Cats",
"ranks": [
{
"timePoint": 1741427280000,
"value": -1
}
]
}
],
"reviews": [],
"rating": [],
"sellers": [
{
"timePoint": 1741427280000,
"value": 1
}
]
}
}Availability: Available
This endpoint is active in the v1 gateway, OpenAPI, and subscription catalog. A successful call consumes 1 billing unit.
POST /v1/amazon/products/history
The request and response fields below match the current public contract.
Quick call
First create an API key, then store it in a server-side environment variable:
export ECOMMERCE_DATA_API_KEY="your_api_key"curl --request POST \
--url https://ecommercedataapi.com/v1/amazon/products/history \
--header "Content-Type: application/json" \
--header "X-API-Key: ${ECOMMERCE_DATA_API_KEY}" \
--data '{
"marketplace": "US",
"asin": "B08CK5Z5Q1"
}'Integrate with an AI CLI
Copy for your AI CLI
Paste this task into Codex, Claude Code, Gemini CLI, or another coding agent.
Integrate the "Product History" endpoint from Ecommerce Data API into the current repository. Make the changes directly instead of only returning sample code.
API documentation: https://ecommercedataapi.com/en/docs/amazon/products/history
Endpoint: POST https://ecommercedataapi.com/v1/amazon/products/history
API key environment variable: ECOMMERCE_DATA_API_KEY
Example request:
{
"marketplace": "US",
"asin": "B08CK5Z5Q1"
}
Requirements:
1. Read the API documentation first, then inspect the repository's language, framework, HTTP client, directory structure, and environment-variable conventions.
2. Reuse the existing API client and error-handling patterns. If none exist, add the smallest reusable Ecommerce Data API client and an endpoint-specific wrapper.
3. Read the key from the server-side ECOMMERCE_DATA_API_KEY environment variable and send Content-Type: application/json plus the X-API-Key header. Never write a real key into source code, browser code, logs, test snapshots, or Git.
4. If the environment variable is missing, tell me to configure ECOMMERCE_DATA_API_KEY myself. Do not request, print, or invent the real key, and continue implementing code and tests that do not require a live request.
5. Implement request and response types from the documentation. Handle non-2xx responses, request_id, error.code, error.message, and 429 rate limits.
6. Add a minimal usage example or test that follows the repository's conventions. Run one minimal live request only when the key is already configured and external requests are allowed; otherwise use mocks or static validation.
7. Run the relevant formatter, type checker, and tests. Report changed files, usage, verification results, and any environment variable I still need to configure.Open this request in Postman
Download the preconfigured collection for this endpoint, then import it into Postman.
Node.js example
const response = await fetch(
'https://ecommercedataapi.com/v1/amazon/products/history',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ECOMMERCE_DATA_API_KEY,
},
body: JSON.stringify({
marketplace: 'US',
asin: 'B08CK5Z5Q1',
}),
}
);
const result = await response.json();
if (!response.ok) {
throw new Error(`${result.error?.code}: ${result.error?.message}`);
}
console.log(result.data);Python example
import os
import requests
response = requests.post(
"https://ecommercedataapi.com/v1/amazon/products/history",
headers={
"Content-Type": "application/json",
"X-API-Key": os.environ["ECOMMERCE_DATA_API_KEY"],
},
json={
"marketplace": "US",
"asin": "B08CK5Z5Q1",
},
timeout=30,
)
response.raise_for_status()
print(response.json()["data"])Request body
Send the fields below directly in the JSON body without an extra wrapper. Undefined fields are rejected.
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
marketplace | String | Yes | Amazon marketplace code. Supported values are listed in the schema. | US |
asin | String | Yes | Amazon Standard Identification Number. | B08GHW4TBS |
startTimestamp | Integer | No | Start timestamp. | 1 |
endTimestamp | Integer | No | End timestamp. | 1 |
dailyLatest | Boolean | No | Daily latest. | false |
returnFields | String | No | Optional comma-separated response fields. Omit it to receive the standard payload. | marketplace,asin,dataAsin |
Response structure
| Field | Type | Description |
|---|---|---|
request_id | String | Unique identifier for this request. |
data | Object | Endpoint business data. |
The fields below are inside data. For array endpoints they describe one array item; for paginated endpoints they describe one record in items[].
Response fields
| Field | Type | Description | Example |
|---|---|---|---|
marketplace | String | Marketplace. | 见表 1.2 |
asin | String | ASIN. | B07V34QQ3C |
dataAsin | String | Data ASIN. | B07V34QQ3C |
parentAsin | String | Parent ASIN. | B0CWW9N7QW |
variationAsins | Array | Variation asins. | ["B0CN2PBVNS","B0BT4PMNY4","B0C6FYKC3D","B0CSLMG2TF","B0CGGPC6G3","B0BXG8L46Y","B0CRSZGN9L","B07V34QQ3C"] |
rootCategory | String | Root category. | 172282 |
rootCategoryLabel | String | Root category label. | Electronics |
salesRankReference | String | Sales rank reference. | 541966 |
salesRankReferenceHistory | Array | Sales rank reference history. | PairStrDto 趋势字符串数据结构 |
nodeIdPath | String | Node ID path. | 172282:541966:13896617011:565098:13896597011 |
nodeLabelPath | String | Node label path. | Electronics:Computers & Accessories:Computers & Tablets:Desktops:Towers |
productStatus | String | Product status. | STANDARD:everything accessibleDOWNLOADABLE:no marketplace/3rd party price dataEBOOK:no price data and sales rank accessibleINACCESSIBLE:no data accessibleINVALID:invalid or deprecated asinVARIATION_PARENT:product is a parent ASINUNKNOWN:null of status |
availabilityAmazon | String | Availability Amazon. | -1 |
title | String | Title. | iBUYPOWER Gaming PC Computer Desktop Element 9260 (Intel Core i7-9700F 3.0Ghz, NVIDIA GeForce GTX 1660 Ti 6GB, 16GB DDR4, 240GB SSD, 1TB HDD, Wi-Fi & Windows 10 Home) Black |
brand | String | Brand. | iBUYPOWER |
asinUrl | String | ASIN URL. | https://www.amazon.com/dp/B07V34QQ3C |
brandUrl | String | Brand URL. | https://www.amazon.com/s?k=iBUYPOWER |
salesRankUrl | String | Sales rank URL. | https://www.amazon.com/b/?node=541966 |
imageUrl | String | Image URL. | https://images-na.ssl-images-amazon.com/images/I/711nEj5l5SL._AC_US200_.jpg |
zoomImageUrl | String | Zoom image URL. | https://images-na.ssl-images-amazon.com/images/I/711nEj5l5SL._AC_US600_.jpg |
imageUrls | Array | Image urls. | ["https://images-na.ssl-images-amazon.com/images/I/711nEj5l5SL.AC_US200.jpg","https://images-na.ssl-images-amazon.com/images/I/61bpfnvHjqL.AC_US200.jpg",......] |
dimensions | String | Dimensions. | 97 |
weight | String | Weight. | 1063280 |
weightGram | String | Weight gram. | 1055398:1063252:1063280 |
pkgDimensions | String | Pkg dimensions. | 22 x 19.9 x 12.4 inches |
pkgDimensionsSize | Array | Pkg dimensions size. | [558,506,316] |
pkgWeight | String | Pkg weight. | 0.11 pounds |
pkgWeightGram | Integer | Pkg weight gram. | 13660 |
fbaFees | Number | FBA fees. | 26.11 |
fbaItems | String | FBA items. | "{"pickAndPackFeeTax":0,"storageFee":0,"storageFeeTax":0,"pickAndPackFee":26.11}" |
numberOfPages | Integer | Number of pages. | -1 |
numberOfItems | Integer | Number of items. | 1 |
price | Array | Price. | 见 PairNumberDto 趋势数字数据结构 |
dealPrice | Array | Deal price. | 见 PairNumberDto 趋势数字数据结构 |
buyBox | Array | Buy box. | 见 PairNumberDto 趋势数字数据结构 |
priceList | Array | Price list. | 见 PairNumberDto 趋势数字数据结构 |
buyBoxSellerIdHistory | Array | Buy box seller ID history. | PairStrDto 趋势字符串数据结构 |
bsr | Array | BSR. | 见 PairNumberDto 趋势数字数据结构 |
subSalesRank | Array | Sub sales rank. | 见 SubRankTrendDto 小类排名趋势 |
reviews | Array | Reviews. | 见 PairNumberDto 趋势数字数据结构 |
rating | Array | Rating. | 见 PairNumberDto 趋势数字数据结构 |
sellers | Array | Sellers. | 见 PairNumberDto 趋势数字数据结构 |
Response example
{
"request_id": "8fb43e59-4ff9-4dc8-a4b7-2ed164e45ab8",
"data": {
"marketplace": "US",
"asin": "B0DYL2DHVV",
"dataAsin": "B0DYL2DHVV",
"parentAsin": "B0DYL2DHVV",
"variationAsins": null,
"rootCategory": "283155",
"rootCategoryLabel": "Books",
"salesRankReference": "283155",
"salesRankReferenceHistory": [
{
"timePoint": 1754767200000,
"value": "283155"
}
],
"nodeIdPath": "283155:1000:48:5043:5045",
"nodeLabelPath": "Books:Subjects:Crafts, Hobbies & Home:Pets & Animal Care:Cats",
"productStatus": "STANDARD",
"availabilityAmazon": "3",
"title": "The BrownTrout Portrait Series: The Regal Cat | 2026 12 x 24 Inch (Hanging) Monthly Square Wall Calendar | Plastic-Free | Pet Kitten Feline",
"brand": null,
"asinUrl": "https://www.amazon.com/dp/B0DYL2DHVV",
"brandUrl": null,
"salesRankUrl": "https://www.amazon.com/b/?node=283155",
"imageUrl": "https://images-na.ssl-images-amazon.com/images/I/71G5e3fedaL._AC_US200_.jpg",
"zoomImageUrl": "https://images-na.ssl-images-amazon.com/images/I/71G5e3fedaL._AC_US600_.jpg",
"imageUrls": [
"https://images-na.ssl-images-amazon.com/images/I/71G5e3fedaL._AC_US200_.jpg"
],
"dimensions": "12 x 0.1 x 12 inches",
"dimensionsSize": [305],
"weight": "0.56 pounds",
"weightGram": 254,
"pkgDimensions": "12 x 12 x 0.1 inches",
"pkgDimensionsSize": [305],
"pkgWeight": "0.56 pounds",
"pkgWeightGram": 254,
"fbaFees": 3.43,
"fbaItems": "{\"pickAndPackFeeTax\":0,\"storageFee\":0,\"storageFeeTax\":0,\"pickAndPackFee\":3.43}",
"numberOfPages": 28,
"numberOfItems": 1,
"price": [
{
"timePoint": 1741427280000,
"value": 17.99
}
],
"dealPrice": [],
"buyBox": [],
"buyBoxSellerIdHistory": [],
"bsr": [
{
"timePoint": 1741427280000,
"value": -1
}
],
"subSalesRank": [
{
"nodeId": "5045",
"node": "Cats",
"ranks": [
{
"timePoint": 1741427280000,
"value": -1
}
]
}
],
"reviews": [],
"rating": [],
"sellers": [
{
"timePoint": 1741427280000,
"value": 1
}
]
}
}See Errors and rate limits for error payloads, request tracing, and rate-limit headers.