Amazon Best Sellers
Get Amazon's Best Sellers ranking for a category as a structured product list.
API usage
Add &scraper=amazon-best-sellers to a Crawling API request. URL-encode the target URL in the url parameter.
curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
--data-urlencode 'url=https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics' \
--data-urlencode 'scraper=amazon-best-sellers' -Gfrom crawlbase import CrawlingAPI
api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
'https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics',
{'scraper': 'amazon-best-sellers'}
)
import json
data = json.loads(res['body'])const { CrawlingAPI } = require('crawlbase');
const api = new CrawlingAPI({ token: 'YOUR_TOKEN' });
const res = await api.get(
'https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics',
{ scraper: 'amazon-best-sellers' }
);
const data = JSON.parse(res.body);require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')
res = api.get('https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics', scraper: 'amazon-best-sellers')
data = JSON.parse(res.body)Example input URL
The URL passed in the url parameter (URL-decoded for readability):
https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronicsResponse shape
JSON response body. Field types may be null when the source page omits the value.
Best Sellers category name.
Absolute URL of the category page.
Ranked products.
Best-seller rank within the category.
Product ASIN.
Product title.
Displayed price.
Star rating.
Review count.
Thumbnail URL.
Absolute product URL.
Sample response
{
"category": "Electronics",
"category_url": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics",
"products": [
{
"rank": 1,
"asin": "B0BDHB9Y8H",
"title": "Apple AirPods Pro (2nd Generation)",
"price": "$189.00",
"rating": 4.7,
"reviews_count": 98421,
"image": "https://m.media-amazon.com/images/I/...jpg",
"url": "https://www.amazon.com/dp/B0BDHB9Y8H"
}
]
}
