# Amazon product and search scraper (`data_dino/amazon-products`) Actor

💰 $1.00 per 1000 comments❗Collect structured Amazon product details and search-result listings, including titles, ASINs, prices, ratings, images, brands, and marketplace URLs.

- **URL**: https://apify.com/data\_dino/amazon-products.md
- **Developed by:** [Data Dino](https://apify.com/data_dino) (community)
- **Categories:** E-commerce, SEO tools, Lead generation
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.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 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 and search scraper

Collect structured product records from Amazon product pages and search-result listings. This actor combines three input modes — product URLs, search URLs, and keyword queries — in a single tool with full marketplace selection.

### Features

- Three input modes: product detail URLs, pre-built Amazon search URLs, and keyword search queries — all in one actor.
- Marketplace selector for keyword searches across any Amazon domain (`com`, `co.uk`, `in`, `de`, etc.).
- Browser impersonation, randomized user-agent rotation, configurable request delays, and optional proxy support for reliable extraction.
- Extracts ASINs, titles, prices, currencies, brands, images, ratings, review counts, Prime/deal signals, delivery text, badges, discount percentages, color variants, and canonical URLs when Amazon exposes them.
- Pagination control (`maxPages`) and output cap (`maxItems`) to manage run cost and duration.
- Writes records to the run's default dataset for download as JSON, CSV, or Excel via Apify integrations.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `startUrls` | array | Amazon product example | Product detail URLs or search-result URLs. The actor auto-detects product vs. search URLs. |
| `searchQueries` | array | `[]` | Optional keyword searches in addition to `startUrls`. |
| `country` | string | `com` | Marketplace code for keyword searches, such as `com`, `co.uk`, or `in`. |
| `maxPages` | integer | `1` | Maximum pages per search URL or query (1–20). |
| `maxItems` | integer | `100` | Maximum records pushed for the run; `0` means unlimited (max 10000). |

Example input:

```json
{
  "startUrls": [
    { "url": "https://www.amazon.com/dp/B00IZ936HM" },
    { "url": "https://www.amazon.com/s?k=wireless+headphones" }
  ],
  "searchQueries": ["mechanical keyboard"],
  "country": "com",
  "maxPages": 2,
  "maxItems": 100
}
```

### Output

Each dataset item is a product-detail or search-result record. Fields vary with the information shown by Amazon.

#### Product detail pages (`/dp/ASIN`)

```json
{
  "asin": "B0DX1MF624",
  "title": "Ant Esports MK801 V2 Pro Wireless...",
  "price": 1705,
  "currency": "₹",
  "brand": "Ant Esports",
  "rating": 4.0,
  "img_url": "https://m.media-amazon.com/images/I/71ny46Yn+FL._SL1500_.jpg",
  "url": "https://www.amazon.in/dp/B0DX1MF624"
}
```

#### Search result pages (`/s?k=...`)

Search results include all product-detail fields plus: `reviews_count`, `original_price`, `discount_percent`, `prime` (boolean), `color_variants` (array of `{name, url, asin}`), `badge`, `delivery_info`, and `deal` (boolean) when Amazon exposes them.

### Limitations

- **Lean product detail output**: Currently extracts 8 core fields from product pages. For richer output (features, descriptions, seller details, review data, star breakdowns, A+ content), consider pairing this actor with a dedicated product-details scraper.
- **No review scraping**: This actor does not extract customer reviews. For review collection, see Apify's dedicated Amazon Reviews Scraper.
- **Amazon's 7-page search limit**: Amazon sometimes restricts search results to 7 pages. To work around this, use filtered category URLs with more specific search terms.
- **Anti-bot detection**: Amazon may serve CAPTCHA or consent pages despite anti-detection measures. Blocked pages are skipped rather than represented as fabricated records.

### Related Actors

- **Amazon Product Details Scraper** (`axesso_data/amazon-product-details-scraper`): Rich product detail extraction with reviews, variations, A+ content, and AI review insights.
- **Amazon Scraper** (`junglee/free-amazon-product-scraper`): Apify-maintained category scraper with star breakdowns and seller details.
- **Amazon Product Data Scraper** (`delicious_zebu/amazon-product-data-scraper`): Keyword and category scraper with rating distribution and best-seller ranks.

# Actor input Schema

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

Amazon product detail URLs or pre-built Amazon search-result URLs to scrape.

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

Optional keyword searches to run in addition to the URLs above.

## `country` (type: `string`):

Amazon country or marketplace code used for keyword searches, such as com, co.uk, or in.

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

Maximum number of pages to fetch for each search URL or keyword query.

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

Maximum number of product records to push across the entire run. Use 0 for no limit.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.amazon.in/dp/B0DX1MF624"
    }
  ],
  "searchQueries": [],
  "country": "com",
  "maxPages": 1,
  "maxItems": 100
}
```

# Actor output Schema

## `dataset` (type: `string`):

Structured product-detail or search-result records collected during the run.

# 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.in/dp/B0DX1MF624"
        }
    ],
    "searchQueries": [],
    "country": "com",
    "maxPages": 1,
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("data_dino/amazon-products").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.in/dp/B0DX1MF624" }],
    "searchQueries": [],
    "country": "com",
    "maxPages": 1,
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("data_dino/amazon-products").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.amazon.in/dp/B0DX1MF624"
    }
  ],
  "searchQueries": [],
  "country": "com",
  "maxPages": 1,
  "maxItems": 100
}' |
apify call data_dino/amazon-products --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,data_dino/amazon-products"
        }
    }
}

```

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/7zlDh8we353mN1OyQ/builds/hVUqkBj7vh2eqdCsq/openapi.json
