# Amazon Search Scraper (`datascrapers/amazon-scraper`) Actor

Scrape Amazon search result pages by keyword and marketplace. Returns ASIN, title, price, rating, reviews count, and result position.

- **URL**: https://apify.com/datascrapers/amazon-scraper.md
- **Developed by:** [Farhan Ali](https://apify.com/datascrapers) (community)
- **Categories:** E-commerce, MCP servers, Integrations
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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 Search Scraper** creates a structured dataset of product records collected from Amazon search result pages. Each dataset item can include the ASIN, title, product URL, price and list price, average rating, review count, image URL, sponsored flag, delivery text, and result position. Query the source with `searchQuery` and a marketplace `domain`, control the volume with `maxPages` and `maxProducts`, and retrieve records through the Apify Dataset API or export them as JSON, CSV, Excel, XML, or another supported format.

### Dataset at a glance

| Property | Value |
|---|---|
| Source | Amazon marketplaces (amazon.de, amazon.co.uk, amazon.in, amazon.fr, amazon.com.au, and others) |
| Record unit | One search-result product |
| Input methods | `searchQuery` (required) + `domain` |
| Main identifiers | `asin`, `url` |
| Delivery | Apify Dataset and API |
| Export formats | JSON, CSV, Excel, XML, HTML |
| Update model | Fresh records per Actor run |
| Pricing | $1.50 per 1,000 products |

### Coverage and available records

The Actor runs an Amazon keyword search on a selected marketplace and collects the products returned on the search results pages. Supported behavior:

- **Keyword search** — `searchQuery` is the required search term.
- **Marketplace selection** — `domain` accepts any Amazon hostname (e.g. `amazon.co.uk`, `amazon.in`, `amazon.fr`), including a full `www.` or `https` URL.
- **Pagination** — `maxPages` caps the number of search result pages scraped.
- **Result limit** — `maxProducts` caps total products (0 = unlimited).
- **Rate control** — `pageDelayMs` sets the delay between page requests.

Not currently collected: product detail pages, description body, bullet points, reviews, sellers list, and buy-box offers. The Actor records what the search results page displays.

### Data dictionary

| Field | Type | Nullable | Description | Example |
|---|---:|---|---|---|
| `asin` | string | yes | Amazon Standard Identification Number; recommended deduplication key | `B0BHSXFTGH` |
| `title` | string | yes | Product title from search results | `Fullstar Gemüseschneider und Mandoline...` |
| `url` | string | yes | Product detail page URL | `https://www.amazon.de/dp/B0BHSXFTGH` |
| `price` | string | yes | Current displayed price | `22,99 €` |
| `listPrice` | string | yes | List/strikethrough price, when shown | `€29.99` |
| `rating` | number | yes | Average star rating | `4.4` |
| `reviewsCount` | integer | yes | Number of customer reviews | `46280` |
| `imageUrl` | string | yes | Thumbnail image URL | `https://m.media-amazon.com/images/I/...jpg` |
| `isSponsored` | boolean | yes | Whether the listing is sponsored | `false` |
| `delivery` | string | yes | Delivery information text | `FREE delivery` |
| `position` | integer | yes | Position on the search results page | `1` |
| `page` | integer | yes | Search results page number | `1` |
| `searchQuery` | string | yes | Search keyword used | `kitchen` |
| `domain` | string | yes | Marketplace domain scraped | `amazon.de` |
| `scrapedAt` | string | yes | ISO timestamp when scraped | `2026-06-18T15:41:41.043218` |

### Example dataset record

```json
{
  "asin": "B0BHSXFTGH",
  "title": "Fullstar Gemüseschneider und Mandoline Gemüsehobel - Julienne- und Würfelschneider ...",
  "url": "https://www.amazon.de/Fullstar-Gem%C3%BCseschneider-Mandoline-Gem%C3%BCsehobel-W%C3%BCrfelschneider/dp/B0BHSXFTGH/ref=sr_1_1?...",
  "price": "22,99 €",
  "listPrice": null,
  "rating": null,
  "reviewsCount": 46280,
  "imageUrl": "https://m.media-amazon.com/images/I/81ViXXJKNhL._AC_UY218_.jpg",
  "isSponsored": false,
  "delivery": "Edelstahl",
  "position": 1,
  "page": 1,
  "searchQuery": "kitchen",
  "domain": "amazon.de",
  "scrapedAt": "2026-06-18T15:41:41.043218"
}
```

The record above was produced by a run with `searchQuery: "kitchen"` and `domain: "amazon.de"`.

### Query and input reference

| Input | Type | Required | Default | Accepted values | Description |
|---|---:|---|---|---|---|
| `searchQuery` | string | yes | — | keyword | Search keyword, e.g. `kitchen`, `wireless headphones` |
| `domain` | string | no | `amazon.de` | any marketplace hostname | Marketplace to scrape |
| `maxPages` | integer | no | `1` | >= 1 | Maximum search result pages |
| `maxProducts` | integer | no | `0` | 0 = unlimited | Maximum products to collect |
| `pageDelayMs` | integer | no | `1500` | >= 0 | Delay between page requests (ms) |
| `proxyConfiguration` | object | no | `{"useApifyProxy": true}` | proxy settings | Recommended for Amazon scraping |

Minimal request:

```json
{
  "searchQuery": "kitchen",
  "domain": "amazon.de"
}
```

Advanced request:

```json
{
  "searchQuery": "wireless headphones",
  "domain": "amazon.co.uk",
  "maxPages": 5,
  "maxProducts": 200,
  "pageDelayMs": 2000,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

### Retrieve the data through the API

1. Start the Actor with a JSON input (see above).
2. Wait for the run to finish.
3. Retrieve items from the run's default dataset.
4. Paginate or export the dataset.

Python example:

```python
import json
import urllib.request

API_TOKEN = "<your Apify API token>"
ACTOR_ID = "datascrapers/amazon-scraper"

payload = {
    "searchQuery": "kitchen",
    "domain": "amazon.de",
    "maxPages": 1,
}

req = urllib.request.Request(
    f"https://api.apify.com/v2/acts/{ACTOR_ID}/runs?token={API_TOKEN}",
    data=json.dumps(payload).encode(),
    headers={"Content-Type": "application/json"},
)
with urllib.request.urlopen(req) as resp:
    run = json.loads(resp.read())["data"]

dataset_id = run["defaultDatasetId"]
with urllib.request.urlopen(
    f"https://api.apify.com/v2/datasets/{dataset_id}/items?token={API_TOKEN}"
) as resp:
    items = json.loads(resp.read())
```

For other languages, use the generated API tab on the Actor's page.

### Data quality and record handling

- **Nullable fields** — `rating`, `listPrice`, and `delivery` are often absent; treat them as nullable.
- **Raw price text** — `price` is reported exactly as Amazon displays it, including currency symbol and thousand separators; parse it in your pipeline if you need numeric values.
- **Deduplication** — `asin` is the stable, recommended unique key; `url` also uniquely identifies a product.
- **Retries and errors** — page requests are retried; a page that fails to load returns the products that were successfully parsed.
- **Position tracking** — `position` and `page` record where the product appeared, useful for ranking analysis.

The Actor reflects search results at run time and does not provide historical price history.

### Export and pipeline examples

| Destination | Recommended method | Typical use |
|---|---|---|
| PostgreSQL/Supabase | Dataset API or webhook consumer | Product catalog keyed by `asin` |
| Google Sheets | Apify integration | Review a small search result set |
| S3/cloud storage | Scheduled export or integration | Price-monitoring snapshots |
| BI tools | CSV/JSON export | Ranking and review-count analysis |

### Pricing and cost examples

The Actor uses pay-per-event billing. One charge event applies:

- **`apify-default-dataset-item`** — $1.50 per 1,000 products returned.

| Records | Estimated base cost |
|---:|---:|
| 1,000 products | $1.50 |
| 10,000 products | $15.00 |
| 100,000 products | $150.00 |

Estimates assume the free-tier rate and no proxy markup; actual cost depends on your Apify plan and selected options.

### Limitations and responsible data use

- The Actor collects publicly accessible search-result data only; it does not bypass login or paywalls.
- Results depend on Amazon's current page structure; site changes can require Actor updates.
- Some fields are conditional or nullable (see Data dictionary).
- The Actor does not retain historical snapshots unless you store them yourself.
- You are responsible for complying with Amazon's terms of service and applicable privacy and contractual obligations.

### Dataset questions

#### What does one dataset item represent?

One product returned by an Amazon search on a single marketplace.

#### Which field should I use as a unique identifier?

`asin`. `url` is also unique per product.

#### Are fields nullable or conditional?

Yes. `rating`, `listPrice`, and `delivery` are frequently absent for some products.

#### Can I retrieve the records as CSV or JSON?

Yes. The default dataset supports JSON, CSV, Excel, and XML exports, and the Dataset API returns JSON.

#### How do I paginate large datasets?

Set `maxPages` and `maxProducts` to bound the run, or paginate the default dataset via the Dataset API.

#### What counts as a billable result?

Each product returned to the dataset counts as one `apify-default-dataset-item` event.

### Related datasets from Data Scrapers

- **[Best Buy Product Scraper](https://apify.com/datascrapers/best-buy-scraper)** — electronics and appliance product records that complement Amazon catalog data.
- **[HomeDepot Scraper](https://apify.com/datascrapers/homedepot-scraper)** — home-improvement product data with stock levels for cross-retailer price monitoring.
- **[LinkedIn Company Scraper](https://apify.com/datascrapers/linkedin-company-scraper)** — company records for joining with product brands.
- **[Zoopla Scraper](https://apify.com/datascrapers/zoopla-scraper)** — property listings for unrelated UK market datasets.

### Data Scrapers support

Need an additional field, record type, or export workflow? Contact Data Scrapers at stardustspotlight@gmail.com. Include a sample source URL, required fields, expected record volume, and preferred delivery format.

# Actor input Schema

## `searchQuery` (type: `string`):

Keyword to search on Amazon (e.g. kitchen, wireless headphones).

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

Any Amazon marketplace hostname (e.g. amazon.co.uk, amazon.in, amazon.fr, amazon.com.au). You may also pass www.amazon.de or a full https URL.

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

Maximum number of search result pages to scrape.

## `maxProducts` (type: `integer`):

Maximum number of products to collect (0 = unlimited).

## `pageDelayMs` (type: `integer`):

Delay between page requests in milliseconds.

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

Apify proxy configuration. Recommended for Amazon scraping.

## Actor input object example

```json
{
  "searchQuery": "kitchen",
  "domain": "amazon.co.uk",
  "maxPages": 1,
  "maxProducts": 0,
  "pageDelayMs": 1500,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (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 = {
    "searchQuery": "kitchen",
    "domain": "amazon.co.uk"
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascrapers/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 = {
    "searchQuery": "kitchen",
    "domain": "amazon.co.uk",
}

# Run the Actor and wait for it to finish
run = client.actor("datascrapers/amazon-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 '{
  "searchQuery": "kitchen",
  "domain": "amazon.co.uk"
}' |
apify call datascrapers/amazon-scraper --silent --output-dataset

```

## MCP server setup

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