# Amazon Product Scraper (`magicfingers/amazon-product-scraper`) Actor

Scrape Amazon products, reviews, best seller lists, and seller profiles from any Amazon domain. Supports keyword search, ASIN lookup, review filtering, and pagination.

- **URL**: https://apify.com/magicfingers/amazon-product-scraper.md
- **Developed by:** [abdulrahman alrashid](https://apify.com/magicfingers) (community)
- **Categories:** E-commerce
- **Stats:** 113 total users, 15 monthly users, 93.2% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 Product Scraper

Scrape Amazon products, reviews, best seller lists, and seller profiles from any Amazon domain (.com, .co.uk, .de, .fr, .it, .es, .ca, .com.au, .in, .co.jp).

### Features

- **Product Search** — Search by keyword and get product listings with prices, ratings, images, and Prime status
- **Product Details** — Full product pages: title, price, brand, bullet points, description, images, categories, BSR, variations, "Frequently Bought Together", technical specs
- **Product Reviews** — Review text, rating, date, verified purchase badge, helpful votes, images, variant purchased. Filter by star rating, date range, verified only
- **Best Seller Lists** — Scrape any Amazon Best Seller category page with rank, price, and rating
- **Seller Profiles** — Business info, ratings, feedback history

### Supported Amazon Domains

| Domain | Country |
|--------|---------|
| amazon.com | United States |
| amazon.co.uk | United Kingdom |
| amazon.de | Germany |
| amazon.fr | France |
| amazon.it | Italy |
| amazon.es | Spain |
| amazon.ca | Canada |
| amazon.com.au | Australia |
| amazon.in | India |
| amazon.co.jp | Japan |

### Input Examples

#### Search Products

```json
{
    "mode": "SEARCH",
    "searchQueries": ["wireless headphones", "usb-c hub"],
    "domain": "amazon.com",
    "maxSearchResults": 100,
    "maxSearchPages": 5,
    "scrapeProductDetails": false
}
```

#### Get Full Product Details

```json
{
    "mode": "PRODUCT_DETAIL",
    "asins": ["B0BSHF7WHW", "https://www.amazon.com/dp/B09V3KXJPB"],
    "domain": "amazon.com",
    "scrapeReviews": true,
    "maxReviews": 50
}
```

#### Scrape Reviews with Filters

```json
{
    "mode": "REVIEWS",
    "asins": ["B0BSHF7WHW"],
    "domain": "amazon.com",
    "maxReviews": 200,
    "reviewsSort": "recent",
    "reviewsFilterStar": "critical",
    "reviewsVerifiedOnly": true,
    "reviewsDateFrom": "2024-01-01"
}
```

#### Best Sellers

```json
{
    "mode": "BEST_SELLERS",
    "categoryUrls": ["https://www.amazon.com/best-sellers-electronics/zgbs/electronics/"],
    "domain": "amazon.com"
}
```

#### Seller Profile

```json
{
    "mode": "SELLER_PROFILE",
    "sellerIds": ["A2FE2Q7L2STNNR", "https://www.amazon.com/sp?seller=A2FE2Q7L2STNNR"],
    "domain": "amazon.com"
}
```

### Output Schema

Every result includes a `type` field indicating the data type:

| Type | Description |
|------|-------------|
| `search_result` | Product from search results (lightweight) |
| `product_detail` | Full product page data |
| `review` | Individual review |
| `review_summary` | Review histogram and averages |
| `best_seller` | Product from best seller list |
| `seller_profile` | Seller information |

#### Product Detail Fields

| Field | Type | Description |
|-------|------|-------------|
| asin | string | Amazon Standard Identification Number |
| title | string | Product title |
| price | number | Current price (normalized) |
| originalPrice | number | List/crossed-out price |
| currency | string | Currency code (USD, EUR, GBP, etc.) |
| rating | number | Average star rating (1-5) |
| reviewCount | number | Total number of reviews |
| brand | string | Brand name |
| seller | object | Seller name, ID, fulfillment info |
| bulletPoints | array | Feature bullet points |
| description | string | Product description text |
| images | array | High-resolution image URLs |
| categories | array | Breadcrumb categories |
| bestSellerRank | array | BSR rank + category |
| availability | string | Stock status |
| inStock | boolean | Whether the product is in stock |
| isPrime | boolean | Prime eligible |
| variations | object | Size, color, style options |
| frequentlyBoughtTogether | array | Related products |
| technicalDetails | object | Technical specifications |
| productInformation | object | Additional product info |
| coupon | string | Available coupon text |

#### Review Fields

| Field | Type | Description |
|-------|------|-------------|
| reviewerName | string | Reviewer display name |
| rating | number | Star rating (1-5) |
| title | string | Review title |
| text | string | Full review text |
| date | string | Review date (YYYY-MM-DD) |
| isVerifiedPurchase | boolean | Verified purchase badge |
| helpfulVotes | number | Number of helpful votes |
| images | array | Review image URLs |
| variantPurchased | string | Product variant info |

### Anti-Bot Handling

This scraper handles Amazon's aggressive anti-bot measures:

- **Session management** — Automatic session rotation with configurable pool size
- **Residential proxies** — Uses Apify's residential proxy pool by default
- **Realistic headers** — Rotated User-Agent strings, proper Accept headers, referrers
- **Request throttling** — Random delays between requests
- **CAPTCHA detection** — Detects CAPTCHAs and retires blocked sessions
- **Playwright fallback** — Headless browser fallback for blocked requests

### Pricing

Pay-Per-Event: **$0.50 per 1,000 results** ($0.0005 per result)

### Tips for Best Results

1. **Use residential proxies** — Datacenter proxies get blocked quickly on Amazon
2. **Keep concurrency low** — 3-5 concurrent requests reduces blocks
3. **Don't scrape too fast** — The built-in delays help, but lower concurrency is safer
4. **Use Playwright fallback** — Enable it for higher reliability at the cost of speed
5. **Filter reviews** — Use star/date filters to get exactly what you need without scraping everything

# Actor input Schema

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

Choose what to scrape.

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

List of keywords to search for on Amazon. Used in SEARCH mode.

## `asins` (type: `array`):

List of ASINs or full Amazon product URLs. Used in PRODUCT\_DETAIL and REVIEWS modes.

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

Full URLs to Amazon Best Seller category pages. Used in BEST\_SELLERS mode.

## `sellerIds` (type: `array`):

Amazon seller IDs or full storefront URLs. Used in SELLER\_PROFILE mode.

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

Which Amazon marketplace to scrape.

## `maxSearchResults` (type: `integer`):

Maximum number of products to return from search. 0 = unlimited.

## `maxSearchPages` (type: `integer`):

Maximum number of search result pages to scrape per query.

## `scrapeProductDetails` (type: `boolean`):

In SEARCH mode, also visit each product page for full details (slower but more data).

## `scrapeReviews` (type: `boolean`):

In PRODUCT\_DETAIL mode, also scrape reviews for each product.

## `maxReviews` (type: `integer`):

Maximum number of reviews to scrape per product. 0 = unlimited.

## `reviewsSort` (type: `string`):

How to sort reviews.

## `reviewsFilterStar` (type: `string`):

Only scrape reviews with this star rating. Leave empty for all.

## `reviewsVerifiedOnly` (type: `boolean`):

Only scrape reviews from verified purchases.

## `reviewsDateFrom` (type: `string`):

Only scrape reviews from this date onwards (YYYY-MM-DD).

## `reviewsDateTo` (type: `string`):

Only scrape reviews up to this date (YYYY-MM-DD).

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

Use residential proxies for best results. Amazon blocks datacenter IPs aggressively.

## `maxConcurrency` (type: `integer`):

Maximum number of parallel requests. Lower values are safer against blocks.

## `maxRetries` (type: `integer`):

How many times to retry a failed request.

## `usePlaywrightFallback` (type: `boolean`):

Use headless browser as fallback when Cheerio requests get blocked. Slower but more reliable.

## Actor input object example

```json
{
  "mode": "SEARCH",
  "searchQueries": [
    "wireless headphones"
  ],
  "asins": [],
  "categoryUrls": [],
  "sellerIds": [],
  "domain": "amazon.com",
  "maxSearchResults": 5,
  "maxSearchPages": 5,
  "scrapeProductDetails": false,
  "scrapeReviews": false,
  "maxReviews": 100,
  "reviewsSort": "recent",
  "reviewsFilterStar": "all",
  "reviewsVerifiedOnly": false,
  "reviewsDateFrom": "",
  "reviewsDateTo": "",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "maxConcurrency": 5,
  "maxRetries": 5,
  "usePlaywrightFallback": true
}
```

# 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 = {
    "mode": "SEARCH",
    "searchQueries": [
        "wireless headphones"
    ],
    "domain": "amazon.com",
    "maxSearchResults": 5,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("magicfingers/amazon-product-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 = {
    "mode": "SEARCH",
    "searchQueries": ["wireless headphones"],
    "domain": "amazon.com",
    "maxSearchResults": 5,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("magicfingers/amazon-product-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 '{
  "mode": "SEARCH",
  "searchQueries": [
    "wireless headphones"
  ],
  "domain": "amazon.com",
  "maxSearchResults": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call magicfingers/amazon-product-scraper --silent --output-dataset

```

## MCP server setup

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