# Amazon Product Search Scraper (`straightforward_hydra/amazon-product-search-scraper`) Actor

Scrape Amazon search results across 17 marketplaces: ASIN, title, price, list price and discount, rating, review count, units bought last month, sponsored flag, badge and image. Prices stay in the marketplace's own currency.

- **URL**: https://apify.com/straightforward\_hydra/amazon-product-search-scraper.md
- **Developed by:** [Dev D](https://apify.com/straightforward_hydra) (community)
- **Categories:** E-commerce, Automation, Other
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 products

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 Search Scraper

Search results from **17 Amazon marketplaces** — one clean row per product. No
API key, no Amazon account.

### What you get

| Field | Example |
| --- | --- |
| `asin` | B004YAVF8I |
| `title` | Logitech M185 Compact Ambidextrous 2.4 GHz Wireless Mouse |
| `price`, `price_text`, `currency` | 14.9, `$14.90`, USD |
| `list_price`, `discount_percent` | 19.99, 25 |
| `rating`, `reviews_count` | 4.5, 44445 |
| `bought_past_month` | 10000 |
| `is_sponsored` | false |
| `badge` | Best Seller |
| `image`, `url` | direct links |
| `position`, `page`, `total_results` | 3, 1, 32908 |

`price` is a real number and `reviews_count` / `bought_past_month` are real
integers — `10K+` is returned as `10000`, not as text you have to clean up.

### Prices stay in the marketplace's currency

Amazon prices follow the **IP address**, not the domain. Request `amazon.com`
from the wrong country and you get `LKR 6,344.56` instead of `$14.90`.

This Actor pins the currency and language to whichever marketplace you pick and
matches the proxy country to it, so **amazon.com always returns USD and
amazon.de always returns EUR**, wherever the run happens to execute.

### Marketplaces

`amazon.com` · `co.uk` · `de` · `fr` · `it` · `es` · `nl` · `se` · `pl` · `ca` ·
`com.mx` · `com.br` · `com.au` · `in` · `co.jp` · `sg` · `ae`

### Example input

```json
{
  "searchQueries": ["wireless mouse", "mechanical keyboard"],
  "domain": "amazon.com",
  "maxResultsPerQuery": 50
}
```

### Notes

- **A proxy is required.** Amazon blocks unproxied requests outright. Verified
  on the platform:
  - **amazon.com works on datacenter proxies** (the default) — 100 products,
    99 with ratings and review counts.
  - **Non-US marketplaces generally need residential proxies.** amazon.de,
    amazon.co.uk and amazon.in all returned full data on residential and were
    blocked on datacenter. amazon.fr was blocked on both at time of writing.
    Switch the proxy option to Residential if a non-US run comes back empty.
- Amazon returns about 16 products per page and stops after 20 pages, so ~320
  per search is the practical ceiling. Use narrower queries for more coverage.
- When Amazon throttles a request it replies **HTTP 200 with a small page and no
  captcha** — a silent block. This Actor detects that shape, rotates to a fresh
  IP and retries, rather than reporting an empty result.
- Runs stop cleanly before the platform timeout and keep everything collected so
  far, rather than failing.

### Pricing

Pay per result: one `product` event per product returned.

### Support

Found a field that stopped populating, or a query that returns nothing? Open an
issue on the Actor's page and include the input you used.

# Actor input Schema

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

What to search for on Amazon, e.g. wireless mouse or running shoes. Each query is searched separately.

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

Which Amazon site to search. Prices are returned in that marketplace's own currency regardless of where the run executes. Non-US marketplaces usually need Residential proxies.

## `maxResultsPerQuery` (type: `integer`):

How many products to collect per query. Amazon returns about 16 per page and stops after 20 pages, so roughly 320 is the practical ceiling for one search.

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

Required. Amazon blocks unproxied requests. Datacenter proxies work for amazon.com; non-US marketplaces such as amazon.de, amazon.co.uk and amazon.in generally need Residential proxies. The proxy country is matched to the marketplace automatically.

## Actor input object example

```json
{
  "searchQueries": [
    "wireless mouse",
    "mechanical keyboard"
  ],
  "domain": "amazon.com",
  "maxResultsPerQuery": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `products` (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 = {
    "searchQueries": [
        "wireless mouse",
        "mechanical keyboard"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("straightforward_hydra/amazon-product-search-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 = { "searchQueries": [
        "wireless mouse",
        "mechanical keyboard",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("straightforward_hydra/amazon-product-search-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 '{
  "searchQueries": [
    "wireless mouse",
    "mechanical keyboard"
  ]
}' |
apify call straightforward_hydra/amazon-product-search-scraper --silent --output-dataset

```

## MCP server setup

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