# Amazon Product Scraper (`f-keys/amazon-product-scraper`) Actor

Bulk-scrape Amazon search results: ASIN, title, price, list price, rating, review count, image, Prime, and sponsored flag. Any keyword, any Amazon country, proxy-backed.

- **URL**: https://apify.com/f-keys/amazon-product-scraper.md
- **Developed by:** [Vince Gonzalez](https://apify.com/f-keys) (community)
- **Categories:** E-commerce, Developer tools, AI
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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/actors/running/actors-in-store.md#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 Scraper

Bulk-collect product data from Amazon search results: **ASIN, title, price, list price, rating, review count, image, Prime status, and sponsored flag** — for any keyword, in any Amazon marketplace, at whatever volume you need. Proxy-backed to get through Amazon's bot protection.

Built for price monitoring, competitive research, catalog building, market analysis, and anyone who needs Amazon listings as structured rows.

***

### What it does

- **Every key field from the search grid:** ASIN, title, current price (as text and as a clean number), list/strikethrough price, star rating, review count, product image, Prime badge, and whether the listing is sponsored.
- **Any Amazon marketplace.** Routes to the correct site — `us`, `uk`, `de`, `fr`, `ca`, `jp`, `in`, `au`, and more.
- **Paginates and dedupes.** Walks the result pages per keyword, removes duplicate ASINs, and stops cleanly at your limit or the last page.
- **Skip sponsored** listings with one toggle to keep only organic results.
- **Built for Amazon's defenses.** Amazon serves `503`/captcha to datacenter IPs fast — the top reason Amazon scrapers fail. This actor retries blocked pages on fresh proxy sessions and defaults to the residential proxy group.

### Input

| Field | Type | Description |
|---|---|---|
| `keywords` | array (required) | Search terms, e.g. `"wireless headphones"`, `"yoga mat"`. |
| `country` | string | Amazon marketplace code (`us`, `uk`, `de`, …). |
| `maxItems` | integer | Stop after this many products total. `0` = no limit. |
| `skipSponsored` | boolean | Exclude ad listings. |
| `maxPagesPerKeyword` | integer | Pagination-depth cap per keyword. |
| `maxRetries` | integer | Retries per blocked page, each on a fresh proxy session. |
| `proxyConfiguration` | object | Required in practice — Apify Proxy `RESIDENTIAL`. |

#### Example input

```json
{
  "keywords": ["wireless headphones", "mechanical keyboard"],
  "country": "us",
  "maxItems": 200,
  "skipSponsored": false,
  "proxyConfiguration": { "useApifyProxy": true, "groups": ["RESIDENTIAL"] }
}
```

### Output

One row per product.

```json
{
  "asin": "B0DJRW39KK",
  "title": "Satechi SM3 Mechanical Keyboard, White LED Backlit",
  "url": "https://www.amazon.com/dp/B0DJRW39KK",
  "price": "$119.99",
  "priceValue": 119.99,
  "currency": "$",
  "listPrice": "$149.99",
  "rating": 4.3,
  "reviewsCount": 519,
  "image": "https://m.media-amazon.com/images/I/...jpg",
  "prime": true,
  "sponsored": true,
  "searchKeyword": "mechanical keyboard",
  "page": 1
}
```

### Pricing

Pay-per-event: charged per product returned. A run that is blocked and returns nothing costs nothing.

### Notes & limits

- **Residential proxies are effectively required.** Datacenter IPs get `503`/captcha almost immediately — a property of Amazon, and the reason the proxy default is residential.
- Prices, ratings, and review counts are read from the search grid exactly as Amazon shows them; some listings legitimately have no price or no reviews (returned as `null`).
- This actor reads publicly listed product data. Use the output in accordance with Amazon's Conditions of Use and applicable law in your jurisdiction.

### Running locally (developers)

```
npm install
npm test
```

`src/test-local.js` proves the parser offline against a fixture that mirrors real Amazon card markup, then attempts one live search. Core logic lives in `src/amazon.js` (cheerio-based) with no dependency on the Apify SDK.

***

www.f-keys.com | © 2026 F-Keys Creative LLC

# Actor input Schema

## `keywords` (type: `array`):

What to search for on Amazon, e.g. "wireless headphones", "yoga mat". One search per entry.

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

Two-letter code selecting the Amazon marketplace: us, uk, de, fr, ca, jp, in, au, es, it, mx, br, nl, se.

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

Stop after this many products across all keywords. 0 = no limit.

## `skipSponsored` (type: `boolean`):

Exclude ad/sponsored listings, keeping only organic results.

## `maxPagesPerKeyword` (type: `integer`):

Safety cap on pagination depth per keyword (Amazon shows ~22 products per page).

## `maxRetries` (type: `integer`):

Retries on a blocked/failed page, each on a fresh proxy session.

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

REQUIRED in practice. Amazon returns 503/captcha to datacenter IPs; use Apify Proxy RESIDENTIAL group.

## Actor input object example

```json
{
  "keywords": [
    "wireless headphones",
    "mechanical keyboard"
  ],
  "country": "us",
  "maxItems": 100,
  "skipSponsored": false,
  "maxPagesPerKeyword": 20,
  "maxRetries": 4,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "groups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `products` (type: `string`):

The scraped Amazon products, as JSON dataset items.

# 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 = {
    "keywords": [
        "wireless headphones",
        "mechanical keyboard"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "groups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("f-keys/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 = {
    "keywords": [
        "wireless headphones",
        "mechanical keyboard",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "groups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("f-keys/amazon-product-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 '{
  "keywords": [
    "wireless headphones",
    "mechanical keyboard"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "groups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call f-keys/amazon-product-scraper --silent --output-dataset

```

## MCP server setup

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