Amazon's official Product Advertising API requires an approved Associates account and ongoing qualifying sales. If you are building a small price monitor, competitor tracker, or catalog lookup tool, you usually just want the public search results page as structured JSON.
Using an amazon search api (/amazon/search), one POST request returns the ranked products[] list with ASINs, prices, list prices, ratings, review counts, badges, and sponsored flags.
20 lines of Python
Set SERPBASE_API_KEY in your environment, then run this script:
import os, requests resp = requests.post( "https://api.serpbase.dev/amazon/search", headers={"X-API-Key": os.environ["SERPBASE_API_KEY"]}, json={"q": "wireless headphones", "domain": "amazon.com"}, timeout=30, ).json() if resp.get("status") != 0: raise RuntimeError(f"status={resp.get('status')} id={resp.get('request_id')}") for p in resp.get("products", []): price = (p.get("price") or {}).get("display") or "N/A" list_price = (p.get("list_price") or {}).get("display") or "-" sponsored = "AD" if (p.get("is_sponsored") or p.get("sponsored")) else "ORG" print( f"#{p.get('position')} [{sponsored}] {p.get('asin')} | " f"{price} (list {list_price}) | {p.get('rating')}* ({p.get('reviews_count')}) | " f"{p.get('title', '')[:60]}" ) Change domain to amazon.co.uk, amazon.de, or amazon.co.jp to query other marketplaces.
What the JSON looks like per product
Each entry in products[] gives you:
-
asin: Amazon's product ID (stable key for tracking price history in SQLite or CSV). -
position: display order on the search page. -
priceandlist_price: objects shaped like{"amount": "29.95", "display": "$29.95", "symbol": "$"}. -
ratingandreviews_count: star score (float) and review count. -
badges: strings like["Overall Pick"]or["Best Seller"]when shown. -
is_sponsored/sponsored: lets you separate paid placements from organic rank. -
link: direct product page URL.
Three small gotchas to handle in your parser
- Not every item has a price. Out-of-stock listings or multi-variant cards can return
price: nullor omitlist_price. Always guard with(p.get("price") or {}).get("amount")instead of indexingp["price"]["amount"]directly. - Treat
reviews_countas text first. It can come back as a string (for example"328"or formatted with commas), so strip commas before casting toint. - Separate sponsored rows before computing organic rank. If you track where your ASIN ranks for a keyword, filter out sponsored items first so paid ads shifting around don't make your organic rank chart look noisy.
If you also need a full single-product breakdown by ASIN later, /amazon/product takes the asin straight from this search output.
For a full tested JSON sample and a CSV price snapshot script, see Amazon Search API: Product Results, Prices and Ratings as JSON. Full disclosure: I work on SerpBase.

