# Amazon Product Scraper — ASIN, URL or Keyword (`leanfetch/amazon-product-scraper`) Actor

Scrape Amazon products from plain ASINs, product URLs or search keywords. Price, list price, rating, reviews, Best Sellers Rank, availability, seller, images, variants and specs across 21 marketplaces. Blocked pages and products that no longer exist are never charged.

- **URL**: https://apify.com/leanfetch/amazon-product-scraper.md
- **Developed by:** [Jürgen Archan](https://apify.com/leanfetch) (community)
- **Categories:** E-commerce, Developer tools
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 product scrapeds

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 — ASIN, URL or Keyword

Give it **plain ASINs**, product URLs or search keywords. Get back one clean row per product: price, list price, discount, rating, review count, **Best Sellers Rank**, availability, seller, Prime status, images, variants and the full specs table.

Works on **21 Amazon marketplaces** — US, UK, DE, FR, IT, ES, NL, SE, PL, BE, IE, CA, MX, BR, TR, AE, SA, IN, JP, AU, SG.

### Why this one

| | This Actor | Typical alternative |
|---|---|---|
| **ASIN, URL and keyword in one Actor** | All three, mixed in a single run | Usually split across separate Actors |
| **Best Sellers Rank** | Always included, in five languages | Often dropped after a captcha |
| **Blocked or missing products** | Never charged | Commonly billed as a result |
| **Delivery location** | Included in the base price | Commonly an add-on fee per result |
| **Residential proxy cost** | Charged only when Amazon forces it | Baked into every result |
| **Input fields** | 10 | 39 |

### Input

```json
{
  "asins": ["B0CHX1W1XY", "B08N5WRWNW"],
  "marketplace": "DE"
}
```

Or by keyword:

```json
{
  "searchKeywords": ["coffee grinder", "milk frother"],
  "marketplace": "UK",
  "maxResultsPerKeyword": 100
}
```

Or mixed marketplaces by URL:

```json
{
  "productUrls": [
    { "url": "https://www.amazon.com/dp/B0CHX1W1XY" },
    { "url": "https://www.amazon.co.jp/dp/B08N5WRWNW" }
  ]
}
```

| Field | What it does |
|---|---|
| `asins` | Bare ASINs or ISBNs. No URL building. |
| `productUrls` | Full product URLs. Marketplace is read from each URL. |
| `searchKeywords` | Search terms; result pages are walked and paginated. |
| `marketplace` | Which Amazon site to use for ASINs and keywords. Default `US`. |
| `language` | Optional page-language override, e.g. `en_GB` on amazon.de. |
| `maxResultsPerKeyword` | Products per search term. Default 50. |
| `maxItems` | Hard cap for the whole run. `0` = no cap. |
| `searchResultsOnly` | Return search-page rows only. Much cheaper, far less detail. |
| `proxyStrategy` | `AUTO` (datacenter first, escalate on block) or `RESIDENTIAL_ONLY`. |
| `maxConcurrency` | Parallel requests. Default 10. |

### Output

```json
{
  "asin": "B0CHX1W1XY",
  "url": "https://www.amazon.com/dp/B0CHX1W1XY",
  "marketplace": "US",
  "title": "Acme Widget Pro 3000, Stainless Steel, 2-Pack",
  "brand": "Acme",
  "price": 49.99,
  "currency": "USD",
  "listPrice": 79.99,
  "discountPercent": 37.5,
  "inStock": true,
  "availability": "In Stock",
  "rating": 4.6,
  "reviewCount": 12483,
  "bestSellersRank": [
    { "rank": 1234, "category": "Home & Kitchen" },
    { "rank": 17, "category": "Kitchen Gadgets" }
  ],
  "breadcrumbs": ["Home & Kitchen", "Kitchen Gadgets"],
  "features": ["Durable stainless steel construction", "Dishwasher safe"],
  "soldBy": "Acme Direct",
  "shipsFrom": "Amazon.com",
  "isPrime": true,
  "images": ["https://m.media-amazon.com/images/I/71abc.jpg"],
  "variants": [{ "asin": "B0CHX1W1XZ", "label": "Black" }],
  "attributes": { "Item Weight": "1.2 pounds" },
  "resultType": "product",
  "scrapedAt": "2026-08-26T11:00:00.000Z"
}
```

Prices are returned as numbers in the marketplace currency, whatever the local format — `1.234,56 €` and `$1,234.56` both come back as `1234.56`. Image URLs point at the full-resolution file, not the thumbnail.

Requests that fail after all retries are written as `{ "resultType": "error", "asin": …, "error": … }` so a partial run is still usable and you can see exactly what is missing.

### Pricing

Pay per event:

- **Product scraped** — one charge per delivered product.
- **Residential fetch** — a surcharge, charged **only** for products Amazon forced onto residential IPs. With `proxyStrategy: AUTO` most runs pay this rarely or not at all.

Blocked pages, captchas and products that are not found are **never charged**.

### Good to know

- Amazon caps keyword searches at roughly 7 pages. For deeper coverage, use a category URL with filters, or split the keyword.
- `searchResultsOnly: true` is the cheap mode for building an ASIN list first; run the detail pass afterwards on the ASINs you actually want.
- Every run writes a `RUN_STATS` record to the key-value store with traffic, block count and proxy escalations.

### Typical uses

Price and stock monitoring · competitor and BSR tracking · catalogue enrichment from an ASIN list · product research before sourcing · matching your own catalogue against Amazon listings.

# Actor input Schema

## `asins` (type: `array`):

Plain ASINs, one per line — no URL building needed. Example: B0CHX1W1XY

## `productUrls` (type: `array`):

Full Amazon product URLs. The marketplace is taken from each URL, so you can mix countries here.

## `searchKeywords` (type: `array`):

Search terms. The Actor walks the result pages and scrapes each product it finds.

## `marketplace` (type: `string`):

Which Amazon site to use for ASINs and keywords. Product URLs keep their own marketplace.

## `language` (type: `string`):

Optional. Forces the page language, e.g. en\_GB on amazon.de. Leave empty for the marketplace default.

## `maxResultsPerKeyword` (type: `integer`):

How many products to take from each search term before moving on.

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

Hard cap across the whole run. 0 means no cap.

## `searchResultsOnly` (type: `boolean`):

Return the fields visible on the search page instead of opening every product. Much cheaper, but no Best Sellers Rank, specs or seller.

## `proxyStrategy` (type: `string`):

AUTO starts on datacenter IPs and switches a request to residential only when Amazon blocks it — this keeps your bill down. Choose RESIDENTIAL\_ONLY for maximum success rate on hard categories.

## `maxConcurrency` (type: `integer`):

Parallel requests. Lower it if you see a lot of blocks.

## `datacenterAttempts` (type: `integer`):

How many times a request is retried on cheap datacenter IPs before it escalates to residential. Higher means cheaper but slower; 0 escalates immediately.

## Actor input object example

```json
{
  "asins": [
    "B0CHX1W1XY"
  ],
  "marketplace": "US",
  "maxResultsPerKeyword": 50,
  "maxItems": 0,
  "searchResultsOnly": false,
  "proxyStrategy": "AUTO",
  "maxConcurrency": 10,
  "datacenterAttempts": 3
}
```

# Actor output Schema

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

All scraped products with price, list price, rating, review count, Best Sellers Rank, availability, seller, images, variants and specs.

## `runStats` (type: `string`):

Traffic, block count, proxy escalations and residential cost for this 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 = {
    "asins": [
        "B0CHX1W1XY"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("leanfetch/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 = { "asins": ["B0CHX1W1XY"] }

# Run the Actor and wait for it to finish
run = client.actor("leanfetch/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 '{
  "asins": [
    "B0CHX1W1XY"
  ]
}' |
apify call leanfetch/amazon-product-scraper --silent --output-dataset

```

## MCP server setup

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