# Amazon Bestsellers Scraper: top 100 at $1 per 1,000 (`daedal_quintuplet/amazon-bestsellers-scraper`) Actor

Scrape Amazon Best Sellers and Hot New Releases: the full top 100 per list with rank, ASIN, name, price, currency, stars, ratings count, URL and image. US, UK, DE, FR, ES, IT, CA, AU, IN, JP. Sub-departments and only-new mode. $1.00 per 1,000 products, first 25 free.

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

## Pricing

$1.00 / 1,000 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?

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

**Amazon Bestsellers Scraper** returns the ranked top 100 products of any Amazon Best Sellers or Hot New Releases list as clean JSON, CSV or Excel: rank, ASIN, product name, price, currency, star rating, number of ratings, product URL and image, plus the list name and store. It works on amazon.com, amazon.co.uk, amazon.de, amazon.fr, amazon.es, amazon.it, amazon.ca, amazon.com.au, amazon.in and amazon.co.jp.

People find it by searching for an **Amazon bestsellers API**, an **Amazon best sellers scraper**, an **Amazon top 100 scraper**, **Amazon BSR list export** or **Amazon new releases scraper**. All of these mean the same job: turn Amazon's public ranking pages into rows you can analyse.

**Price: $1.00 per 1,000 products, and the first 25 products of every run are free.** That is less than a fifth of the $5.90 per 1,000 charged by the most-used Amazon bestsellers actor in the Apify Store. There is no monthly rental and no extra proxy bill: proxy traffic is included in the per-product price.

- Full top 100 per list: ranks 1 to 100, including ranks 31 to 50 and 81 to 100, which Amazon loads only when a browser scrolls down.
- Ten Amazon stores tested, with prices in the store's own currency (taken from an IP address in that country, so the prices are the local ones).
- Department crawling: give one top-level list and also get every sub-department list (Electronics → Headphones, Cameras, Computers and so on).
- "Only new since last run" mode for schedules: get only the products that newly entered a list.
- Drop-in input: the `categoryUrls`, `maxItemsPerStartUrl` and `depthOfCrawl` input fields of the most-used Amazon bestsellers actor are accepted as they are, and the main output fields (`position`, `category`, `categoryUrl`, `name`, `price`, `currency`, `url`, `thumbnail`) use the same names, so existing pipelines keep working.

This actor is not affiliated with, endorsed by or connected to Amazon. It reads the public ranking pages that any visitor can open without logging in.

### What data do you get?

One dataset row per ranked product. Every field below was checked in test runs across the ten stores listed above.

| Field | Type | Example | Description |
|---|---|---|---|
| `position` | integer | `1` | Rank in the list (1 to 100), as shown on the rank badge. |
| `asin` | string | `"B008YETL18"` | Amazon Standard Identification Number (for books, the ISBN-10). |
| `name` | string | `"How the Grinch Stole Christmas! Full Color Edition (Classic Seuss)"` | Product title as shown in the list. |
| `price` | number | `7.87` | Price as a number, decimal point normalised (`1.299,99 €` becomes `1299.99`). For price ranges, the lowest price. |
| `currency` | string | `"$"` | Currency symbol as shown on the page. |
| `currencyCode` | string | `"USD"` | ISO currency code of the store (USD, GBP, EUR, CAD, AUD, INR, JPY ...). |
| `priceText` | string | `"$7.87"` | Price exactly as displayed, including ranges such as `$10.99 - $24.99`. |
| `stars` | number | `4.9` | Average star rating (0 to 5). |
| `reviewsCount` | integer | `3600` | Number of customer ratings. |
| `url` | string | `"https://www.amazon.com/How-Grinch-Stole-Christmas-Jacketed/dp/0593434382"` | Clean product link without tracking parameters. |
| `thumbnail` | string | `"https://images-na.ssl-images-amazon.com/images/I/91GbeLAeoWL._AC_UL300_SR300,200_.jpg"` | Product image as shown in the list. |
| `imageUrl` | string | `"https://images-na.ssl-images-amazon.com/images/I/91GbeLAeoWL._AC_UL900_SR900,600_.jpg"` | The largest version of the same image. |
| `byline` | string or null | `"Dr. Seuss"` | Author, artist or platform line. Filled for books, music, films and games; null for most other products. |
| `category` | string | `"Amazon Best Sellers: Best Books"` | The page title of the list. |
| `categoryName` | string | `"Best Sellers in Books"` | The heading of the list. |
| `categoryUrl` | string | `"https://www.amazon.com/gp/bestsellers/books"` | The list the product was found in (normalised, no tracking). |
| `listType` | string | `"bestsellers"` | `bestsellers`, `new-releases`, `movers-and-shakers`, `most-wished-for` or `most-gifted`. |
| `domain` | string | `"amazon.com"` | The Amazon store. |
| `page` | integer | `1` | Amazon's list page: 1 holds ranks 1 to 50, 2 holds ranks 51 to 100. |
| `scrapedAt` | string | `"2026-11-23T23:07:48.389Z"` | When the row was collected (ISO 8601, UTC). |

