Amazon Scraper or API: Search, Offers and Reviews
An Amazon scraper loads search result and product pages, then pulls the ASIN, title, price, rating and review count out of each one, and you keep that extraction working for every marketplace you collect. The other route is the Amazon endpoints on Perceptlayer: 18 GET calls, 1 credit each, that return those values as named JSON fields. This post compares the two on a recorded "laptop stand" search, shows which domain values each endpoint accepts, prices tracking per item in credits and gives a verdict per use case.
What would an Amazon scraper have to do?
An Amazon scraper has three jobs: fetch pages, extract values from them and notice when either step stops working. Fetching means requesting search pages for each keyword and page number, then product and offer pages for each ASIN, for every marketplace you cover. Extraction means turning each page into a row: an ID, a title, a price as a number with its currency, a rating, a review count and flags such as sponsored placement. Monitoring means comparing each run with the last, because a broken extractor usually returns empty fields rather than an error.
Each job carries upkeep that is ordinary engineering, not a one-off build. Page layouts change over time on any large retail site, so selectors you wrote last quarter can quietly return nothing. Price text has to be parsed per marketplace, with its own currency symbol and decimal separator. Sponsored and organic results sit side by side, and your parser has to tell them apart if your analysis depends on it. Traffic that looks automated tends to be slowed or refused on large sites, so a scraper that runs every day needs retries, pacing and a plan for when requests fail.
Before you build a collector, read Amazon's terms of use and get advice for commercial use. Don't work around blocks, challenges or other protections.
What do the Amazon endpoints return?
The Amazon API on Perceptlayer has 18 endpoints, all GET and all 1 credit per successful call. For a scraper replacement, four groups matter: search, product, offers and reviews. Search turns a keyword into a list of ASINs with prices; product and offers take an asin; the review endpoints take an asin and return review and rating data for it. The table lists the ones covered here with their required parameters.
| Endpoint | What it's for | Required | Optional |
|---|---|---|---|
GET /v1/amazon/search |
Products for a keyword | query |
domain, page, sort, category, min_price, max_price, language, rh, dc, node |
GET /v1/amazon/product |
One product | asin |
domain |
GET /v1/amazon/offers |
Offers on one product | asin, domain |
page, condition (new, usedGood) |
GET /v1/amazon/rating-summary |
Rating summary | asin, domain |
none |
GET /v1/amazon/customers-say |
Customers Say | asin, domain |
none |
GET /v1/amazon/featured-reviews |
Featured reviews | asin, domain |
none |
GET /v1/amazon/media-reviews |
Media reviews | asin, domain |
none |
GET /v1/amazon/seller-reviews |
Reviews of a seller | sellerId, seller_id, domain |
page, rating, period |
The rest cover discovery: best sellers, new releases, categories, category products, deals, autocomplete, sellers and promotions. The Amazon API page lists every parameter.
A real search: "laptop stand"
This request searches for "laptop stand" with no other parameters:
curl "https://api.perceptlayer.com/v1/amazon/search?query=laptop+stand" \
-H "X-API-Key: $API_KEY"
This is the recorded response, trimmed to the fields a tracker reads:
{
"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"
]
},
{
"asin": "B0C7BKZ883",
"title": "Adjustable Laptop Stand for Desk, Metal Laptop Riser Holder",
…
"rating": 4.5,
"reviews_count": 4568,
…
"badges": [
"Best Seller"
]
}
],
"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
}
}
Three details matter for a tracker. The price arrives twice: price.amount as a number for arithmetic and price.formatted as display text, so there's no currency string to parse. is_sponsored marks paid placement, so you can drop or keep those rows on purpose. And url is a relative path that contains the ASIN, while asin is a field of its own, so you never extract the ID from a link.
From a search result to product, offers and reviews
Each search result carries an asin, and the product, offers and review endpoints all take an asin parameter, so the names match. We don't have a recorded product or offers response to show here, so run one of the recorded ASINs, such as B08BRCT4JH, through /v1/amazon/product in the playground and check the fields before you build on them. The same applies to Customers Say and featured reviews.
Which marketplaces does each endpoint cover?
The domain parameter picks the Amazon marketplace, and the accepted values differ by endpoint, so check this before you plan a multi-country job. Search and product take domain as optional, and the recorded search without it came back with domain: "US". Every other endpoint in the table requires it. A scraper would need its own code path per marketplace; here it's one parameter, within the values each endpoint lists.
| Endpoint | Accepted domain values |
|---|---|
search, product |
US, DE (optional) |
offers, rating-summary, customers-say |
US, DE |
category-products, deals, autocomplete |
US, DE |
best-sellers, new-releases, categories |
US, DE, UK |
featured-reviews, media-reviews |
DE, UK, CA, FR, IT, ES, JP, AU, IN |
promotion |
US, CA, IN, DE, IT, JP, AU |
The gap to plan around is reviews. For a US product, the review data on offer is rating-summary and customers-say; featured-reviews and media-reviews don't accept US. If you track German products, all four review endpoints are available. Store the domain and meta.currency next to every price, so a later join never mixes USD and another currency.
How do a scraper and the endpoints compare?
A scraper costs engineering time and carries terms and blocking risk; the endpoints cost credits per call and remove the extraction and its upkeep. Neither is free, and the right choice depends on volume and how many marketplaces you need. The table compares them for a recurring job, such as watching prices and ratings for a product category every day.
| DIY Amazon scraper | Amazon endpoints | |
|---|---|---|
| Setup | Fetcher, extractors per page type, storage, monitoring | API key in the X-API-Key header |
| Product ID | Extracted from links or page markup | asin field |
| Price | Parsed from text per marketplace | price.amount and price.currency |
| Sponsored results | Detected from page markup | is_sponsored |
| Marketplaces | One code path per site you support | domain, within each endpoint's values |
| When pages change | Your extractor breaks and you fix it | You read named JSON fields |
| Blocks and failures | Yours to handle | A failed call returns an error code and costs 0 |
| Paging | Follow the site's next links | page, with pagination.has_next |
| Speed | As fast as you can fetch without being refused | 1 request a second free, at least 5 a second paid |
| Cost | Hosting, proxies if you use them, your time | 1 credit per successful call |
A search sweep in Python
This script pages through one search while pagination.has_next is true and writes one CSV row per result. It reads only fields in the recorded response and waits on 429 and 503 using Retry-After.
import csv
import os
import time
import requests
API_KEY = os.environ["API_KEY"]
URL = "https://api.perceptlayer.com/v1/amazon/search"
def get(params):
for _ in range(3):
r = requests.get(URL, 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()
return r.json()["data"]
raise RuntimeError("gave up")
with open("laptop-stand.csv", "w", newline="") as f:
out = csv.writer(f)
out.writerow(["page", "asin", "amount", "currency", "rating", "reviews_count", "is_sponsored"])
page = 1
while True:
data = get({"query": "laptop stand", "domain": "US", "page": page})
for item in data.get("results", []):
price = item.get("price") or {}
out.writerow([page, item.get("asin"), price.get("amount"), price.get("currency"),
item.get("rating"), item.get("reviews_count"), item.get("is_sponsored")])
if not data.get("pagination", {}).get("has_next"):
break
page += 1
time.sleep(1)
The one-second pause keeps a free account within its 1 request a second. Errors come back as an HTTP status with a JSON code, message and request_id; the errors docs list every code.
What does tracking an Amazon item cost?
Cost follows calls, not rows: every successful call is 1 credit, whatever it returns. So the price of tracking an item depends on whether you follow a fixed list of ASINs or sweep search results. A fixed list costs 1 credit per ASIN per check; a sweep costs 1 credit per page and spreads that over every result on it.
| Plan | Arithmetic | Credits |
|---|---|---|
| 500 ASINs, product call daily | 500 × 30 days × 1 credit | 15,000 a month |
| 500 ASINs, product and offers daily | 500 × 2 × 30 days × 1 credit | 30,000 a month |
| One full "laptop stand" sweep | 20 pages × 1 credit | 20 |
| 10 keywords, 20 pages each, daily | 10 × 20 × 30 days × 1 credit | 6,000 a month |
The first two fit the Build pack's 50,000 credits; the last fits the Starter pack's 10,000. The recorded page 1 held 16 results for 1 credit, about 0.06 credits per result, but later pages may hold a different number, so budget per page. The 100 free credits on signup cover five full sweeps of the recorded search, or one product check on 100 ASINs. Purchased credits last 12 months. See pricing for what credits cost and the credits docs for how calls are debited.
Which route should you choose?
Choose by volume, marketplaces and how much upkeep you can absorb. For a one-off look at a handful of products, a browser is enough and neither route is worth building. For anything recurring, the verdicts below apply.
- Price and rank watch on a category: sweep
searchdaily per keyword, storeasin,price.amount,rating,reviews_countandis_sponsoredwith the page number. About 20 credits per keyword per day at the recorded depth. - Monitoring a known list of ASINs: call
product, and addofferswhen you need more than one seller's offer. 1 or 2 credits per ASIN per check. - Review and rating tracking: use
rating-summaryandcustomers-sayforUSandDE, andfeatured-reviewsormedia-reviewsfor the other marketplaces they list. Leave reviewers' names out of anything you store. - Your own seller account's orders and inventory: neither route fits. These endpoints return public catalogue data, not account data.
- Learning how scraping works: build a scraper against a practice site, not a large retailer.
- An agent answering shopping questions: connect the MCP server as the AI agents docs describe, so it calls
searchinstead of browsing pages.
The same comparison for other retail sources is in AliExpress Scraper or API and Google Shopping Scraper or API, and the marketplaces APIs page lists the rest. To check the fields for your own category, run search in the playground on the Amazon API page, then get a free API key.
APIs in this post
Frequently asked questions
Is scraping Amazon allowed?
That depends on Amazon's terms of use and the law where you operate, so read the terms and get legal advice before collecting data commercially. Don't get around blocks, challenges or other protections. Product facts such as price, rating and review count carry less risk than personal data; leave reviewers' and sellers' personal details out of anything you keep.
Can I get Amazon data for countries other than the US?
Yes, within each endpoint's listed values. Search, product, offers, rating-summary and customers-say take domain as US or DE. Best sellers, new releases and categories add UK. Featured and media reviews take DE, UK, CA, FR, IT, ES, JP, AU and IN, but not US. Each call costs 1 credit whatever the domain.
How do I page through Amazon search results?
Send the same query with page set to 2, 3 and so on, and stop when pagination.has_next is false. The recorded "laptop stand" search reported total_pages: 20 and results_count: 16 on page 1. Every page is a separate call at 1 credit, so a full sweep of that search costs 20 credits.
Does a failed Amazon call cost credits?
No. Only a successful response debits credits. A failed call returns an HTTP status and a JSON error with a code, a message and a request_id, plus X-Credits-Used: 0. A rate-limited call returns 429 with a Retry-After header giving the seconds to wait before you send it again.
How fast can I run an Amazon price check?
Limits are per account, shared by all its keys, and counted per minute. A free account gets 1 request a second, 60 a minute, so a 100-ASIN check takes under two minutes. Paying accounts run at least 5 requests a second, 300 a minute, depending on the pack. The rate limits docs list the rate each pack includes.