Best Sellers
An Amazon Best Sellers, New Releases, Movers & Shakers, Most Wished For or Most Gifted list, top 100, in any of 22 Amazon stores: rank, ASIN, title, price, rating and number of ratings.
Try it in the dashboard 10 free credits when you sign up, no card.
GET/v1/amazon/bestsellers
Costs 1 credit per 50 items requested. Only requests that return data are charged.
Parameters
| Name | Type | Description |
|---|---|---|
urlrequired |
string | The address of the list, as Amazon links to it: /gp/bestsellers/<category>, /Best-Sellers-.../zgbs/<category>, /gp/new-releases/<category>, /gp/movers-and-shakers/<category>, /gp/most-wished-for/<category> or /gp/most-gifted/<category>, in any of the 22 stores. |
limitoptional |
integer | How many ranks to return, from the top. A list has 100. Default: 50. From 1 to 100. |
Example request
curl "https://pipefetch.com/v1/amazon/bestsellers?url=https%3A%2F%2Fwww.amazon.com%2Fgp%2Fbestsellers%2Felectronics&limit=50" \
-H "x-api-key: YOUR_API_KEY"const res = await fetch('https://pipefetch.com/v1/amazon/bestsellers?url=https%3A%2F%2Fwww.amazon.com%2Fgp%2Fbestsellers%2Felectronics&limit=50', {
headers: { 'x-api-key': process.env.PIPEFETCH_API_KEY },
});
const { data, credits } = await res.json();import os, requests
res = requests.get(
"https://pipefetch.com/v1/amazon/bestsellers",
params={"url": "https://www.amazon.com/gp/bestsellers/electronics", "limit": 50},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
)
data = res.json()["data"]Example response
A real answer to the request above. Long texts and lists are shortened here, and the people who wrote comments, reviews or posts are replaced by a stand-in.
{
"data": {
"list": {
"type": "bestsellers",
"category": "Electronics",
"url": "https://www.amazon.com/gp/bestsellers/electronics",
"country": "US"
},
"products": [
{
"rank": 1,
"asin": "B0FQFB8FMG",
"title": "Apple AirPods Pro 3 Wireless Earbuds with Active Noise Cancellation | Live Translation, Heart Rate Sensing, Hearing Aid Feature, Bluetooth Headphones,…",
"url": "https://www.amazon.com/dp/B0FQFB8FMG",
"price": null,
"currency": "USD",
"rating": 4.4,
"reviewCount": 18584,
"offersFrom": 141.55,
"image": "https://images-na.ssl-images-amazon.com/images/I/61solmQSSlL._AC_UL900_SR900,600_.jpg",
"salesRank": null,
"salesRankPrevious": null,
"salesRankChangePercent": null
},
{
"rank": 2,
"asin": "B08JHCVHTY",
"title": "blink plus plan with monthly auto-renewal",
"url": "https://www.amazon.com/dp/B08JHCVHTY",
"price": 11.99,
"currency": "USD",
"rating": 4.4,
"reviewCount": 282358,
"offersFrom": null,
"image": "https://images-na.ssl-images-amazon.com/images/I/31YHGbJsldL._AC_UL900_SR900,600_.png",
"salesRank": null,
"salesRankPrevious": null,
"salesRankChangePercent": null
}
]
},
"credits": {
"used": 1,
"remaining": 99
}
}Good to know
- A request costs 1 credit per started 50 ranks: limit=50 is 1 credit, limit=100 is 2.
- rank is Amazon's rank in the list, 1 to 100. list.category is the list's category in the store's language, list.type which of the five lists it is.
- Outside the United States, Amazon hides the price of a product it does not deliver to the United States, where the endpoint reads from: such products come back with price null. offersFrom is the lowest price of other sellers when Amazon shows one instead of a price.
- Movers & Shakers, Most Wished For and Most Gifted are sometimes empty on Amazon itself ("check back later"). An empty list, or a category that does not exist, answers 404 empty_list and costs nothing. salesRank, salesRankPrevious and salesRankChangePercent are filled for Movers & Shakers only.
- When Amazon refuses the list, the request answers 502 upstream_error, costs nothing and can be sent again.
Errors
Every error has the same shape, and none of them is charged. The full list is in the error reference.
Looking for an overview and use cases? See the Amazon Best Sellers API page.