# Amazon Search & Best Sellers Scraper (`gopalakrishnan/amazon-search-scraper`) Actor

Scrape Amazon keyword search results or Best Sellers category lists into structured data â ASIN, title, price, rating, rank, and product link. Pay-per-result pricing, automatic residential proxy rotation, and no Amazon API or coding needed.

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

## Pricing

from $1.00 / 1,000 search results scrapeds

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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Search & Best Sellers Scraper

### What does Amazon Search & Best Sellers Scraper do?

This Actor extracts **product listings from two Amazon "listing" page types**: keyword
search results (`amazon.com/s?k=...`) and Best Sellers category lists
(`amazon.com/Best-Sellers-.../zgbs/...`). For each product it returns the ASIN, title,
price, star rating (search mode) or sales rank (Best Sellers mode), and a direct product
link. Try it with a few search terms or paste in any Amazon Best Sellers category URL, then
run the Actor on the [Apify platform](https://apify.com) to get clean, structured data with
automatic proxy rotation, scheduling, monitoring, and API/webhook access — no need to build
or maintain your own scraper.

For single-product detail pages (full descriptions, images, reviews, buy-box history), see
the sibling **Amazon Product Scraper** Actor instead — this Actor only covers
multi-product listing pages.

### Why use Amazon Search & Best Sellers Scraper?

- **Market & competitor research** — see how products rank for a keyword, track price and
  rating positioning across competitors.
- **Best Sellers tracking** — monitor category rank movement for your own or a competitor's
  products over time (combine with Apify's [Scheduler](https://docs.apify.com/platform/schedules)).
- **Lead/catalog building** — bulk collect ASINs, titles, and links for a set of search
  terms or categories as a starting point for further enrichment.

### How to use Amazon Search & Best Sellers Scraper

1. Open the Actor's **Input** tab.
2. Choose a **Mode**:
    - **Keyword search** — enter one or more search terms in **Search queries**.
    - **Best Sellers list** — paste one or more full Amazon Best Sellers category URLs in
      **Best Sellers URLs**.
3. Optionally set **Max items per query/URL** to cap how many results come back.
4. Click **Start**. Results stream into the run's dataset as they're scraped.
5. Export the dataset (JSON, CSV, Excel, etc.) or pull it via the API.

#### A note on proxies

- **Keyword search requires a residential proxy.** Amazon blocks datacenter IPs on search
  pages almost immediately. The default **Proxy configuration** is already set to
  `RESIDENTIAL` — leave it as-is for search mode. If you have explicitly switched it to
  datacenter-only, the run will fail fast with a clear error rather than silently returning
  no results.
- **Best Sellers lists work fine on regular (datacenter) Apify Proxy** — no residential
  proxy needed, which keeps this mode cheaper to run.

### Input

| Field                | Description                                                |
| -------------------- | ---------------------------------------------------------- |
| `mode`               | `search` or `bestsellers`.                                 |
| `searchQueries`      | Keywords to search (mode = `search`).                      |
| `bestsellersUrls`    | Full Best Sellers category URLs (mode = `bestsellers`).    |
| `maxItems`           | Cap on results returned per query/URL.                     |
| `proxyConfiguration` | Proxy group settings — keep `RESIDENTIAL` for search mode. |

See the **Input** tab for the full schema and defaults.

### Output

Each scraped product is one row in the dataset. Example for keyword search:

```json
{
    "mode": "search",
    "asin": "B0DBHNP197",
    "rank": null,
    "title": "WEIZE Mountain Bike, 24 26 27.5 inch Outdoor MTB Bike",
    "price": "$199.99",
    "rating": "4.1 out of 5 stars",
    "link": "https://www.amazon.com/WEIZE-High-Carbon-Suspension-Adjustable/dp/B0DBHNP197",
    "sourceQuery": "bikes",
    "sourceUrl": null,
    "scrapedAt": "2026-06-21T14:55:00.000Z"
}
````

Example for a Best Sellers list (price/rating are typically not present on this page type):

```json
{
    "mode": "bestsellers",
    "asin": "B0B73XM8ZB",
    "rank": 1,
    "title": "HOTWAVE Push Up Board Fitness, Portable Foldable 20 in 1 Push Up Bar",
    "price": null,
    "rating": null,
    "link": "https://www.amazon.com/HOTWAVE-Portable-Foldable-Professional-Equipment/dp/B0B73XM8ZB",
    "sourceQuery": null,
    "sourceUrl": "https://www.amazon.com/Best-Sellers-Sports-Outdoors-Kids-Bicycles/zgbs/sporting-goods/3408481",
    "scrapedAt": "2026-06-21T14:55:00.000Z"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

#### Data fields

| Field         | Description                                                         |
| ------------- | ------------------------------------------------------------------- |
| `mode`        | `search` or `bestsellers`.                                          |
| `asin`        | Amazon Standard Identification Number.                              |
| `rank`        | Best Sellers rank (Best Sellers mode only).                         |
| `title`       | Product title.                                                      |
| `price`       | Listed price, if shown on the page.                                 |
| `rating`      | Star rating text (search mode only).                                |
| `link`        | Direct product URL.                                                 |
| `sourceQuery` | The search query that produced this result (search mode).           |
| `sourceUrl`   | The Best Sellers URL that produced this result (Best Sellers mode). |
| `scrapedAt`   | ISO timestamp of when the record was scraped.                       |

### Pricing / cost estimation

This Actor is billed [pay-per-event](https://docs.apify.com/platform/actors/publishing/monetize/pay-per-event):
a small flat fee per run (`actor-start`) plus a per-result fee (`result-scraped`) charged
once for every product record pushed to the dataset, regardless of mode. Check the Actor's
**Pricing** tab on the Apify Store for current rates. Search mode costs more in proxy usage
(residential) than Best Sellers mode, but the per-result charge is the same for both.

### Tips for Amazon Search & Best Sellers Scraper

- Keep **Max items per query/URL** modest if you only need a snapshot — Amazon's first
  search results page typically returns ~16-24 organic + sponsored results, and Best
  Sellers pages return up to 50-100 ranked items.
- Don't switch the proxy group away from `RESIDENTIAL` for search mode — it will fail fast
  rather than waste run time on blocked requests.
- For Best Sellers category node IDs, browse to the category on Amazon and copy the full
  `zgbs/...` URL from your browser - there's no need to look up node IDs manually.

### FAQ, disclaimers, and support

This Actor only scrapes publicly available product listing data. Use it in accordance with
Amazon's Terms of Service and applicable laws in your jurisdiction; it's intended for
research, monitoring, and analysis use cases. Amazon's HTML structure changes periodically;
if you notice missing fields or zero results, please report it via the Actor's **Issues**
tab so selectors can be updated. Need a custom variant (different marketplace, extra
fields, deeper pagination)? Reach out via Issues or request a custom solution.

# Actor input Schema

## `mode` (type: `string`):

Choose what to scrape: keyword search results or a Best Sellers category list.

## `searchQueries` (type: `array`):

Keywords to search for on Amazon (used when Mode = 'Keyword search'). Requires residential proxy.

## `bestsellersUrls` (type: `array`):

Full Amazon Best Sellers category URLs, e.g. https://www.amazon.com/Best-Sellers-Sports-Outdoors-Kids-Bicycles/zgbs/sporting-goods/3408481 (used when Mode = 'Best Sellers list').

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

Maximum number of results to return per search query or Best Sellers URL. Leave empty for no limit.

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

Keyword search REQUIRES a residential proxy group (datacenter proxies get blocked by Amazon). Best Sellers lists work fine on datacenter proxies.

## Actor input object example

```json
{
  "mode": "search",
  "searchQueries": [
    "bikes"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (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 = {
    "searchQueries": [
        "bikes"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gopalakrishnan/amazon-search-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 = { "searchQueries": ["bikes"] }

# Run the Actor and wait for it to finish
run = client.actor("gopalakrishnan/amazon-search-scraper").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 '{
  "searchQueries": [
    "bikes"
  ]
}' |
apify call gopalakrishnan/amazon-search-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Amazon Search & Best Sellers Scraper",
        "description": "Scrape Amazon keyword search results or Best Sellers category lists into structured data â ASIN, title, price, rating, rank, and product link. Pay-per-result pricing, automatic residential proxy rotation, and no Amazon API or coding needed.",
        "version": "0.0",
        "x-build-id": "Nis3qPF5owJDZjyrK"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/gopalakrishnan~amazon-search-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-gopalakrishnan-amazon-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/gopalakrishnan~amazon-search-scraper/runs": {
            "post": {
                "operationId": "runs-sync-gopalakrishnan-amazon-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/gopalakrishnan~amazon-search-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-gopalakrishnan-amazon-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "search",
                            "bestsellers"
                        ],
                        "type": "string",
                        "description": "Choose what to scrape: keyword search results or a Best Sellers category list.",
                        "default": "search"
                    },
                    "searchQueries": {
                        "title": "Search queries",
                        "type": "array",
                        "description": "Keywords to search for on Amazon (used when Mode = 'Keyword search'). Requires residential proxy.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "bestsellersUrls": {
                        "title": "Best Sellers URLs",
                        "type": "array",
                        "description": "Full Amazon Best Sellers category URLs, e.g. https://www.amazon.com/Best-Sellers-Sports-Outdoors-Kids-Bicycles/zgbs/sporting-goods/3408481 (used when Mode = 'Best Sellers list').",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxItems": {
                        "title": "Max items per query/URL",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of results to return per search query or Best Sellers URL. Leave empty for no limit."
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Keyword search REQUIRES a residential proxy group (datacenter proxies get blocked by Amazon). Best Sellers lists work fine on datacenter proxies.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
