100 free credits. No credit card required. Get a key

Amazon search API

Amazon search results in Amazon’s order with price, rating, sponsored flag, badges and units bought last month.

GET /v1/amazon/searchBeta1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/amazon/search?query=wireless%20earbuds",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"query": "wireless earbuds",
"country": "US",
"page": 1,
"total_pages": 20,
"total_results": "1-16 of over 20,000 results",
"next_page": 2,
"results": [
{
"position": 1,
"asin": "B0FH9LQH9W",
"title": "Wireless Earbuds, Bluetooth 5.4 Headphones HiFi Stereo, Bluetooth Earbuds",
"url": "https://www.amazon.com/dp/B0FH9LQH9W",
"image": "https://m.media-amazon.com/images/I/71tuY4g-PWL._AC_UY218_.jpg",
"price": {
"value": 20.75,
"currency": "USD",
"raw": "$20.75"
},
"list_price": {
"value": 32.99,
"currency": "USD",
"raw": "$32.99"
},
"rating": 4.3,
"ratings_total": 5600,
"is_sponsored": true,
"is_prime": false,
"badge": "Black Friday Deal",
"bought_past_month": "2K+ bought in past month",
"delivery": "Join Prime to get FREE delivery Tomorrow, Nov 25Or Non-members get FREE delivery Sun, Nov 29 on $35 of items shipped by …"
},
{
"position": 2,
"asin": "B0H7WVBCJV",
"title": "Wireless Earbuds,Bluetooth 5.4 Headphones HiFi Bass Stereo Ear Buds",
"url": "https://www.amazon.com/dp/B0H7WVBCJV",
"image": "https://m.media-amazon.com/images/I/61RFzURwRBL._AC_UY218_.jpg",
"price": {
"value": 13.99,
"currency": "USD",
"raw": "$13.99"
},
"list_price": {
"value": 19.99,
"currency": "USD",
"raw": "$19.99"
},
"rating": 4.3,
"ratings_total": 9800,
"is_sponsored": true,
"is_prime": false,
"badge": null,
"bought_past_month": "500+ bought in past month",
"delivery": "Join Prime to get FREE delivery Fri, Nov 27Or Non-members get FREE delivery Sun, Nov 29 on $35 of items shipped by Amazo…"
},
"… 6 more"
]
}

Parameters

NameTypeDescription
queryquery · requiredstringSearch keyword or phrase. Example: wireless earbuds.
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.
depthqueryintegerProducts to collect in this call (default one page; up to 60, more is clamped).
pagequeryintegerPage number, starting at 1.
Response fields

200 with a AmazonSearch, in the fields Amazon’s own product pages show.

FieldTypeDescription
querystring
countrystring
pagenumber
total_pagesnumber | null
total_resultsstring | null
next_pagenumber | null
resultsobject[]
Status codes
StatusMeaning
200A page of results.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The product, seller, list or shop does not exist in that marketplace.
429Too many requests. Wait for Retry-After seconds.
503Amazon 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.