Amazon Best Sellers Scraper avatar
Amazon Best Sellers Scraper

Pricing

$7.90/month + usage

Go to Store
Amazon Best Sellers Scraper

Amazon Best Sellers Scraper

Developed by

HappiTap

HappiTap

Maintained by Community

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:

FieldDescription
titleProduct name/title
asinAmazon Standard Identification Number
rankBest seller rank in category
categoryThe category/subcategory the product belongs to
priceCurrent product price
ratingAverage user rating (e.g., 4.5)
reviewCountTotal number of user reviews
urlDirect product URL on Amazon
imageUrlProduct image thumbnail
sponsoredWhether 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

ParameterTypeRequiredDefaultDescription
startUrlsArrayYes-Array of objects with url property pointing to Amazon Best Sellers pages
categoryStringNo''Category name for the products (auto-detected if not provided)
maxProductsNumberNo100Maximum 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

  1. Page Navigation: Uses Puppeteer to load Amazon Best Sellers pages with stealth mode
  2. Product Detection: Identifies product containers using multiple CSS selectors for maximum compatibility
  3. Data Extraction: Extracts all required fields using robust selectors that handle Amazon's dynamic layout
  4. Data Validation: Ensures only products with valid ASINs and titles are included
  5. 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

  1. Clone this repository
  2. Install dependencies: npm install
  3. Run the actor: npm start

Development

  • npm start - Run the actor
  • npm run format - Format code with Prettier
  • npm run lint - Run ESLint
  • npm run lint:fix - Fix ESLint issues

Architecture

  • src/main.js - Main entry point and input validation
  • src/routes.js - Request routing
  • src/handlers/amazonBestSellers.js - Amazon Best Sellers scraping logic
  • src/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