# Amazon Best Sellers Scraper (`gio21/amazon-bestsellers`) Actor

Scrape Amazon Best Sellers rankings by category: rank, ASIN, title, price, rating, review count, image, and URL. Works across 12 Amazon marketplaces.

- **URL**: https://apify.com/gio21/amazon-bestsellers.md
- **Developed by:** [Gio](https://apify.com/gio21) (community)
- **Categories:** E-commerce
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 best seller scrapeds

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/platform/actors/running/actors-in-store#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

Scrape **Amazon Best Sellers** rankings for any category — no login, no cookies. Returns rank, ASIN, title, price, rating, review count, image, and product URL. Works across 12 Amazon marketplaces.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `category` | string | Category slug, e.g. `electronics`, `toys-and-games`, `books`. Empty = overall Best Sellers |
| `url` | string | Optional: a full Amazon Best Sellers URL (overrides category) |
| `categories` | array | Optional: several category slugs or URLs at once |
| `domain` | string | Marketplace: `amazon.com`, `amazon.co.uk`, `amazon.de`, `amazon.fr`, `amazon.es`, `amazon.it`, `amazon.ca`, `amazon.com.br`, `amazon.com.mx`, `amazon.in`, `amazon.co.jp`, `amazon.com.au` |
| `maxItems` | integer | Max products per list (paginates, max 100) |

Example:

```json
{
    "category": "electronics",
    "domain": "amazon.com",
    "maxItems": 50
}
```

### Output

```json
{
    "category": "Electronics",
    "rank": 1,
    "asin": "B08JHCVHTY",
    "title": "Blink Video Doorbell | Two-way audio, HD video ...",
    "price": 11.99,
    "currency": "$",
    "rating": 4.4,
    "ratingCount": 277965,
    "image": "https://m.media-amazon.com/images/I/71xoR4A6q-L.jpg",
    "url": "https://www.amazon.com/dp/B08JHCVHTY",
    "scrapedAt": "2026-07-14T00:00:00.000Z"
}
```

### Common uses

- Track trending and top-selling products by category
- Market and competitor research
- Spot demand shifts and seasonal trends
- Feed top ASINs into the Amazon Product Detail Scraper for full data

### Notes

Finding a category slug: open any Best Sellers page on Amazon and copy the part after `/gp/bestsellers/` (for example `electronics` or `toys-and-games`), or just paste the full URL into `url`.

# Actor input Schema

## `category` (type: `string`):

Category slug (e.g. "electronics", "toys-and-games", "books") or leave empty for the overall Best Sellers list.

## `url` (type: `string`):

Optional: a full Amazon Best Sellers URL (overrides category).

## `categories` (type: `array`):

Optional: several category slugs or URLs at once.

## `domain` (type: `string`):

Which Amazon site to scrape.

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

Maximum number of products per list (paginates, max 100).

## Actor input object example

```json
{
  "category": "electronics",
  "domain": "amazon.com",
  "maxItems": 50
}
```

# 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 = {
    "category": "electronics",
    "domain": "amazon.com",
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("gio21/amazon-bestsellers").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 = {
    "category": "electronics",
    "domain": "amazon.com",
    "maxItems": 50,
}

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

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

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

```

## CLI example

```bash
echo '{
  "category": "electronics",
  "domain": "amazon.com",
  "maxItems": 50
}' |
apify call gio21/amazon-bestsellers --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=gio21/amazon-bestsellers",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/x2VygPRS54yg3Jesg/builds/uAsKlRtpGGbTM2m5l/openapi.json
