# Amazon Scraper (`crawlerbros/amazon-scraper`) Actor

Scrapes products from Amazon category and search result pages. Extracts detailed product data including prices, reviews, seller info, variants, and delivery details. Supports multiple Amazon domains.

- **URL**: https://apify.com/crawlerbros/amazon-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** E-commerce, Developer tools, Other
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $500.00 / 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.

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 Category Scraper

Scrapes products from Amazon category and search result pages. Extracts detailed product data including prices, reviews, seller info, variants, and delivery details. Supports multiple Amazon domains.

### Features

- Scrapes Amazon search results and category pages
- Extracts detailed product information from individual product pages
- Supports pagination (up to 50 pages per category)
- Handles multiple Amazon domains (US, UK, DE, FR, etc.)
- Anti-detection measures (user agent rotation, stealth scripts)
- CAPTCHA detection and simple bypass attempts
- Proxy support with automatic country selection

### Input

| Field | Type | Description | Default |
|-------|------|-------------|---------|
| `categoryUrls` | array | **Required.** List of Amazon category or search URLs | - |
| `maxItemsPerCategory` | integer | Maximum products to scrape per category (1-1000) | 100 |
| `maxPages` | integer | Maximum pages to scrape per category (1-50) | 10 |
| `scrapeProductDetails` | boolean | Scrape full details from product pages | true |
| `proxyCountry` | string | Proxy country (AUTO, US, GB, DE, etc.) | AUTO |
| `rateLimitDelay` | integer | Delay between requests in seconds (1-30) | 2 |

#### Example Input

```json
{
  "categoryUrls": [
    "https://www.amazon.com/s?k=laptops",
    "https://www.amazon.com/s?k=wireless+headphones"
  ],
  "maxItemsPerCategory": 100,
  "maxPages": 10,
  "scrapeProductDetails": true,
  "proxyCountry": "AUTO",
  "rateLimitDelay": 2
}
````

### Output

Each product is saved as a separate item in the dataset with the following fields:

| Field | Type | Description |
|-------|------|-------------|
| `title` | string | Product title |
| `url` | string | Product URL |
| `asin` | string | Amazon Standard Identification Number |
| `inStock` | boolean | Whether product is in stock |
| `inStockText` | string | Raw availability text |
| `brand` | string | Product brand |
| `price` | object | Current price `{value, currency}` |
| `listPrice` | object | Original/list price `{value, currency}` |
| `shippingPrice` | number | Shipping cost (null if free) |
| `stars` | number | Average star rating (0-5) |
| `starsBreakdown` | object | Rating breakdown `{5star, 4star, ...}` |
| `reviewsCount` | integer | Total number of reviews |
| `answeredQuestions` | integer | Number of answered questions |
| `breadCrumbs` | string | Category breadcrumbs |
| `thumbnailImage` | string | Main product image URL |
| `description` | string | Product description |
| `features` | array | Product feature bullet points |
| `variantAsins` | array | ASINs of product variants |
| `reviewsLink` | string | Link to reviews page |
| `delivery` | string | Primary delivery estimate |
| `fastestDelivery` | string | Fastest delivery option |
| `returnPolicy` | string | Return policy text |
| `support` | string | Support information |
| `variantAttributes` | array | Variant attribute names |
| `priceVariants` | object | Price by variant |
| `seller` | object | Seller info `{name, id, url, ...}` |
| `bestsellerRanks` | array | Bestseller rankings |
| `locationText` | string | Delivery location text |
| `categoryUrl` | string | Source category URL |
| `categoryPage` | integer | Page number in category |
| `categoryPosition` | integer | Position in category results |
| `scrapedAt` | string | Timestamp of scraping |

#### Example Output

```json
{
  "title": "SanDisk 1TB Extreme microSDXC UHS-I Memory Card",
  "url": "https://www.amazon.com/dp/B09X7MPX8L",
  "asin": "B09X7MPX8L",
  "inStock": true,
  "inStockText": "In Stock",
  "brand": "SanDisk",
  "price": {
    "value": 145.5,
    "currency": "$"
  },
  "listPrice": {
    "value": 299.99,
    "currency": "$"
  },
  "shippingPrice": null,
  "stars": 4.8,
  "starsBreakdown": {
    "5star": 0.86,
    "4star": 0.09,
    "3star": 0.02,
    "2star": 0.01,
    "1star": 0.01
  },
  "reviewsCount": 36704,
  "answeredQuestions": 151,
  "breadCrumbs": "Electronics > Computers & Accessories > Memory Cards",
  "thumbnailImage": "https://m.media-amazon.com/images/I/716kSUlHouL.jpg",
  "description": "Save time with card offload speeds...",
  "features": [
    "Up to 190MB/s read speeds",
    "Up to 130MB/s write speeds",
    "4K and 5K UHD-ready"
  ],
  "variantAsins": ["B09X7C2GBC", "B09X7C7LL1"],
  "reviewsLink": "/product-reviews/B09X7MPX8L",
  "delivery": "Thursday, January 26",
  "fastestDelivery": "Sunday, January 22",
  "returnPolicy": "Eligible for Return within 30 days",
  "support": "Free Amazon tech support included",
  "variantAttributes": [],
  "priceVariants": null,
  "seller": {
    "name": "Direct Suppliers US",
    "id": "A210SJF12S88M5",
    "url": "/gp/help/seller/at-a-glance.html",
    "reviewsCount": null,
    "averageRating": null
  },
  "bestsellerRanks": [
    {"rank": 3, "category": "Micro SD Cards"}
  ],
  "locationText": "Deliver to New York",
  "categoryUrl": "https://www.amazon.com/s?k=memory+cards",
  "categoryPage": 1,
  "categoryPosition": 5,
  "scrapedAt": "2026-01-26T10:30:00.000Z"
}
```

### Supported Amazon Domains

- amazon.com (US)
- amazon.co.uk (UK)
- amazon.de (Germany)
- amazon.fr (France)
- amazon.it (Italy)
- amazon.es (Spain)
- amazon.ca (Canada)
- amazon.com.au (Australia)
- amazon.co.jp (Japan)
- amazon.in (India)
- amazon.com.br (Brazil)
- amazon.com.mx (Mexico)
- And more...

### Usage Tips

1. **Fast Mode**: Set `scrapeProductDetails: false` to only extract data visible on category pages. This is much faster but provides less detail.

2. **Rate Limiting**: Increase `rateLimitDelay` if you encounter CAPTCHAs or blocks.

3. **Proxy**: The scraper automatically selects the appropriate proxy country based on the Amazon domain.

4. **Pagination**: Amazon typically shows 20-60 products per page. Set `maxPages` accordingly.

### Local Development

```bash
## Install dependencies
pip install -r requirements.txt

