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

Amazon Best Sellers Scraper, Amazon URLs from 9 different Amazon domains: .com, com.au, .in, co.jp, .de. .co.uk, .fr, .es and .it.  Scrape the 100 top-selling items on Amazon

- **URL**: https://apify.com/amazon-scraper/amazon-bestsellers-scraper.md
- **Developed by:** [Amazon Scraper](https://apify.com/amazon-scraper) (community)
- **Categories:** E-commerce, Developer tools
- **Stats:** 1,083 total users, 336 monthly users, 99.9% runs succeeded, 18 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.29 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

<a href="https://apify.com/amazon-scraper/amazon-bestsellers-scraper"><img src="https://apify-stats.seadfeng-7bd.workers.dev/amazon-scraper/amazon-bestsellers-scraper" height=20 alt="Amazon Best Sellers Scraper" /></a>

### ⭐️ What is Amazon Best Sellers Scraper?

This Amazon Best Sellers Scraper allows you to scrape the 100 top-selling items on Amazon. It extracts data from Amazon Best Sellers pages in structured formats such as JSON, XML, CSV, or Excel. With this Amazon API, you will be able to:

- extract data from different domains: US, GB, DE, FR, ES, IN, JP, AU and IT.
- scrape Amazon Best Seller categories and subcategories.
- extract all Amazon Best Seller product details: asin, name, price, URL, category, parent categories, and thumbnail image.
- besides Amazon Best Seller categories, you can now also scrape the following Amazon categories with this scraper: Most Wished, Movers and Shakers, New Releases, and Gift Ideas. For examples of URLs that be scraped, head over to the [Input section](https://apify.com/amazon-scraper/amazon-bestsellers-scraper#input-parameters).

### Supported locales

- United States (US): `www.amazon.com`
- Australia (AU): `www.amazon.com.au`
- Canada (CA): `www.amazon.ca`
- France (FR): `www.amazon.fr`
- Germany (DE): `www.amazon.de`
- India (IN): `www.amazon.in`
- Italy (IT): `www.amazon.it`
- Japan (JP): `www.amazon.co.jp`
- Spain (ES): `www.amazon.es`
- United Kingdom (GB): `www.amazon.co.uk`

### Supported roots & URL patterns

Supported “root” list pages (slugs):

- `bestsellers`
- `new-releases`
- `most-wished-for`
- `most-gifted`
- `movers-and-shakers`

Supported URL shapes:

- Modern `/gp/<rootSlug>` pages:
  - `https://www.amazon.com/gp/bestsellers`
  - `https://www.amazon.com/gp/new-releases/digital-text/ref=...`
- Legacy `/zgbs/` pages (US common when users copy from browser):
  - `https://www.amazon.com/Best-Sellers/zgbs/ref=...`
  - `https://www.amazon.com/Best-Sellers-Clothing-Shoes-Jewelry/zgbs/fashion/ref=...`

### Input

Configure the actor run via Apify input:

- `urls` (string\[], required): Amazon category URLs to start from.
  - Recommended: provide an array of URLs.
  - Backward-compatible: a newline-separated string is still accepted.
- `subcategoryLevel` (number): How many child levels to discover (minimum 0).

#### Example input

```json
{
  "urls": [
    "https://www.amazon.com/gp/bestsellers",
    "https://www.amazon.co.jp/gp/bestsellers",
    "https://www.amazon.es/gp/bestsellers",
    "https://www.amazon.it/gp/bestsellers",
    "https://www.amazon.fr/gp/bestsellers",
    "https://www.amazon.de/gp/bestsellers",
    "https://www.amazon.ca/gp/bestsellers",
    "https://www.amazon.com.au/gp/bestsellers",
    "https://www.amazon.in/gp/bestsellers"
  ],
  "subcategoryLevel": 2
}
```

### Related Amazon Scrapers

- [Amazon Search Scraper](https://apify.com/amazon-scraper/amazon-search-scraper)
- [Amazon Product Offers Scraper](https://apify.com/amazon-scraper/amazon-product-offers-scraper)
- [Amazon Bestsellers Categories Scraper](https://apify.com/amazon-scraper/amazon-bestsellers-categories-scraper)

### Output example

![Output example](https://i.imgur.com/EajGtjv.png)

```json
 [{
    "position": 1,
    "asin": "B09L45VFCN",
    "title": "Ring Chime",
    "link": "https://www.amazon.com/Ring-Chime/dp/B09L45VFCN/ref=zg_bs_g_370783011_d_sccl_1/136-3566984-1089821?psc=1",
    "image": "https://images-na.ssl-images-amazon.com/images/I/61OIHg12JiL._AC_UL300_SR300,200_.jpg",
    "price": "$31.49",
    "stars": 4.6,
    "reviewsCount": 42652,
    "category": "Best Sellers in Amazon Device Accessories",
    "categoryUrl": "https://www.amazon.com/Best-Sellers-Amazon-Devices-Accessories-Amazon-Device-Accessories/zgbs/amazon-devices/370783011/ref=zg_bs_nav_amazon-devices_1",
    "parents": [
        {
            "position": 1,
            "name": "Amazon Devices & Accessories",
            "link": "https://www.amazon.com/Best-Sellers-Amazon-Devices-Accessories/zgbs/amazon-devices/ref=zg_bs_unv_amazon-devices_1_370783011_1"
        }
    ],
    "currency": "USD",
    "status": 200
},
{
    "position": 2,
    "asin": "B076JKHDQT",
    "title": "Ring Rechargeable Quick Release Battery Pack",
    "link": "https://www.amazon.com/Ring-Rechargeable-Battery-Pack/dp/B076JKHDQT/ref=zg_bs_g_370783011_d_sccl_2/136-3566984-1089821?psc=1",
    "image": "https://images-na.ssl-images-amazon.com/images/I/51kpytThp1L._AC_UL300_SR300,200_.jpg",
    "price": "$31.49",
    "stars": 4.7,
    "reviewsCount": 121552,
    "category": "Best Sellers in Amazon Device Accessories",
    "categoryUrl": "https://www.amazon.com/Best-Sellers-Amazon-Devices-Accessories-Amazon-Device-Accessories/zgbs/amazon-devices/370783011/ref=zg_bs_nav_amazon-devices_1",
    "parents": [
        {
            "position": 1,
            "name": "Amazon Devices & Accessories",
            "link": "https://www.amazon.com/Best-Sellers-Amazon-Devices-Accessories/zgbs/amazon-devices/ref=zg_bs_unv_amazon-devices_1_370783011_1"
        }
    ],
    "currency": "USD",
    "status": 200
}]
```

```json
[{
    "position": 1,
    "asin": "B0D7J2FTBS",
    "title": "MAM Sauger 0 im Doppelpack, Flaschensauger Größe 0 (Durchflussrate langsam) speziell für Neugeborene ab der Geburt, besonders zarter Trinksauger passend für alle MAM Flaschen",
    "link": "https://www.amazon.de/MAM-Flaschensauger-Durchflussrate-Neugeborene-Trinksauger/dp/B07RCH59ML/ref=zg_bsms_g_baby_d_sccl_1/257-3303951-5874563?psc=1",
    "image": "https://images-eu.ssl-images-amazon.com/images/I/710n5gspwYL._AC_UL300_SR300,200_.jpg",
    "price": "5,95 €",
    "stars": 4,
    "reviewsCount": 16512,
    "category": "Aufsteiger des Tages in Baby",
    "categoryUrl": "https://www.amazon.de/gp/movers-and-shakers/baby/ref=zg_bsms_nav_baby_0_garden",
    "parents": [],
    "currency": "EUR",
    "status": 200
},
{
    "position": 2,
    "asin": "B0DBZ9G6J8",
    "title": "NUK Soft & Easy elektrische Doppel-Milchpumpe | Brustaufsätze aus 100 % Silikon | Klein, leicht und leise | Akku für unterwegs | Brustaufsätze 24 mm & 27 mm | 2x Perfect Match Babyflaschen",
    "link": "https://www.amazon.de/NUK-elektrische-Doppel-Milchpumpe-Brustaufs%C3%A4tze-Babyflaschen/dp/B0CLS755B4/ref=zg_bsms_g_baby_d_sccl_2/257-3303951-5874563?psc=1",
    "image": "https://images-eu.ssl-images-amazon.com/images/I/71XtFkFL95L._AC_UL300_SR300,200_.jpg",
    "price": "44,90 €",
    "price2": "159,19 €",
    "stars": 4,
    "reviewsCount": 5484,
    "category": "Aufsteiger des Tages in Baby",
    "categoryUrl": "https://www.amazon.de/gp/movers-and-shakers/baby/ref=zg_bsms_nav_baby_0_garden",
    "parents": [],
    "currency": "EUR",
    "status": 200
}]
```

# Changelog

This Actor's version history is a separate document: https://apify.com/amazon-scraper/amazon-bestsellers-scraper/changelog.md

# Actor input Schema

## `urls` (type: `array`):

Amazon category URLs to start from (Best Sellers / New Releases / Most Wished For / Most Gifted / Movers & Shakers). Supported domains: amazon.com, amazon.co.uk, amazon.com.au, amazon.ca, amazon.fr, amazon.it, amazon.es, amazon.in, amazon.co.jp, amazon.de.

## `subcategoryLevel` (type: `integer`):

Scrape Subcategories Depth

## `nextPage` (type: `boolean`):

Next Page for Category Url, Up to 100 items products

## `retries` (type: `integer`):

Retries to get which is has blocked

## Actor input object example

```json
{
  "urls": [
    "https://www.amazon.com/gp/bestsellers/books/17"
  ],
  "subcategoryLevel": 0,
  "nextPage": false,
  "retries": 5
}
```

# Actor output Schema

## `overview` (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 = {
    "urls": [
        "https://www.amazon.com/gp/bestsellers/books/17"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("amazon-scraper/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 = { "urls": ["https://www.amazon.com/gp/bestsellers/books/17"] }

# Run the Actor and wait for it to finish
run = client.actor("amazon-scraper/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 '{
  "urls": [
    "https://www.amazon.com/gp/bestsellers/books/17"
  ]
}' |
apify call amazon-scraper/amazon-bestsellers-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,amazon-scraper/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/VeOVRxH4dtBxv1td1/builds/M09elpNqRo3kqFb21/openapi.json
