Amazon Best Sellers API
Amazon’s ranked Best Sellers, New Releases, Movers & Shakers, Most Wished For and Gift Ideas lists per category.
GET /v1/amazon/best-sellersBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/amazon/best-sellers?category=electronics",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "category": "electronics", "type": "BEST_SELLERS", "country": "US", "page": 1, "title": "Amazon Best Sellers", "items": [ { "rank": 1, "asin": "B08JHCVHTY", "title": "blink plus plan with monthly auto-renewal", "url": "https://www.amazon.com/dp/B08JHCVHTY", "image": "https://images-na.ssl-images-amazon.com/images/I/31YHGbJsldL._AC_UL300_SR300,200_.png", "price": { "value": 11.99, "currency": "USD", "raw": "$11.99" }, "rating": 4.4, "ratings_total": 282269, "sales_rank_change": null }, { "rank": 2, "asin": "B0FQFB8FMG", "title": "Apple AirPods Pro 3 Wireless Earbuds with Active Noise Cancellation | Live Translation, Heart Rate Sensing, Hearing Aid …", "url": "https://www.amazon.com/dp/B0FQFB8FMG", "image": "https://images-na.ssl-images-amazon.com/images/I/61solmQSSlL._AC_UL300_SR300,200_.jpg", "price": { "value": 149, "currency": "USD", "raw": "$149.00" }, "rating": 4.4, "ratings_total": 18325, "sales_rank_change": null }, "… 8 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
categoryquery · required | string | Department slug, or slug/node id, from the list URL. Example: electronics. |
countryquery | "US" | "GB" | "CA" | "DE" | "FR" | "IT" | "ES" | "JP" | "IN" | "MX" | "BR" | "AU" | "NL" | Amazon marketplace: US (default), GB, CA, DE, FR, IT, ES, JP, IN, MX, BR, AU, NL. One of US, GB, CA, DE, FR, IT, ES, JP, IN, MX, BR, AU, NL. |
typequery | "BEST_SELLERS" | "NEW_RELEASES" | "MOVERS_AND_SHAKERS" | "MOST_WISHED_FOR" | "GIFT_IDEAS" | Which list (default BEST_SELLERS). One of BEST_SELLERS, NEW_RELEASES, MOVERS_AND_SHAKERS, MOST_WISHED_FOR, GIFT_IDEAS. |
pagequery | integer | Page 1 (ranks 1-50) or 2 (51-100). |
Response fields
200 with a AmazonBestSellers, in the fields Amazon’s own product pages show.
| Field | Type | Description |
|---|---|---|
category | string | |
type | string | |
country | string | |
page | number | |
title | string | null | |
items | object[] |
Status codes
| Status | Meaning |
|---|---|
200 | The ranked list. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The product, seller, list or shop does not exist in that marketplace. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Amazon is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Amazon is a trademark of Amazon.com, Inc. We are not affiliated with or endorsed by Amazon.