Amazon Best Sellers scraper in Python: get the top 100 products of any Amazon category (rank, ASIN, title, price, rating) with a simple API
A short tutorial for pulling Amazon Best Sellers and New Releases lists in Python with the Amazon Best Sellers Scraper actor on Apify. Give it a Best Sellers or New Releases URL from amazon.com, amazon.co.uk, amazon.de, amazon.co.jp, amazon.in or another marketplace and get the full top 100 as JSON: rank, ASIN, title, price, currency, star rating, number of ratings, image and product URL, plus the list name and category path. Amazon has no public API for these lists; this is a working stand-in for product research, rank tracking and new-product monitoring.
Disclosure: I built this actor; it's a paid tool on Apify ($1.50 per 1,000 products). The code in this repo is MIT-licensed.
The actor reads the data Amazon already sends with the list page over plain HTTP (no headless browser). Amazon renders 30 products per page and loads the other 20 when you scroll; the actor makes that same background call, so you get all 50 per page and all 100 per list. Captcha and error pages are retried on a fresh proxy session automatically.
pip install apify-clientfrom apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("rel8ble/amazon-bestsellers-scraper").call(run_input={
"categoryUrls": [
"https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics/",
"https://www.amazon.de/gp/new-releases/ce-de/",
],
"maxItemsPerList": 100, # 1-100, Amazon publishes 100 per list
"includeSubcategories": False, # True adds every child category's own top 100
})
for p in client.dataset(run["defaultDatasetId"]).iterate_items():
print(p["rank"], p["asin"], p["price"], p["currency"], p["title"][:60])example.py is the runnable version, built for product research: it saves every ranked product to amazon_best_sellers.csv, prints a summary per list (median price, median rating, how many products sit under 1,000 ratings) and lists the newcomers: products in the top 100 with few ratings, which usually means a recent launch that is selling fast.
pip install -r requirements.txt
export APIFY_TOKEN=<YOUR_APIFY_TOKEN>
python example.py # Electronics best sellers, amazon.com
python example.py electronics,books amazon.co.uk # category ids + marketplace
LIST_TYPE=new-releases python example.py electronics amazon.de
SUBCATEGORIES=1 MAX_ITEMS=50 python example.py electronicsimport { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('rel8ble/amazon-bestsellers-scraper').call({
categoryUrls: [], categoryIds: ['electronics'], domain: 'amazon.co.uk', listType: 'bestsellers', maxItemsPerList: 30,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((p) => `#${p.rank} ${p.asin} ${p.priceText ?? '-'} ${p.title.slice(0, 50)}`));| Field | Default | What it does |
|---|---|---|
categoryUrls |
Electronics best sellers (.com) | Best Sellers or New Releases URLs, any marketplace. A plain category URL with node= is converted using listType. Pass [] when you use categoryIds |
categoryIds |
- | Alternative to URLs: electronics, books, electronics/172541 |
domain |
amazon.com |
Marketplace used with categoryIds |
listType |
bestsellers |
bestsellers or new-releases, for categoryIds and plain category URLs |
maxItemsPerList |
100 | 1-100 (two pages of 50) |
includeSubcategories |
false | Also scrape each list's child categories, one level down |
maxSubcategories |
50 | Cap on the subcategory lists added |
proxyConfiguration |
Residential | Apify residential proxies in the marketplace's country (recommended) |
One ranked product = one item. Two rows from Best Sellers in Electronics on amazon.com, rank 1 and rank 31 (rank 31 is the first product Amazon only loads on scroll):
[
{
"rank": 1,
"asin": "B08JHCVHTY",
"title": "blink plus plan with monthly auto-renewal",
"price": 11.99,
"priceText": "$11.99",
"currency": "USD",
"rating": 4.4,
"ratingsCount": 280900,
"imageUrl": "https://images-na.ssl-images-amazon.com/images/I/31YHGbJsldL._AC_UL900_SR900,600_.png",
"url": "https://www.amazon.com/dp/B08JHCVHTY",
"listType": "bestsellers",
"listName": "Best Sellers in Electronics",
"categoryId": "electronics",
"categoryNodeId": "electronics",
"categoryPath": "Any Department > Electronics",
"listUrl": "https://www.amazon.com/gp/bestsellers/electronics",
"marketplace": "amazon.com",
"page": 1,
"scrapedAt": "2026-10-08T00:36:48.481Z"
},
{
"rank": 31,
"asin": "B0C3HCD34R",
"title": "soundcore by Anker Q20i Hybrid Active Noise Cancelling Headphones, Black | Over-Ear, Bluetooth, 40H ANC Playtime, Hi-Res Audio, Big Bass, Transparency Mode, Customize via App, Travel, Home, Office",
"price": 37.97,
"priceText": "$37.97",
"currency": "USD",
"rating": 4.5,
"ratingsCount": 37924,
"url": "https://www.amazon.com/dp/B0C3HCD34R",
"listName": "Best Sellers in Electronics",
"marketplace": "amazon.com",
"page": 1
}
]The second row is trimmed (image, list and timestamp fields left out). In the actor's 200-product test (amazon.com Best Sellers + amazon.de New Releases, Electronics), rank, ASIN, title, rating, ratings count, image and URL were filled on 100% of rows and price on 97%; the rest are items Amazon lists without a price, such as subscriptions.
Pay per result: $1.50 per 1,000 products saved. One full list (100 products) costs $0.15; 100 lists cost $15. Failed requests and duplicates are not charged. The Apify free plan's $5 monthly credit covers about 3,300 products. Residential proxy traffic is billed separately by Apify (about 0.5 MB per list page).
- 100 products per list. That is all Amazon publishes. For more, turn on
includeSubcategories: Electronics alone has about 18 direct subcategories, each with its own top 100. - Best Sellers and New Releases only. Movers & Shakers, Most Wished For and Most Gifted pages currently render without a product grid and usually return nothing.
- List-page prices. The default offer in the marketplace's currency. Some items (subscriptions, out-of-stock products) have
price: null. - Rankings change hourly. Two runs minutes apart can differ. Keep
scrapedAt,asinandrankto build a history. - No product details (bullet points, description, seller, variations). This covers the ranked lists only.
- The data is public product listing data. Follow Amazon's terms and the law that applies to you.
- Actor on the Apify Store: https://apify.com/rel8ble/amazon-bestsellers-scraper
- Apify Python client: https://docs.apify.com/api/client/python
MIT (this example code). The actor itself is a paid Apify tool.