Amazon offers and sellers API
Every offer on a product, Buy Box first: price, condition, seller name, id and rating, ships-from and delivery.
GET /v1/amazon/products/{asin}/offersBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/amazon/products/B0D1XD1ZV3/offers",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "asin": "B0D1XD1ZV3", "country": "US", "product": { "asin": null, "title": "Apple AirPods Pro 2 Wireless Earbuds, Active Noise Cancellation, Hearing Aid Feature, Bluetooth Headphones, Transparency…", "rating": 4.6, "ratings_total": 47230 }, "offers": [ { "is_pinned": true, "price": { "value": 200.79, "currency": "USD", "raw": "$200.79" }, "condition": "Used - Good", "seller": { "name": "6ave", "id": "ALAQLAKJ574UN", "rating": "Seller rating is 4.5 out of 5 stars (113527 ratings) 90% positive over last 12 months" }, "ships_from": "6ave", "delivery": "FREE delivery Wednesday, December 2. Details Or fastest delivery Friday, November 27. Details ... More", "is_prime": false }, { "is_pinned": false, "price": { "value": 266.01, "currency": "USD", "raw": "$266.01" }, "condition": "New", "seller": { "name": "6ave", "id": "ALAQLAKJ574UN", "rating": "Seller rating is 4.5 out of 5 stars (113527 ratings) 90% positive over last 12 months" }, "ships_from": "6ave", "delivery": "FREE delivery Wednesday, December 2. Details Or fastest delivery Friday, November 27. Details ... More", "is_prime": false }, "… 1 more" ], "total_offers": null}Parameters
| Name | Type | Description |
|---|---|---|
asinpath · required | string | The 10-character ASIN, or a product URL. Example: B0D1XD1ZV3. |
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. |
Response fields
200 with a AmazonOffers, in the fields Amazon’s own product pages show.
| Field | Type | Description |
|---|---|---|
asin | string | |
country | string | |
product | object | |
total_offers | number | null | |
offers | object[] |
Status codes
| Status | Meaning |
|---|---|
200 | The offers. |
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.