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

Extract ranked Amazon Best Sellers, New Releases, Most Wished, and Most Gifted product lists.

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

## Pricing

from $0.23 / 1,000 item extracteds

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/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 Bestsellers Scraper

Extract ranked product rows from public Amazon Best Sellers, New Releases, Most Wished For, and Most Gifted pages. Movers & Shakers URLs are reported as unsupported because Amazon no longer exposes public product-card markup on that route to anonymous HTTP clients. Export ASINs, ranks, titles, category provenance, prices, ratings, review counts, and product URLs to CSV, JSON, Excel, API, or MCP workflows.

### At a glance

- **Primary job**: Monitor ranked Amazon category lists without building your own parser.
- **Input**: Public Amazon list/category URLs such as `https://www.amazon.com/Best-Sellers/zgbs`.
- **Output**: One row per ranked product plus explicit diagnostic rows for blocked, invalid, or empty inputs.
- **Best for**: Ecommerce research, rank monitoring, product discovery, merchandising checks, and BI enrichment.

### Ready-to-run examples

Open a public example to inspect its input, run it, or reuse it as a task:

- [Export Amazon Kitchen Best Sellers](https://apify.com/fetch_cat/amazon-bestsellers-scraper/examples/export-amazon-kitchen-bestsellers)
- [Monitor Amazon Toys Most Gifted Products](https://apify.com/fetch_cat/amazon-bestsellers-scraper/examples/monitor-amazon-toys-most-gifted-products)
- [Export Amazon Beauty Most Wished For](https://apify.com/fetch_cat/amazon-bestsellers-scraper/examples/export-amazon-beauty-most-wished-for)
- [Export Amazon Books New Releases](https://apify.com/fetch_cat/amazon-bestsellers-scraper/examples/export-amazon-books-new-releases)
- [Export Amazon Electronics Best Sellers](https://apify.com/fetch_cat/amazon-bestsellers-scraper/examples/export-amazon-electronics-bestsellers)

* **Small smoke test**: `startUrls: [{ "url": "https://www.amazon.com/Best-Sellers/zgbs" }]`, `maxItems: 10`.
* **Category monitoring**: Use a specific category URL such as Books or Electronics and schedule daily runs.
* **Launch tracking**: Use a New Releases URL and compare ASIN/rank movement between dataset exports.

### What data can you extract?

| Field | Description |
| --- | --- |
| `status` | `OK` for product rows or `ERROR` for diagnostic rows. |
| `listType` | Best Sellers, New Releases, Most Wished For, Most Gifted, or `movers-and-shakers` on unsupported diagnostic rows. |
| `marketplace` | Amazon marketplace hostname such as `www.amazon.com`. |
| `category` | Category/list title visible on the page. |
| `categoryUrl` | Category/list URL used for the row. |
| `categoryPath` | Visible breadcrumb/subcategory path when supplied by Amazon. |
| `position` | Rank within the category/list page. |
| `asin` | Amazon product ASIN. |
| `title` | Product title from the list card. |
| `productUrl` | Public Amazon product URL. |
| `imageUrl` | Product image URL. |
| `price` | Parsed displayed price when visible. |
| `priceText` | Raw displayed price text. |
| `currency` | Currency code derived from displayed price or marketplace. |
| `rating` | Star rating when visible. |
| `reviewCount` | Review count when visible. |
| `numberOfOffers` | Offer count when visible. |
| `availability` | Availability/status text when visible. |
| `inputUrl` | Original user-provided URL. |
| `url` | Product URL for product rows or source URL for diagnostic rows. |
| `scrapedAt` | ISO timestamp when the row was saved. |
| `errorCode` | Diagnostic code for error rows. |
| `error` | Short error label. |
| `errorDescription` | Human-readable diagnostic description. |

### Input configuration

| Setting | JSON key | Use it for | Example |
| --- | --- | --- | --- |
| Start URLs | `startUrls` | Public Amazon Best Sellers, New Releases, Most Wished For, or Most Gifted category URLs. Movers & Shakers URLs return an `UNSUPPORTED_LIST_TYPE` diagnostic row. | `https://www.amazon.com/Best-Sellers/zgbs` |
| Maximum product rows | `maxItems` | Cap saved product rows and control spend. | `30` |
| Subcategory depth | `subcategoryDepth` | Reserved for bounded category discovery. | `0` |
| Include next page | `includeNextPage` | Reserved until unique Amazon continuation is proven. | `false` |
| Proxy country code | `proxyCountryCode` | Match marketplace-sensitive price/availability context. | `US` |

### Example input

```json
{
  "startUrls": [{ "url": "https://www.amazon.com/Best-Sellers/zgbs" }],
  "maxItems": 10,
  "subcategoryDepth": 0,
  "includeNextPage": false,
  "proxyCountryCode": "US"
}
```

### Example output

```json
{
  "status": "OK",
  "listType": "best-sellers",
  "marketplace": "www.amazon.com",
  "category": "Amazon Best Sellers",
  "categoryUrl": "https://www.amazon.com/Best-Sellers/zgbs",
  "categoryPath": ["Any Department"],
  "position": 1,
  "asin": "B0EXAMPLE1",
  "title": "Example ranked product",
  "productUrl": "https://www.amazon.com/dp/B0EXAMPLE1",
  "imageUrl": "https://m.media-amazon.com/images/I/example.jpg",
  "price": 19.99,
  "priceText": "$19.99",
  "currency": "USD",
  "rating": 4.7,
  "reviewCount": 1234,
  "numberOfOffers": null,
  "availability": null,
  "inputUrl": "https://www.amazon.com/Best-Sellers/zgbs",
  "url": "https://www.amazon.com/dp/B0EXAMPLE1",
  "scrapedAt": "2026-08-02T16:45:00.000Z",
  "errorCode": null,
  "error": null,
  "errorDescription": null
}
```

### Who is it for

- Ecommerce sellers checking which products lead public Amazon category rankings.
- Retail analysts and brand teams monitoring rank, price, rating, and review-count movement.
- Affiliate publishers finding popular products for buying guides and category pages.
- Automation teams feeding bestseller snapshots into dashboards, alerts, or AI workflows.

### Pricing

This Actor uses pay-per-event billing. A small `Run started` event is charged once per run, and the primary `Item extracted` event is charged only for each Amazon product row saved to the dataset. Diagnostic error rows for invalid URLs or blocked pages are preserved for troubleshooting and are not product rows.

For the current rates and volume tiers, open the live [Apify Pricing tab](https://apify.com/fetch_cat/amazon-bestsellers-scraper/pricing).

### Tips and limits

- Start with `maxItems: 10-30` to confirm the marketplace and category return public rows.
- Amazon page availability, prices, currency, and visible card fields can vary by marketplace and region.
- Diagnostic rows are saved for invalid URLs, Robot Check/Sorry responses, request failures, and pages where no product cards are detected.
- Product detail pages, seller profiles, reviews, carts, orders, and account-specific recommendations are outside this Actor's scope.

### API usage

Node.js:

```js
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("fetch_cat/amazon-bestsellers-scraper").call({
  startUrls: [{ url: "https://www.amazon.com/Best-Sellers/zgbs" }],
  maxItems: 10
});
console.log(run.defaultDatasetId);
```

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("fetch_cat/amazon-bestsellers-scraper").call(run_input={
    "startUrls": [{ "url": "https://www.amazon.com/Best-Sellers/zgbs" }],
    "maxItems": 10,
})
print(run["defaultDatasetId"])
```

cURL:

```bash
curl "https://api.apify.com/v2/acts/fetch_cat~amazon-bestsellers-scraper/runs?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"startUrls":[{"url":"https://www.amazon.com/Best-Sellers/zgbs"}],"maxItems":10}'
```

### MCP and AI agents

Use this Actor from MCP-compatible tools through the official Apify MCP Server.

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=fetch_cat/amazon-bestsellers-scraper"
```

Example MCP server configuration:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

Example prompts:

- "Run fetch\_cat/amazon-bestsellers-scraper for the Amazon US Best Sellers root with maxItems 20 and summarize the top categories."
- "Compare today's top 10 product ASINs from this bestseller dataset with yesterday's dataset and highlight rank changes."

### FAQ

**Can this Actor scrape Amazon product detail pages?**\
No. It focuses on ranked public list pages. Use a product-detail Actor for deeper product attributes.

**Why are price, rating, or review fields sometimes empty?**\
Amazon does not show every commerce field on every list card. The Actor preserves nulls instead of inventing values.

**Does it return diagnostic rows?**\
Yes. Invalid URLs, Robot Check/Sorry pages, failed requests, and parse-empty pages are saved with `status: "ERROR"` and an error code.

**Can I schedule rank monitoring?**\
Yes. Schedule the same category URL daily or hourly and compare ASIN + position changes across datasets.

### Related actors

#### More Amazon scrapers

- [Amazon Products & Search Scraper](https://apify.com/fetch_cat/amazon-products-search-scraper)
- [Amazon Reviews Scraper](https://apify.com/fetch_cat/amazon-reviews-scraper)
- [Amazon Seller Profiles Scraper](https://apify.com/fetch_cat/amazon-seller-profiles-scraper)

* [Google Shopping Scraper](https://apify.com/fetch_cat/google-shopping-scraper)
* [Walmart Products Scraper](https://apify.com/fetch_cat/walmart-products-scraper)
* [Target Products Scraper](https://apify.com/fetch_cat/target-products-scraper)

### Support

Questions, bugs, or feature requests? Open an issue on the Actor page in Apify Console and include your run ID and input.

# Actor input Schema

## `startUrls` (type: `array`):

Public Amazon Best Sellers, New Releases, Most Wished, or Most Gifted category URLs to process. Movers & Shakers URLs return an UNSUPPORTED\_LIST\_TYPE diagnostic row.

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

Maximum Amazon list product rows to save across all start URLs.

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

Reserved for category discovery. Keep 0 for the first version unless instructed by Support.

## `includeNextPage` (type: `boolean`):

Reserved until Amazon returns a proven unique continuation page. Defaults to false to avoid duplicate rows.

## `proxyCountryCode` (type: `string`):

Two-letter country code for marketplace-sensitive price and availability collection.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.amazon.com/Best-Sellers/zgbs"
    }
  ],
  "maxItems": 20,
  "subcategoryDepth": 0,
  "includeNextPage": false,
  "proxyCountryCode": "US"
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.amazon.com/Best-Sellers/zgbs"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fetch_cat/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 = { "startUrls": [{ "url": "https://www.amazon.com/Best-Sellers/zgbs" }] }

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

```

## MCP server setup

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