# Amazon Product Scraper🛍️ (`webscrap18/amazon-product-scraper`) Actor

🛒 Scrape Amazon Product Data with Ease
Easily extract comprehensive product information from Amazon.com, including search results, product pages, and category listings. Get access to 💰 pricing details, ⭐ customer reviews & ratings, 📦 product availability, and 🏷️ key product specifications.

- **URL**: https://apify.com/webscrap18/amazon-product-scraper.md
- **Developed by:** [WebScrap](https://apify.com/webscrap18) (community)
- **Categories:** E-commerce, Lead generation, Developer tools
- **Stats:** 9 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$18.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

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

> **Powerful Amazon Data Extraction Tool** - Scrape product details, prices, reviews, and more from Amazon with ease!

Extract comprehensive product data from Amazon.com including search results, product pages, and category listings. Built with Apify and Crawlee for reliable, scalable scraping.

***

### ✨ Features

#### 📦 **Rich Product Data Extraction**

- 🏷️ **Basic Info**: Title, ASIN, brand, price, currency
- ⭐ **Reviews & Ratings**: Star ratings, review counts, rating breakdown (5-star distribution)
- 🖼️ **Images**: Multiple high-resolution product images
- 📝 **Details**: Product descriptions, features, technical specifications
- 📊 **Categories**: Full breadcrumb navigation and category hierarchy
- 💰 **Pricing**: Current price, list price, shipping costs
- 🚚 **Availability**: Stock status and delivery information
- 🏪 **Seller Info**: Seller name, ID, ratings, and profile

#### 🎯 **Smart Extraction Modes**

- **🚀 Fast Mode** (`extractDetails: false`): Quick listing-level data extraction
- **🔍 Detailed Mode** (`extractDetails: true`): Comprehensive product page analysis with full descriptions, specs, and more

#### 🔄 **Flexible Input Support**

- Individual product pages (`/dp/` or `/gp/product/`)
- Search result pages (`/s?k=...`)
- Category and department pages
- Automatic pagination handling for large datasets

***

### 📥 Input Configuration

The actor accepts the following input parameters:

```json
{
  "startUrls": [
    { "url": "https://www.amazon.com/s?k=laptop" },
    { "url": "https://www.amazon.com/dp/B0BDJ279KF" }
  ],
  "maxItems": 50,
  "extractDetails": true,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

#### 🎛️ Parameters

| Parameter | Type | Required | Description | Default |
|-----------|------|----------|-------------|---------|
| `startUrls` | Array | ✅ Yes | List of Amazon URLs to scrape (domain auto-detected from URL) | - |
| `maxItems` | Integer | ❌ No | Maximum number of products to scrape (0 = unlimited) | 50 |
| `extractDetails` | Boolean | ❌ No | Enable detailed extraction (visits individual product pages) | true |
| `proxy` | Object | ❌ No | Proxy configuration (RESIDENTIAL recommended) | Apify Proxy |

> 💡 **Note:** The Amazon domain is automatically extracted from your URLs. You can mix different Amazon domains (e.g., .com, .co.uk, .de) in a single run!

***

### 📤 Output Format

The actor stores scraped data in the Apify dataset. Output structure varies based on the `extractDetails` setting:

#### 🚀 Fast Mode (`extractDetails: false`)

Extracts basic information from listing pages - perfect for quick price comparisons and product discovery:

```json
{
  "title": "Lenovo V15 Gen 4 Business Laptop, 15.6\" FHD Display",
  "description": "500+ bought in past month",
  "image": "https://m.media-amazon.com/images/I/71N9tTF6pML._AC_UY654_FMwebp_QL65_.jpg",
  "url": "https://www.amazon.com/Lenovo-V15-Business-i5-13420H-i7-1355U/dp/B0D1YQJKY2",
  "asin": "B0D1YQJKY2",
  "price": 549.99,
  "currency": "USD",
  "rating": 4.5,
  "reviewCount": 245,
  "scrapedAt": "2026-01-19T12:48:42.696Z",
  "pageType": "listing"
}
```

#### 🔍 Detailed Mode (`extractDetails: true`)

Visits each product page individually to extract comprehensive data - ideal for in-depth product analysis:

```json
{
  "title": "HP Flagship 14\" HD Student&Business Laptop with AI Copilot",
  "description": [
    "14.0-inch diagonal, HD Display - Experience clear visuals and ample screen space",
    "Intel Processor N150 - Enjoy responsive performance for everyday tasks",
    "4GB DDR4 RAM - Elevate your projects with high-speed RAM"
  ],
  "thumbnailImage": "https://m.media-amazon.com/images/I/81vZJm+uB8L._AC_SY300_SX300_QL70_FMwebp_.jpg",
  "url": "https://www.amazon.com/HP-Flagship-Student-Business-Lavender/dp/B0G5P8JP2Z",
  "asin": "B0G5P8JP2Z",
  "brand": "HP",
  "price": {
    "value": 449.99,
    "currency": "USD"
  },
  "listPrice": {
    "value": 599.99,
    "currency": "USD"
  },
  "shippingPrice": null,
  "inStock": true,
  "inStockText": "In Stock",
  "stars": 4.3,
  "starsBreakdown": {
    "5star": 0.65,
    "4star": 0.18,
    "3star": 0.08,
    "2star": 0.04,
    "1star": 0.05
  },
  "reviewsCount": 205,
  "answeredQuestions": 12,
  "breadCrumbs": "Electronics › Computers & Accessories › Laptops › Traditional Laptops",
  "features": [
    "14.0-inch diagonal, HD Display",
    "Intel Processor N150",
    "4GB DDR4 RAM, 1.12TB Storage",
    "Intel Graphics, HD Webcam",
    "Wi-Fi 6, Bluetooth 5.4"
  ],
  "reviewsLink": "/product-reviews/B0G5P8JP2Z/ref=cm_cr_dp_d_show_all_btm",
  "returnPolicy": "30-day return policy",
  "seller": {
    "name": "Amazon.com",
    "id": null,
    "url": null,
    "reviewsCount": null,
    "averageRating": null
  },
  "bestsellerRanks": [
    {
      "rank": 1011,
      "category": "Computers & Accessories"
    }
  ],
  "locationText": "Deliver to India",
  "imageUrls": [
    "https://m.media-amazon.com/images/I/81vZJm+uB8L._AC_SY300_SX300_QL70_FMwebp_.jpg",
    "https://images-na.ssl-images-amazon.com/images/I/71RR79-rVAL._AC_UL165_SR165,165_.jpg",
    "https://images-na.ssl-images-amazon.com/images/I/31irLPg85hL._AC_UL165_SR165,165_.jpg"
  ],
  "details": {
    "ASIN": "B0G5P8JP2Z",
    "Brand": "HP",
    "Manufacturer": "HP",
    "Best Sellers Rank": "#1,011 in Computers & Accessories",
    "Date First Available": "December 8, 2025"
  },
  "categories": [
    "Electronics",
    "Computers & Accessories",
    "Computers & Tablets",
    "Laptops",
    "Traditional Laptops"
  ],
  "scrapedAt": "2026-01-19T12:54:10.351Z",
  "pageType": "product"
}
```

#### ⚡ Performance Comparison

| Mode | Speed | Data Richness | Use Case |
|------|-------|---------------|----------|
| **Fast Mode** | 🚀 Very Fast | Basic | Quick scans, price monitoring, product discovery |
| **Detailed Mode** | 🐢 Slower | 🌟 Comprehensive | Market research, detailed analysis, competitive intelligence |

> ⚠️ **Note:** Detailed mode visits each product page individually, significantly increasing scraping time and resource usage. Use it when you need comprehensive product information including full descriptions, specifications, and seller details.

***

### 💡 Usage Examples

#### 🔍 Example 1: Search Results Scraping

Extract products from Amazon search results:

```json
{
  "startUrls": [
    { "url": "https://www.amazon.com/s?k=wireless+headphones" }
  ],
  "maxItems": 100,
  "extractDetails": true
}
```

#### 📦 Example 2: Specific Product Pages

Scrape detailed data from individual product pages:

```json
{
  "startUrls": [
    { "url": "https://www.amazon.com/dp/B08N5WRWNW" },
    { "url": "https://www.amazon.com/dp/B09G9FPHY6" }
  ],
  "extractDetails": true
}
```

#### 🌍 Example 3: International Amazon (UK)

Scrape from Amazon UK marketplace (domain auto-detected):

```json
{
  "startUrls": [
    { "url": "https://www.amazon.co.uk/s?k=laptop" }
  ],
  "maxItems": 50
}
```

#### 📊 Example 4: Category Pages

Extract data from best sellers or category pages:

```json
{
  "startUrls": [
    { "url": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics" }
  ],
  "maxItems": 200,
  "extractDetails": false
}
```

***

### ⚠️ Important Notes

#### 🔒 **Proxy Requirements**

- ✅ **Residential proxies are HIGHLY recommended** for Amazon scraping
- ❌ Amazon has sophisticated bot detection - datacenter proxies may get blocked
- 🛡️ Default configuration uses Apify's residential proxies for best results
- 💰 Using proxies incurs additional costs but ensures successful scraping

#### ⏱️ **Rate Limiting & Performance**

- 🤖 Automatic request throttling to avoid detection
- 📏 Respects Amazon's robots.txt guidelines
- ⏰ Large scraping jobs take time - be patient!
- 🎯 Use `extractDetails: false` for faster results when detailed data isn't needed

#### ✅ **Data Quality & Freshness**

- 💰 Prices and availability change frequently - always check `scrapedAt` timestamp
- ❓ Some fields may be `null` if data isn't available on the page
- 🔄 Run scraper regularly to maintain up-to-date data
- 📍 `locationText` affects shipping and availability information

***

### 🔧 How It Works

```
┌─────────────────┐
│  Start URLs     │ ← Your input URLs
└────────┬────────┘
         ↓
┌─────────────────┐
│ Load Pages      │ ← Proper headers + residential proxy
└────────┬────────┘
         ↓
┌─────────────────┐
│ Extract Data    │ ← CSS selectors + intelligent parsing
└────────┬────────┘
         ↓
┌─────────────────┐
│ Handle Pages    │ ← Auto-pagination for search/category pages
└────────┬────────┘
         ↓
┌─────────────────┐
│ Save to Dataset │ ← Structured JSON output
└────────┬────────┘
         ↓
┌─────────────────┐
│   Complete! ✅  │ ← maxItems reached or no more pages
└─────────────────┘
```

***

### 📞 Support & Feedback

Need help or have suggestions?

- 📧 Contact via Apify Console
- 🐛 Found a bug? Report it through Apify
- 💡 Feature requests welcome!

***

<div align="center">

#### 🚀 Happy Scraping!

**Built with ❤️ using [Apify](https://apify.com) & [Crawlee](https://crawlee.dev)**

</div>

# Actor input Schema

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

List of Amazon URLs to scrape (product pages, search results, or category pages)

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

Maximum number of products to scrape. Use 0 for unlimited.

## `proxy` (type: `object`):

Proxy settings for the crawler

## `extractDetails` (type: `boolean`):

Extract additional details like description, features, specifications, etc.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.amazon.com/s?k=laptop"
    },
    {
      "url": "https://www.amazon.com/dp/B0BDJ279KF"
    }
  ],
  "maxItems": 50,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "extractDetails": 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 = {
    "startUrls": [
        {
            "url": "https://www.amazon.com/s?k=laptop"
        }
    ],
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("webscrap18/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 = {
    "startUrls": [{ "url": "https://www.amazon.com/s?k=laptop" }],
    "proxy": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("webscrap18/amazon-product-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 '{
  "startUrls": [
    {
      "url": "https://www.amazon.com/s?k=laptop"
    }
  ],
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call webscrap18/amazon-product-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/aDtaEwiKu0m5BMViQ/builds/HJW2sOJcBJn59hhqV/openapi.json
