Amazon Product API: Search, Offers and Reviews as JSON
An Amazon product API returns products as JSON, so you can search the catalogue and track individual items without parsing pages. With Perceptlayer, GET /v1/amazon/search takes a keyword and returns results with an asin, title, price, rating and reviews_count each. Four more endpoints take an asin: product, offers, rating-summary and customers-say. Every one costs 1 credit per successful call, and each takes a domain from a fixed list of marketplaces. This guide covers the flow, the domain values and the cost per product.
Which Amazon endpoints does a product lookup use?
A product lookup uses five of the 18 endpoints in the Amazon API: search to find products by keyword, then four endpoints keyed on the product's ASIN. product returns the product, offers returns its offers, rating-summary its rating summary, and customers-say the product's Customers Say data. All five are GET requests on the standard tier and cost 1 credit per successful call. The other endpoints cover lists (best sellers, new releases, deals, categories), sellers, promotions, influencers and autocomplete.
| Endpoint | Required parameters | Optional parameters | Credits |
|---|---|---|---|
GET /v1/amazon/search |
query |
domain, page, sort, category, min_price, max_price, language, rh, dc, node |
1 |
GET /v1/amazon/product |
asin |
domain |
1 |
GET /v1/amazon/offers |
asin, domain |
page, condition |
1 |
GET /v1/amazon/rating-summary |
asin, domain |
none | 1 |
GET /v1/amazon/customers-say |
asin, domain |
none | 1 |
Each lookup is a separate call. If you only need price and rating for a list of known ASINs, call the endpoints you need and skip the rest: you pay per call, not per product.
How do you search Amazon by keyword?
Send a GET request to https://api.perceptlayer.com/v1/amazon/search with your keyword in query and your key in the X-API-Key header. This is the request behind the recorded response in the next section:
curl "https://api.perceptlayer.com/v1/amazon/search?query=laptop+stand" \
-H "X-API-Key: $API_KEY"
Keys start with sk_live_. Where you can't set a header, put the key in the api_key query parameter instead; the authentication docs cover both. The search endpoint takes these parameters:
| Parameter | Type | Required | Documented constraint |
|---|---|---|---|
query |
string | yes | Up to 500 characters |
domain |
string | no | One of US, DE |
page |
integer | no | None documented |
sort |
string | no | One of relevance, price-asc, price-desc, rating, newest, bestseller, relevanceblender, price-asc-rank, price-desc-rank, review-rank, date-desc-rank, exact-aware-popularity-rank |
category |
string | no | Up to 100 characters |
min_price |
number | no | None documented |
max_price |
number | no | None documented |
language |
string | no | None documented |
rh |
string | no | None documented |
dc |
boolean | no | None documented |
node |
integer | no | None documented |
The recorded request sent no domain, and the response reports "domain": "US". Send domain explicitly in your own jobs so the marketplace never depends on what a request leaves out.
What does the search response contain?
The search response wraps everything in success, data and meta. Under data, results holds one object per product, and pagination says whether more pages exist. This is the recorded response for laptop stand, trimmed:
{
"success": true,
"data": {
"query": "laptop stand",
"domain": "US",
"page": 1,
"results": [
{
"asin": "B08BRCT4JH",
"title": "BESIGN LS03 Aluminum Laptop Stand, Ergonomic Detachable Computer Stand, …",
"url": "/dp/B08BRCT4JH",
"price": {
"amount": 15.29,
"currency": "USD",
"formatted": "$15.29"
},
"rating": 4.8,
"reviews_count": 24525,
…
"is_prime": false,
"is_sponsored": false,
"badges": [
"Overall Pick"
]
},
…
],
"results_count": 16,
"pagination": {
"current_page": 1,
"total_pages": 20,
"has_next": true,
"has_previous": false
}
},
"meta": {
"domain": "US",
"currency": "USD",
…
"credits_charged": 1,
"credits_remaining": 1992
}
}
| Field | What it holds in the recording |
|---|---|
results[].asin |
The product's ASIN, B08BRCT4JH |
results[].url |
A relative path, /dp/B08BRCT4JH, with the same ASIN in it |
results[].price.amount / price.currency |
15.29 and USD, with formatted as display text |
results[].rating / reviews_count |
4.8 and 24525 |
results[].is_sponsored |
false; filter on it if you want organic results only |
results[].badges |
Labels such as Overall Pick and Best Seller |
results_count |
16 results on this page |
pagination.has_next |
true, with total_pages of 20 |
meta.credits_charged |
1 |
Read prices from price.amount and price.currency, not from formatted, which is a display string.
How do you look a product up by ASIN?
Each search result carries an asin field, and product, offers, rating-summary and customers-say each take an asin parameter: the names match. Pass the ASIN with the same domain you searched, one call per endpoint. We don't have recorded responses for these four in this guide, so run each once in the playground on the Amazon API page with an ASIN from your own search, and check the response before you build on its fields.
curl "https://api.perceptlayer.com/v1/amazon/product?asin=B08BRCT4JH&domain=US" \
-H "X-API-Key: $API_KEY"
curl "https://api.perceptlayer.com/v1/amazon/offers?asin=B08BRCT4JH&domain=US&condition=new" \
-H "X-API-Key: $API_KEY"
curl "https://api.perceptlayer.com/v1/amazon/rating-summary?asin=B08BRCT4JH&domain=US" \
-H "X-API-Key: $API_KEY"
curl "https://api.perceptlayer.com/v1/amazon/customers-say?asin=B08BRCT4JH&domain=US" \
-H "X-API-Key: $API_KEY"
What do the lookup parameters accept?
product requires only asin; its domain is optional and takes US or DE. offers requires asin and domain, and takes an optional page and a condition of new or usedGood, so new and used offers are separate calls. rating-summary and the customers-say endpoint take exactly asin and domain, with nothing optional. No defaults or page sizes are documented beyond these, so set the parameters you depend on.
Which domain values does each Amazon endpoint take?
Each endpoint takes domain from its own list, and the lists differ. Search, product, offers, rating-summary and customers-say take US and DE only. Best sellers, new releases and categories add UK. The review endpoints featured-reviews and media-reviews take nine marketplaces and leave out US. Check the list before you plan a cross-marketplace job.
| Endpoint | domain values |
Required |
|---|---|---|
search |
US, DE |
no |
product |
US, DE |
no |
offers, rating-summary, customers-say |
US, DE |
yes |
autocomplete, category-products, deals |
US, DE |
yes |
seller, seller-products, seller-reviews |
US, DE |
yes |
best-sellers, new-releases, categories |
US, DE, UK |
yes |
featured-reviews, media-reviews |
DE, UK, CA, FR, IT, ES, JP, AU, IN |
yes |
promotion |
US, CA, IN, DE, IT, JP, AU |
yes |
influencer |
US |
yes |
So the full search-to-lookup flow in this guide runs on US and DE. For a UK product you can still pull best sellers, new releases and categories, and the featured and media reviews, but not search, product or offers.
How do you run the whole flow in Python?
The script below searches once, keeps the non-sponsored results, and calls the four lookup endpoints for each ASIN, saving every response as a JSON file. It reads only fields the recorded search response shows (data.results[].asin and is_sponsored), and stores the lookup responses whole, since their shape isn't recorded here. It waits on 429 and 503 using Retry-After, and logs the credits each call used.
import json
import os
import time
import requests
API_KEY = os.environ["API_KEY"]
BASE = "https://api.perceptlayer.com/v1/amazon"
DOMAIN = "US"
LOOKUPS = ["product", "offers", "rating-summary", "customers-say"]
def get(endpoint, params, attempts=3):
for _ in range(attempts):
r = requests.get(f"{BASE}/{endpoint}", params=params,
headers={"X-API-Key": API_KEY}, timeout=60)
if r.status_code in (429, 503):
time.sleep(int(r.headers.get("Retry-After", "5")))
continue
r.raise_for_status()
print(endpoint, params.get("asin", ""), "credits:", r.headers.get("X-Credits-Used"))
return r.json()
raise RuntimeError(f"gave up on {endpoint} {params}")
search = get("search", {"query": "laptop stand", "domain": DOMAIN})
asins = [p["asin"] for p in search["data"]["results"] if not p.get("is_sponsored")]
os.makedirs("amazon", exist_ok=True)
for asin in asins[:5]:
for endpoint in LOOKUPS:
data = get(endpoint, {"asin": asin, "domain": DOMAIN})
with open(f"amazon/{asin}-{endpoint}.json", "w") as f:
json.dump(data, f, indent=2)
time.sleep(1)
The asins[:5] slice keeps a first run to 1 + 5 × 4 = 21 credits. The one-second pause keeps it within a free account's 1 request a second; paying accounts run at least 5 a second. Once you've read the saved files, replace the raw dump with the fields you need.
What should the script do with errors?
Every error returns an HTTP status and a JSON body with code, message and request_id. Retry rate_limited (429) and temporarily_unavailable (503) after Retry-After. On a not_found (404) or invalid_parameters (422), log the ASIN and domain you sent, check both against the endpoint's parameters, and move on. Treat source_error (502) as a retry for later. The errors docs list every code.
What does tracking Amazon products cost?
Tracking costs 1 credit per endpoint per product per check, plus 1 credit per search page. Decide which lookups you need and how often: you might check offers daily and the review endpoints weekly. Only successful calls are billed, so a failed call followed by a successful retry costs 1 credit.
| Plan | Arithmetic | Credits |
|---|---|---|
| One search, all four lookups for 16 results | 1 + 16 × 4 × 1 credit | 65 |
100 ASINs, offers daily |
100 × 30 days × 1 credit | 3,000 a month |
100 ASINs, offers and rating-summary daily |
100 × 2 × 30 × 1 credit | 6,000 a month |
300 ASINs, offers daily, all four lookups weekly |
300 × 30 + 300 × 4 × 4 | 13,800 a month |
The first fits the 100 free credits you get once on signup. The second and third fit the Starter pack's 10,000 credits, and the last fits the Build pack's 50,000 for three months. Purchased credits last 12 months, with no subscription. See pricing for what credits cost and the credits docs for how debits work.
To start, run search in the playground on the Amazon API page, pick an ASIN and run the four lookups on it, then get a free API key and schedule the script. More guides like this one are in API guides.
APIs in this post
Frequently asked questions
How much does an Amazon product API call cost?
Each successful call to the Amazon endpoints in this guide costs 1 credit: search, product, offers, rating-summary and customers-say. Failed calls cost nothing and return X-Credits-Used: 0. Looking up one product with all four ASIN endpoints is 4 credits, so checking 100 products that way once is 400 credits. The pricing page lists what credit packs cost.
Which Amazon marketplaces are supported?
It depends on the endpoint. Search, product, offers, rating-summary and customers-say take domain values US and DE. Best sellers, new releases and categories also take UK. Featured and media reviews take DE, UK, CA, FR, IT, ES, JP, AU and IN, but not US. Promotion takes seven values and influencer only US.
Where do I get an ASIN?
Every result from GET /v1/amazon/search has an asin field, such as B08BRCT4JH in the recorded response, and its url field is a /dp/ path containing the same value. The ASIN endpoints take an asin parameter with the same name. If you already have product URLs or a list of ASINs, you can skip search and call the lookup endpoints directly.
Can I get used offers as well as new ones?
Yes. GET /v1/amazon/offers takes an optional condition parameter with the values new and usedGood. Each condition is a separate call at 1 credit, and the endpoint also takes an optional page. It requires both asin and domain, with domain set to US or DE.
Can an AI agent look up Amazon products?
Yes. Through the MCP server at https://perceptlayer.com/mcp, an agent finds the Amazon endpoints with search_endpoints and reads their parameters with get_endpoint, both free. It then calls search and the ASIN endpoints with call_endpoint, which spends credits only on success and reports the credits used and remaining. The AI agents docs show the setup.