# Amazon Best Sellers Scraper: Ranks and New Releases (`v0iddo/mint-amazon-bestsellers-scraper`) Actor

Scrape Amazon.com Best Sellers and New Releases lists by category link: rank, ASIN, title, price, star rating, ratings count, image and product link. Paste category links, pick the list, get one row per ranked product.

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

## Pricing

from $0.70 / 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

## Amazon Best Sellers Scraper: Ranks and New Releases

Scrape Amazon.com Best Sellers and New Releases lists by category link: rank, ASIN, title, price, star rating, ratings count, image and product link. Paste category links, pick the list, get one row per ranked product.

### What you get

Every result is one row in the run's dataset. Download it as JSON, CSV, Excel or HTML, or read it through the Apify API. The main fields:

| Field | Meaning |
|---|---|
| `rank` | Rank |
| `asin` | ASIN |
| `title` | Title |
| `price` | Price |
| `rating` | Stars |
| `ratingsCount` | Ratings |
| `category` | Category |
| `listType` | List |
| `image` | Image |
| `url` | Product URL |

Example row:

```json
{
  "rank": 6,
  "asin": "B0HJB69GJL",
  "title": "Apple AirPods 5 Wireless Earbuds with Active Noise Cancellation, USB-C Charging Case",
  "price": 129.0,
  "currency": "USD",
  "rating": 4.3,
  "ratingsCount": 275,
  "image": "https://images-na.ssl-images-amazon.com/images/I/618C8GA55KL._AC_UL900_SR900,600_.jpg",
  "url": "https://www.amazon.com/dp/B0HJB69GJL",
  "category": "Electronics",
  "categoryUrl": "https://www.amazon.com/gp/bestsellers/electronics",
  "listType": "bestsellers"
}
```

### Input

| Field | Type | Required | Description |
|---|---|---|---|
| `categoryUrls` | array | yes | Amazon.com Best Sellers category links, for example https://www.amazon.com/gp/bestsellers/electronics or a sub-category such as https://www.amazon.com/Best-Sellers-Electronics-Headphones/zgbs/electronics/172541. At most 100 links. The all-departments page has no product list, pick a category. |
| `listType` | select | no | Which Amazon list to read for every category link. Allowed: bestsellers, new-releases. Default: `"bestsellers"`. |
| `maxPages` | integer | no | Page 1 gives ranks 1 to 30 and page 2 gives ranks 51 to 80 with all details. Default: `2`. |
| `fillRankGaps` | boolean | no | Adds the ranks 31 to 50 and 81 to 100. Amazon's page data names only the ASIN for them, so these rows carry rank, ASIN and link, with title and price empty. Default: `false`. |
| `maxItems` | integer | no | The run stops after this many result rows. It also caps what one run can cost. Default: `100`. |
| `proxyConfiguration` | object | no | Leave as is: the run starts on the cheapest network the site accepts and switches to Apify Proxy automatically when the site blocks it. Pick proxy groups here only to force one specific network. |

Example input:

```json
{
  "categoryUrls": [
    "https://www.amazon.com/gp/bestsellers/electronics"
  ],
  "maxPages": 1,
  "maxItems": 20
}
```

### Pricing

You pay per result row in the dataset (the current price per 1,000 results is on the Pricing tab). A run that finds nothing produces no rows and no result charges. Set **Maximum results** to cap what a single run can cost.

### Limits and notes

- Covers amazon.com (United States). Amazon prints 30 ranked products per list page, so one list gives ranks 1 to 30 and 51 to 80 with full details; switch on the rank-gap option to also get ranks 31 to 50 and 81 to 100 as ASIN-only rows.
- Pick a category or sub-category link. The all-departments Best Sellers page has no product list.
- Amazon refreshes these lists about every hour, so ranks change between runs.
- Best Sellers and New Releases are offered. Movers and Shakers and Most Wished For are not: Amazon shows them empty to visitors without an account.
- Author, artist and seller names shown on the lists are not collected.
- Only publicly visible data is collected. No login, no paywalled content, no personal contact details.
- The actor reads only pages that the site's robots.txt leaves open to automated access.
- Sites change their pages from time to time. The actor is checked automatically and repaired when a check fails.
- Each run sends one short usage record to the developer: the Actor and run IDs, the number of results, whether the run succeeded (and if not, the kind of error, such as "blocked" or "input problem") and whether the account is on a paid Apify plan. It contains nothing from your input or results.

### Use it from your code or agent

Run it from the Apify Console, on a schedule, through the Apify API and client libraries, from Make, Zapier or n8n, or as a tool through the Apify MCP server. The dataset of each run stays available for download.

# Actor input Schema

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

Amazon.com Best Sellers category links, for example https://www.amazon.com/gp/bestsellers/electronics or a sub-category such as https://www.amazon.com/Best-Sellers-Electronics-Headphones/zgbs/electronics/172541. At most 100 links. The all-departments page has no product list, pick a category.

## `listType` (type: `string`):

Which Amazon list to read for every category link.

## `maxPages` (type: `integer`):

Page 1 gives ranks 1 to 30 and page 2 gives ranks 51 to 80 with all details.

## `fillRankGaps` (type: `boolean`):

Adds the ranks 31 to 50 and 81 to 100. Amazon's page data names only the ASIN for them, so these rows carry rank, ASIN and link, with title and price empty.

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

The run stops after this many result rows. It also caps what one run can cost.

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

Leave as is: the run starts on the cheapest network the site accepts and switches to Apify Proxy automatically when the site blocks it. Pick proxy groups here only to force one specific network.

## Actor input object example

```json
{
  "categoryUrls": [
    "https://www.amazon.com/gp/bestsellers/electronics"
  ],
  "listType": "bestsellers",
  "maxPages": 1,
  "fillRankGaps": false,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One dataset row per processed item.

# 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"
    ],
    "maxPages": 1,
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("v0iddo/mint-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"],
    "maxPages": 1,
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("v0iddo/mint-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"
  ],
  "maxPages": 1,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call v0iddo/mint-amazon-bestsellers-scraper --silent --output-dataset

```

## MCP server setup

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