
Amazon Best Sellers Scraper
Pricing
$7.90/month + usage

Amazon Best Sellers Scraper
Extracts real-time product listings from Amazon's Best Sellers pages with structured data including title, ASIN, rank, price, ratings, reviews, and more. Perfect for eCommerce competitor analysis, product research, and trend monitoring.
0.0 (0)
Pricing
$7.90/month + usage
0
Total users
1
Monthly users
1
Runs succeeded
>99%
Last modified
20 hours ago
An Apify actor that extracts real-time product listings from Amazon's "Best Sellers" pages, which feature the most popular items by category based on sales rank.
What It Does
This scraper extracts structured data from Amazon Best Sellers pages including:
Field | Description |
---|---|
title | Product name/title |
asin | Amazon Standard Identification Number |
rank | Best seller rank in category |
category | The category/subcategory the product belongs to |
price | Current product price |
rating | Average user rating (e.g., 4.5) |
reviewCount | Total number of user reviews |
url | Direct product URL on Amazon |
imageUrl | Product image thumbnail |
sponsored | Whether it's a sponsored/listed product |
Use Cases
- eCommerce Competitor Analysis: Find top-performing products in your niche or monitor competing listings
- Product Research for Dropshipping / Amazon FBA: Discover high-demand products in real time
- Trend Monitoring: Track how best seller rankings change over time
- Price Tracking Tools: Get price and review fluctuations for best-selling products
Input
The actor accepts the following input format:
{"startUrls": [{ "url": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics" }],"category": "Electronics","maxProducts": 50}
Input Parameters
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
startUrls | Array | Yes | - | Array of objects with url property pointing to Amazon Best Sellers pages |
category | String | No | '' | Category name for the products (auto-detected if not provided) |
maxProducts | Number | No | 100 | Maximum number of products to extract per page |
Supported Amazon Best Sellers URLs
The scraper works with any Amazon Best Sellers page. Here are some examples:
- Main Best Sellers:
https://www.amazon.com/Best-Sellers/zgbs
- Electronics:
https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics
- Books:
https://www.amazon.com/Best-Sellers-Books/zgbs/books
- Home & Kitchen:
https://www.amazon.com/Best-Sellers-Home-Kitchen/zgbs/home-garden
- Sports & Outdoors:
https://www.amazon.com/Best-Sellers-Sports-Outdoors/zgbs/sporting-goods
- Toys & Games:
https://www.amazon.com/Best-Sellers-Toys-Games/zgbs/toys-and-games
Output
The actor outputs structured data for each product found:
{"title": "Echo Dot (5th Gen)","asin": "B09B8V1LZ3","rank": 1,"category": "Electronics","price": "$49.99","rating": 4.6,"reviewCount": 12500,"url": "https://www.amazon.com/dp/B09B8V1LZ3","imageUrl": "https://m.media-amazon.com/images/I/61ZRU9gnbxL._AC_UL320_.jpg","sponsored": false,"scrapedAt": "2024-01-01T00:00:00.000Z"}
Example Usage
Basic Electronics Best Sellers
{"startUrls": [{ "url": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics" }],"category": "Electronics","maxProducts": 100}
Multiple Categories
{"startUrls": [{ "url": "https://www.amazon.com/Best-Sellers-Books/zgbs/books" },{ "url": "https://www.amazon.com/Best-Sellers-Home-Kitchen/zgbs/home-garden" }],"maxProducts": 50}
Top 10 Products Only
{"startUrls": [{ "url": "https://www.amazon.com/Best-Sellers-Sports-Outdoors/zgbs/sporting-goods" }],"category": "Sports & Outdoors","maxProducts": 10}
How It Works
- Page Navigation: Uses Puppeteer to load Amazon Best Sellers pages with stealth mode
- Product Detection: Identifies product containers using multiple CSS selectors for maximum compatibility
- Data Extraction: Extracts all required fields using robust selectors that handle Amazon's dynamic layout
- Data Validation: Ensures only products with valid ASINs and titles are included
- Structured Output: Returns clean, structured data ready for analysis
Features
- Robust Extraction: Multiple fallback selectors to handle Amazon's changing page structure
- Stealth Mode: Uses Puppeteer with stealth plugins to avoid detection
- Proxy Support: Built-in proxy rotation for reliable scraping
- Error Handling: Graceful error handling with detailed logging
- Data Validation: Ensures data quality with validation checks
Installation
- Clone this repository
- Install dependencies:
npm install
- Run the actor:
npm start
Development
npm start
- Run the actornpm run format
- Format code with Prettiernpm run lint
- Run ESLintnpm run lint:fix
- Fix ESLint issues
Architecture
src/main.js
- Main entry point and input validationsrc/routes.js
- Request routingsrc/handlers/amazonBestSellers.js
- Amazon Best Sellers scraping logicsrc/puppeteerLauncher.js
- Puppeteer browser configuration with stealth mode
Notes
- The scraper is designed to be respectful of Amazon's servers and includes appropriate delays
- Results may vary based on Amazon's page structure changes
- The scraper automatically handles different Amazon page layouts and product formats
- All extracted data is timestamped for tracking purposes