In our test runs, 95% to 100% of these cells were filled. The gaps are real gaps on Amazon: a product that is currently unavailable has no price, and a brand-new product may have no rating yet.

### How to use Amazon Bestsellers Scraper

1. Open the Amazon list you want in your browser, for example the [Amazon Best Sellers in Electronics](https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics) page, or any department in the left-hand menu of the Best Sellers or Hot New Releases pages.
2. Copy the link from the address bar.
3. Paste it into **Amazon list URLs**. Add as many lists as you like, from any of the supported stores.
4. Choose **Maximum products per list** (up to 100, the length of Amazon's lists).
5. Optional: switch on **Also scrape sub-departments** to also collect every sub-department list one level down.
6. Click **Start**. A 100-product list usually finishes in 10 to 30 seconds.
7. Download the results as JSON, CSV, Excel, XML or HTML, or read them through the API.

Links with `/ref=...` tracking parts, `/-/en/` language prefixes or the older `/gp/bestsellers/` form all work; the actor cleans them up.

#### Input example 1: one list, full top 100

```json
{
  "startUrls": [
    { "url": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics" }
  ],
  "maxItemsPerList": 100
}
```

#### Input example 2: several stores and list types at once

```json
{
  "startUrls": [
    { "url": "https://www.amazon.com/gp/bestsellers/books" },
    { "url": "https://www.amazon.co.uk/Best-Sellers-Home-Kitchen/zgbs/kitchen" },
    { "url": "https://www.amazon.de/-/en/gp/bestsellers/kitchen" },
    { "url": "https://www.amazon.com/gp/new-releases/toys-and-games" }
  ],
  "maxItemsPerList": 50
}
```

#### Input example 3: a department and all its sub-departments

```json
{
  "startUrls": [
    { "url": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics" }
  ],
  "includeSubcategories": true,
  "maxSubcategories": 40,
  "maxItemsPerList": 100
}
```

#### Input example 4: the input format of other Amazon bestsellers actors

If you are switching from another Amazon bestsellers actor, you can keep your input as it is:

```json
{
  "categoryUrls": ["https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics/"],
  "maxItemsPerStartUrl": 100,
  "depthOfCrawl": 1
}
```

`depthOfCrawl` of 1 or more turns on sub-department scraping (one level down).

#### Input example 5: daily schedule, only products new to the list

```json
{
  "startUrls": [
    { "url": "https://www.amazon.com/gp/new-releases/toys-and-games" }
  ],
  "onlyNew": true
}
```

### Output example

Three real rows from a test run on 23 November 2026 (amazon.com books, amazon.co.uk home & kitchen, amazon.de home & kitchen):

```json
[
  {
    "position": 1,
    "asin": "0593434382",
    "name": "How the Grinch Stole Christmas! Full Color Edition (Classic Seuss)",
    "price": 7.87,
    "currency": "$",
    "currencyCode": "USD",
    "priceText": "$7.87",
    "stars": 4.9,
    "reviewsCount": 3600,
    "url": "https://www.amazon.com/How-Grinch-Stole-Christmas-Jacketed/dp/0593434382",
    "thumbnail": "https://images-na.ssl-images-amazon.com/images/I/91GbeLAeoWL._AC_UL300_SR300,200_.jpg",
    "imageUrl": "https://images-na.ssl-images-amazon.com/images/I/91GbeLAeoWL._AC_UL900_SR900,600_.jpg",
    "byline": "Dr. Seuss",
    "category": "Amazon Best Sellers: Best Books",
    "categoryName": "Best Sellers in Books",
    "categoryUrl": "https://www.amazon.com/gp/bestsellers/books",
    "listType": "bestsellers",
    "domain": "amazon.com",
    "page": 1,
    "scrapedAt": "2026-11-23T23:07:48.389Z"
  },
  {
    "position": 1,
    "asin": "B0F2TPJTCG",
    "name": "Command Decorating Clips, 60 Mini Hooks, 68 Adhesive Strips, Transparent | Mega Pack, Ideal for Hanging Decorations and Fairy Lights, Damage Free Hanging, No Tools Required",
    "price": 8.91,
    "currency": "£",
    "currencyCode": "GBP",
    "priceText": "£8.91",
    "stars": 3.9,
    "reviewsCount": 448,
    "url": "https://www.amazon.co.uk/Command-Decorating-Transparent-Adhesive-Strips/dp/B0F2TPJTCG",
    "thumbnail": "https://images-eu.ssl-images-amazon.com/images/I/81JhKqu8U0L._AC_UL300_SR300,200_.jpg",
    "imageUrl": "https://images-eu.ssl-images-amazon.com/images/I/81JhKqu8U0L._AC_UL900_SR900,600_.jpg",
    "byline": null,
    "category": "Amazon.co.uk Best Sellers: The most popular items in Home & Kitchen",
    "categoryName": "Best Sellers in Home & Kitchen",
    "categoryUrl": "https://www.amazon.co.uk/Best-Sellers-Home-Kitchen/zgbs/kitchen",
    "listType": "bestsellers",
    "domain": "amazon.co.uk",
    "page": 1,
    "scrapedAt": "2026-11-23T23:07:49.363Z"
  },
  {
    "position": 1,
    "asin": "B008YETL18",
    "name": "De'Longhi Original EcoDecalk DLSC500 Descaler for Coffee Machines and Fully Automatic Coffee Machines, Universal Limescale Remover for 5 Descaling Operations, Contains Natural Raw Materials of Organic Origin, 500 ml",
    "price": 7.58,
    "currency": "€",
    "currencyCode": "EUR",
    "priceText": "€7.58",
    "stars": 4.8,
    "reviewsCount": 138185,
    "url": "https://www.amazon.de/-/en/DeLonghi-EcoDecalk-DLSC500-Automatic-Operations/dp/B008YETL18",
    "thumbnail": "https://images-eu.ssl-images-amazon.com/images/I/71DuIPbpAaL._AC_UL300_SR300,200_.jpg",
    "imageUrl": "https://images-eu.ssl-images-amazon.com/images/I/71DuIPbpAaL._AC_UL900_SR900,600_.jpg",
    "byline": null,
    "category": "Amazon.de Best Sellers: The most popular items in Home & Kitchen",
    "categoryName": "Best Sellers in Home & Kitchen",
    "categoryUrl": "https://www.amazon.de/-/en/gp/bestsellers/kitchen",
    "listType": "bestsellers",
    "domain": "amazon.de",
    "page": 1,
    "scrapedAt": "2026-11-23T23:07:49.711Z"
  }
]
```

(The amazon.de title is shortened here for reading; the dataset holds the full title.)

### Use cases

- **Product research for sellers.** See what sells in a department right now, what it costs and how many ratings the leaders have, before you source a product.
- **Trend tracking.** Run the same lists every day and chart how products move up and down the top 100, or how fast new releases climb.
- **Price monitoring.** Track the prices of the best-selling products in your category across several Amazon stores, in each store's own currency.
- **Market sizing and assortment planning.** Compare the top 100 of the same department in the US, UK, Germany, France, Italy and Spain.
- **Content and affiliate sites.** Keep "best-selling X" pages current with real ranks, prices and ratings.
- **Data for AI agents and dashboards.** Flat rows with stable field names drop straight into spreadsheets, BI tools and LLM workflows.

### Run it on a schedule and get only new results

1. Create a task for this actor with your lists (Console → Actors → Amazon Bestsellers Scraper → Create task).
2. Switch on **Only new since last run** (`"onlyNew": true`).
3. Add a schedule (Console → Schedules), for example every morning.

Each run then returns only the products that were not in the same list the last time this actor returned it to you, so you see what newly entered the top 100. The memory is kept per list for 120 days, in a key-value store named `amazon-bestsellers-seen` in your own Apify account. Leave **Only new** off if you want the full ranking every run, for example to track rank changes or prices; you only pay for the rows you receive in either mode.

### Integrations

**API endpoint.** Run the actor and get the rows in one call:

```
POST https://api.apify.com/v2/acts/daedal_quintuplet~amazon-bestsellers-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN
Content-Type: application/json

{"startUrls":[{"url":"https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics"}],"maxItemsPerList":100}
```

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("daedal_quintuplet/amazon-bestsellers-scraper").call(run_input={
    "startUrls": [{"url": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics"}],
    "maxItemsPerList": 100,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if "error" in item:
        print("error:", item["errorDescription"])
        continue
    print(item["position"], item["asin"], item["name"], item["price"], item["currencyCode"])
```

**JavaScript / Node.js** (`npm install apify-client`):

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

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('daedal_quintuplet/amazon-bestsellers-scraper').call({
    startUrls: [{ url: 'https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics' }],
    maxItemsPerList: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const p of items.filter((x) => !x.error)) console.log(p.position, p.asin, p.name, p.price);
```

**n8n.** Use the Apify node (Run an Actor and get dataset items) with the actor ID `daedal_quintuplet/amazon-bestsellers-scraper` and the input JSON above, or an HTTP Request node calling the API endpoint. Follow it with a Google Sheets, Airtable or Postgres node to store the ranking.

**Make.** Use the Apify app: "Run an Actor" with this actor, then "Get Dataset Items", then any module you like (Google Sheets, Slack, email digest).

**Zapier.** Use the Apify integration: "Run Actor" as the action, and "Actor Run Finished" as a trigger for the next step.

**MCP and AI agents.** The actor is available through Apify's MCP server (`https://mcp.apify.com`), so Claude, ChatGPT and other MCP clients can call it as a tool. Every input field has a plain-English description and an example, so an agent can fill in the input without reading this page.

**Webhooks.** Add a webhook on "run succeeded" to push the dataset to your own endpoint when each scheduled run finishes.

### Limits and error items

- **List length.** Amazon's lists hold at most 100 products (two pages of 50). This is Amazon's limit; no scraper can return more for one list. For more products, scrape more departments: switch on sub-departments.
- **Movers and Shakers, Most Wished For and Gift Ideas.** The actor accepts these lists. In our tests in November 2026, Amazon showed them empty on every store we tried, with the message "Sorry, there are no ... available in this category". When that happens you get a `no_results_found` error row with Amazon's message, and you are not charged. Best Sellers and Hot New Releases lists are full.
- **Landing pages.** Pages such as `https://www.amazon.co.uk/gp/new-releases` or `https://www.amazon.es/gp/most-wished-for` have no list of their own; the actor follows their departments instead (up to **Maximum sub-departments per URL**).
- **Stores.** Tested on amazon.com, .co.uk, .de, .fr, .es, .it, .ca, .com.au, .in and .co.jp. Other Amazon country stores (.nl, .se, .pl, .com.mx, .com.br, .ae, .sa, .sg, .com.tr, .com.be) are accepted but not yet tested.
- **Language.** Product titles come in the language Amazon serves for the link you give. On amazon.de, amazon.fr, amazon.es and amazon.it, links with `/-/en/` return English titles where Amazon has them.
- **Prices.** A product that is unavailable has no price (`price` null). Prices are those shown to a visitor in the store's own country, without login and without Prime-only discounts.

When something cannot be scraped, the actor adds an **error row** instead of failing the run. Error rows are free. They look like this:

```json
{
  "error": "bestsellers_category_not_found",
  "errorDescription": "Amazon returned 404 for https://www.amazon.com/gp/bestsellers/this-category-does-not-exist-123. Check the URL in a browser.",
  "input": "https://www.amazon.com/gp/bestsellers/this-category-does-not-exist-123",
  "url": "https://www.amazon.com/gp/bestsellers/this-category-does-not-exist-123"
}
```

| `error` | Meaning |
|---|---|
| `invalid_input` | No list URLs were given. |
| `invalid_url` | The link is not an Amazon store link, or not a Best Sellers / New Releases / Movers and Shakers / Most Wished For / Gift Ideas page (for example a product page). |
| `bestsellers_category_not_found` | Amazon returned "page not found" for the list. |
| `no_results_found` | Amazon shows the list empty. |
| `blocked` / `request_failed` | Amazon refused the page after six tries with fresh IP addresses. Run again later. |

Filter them out with `item.error === undefined` (JavaScript) or `"error" not in item` (Python).

### FAQ

**How much does it cost?** $1.00 per 1,000 products returned, and the first 25 products of every run are free. A full top 100 list costs $0.075. Error rows are free. Apify's free plan includes $5 of monthly credit, which covers about 5,000 products beyond the free ones.

**Do I need my own proxies?** No. The actor uses Apify's datacenter proxy for amazon.com and Apify's residential proxy (with an IP in the store's country) for the other stores, and the proxy cost is included in the price. You can supply your own proxy URLs if you prefer.

**Do I need an Amazon account or API key?** No. The ranking pages are public and the actor does not log in.

**How fresh is the data?** Each run reads the live pages at the moment it runs. Amazon describes its Best Sellers lists as "updated frequently".

**Why do ranks 31 to 50 matter?** Amazon shows only the first 30 products of each page in the HTML and loads ranks 31 to 50 (and 81 to 100) when a browser scrolls. A scraper that reads only the page HTML gets 60 of the 100 products. This actor makes the same follow-up request a browser makes, so you get all 100.

**Can I get the full product details (description, bullet points, all images)?** Not from this actor; it returns what the ranking list shows. Use the ASINs or URLs with a product-page scraper for full details.

**Is it legal to scrape Amazon best sellers?** The actor reads publicly available ranking pages without logging in and collects no personal data. Check that your use of the data complies with the terms and laws that apply to you.

**What happens if the run is restarted?** Apify sometimes moves a run to another server. The actor saves its progress after every page, so a restarted run continues where it stopped, with no duplicate rows and no duplicate charges.

### Our other actors

- [Flipkart Scraper](https://apify.com/daedal_quintuplet/flipkart-scraper): Flipkart products, prices and ratings at $0.80 per 1,000.
- [AutoScout24 Scraper](https://apify.com/daedal_quintuplet/autoscout24-scraper): car listings from AutoScout24 at $0.80 per 1,000.
- [Craigslist Scraper](https://apify.com/daedal_quintuplet/craigslist-scraper): Craigslist listings at $1.00 per 1,000.
- [Wappalyzer Alternative](https://apify.com/daedal_quintuplet/wappalyzer-tech-stack-detector): website tech stack detection at $2 per 1,000 sites.
- [Google Images Scraper](https://apify.com/daedal_quintuplet/google-images-scraper): image results from Google Images.
- [Google Trends Scraper](https://apify.com/daedal_quintuplet/google-trends-scraper-all-widgets): timeseries, regions and related queries.
- [Google Jobs Scraper](https://apify.com/daedal_quintuplet/google-jobs-scraper): Google Jobs listings for the US and UK.
- [Flashscore Scraper](https://apify.com/daedal_quintuplet/flashscore-scraper): sports results and fixtures.
- [Greenhouse Jobs Scraper](https://apify.com/daedal_quintuplet/greenhouse-jobs-scraper): jobs from Greenhouse job boards.
- [Career Site Jobs Scraper](https://apify.com/daedal_quintuplet/career-site-jobs-scraper): jobs from company career sites and ATS platforms.
- [SEEK Australia Job Scraper](https://apify.com/daedal_quintuplet/seek-au-job-scraper) and [SEEK NZ Job Scraper](https://apify.com/daedal_quintuplet/seek-nz-job-scraper): SEEK job listings past the 500-job cap.

# Actor input Schema

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

Amazon ranking pages to scrape: Best Sellers (/zgbs/ or /gp/bestsellers/), Hot New Releases (/gp/new-releases/), Movers and Shakers (/gp/movers-and-shakers/), Most Wished For (/gp/most-wished-for/) or Gift Ideas (/gp/most-gifted/), on amazon.com, .co.uk, .de, .fr, .es, .it, .ca, .com.au, .in, .co.jp and other Amazon country stores. Open the list in your browser, pick the department, and copy the link. Each list returns up to 100 ranked products. Example: https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics

## `maxItemsPerList` (type: `integer`):

How many ranked products to take from each list, from rank 1 down. Amazon's lists hold at most 100 products (two pages of 50). Example: 100

## `includeSubcategories` (type: `boolean`):

Off (default): scrape only the lists you entered. On: also scrape every sub-department shown in Amazon's left-hand department menu for each list (one level down), e.g. Electronics -> Headphones, Cameras, Computers. Landing pages that have no list of their own (such as https://www.amazon.es/gp/most-wished-for) always have their departments scraped. Example: false

## `maxSubcategories` (type: `integer`):

Upper limit on the number of sub-departments followed from one start URL, when sub-departments are scraped. Example: 40

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

Stop the whole run after this many products across all lists. 0 means no total limit. Example: 1000

## `onlyNew` (type: `boolean`):

Return only products that were not in the same list the last time this actor returned it to you (remembered for 120 days per list). Use it with a schedule to get products that newly entered a bestseller list. Leave it off to get the full ranking every run. Example: false

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

Proxy settings. Leave the default: the actor uses Apify's datacenter proxy for amazon.com and Apify's residential proxy for the other Amazon stores, which show a captcha to datacenter IPs. You can supply your own proxy URLs instead. Example: {"useApifyProxy": true}

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics"
    },
    {
      "url": "https://www.amazon.co.uk/gp/new-releases/kitchen"
    }
  ],
  "maxItemsPerList": 100,
  "includeSubcategories": false,
  "maxSubcategories": 40,
  "maxItems": 1000,
  "onlyNew": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `products` (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-Electronics/zgbs/electronics"
        }
    ],
    "maxItemsPerList": 100,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("daedal_quintuplet/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-Electronics/zgbs/electronics" }],
    "maxItemsPerList": 100,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("daedal_quintuplet/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-Electronics/zgbs/electronics"
    }
  ],
  "maxItemsPerList": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call daedal_quintuplet/amazon-bestsellers-scraper --silent --output-dataset

```

## MCP server setup

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