## Install Playwright browsers
playwright install chromium

## Run the scraper
python -m src
```

### License

This project is licensed under the MIT License.

# Actor input Schema

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

List of Amazon category or search result URLs to scrape. Supports search pages (e.g., amazon.com/s?k=laptops) and browse nodes (e.g., amazon.com/b?node=123).

## `maxItemsPerCategory` (type: `integer`):

Maximum number of products to scrape per category URL

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

Maximum number of pages to scrape per category

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

If true, scrapes full product details from individual product pages. If false, returns only data visible on category pages (faster).

## `proxyCountry` (type: `string`):

Proxy country for geo-targeting. Use AUTO to automatically select based on Amazon domain.

## `useResidentialProxy` (type: `boolean`):

Use residential proxies (more reliable but more expensive ~$12.50/GB). If disabled, uses datacenter proxies (~$0.50/GB) which may get blocked more often.

## `rateLimitDelay` (type: `integer`):

Base delay between requests in seconds to avoid rate limiting

## Actor input object example

```json
{
  "categoryUrls": [
    "https://www.amazon.com/s?k=laptops",
    "https://www.amazon.com/s?k=wireless+headphones"
  ],
  "maxItemsPerCategory": 10,
  "maxPages": 1,
  "scrapeProductDetails": true,
  "proxyCountry": "AUTO",
  "useResidentialProxy": true,
  "rateLimitDelay": 2
}
```

# Actor output Schema

## `title` (type: `string`):

Product title

## `url` (type: `string`):

Direct Amazon URL for the product page

## `asin` (type: `string`):

Amazon Standard Identification Number

## `brand` (type: `string`):

Product brand name

## `price` (type: `string`):

Current price (JSON object with value and currency)

## `listPrice` (type: `string`):

Original list price before discounts

## `stars` (type: `string`):

Average star rating from 1 to 5

## `reviewsCount` (type: `string`):

Total number of customer reviews

## `inStock` (type: `string`):

Whether the product is currently in stock

## `inStockText` (type: `string`):

Detailed stock availability text

## `thumbnailImage` (type: `string`):

Main product image URL

## `features` (type: `string`):

List of product features and bullet points (JSON array)

## `description` (type: `string`):

Full product description

## `breadCrumbs` (type: `string`):

Product category breadcrumb path

## `bestsellerRanks` (type: `string`):

Bestseller rankings in different categories (JSON array)

## `seller` (type: `string`):

Seller information (JSON object)

## `delivery` (type: `string`):

Delivery information and estimated date

## `shippingPrice` (type: `string`):

Shipping cost (JSON object)

## `variantAsins` (type: `string`):

List of variant product ASINs (JSON array)

## `variantAttributes` (type: `string`):

Available variant options (JSON array)

## `reviewsLink` (type: `string`):

Link to all product reviews

## `categoryUrl` (type: `string`):

Source category/search URL

## `categoryPage` (type: `string`):

Page number in search results

## `categoryPosition` (type: `string`):

Position in search results

## `scrapedAt` (type: `string`):

ISO timestamp when the data was scraped

# 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/s?k=laptops"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/amazon-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/s?k=laptops"] }

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/amazon-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 '{
  "categoryUrls": [
    "https://www.amazon.com/s?k=laptops"
  ]
}' |
apify call crawlerbros/amazon-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Amazon Scraper",
        "description": "Scrapes products from Amazon category and search result pages. Extracts detailed product data including prices, reviews, seller info, variants, and delivery details. Supports multiple Amazon domains.",
        "version": "1.0",
        "x-build-id": "eAiHem1zg8eQNtJhf"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/crawlerbros~amazon-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-crawlerbros-amazon-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/crawlerbros~amazon-scraper/runs": {
            "post": {
                "operationId": "runs-sync-crawlerbros-amazon-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/crawlerbros~amazon-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-crawlerbros-amazon-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": [
                    "categoryUrls"
                ],
                "properties": {
                    "categoryUrls": {
                        "title": "Category/Search URLs",
                        "minItems": 1,
                        "type": "array",
                        "description": "List of Amazon category or search result URLs to scrape. Supports search pages (e.g., amazon.com/s?k=laptops) and browse nodes (e.g., amazon.com/b?node=123).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxItemsPerCategory": {
                        "title": "Max Items Per Category",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of products to scrape per category URL",
                        "default": 10
                    },
                    "maxPages": {
                        "title": "Max Pages",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Maximum number of pages to scrape per category",
                        "default": 1
                    },
                    "scrapeProductDetails": {
                        "title": "Scrape Product Details",
                        "type": "boolean",
                        "description": "If true, scrapes full product details from individual product pages. If false, returns only data visible on category pages (faster).",
                        "default": true
                    },
                    "proxyCountry": {
                        "title": "Proxy Country",
                        "enum": [
                            "AUTO",
                            "US",
                            "GB",
                            "DE",
                            "FR",
                            "ES",
                            "IT",
                            "CA",
                            "AU",
                            "JP",
                            "IN",
                            "BR",
                            "MX"
                        ],
                        "type": "string",
                        "description": "Proxy country for geo-targeting. Use AUTO to automatically select based on Amazon domain.",
                        "default": "AUTO"
                    },
                    "useResidentialProxy": {
                        "title": "Use Residential Proxy",
                        "type": "boolean",
                        "description": "Use residential proxies (more reliable but more expensive ~$12.50/GB). If disabled, uses datacenter proxies (~$0.50/GB) which may get blocked more often.",
                        "default": true
                    },
                    "rateLimitDelay": {
                        "title": "Rate Limit Delay (seconds)",
                        "minimum": 1,
                        "maximum": 30,
                        "type": "integer",
                        "description": "Base delay between requests in seconds to avoid rate limiting",
                        "default": 2
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
