# Amazon Bestsellers Scraper (`piotrv1001/amazon-bestsellers-scraper`) Actor

The Amazon Best Sellers Scraper extracts Top 100 rankings from Best Sellers, New Releases, Most Wished For and Most Gifted charts on any Amazon marketplace, capturing rank, ASIN, title, price, rating and review count per category — ideal for rank tracking, product sourcing and market research.

- **URL**: https://apify.com/piotrv1001/amazon-bestsellers-scraper.md
- **Developed by:** [FalconScrape](https://apify.com/piotrv1001) (community)
- **Categories:** E-commerce, Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 ranked products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### 🚀 Amazon Best Sellers Scraper

Extract Amazon's Top 100 ranked products for any category, on any Amazon marketplace. The **Amazon Best Sellers Scraper** turns the Best Sellers, New Releases, Most Wished For and Most Gifted charts into clean, structured rows with rank, ASIN, price and ratings, ready for market research, product sourcing and rank tracking.

### ✨ Features

- 🏆 **Full Top 100**: Every ranked product in a category, including the items Amazon only loads as you scroll.
- 🗂️ **Four charts**: Best Sellers, New Releases, Most Wished For and Most Gifted, all from the same URL pattern.
- 🌍 **Every marketplace**: amazon.com, .co.uk, .de, .fr, .it, .es, .ca, .co.jp, .in, .com.au and more, with the local currency.
- 🌳 **Subcategory crawling**: Set a depth and the scraper walks the category tree for you, so one URL can cover a whole department.
- ⚡ **Fast & lightweight**: A Top 100 list takes four requests; hundreds of categories finish in minutes.

### 🛠️ How It Works

1. **Enter category URLs** – Paste any Best Sellers, New Releases, Most Wished For or Most Gifted page, e.g. `https://www.amazon.com/gp/bestsellers/electronics` or `https://www.amazon.co.uk/gp/new-releases/books`.
2. **Choose the scope** – Set **Max items** and, optionally, a **Subcategory depth** to include the categories below each URL.
3. **Run the scraper** – Get one row per ranked product, with the category and chart it came from.

Category slugs differ between marketplaces (for example `electronics` on amazon.com is `ce-de` on amazon.de), so copy the URL from the marketplace you want to scrape.

### 📊 Sample Output Data

```json
[
    {
        "rank": 1,
        "asin": "B08JHCVHTY",
        "title": "blink plus plan with monthly auto-renewal",
        "url": "https://www.amazon.com/Blink-Plus-Plan-monthly-auto-renewal/dp/B08JHCVHTY",
        "imageUrl": "https://images-na.ssl-images-amazon.com/images/I/31YHGbJsldL._AC_UL300_SR300,200_.png",
        "price": 11.99,
        "priceText": "$11.99",
        "currency": "USD",
        "rating": 4.4,
        "ratingCount": 279820,
        "listType": "bestsellers",
        "category": "Electronics",
        "categoryUrl": "https://www.amazon.com/gp/bestsellers/electronics",
        "marketplace": "amazon.com",
        "scrapedAt": "2026-09-03T14:46:14.442Z"
    },
    {
        "rank": 31,
        "asin": "B00SFSU53G",
        "title": "Mounting Dream Full Motion TV Wall Mount for 32-70 Inch TVs",
        "url": "https://www.amazon.com/Mounting-Dream-Bracket-Articulating-400x400mm/dp/B00SFSU53G",
        "imageUrl": "https://images-na.ssl-images-amazon.com/images/I/61da4dQI-hL._AC_UL300_SR300,200_.jpg",
        "price": 34.99,
        "priceText": "$34.99",
        "currency": "USD",
        "rating": 4.8,
        "ratingCount": 75716,
        "listType": "bestsellers",
        "category": "Electronics",
        "categoryUrl": "https://www.amazon.com/gp/bestsellers/electronics",
        "marketplace": "amazon.com",
        "scrapedAt": "2026-09-03T14:46:14.442Z"
    }
]
```

### 💰 Pricing

You pay **$0.005 per product** ($5 per 1,000 rows) plus platform usage. A full Top 100 list costs $0.50; a weekly snapshot of 200 categories is about $400 per month.

Track rankings, spot rising products and size up categories with **Amazon Best Sellers Scraper** today! 🚀

# Actor input Schema

## `categoryUrls` (type: `array`):

Amazon Best Sellers, New Releases, Most Wished For or Most Gifted category pages, on any Amazon marketplace. Examples: https://www.amazon.com/gp/bestsellers/electronics, https://www.amazon.co.uk/gp/new-releases/books, https://www.amazon.com/Best-Sellers-Electronics-Headphones/zgbs/electronics/172541.

## `maxItems` (type: `integer`):

Maximum number of ranked products to save in total. Each category page lists up to 100 products.

## `subcategoryDepth` (type: `integer`):

How many levels of subcategories to crawl below each URL. 0 scrapes only the given pages; 1 adds their direct subcategories (typically 10–35 each); 2 adds the level below that.

## `proxyConfiguration` (type: `object`):

Proxy settings. The default works for most runs; switch to residential proxies if you see blocked-request warnings.

## Actor input object example

```json
{
  "categoryUrls": [
    "https://www.amazon.com/gp/bestsellers/electronics"
  ],
  "maxItems": 100,
  "subcategoryDepth": 0,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "categoryUrls": [
        "https://www.amazon.com/gp/bestsellers/electronics"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("piotrv1001/amazon-bestsellers-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "categoryUrls": ["https://www.amazon.com/gp/bestsellers/electronics"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("piotrv1001/amazon-bestsellers-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "categoryUrls": [
    "https://www.amazon.com/gp/bestsellers/electronics"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call piotrv1001/amazon-bestsellers-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,piotrv1001/amazon-bestsellers-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/B7nxPgWP2Tj1SZpy3/builds/9WSlgciORYHQppjNb/openapi.json
