Short answer: add "page": 2 (then 3, 4 …) to the /amazon/search request and keep going while pagination.has_more is true. Each page is a separate request; positions start again at 1 on every page, and the same product can show up on two pages.
The request
curl -X POST 'https://api.serpbase.dev/amazon/search' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY' \
-d '{"q":"usb c cable","domain":"amazon.com","page":2}'
Leave page out (or send 1) for the first page.
What came back
We ran pages 1 and 2 of "usb c cable" on amazon.com on 2 December 2026. Both returned 21 products.
{
"status": 0,
"credits_charged": 2,
"url": "https://www.amazon.com/s?k=usb+c+cable&page=2",
"pagination": {
"page": 2,
"has_more": true,
"next_page_url": "https://www.amazon.com/s?k=usb+c+cable&page=3&..."
},
"products": [
{
"position": 1,
"id": "B0CV34JBNM",
"title": "USB C to USB C Cable 3FT Certified 2Pack 60W ...",
"price": {"amount": "6.99", "display": "$6.99", "symbol": "$"},
"rating": 4.6,
"reviews_count": "1700"
}
]
}
| page 1 | page 2 | |
|---|---|---|
| products | 21 | 21 |
marked sponsored | 4 | 5 |
| also on the other page | 4 | 4 |
The 4 repeats were 2 regular listings (B0C2V1512F at position 7 on page 1 and 3 on page 2; B0G2L34Q4F at 12 and 10) and 2 sponsored ones. So page 2 added 14 new regular listings, not 21.
Python: collect several pages without duplicates
import requests
def amazon_pages(q, pages=3, domain="amazon.com"):
seen, rows = set(), []
for page in range(1, pages + 1):
r = requests.post(
"https://api.serpbase.dev/amazon/search",
headers={"X-API-Key": "YOUR_API_KEY"},
json={"q": q, "domain": domain, "page": page},
timeout=60,
).json()
if r["status"] != 0:
print("page", page, "failed:", r.get("error"))
break
for p in r["products"]:
if p.get("sponsored") or p["id"] in seen:
continue
seen.add(p["id"])
rows.append({"page": page, "position": p["position"], "asin": p["id"],
"title": p["title"], "price": (p.get("price") or {}).get("amount")})
if not r["pagination"].get("has_more"):
break
return rows
for row in amazon_pages("usb c cable", pages=2):
print(row["page"], row["position"], row["asin"], row["price"], row["title"][:50])
Things that trip people up
- Positions restart on each page. Position 1 on page 2 is the 1st item of page 2. If you need an overall rank, number the rows yourself after removing repeats.
- Deduplicate by ASIN (
id). Amazon shows some products, sponsored ones especially, on more than one page. - Skip or keep sponsored on purpose. Sponsored items carry
"sponsored": true; ranking studies usually drop them. reviews_countis a string ("1700") whileratingis a number; convert before sorting.- Every page is billed. Ten pages are ten requests. Stop when
has_moreis false or when you have enough. - Results depend on the delivery location Amazon applies to the page; prices and order can differ between pages fetched minutes apart.
Related
- Amazon Search API: the first page, fields explained
- Amazon Product API: one ASIN's price, stock and rating
Cost and docs
Each Amazon search page is 2 credits. Failed requests are not charged, and new accounts get 500 free credits.
- Parameters and fields: Amazon Search docs
- Try it in the browser: Amazon Search API
- Credit packs: pricing