Skip to content

Get ranked products from an Amazon Best Sellers category URL, with price, rating, review count and list position.

GET · POST1 credit / successful callCursor-paginated
GEThttps://api.scrapier.io/api/v2/amazon-bestsellers/Open in Playground

Send the URL of an Amazon Best Sellers category page (it contains best-sellers or zgbs) and get the ranked products back, with ASIN, name, price, star rating, review count, list position and product URL.

Set depth_of_crawl above 1 to also scrape the category’s subcategories.

  • Track which products hold the top ranks in a category over time.
  • Spot new entrants in a Best Sellers list for product research.
  • Feed category rankings into a pricing or assortment dashboard.
Terminal window
curl -G "https://api.scrapier.io/api/v2/amazon-bestsellers/" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "url=https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics/" \
--max-time 210
NameTypeRequiredDefaultDescription
X-API-Key headerstringyes—Your API key from the dashboard.
urlstringyese.g. https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics/Amazon Best Sellers category URL (contains best-sellers / zgbs). Required on first call.
cursorstringno—Pagination cursor returned in the previous response's next_cursor. Pass it back unchanged to fetch the next page. When next_cursor is null, you have reached the last page.
languagestringno—Optional Accept-Language primary tag (e.g. en-US, de-DE)
depth_of_crawlintegerno11 = main category only; 2+ = also scrape subcategories (max 5)
Advanced
NameTypeDefaultDescription
use_proxybooleantrueRoute the request through Scrapier's residential proxy pool. Default: true. Leave as is unless support tells you otherwise.
raw_databooleanfalseWhen true, the response carries the full raw upstream payload(s) the scraper received (GraphQL / JSON API bodies, HTML, embedded JSON-LD -- exactly as the platform returned them) under raw_responses, in place of the formatted items. When false (default) you get the formatted output. Pagination (cursor / next_cursor) works the same in both modes.
{
"success": true,
"data": {
"url": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics/",
"page": 1,
"page_size": 30,
"products": [
{
"name": "blink plus plan with monthly auto-renewal",
"url": "https://www.amazon.com/Blink-Plus-Plan-monthly-auto-renewal/dp/B08JHCVHTY/ref=zg_bs_g_electronics_d_sccl_1/137-2485543-6844536?psc=1",
"asin": "B08JHCVHTY",
"position": 1,
"price": {
"value": 11.99,
"currency": "$"
},
"number_of_offers": null,
"stars": 4.4,
"reviews_count": 280863,
"thumbnail_url": "https://images-na.ssl-images-amazon.com/images/I/31YHGbJsldL._AC_UL300_SR300,200_.png",
"category_name": "Electronics",
"category_full_name": "Best Sellers in Electronics",
"subcategories": [
{
"category_name": "Accessories & Supplies",
"category_url": "https://www.amazon.com/Best-Sellers-Electronics-Electronics-Accessories-Supplies/zgbs/electronics/281407/ref=zg_bs_nav_electronics_1"
},
{
"category_name": "Camera & Photo",
"category_url": "https://www.amazon.com/Best-Sellers-Electronics-Camera-Photo-Products/zgbs/electronics/502394/ref=zg_bs_nav_electronics_1"
}
],
"category_url": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics/",
"input_url": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics/"
}
],
"next_cursor": "eyJoIjoiM2MwODUyZjg0ZDgzIiwicCI6MiwidSI6Imh0dHBzOi8vd3d3LmFtYXpvbi5jb20vQmVzdC1TZWxsZXJzLUVsZWN0cm9uaWNzL3pnYnMvZWxlY3Ryb25pY3MvIn0"
}
}

Sample from the live catalog; arrays trimmed to 3 items. Results are in data.products.

FieldTypeExampleDescription
urlstringhttps://www.amazon.com/Best-Sellers-Electroni…Link to the product page.
pageinteger1—
page_sizeinteger30—
productsarray[1 item]The results.
next_cursorstringeyJoIjoiM2MwODUyZjg0ZDgzIiwicCI6MiwidSI6Imh0d…Pass back as cursor for the next page. null on the last page.
products[].namestringblink plus plan with monthly auto-renewal—
products[].urlstringhttps://www.amazon.com/Blink-Plus-Plan-monthl…Link to the product page.
products[].asinstringB08JHCVHTY—
products[].positioninteger1Position in the Best Sellers list, starting at 1.
products[].priceobject{…}Price as an object with value and currency.
products[].number_of_offersnullnull—
products[].starsnumber4.4Average star rating.
products[].reviews_countinteger280863—
products[].thumbnail_urlstringhttps://images-na.ssl-images-amazon.com/image…—
products[].category_namestringElectronicsThe Best Sellers category the product was listed in.
products[].category_full_namestringBest Sellers in Electronics—
products[].subcategoriesarray[2 items]—
products[].category_urlstringhttps://www.amazon.com/Best-Sellers-Electroni…—
products[].input_urlstringhttps://www.amazon.com/Best-Sellers-Electroni…—

Pass data.next_cursor back as cursor until it is null. Required inputs are ignored once a cursor is sent. Each page is one billed call. More in Pagination.

const url = "https://api.scrapier.io/api/v2/amazon-bestsellers/";
let params = { url: "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics/" };
const items = [];
for (let page = 0; page < 10; page++) { // each page is one billed call
const res = await fetch(`${url}?${new URLSearchParams(params)}`, {
headers: { "X-API-Key": "YOUR_API_KEY" },
signal: AbortSignal.timeout(210_000),
});
const body = await res.json();
if (!res.ok) throw new Error(body.error ?? body.detail ?? `HTTP ${res.status}`);
const data = body.data;
items.push(...(data.products ?? []));
if (!data.next_cursor) break; // null = last page
params = { cursor: data.next_cursor };
}

Failed calls are free. Branch on the HTTP status and read the message from error (or detail). Full details in Errors.

StatusMeaningRetry?Charged?
400Bad or missing input.No — fix the paramsNo
401 / 403Missing, invalid or revoked API key.No — fix the keyNo
402Out of credits (body has balance).No — top upNo
404Unknown endpoint slug.No — check the slugNo
429 / 503Busy or throttled.Yes — after Retry-AfterNo
5xxTarget site or upstream failure, or timeout.Yes — with backoffNo
  • url must be a Best Sellers category URL, not a search or product URL.
  • depth_of_crawl is 1 for the main category only; 2 or more also scrapes subcategories (max 5).
  • language takes an Accept-Language tag such as en-US or de-DE.
  • Amazon Search — Search Amazon by keyword and get product results with price, rating and position, with marketplace and sort order options.
  • Amazon Today’s Deals — List Amazon’s current deals with price, price before the discount, savings, rating and review count. Filters are optional.
  • Amazon Products — Search Amazon by keyword or URL and get product listings, or send a product URL to get that single product.