# Amazon Product Scraper - Price, Rating & Search (`sumitr_mardy/amazon-product-scraper`) Actor

Amazon product scraper for amazon.com, $1 per 1,000 products: price, list price, rating, ratings count, bought-in-past-month, availability, brand, bullets, images and specs by ASIN or URL, plus search results with sponsored flags. No login.

- **URL**: https://apify.com/sumitr_mardy/amazon-product-scraper.md
- **Developed by:** [Sumitr Mardy](https://apify.com/sumitr_mardy) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Amazon Product Scraper - Price, Rating & Search

Scrape amazon.com products by ASIN or URL, or scrape Amazon search results by keyword. Each product comes back as one flat row: **price, list price, rating, number of ratings, "bought in past month", availability, brand, seller, feature bullets, images and every spec in the details table** (dimensions, weight, model number, date first available, publisher and more). Search rows add the **position** and a **sponsored** flag.

**$1 per 1,000 products.** Invalid lines, missing products and failed pages are free. No login, no cookies, no proxy setup.

### What you get

| Field | Example |
|---|---|
| `asin`, `url`, `title`, `brand` | B0D1XD1ZV3, Apple AirPods Pro 2 ..., Apple |
| `price`, `priceText`, `listPrice`, `currency` | 265.78, "$265.78", 0, USD |
| `rating`, `reviewsCount` | 4.6, 47199 |
| `boughtPastMonth` | "20K+ bought in past month" |
| `availability`, `inStock` | "In Stock", true |
| `seller` | who sells it |
| `bullets`, `images`, `description` | feature bullets, image URLs, description text |
| `modelNumber`, `manufacturer`, `dimensions`, `weight`, `dateFirstAvailable` | pulled out of the details table |
| `specs` | every detail row as `"key": "value"` (32 rows for a standing desk, publisher/pages for a book) |
| `sponsored`, `searchQuery`, `searchPosition` | for search results |
| `status` | `ok`, `not_found`, `failed`, `invalid_input`, `cost_limit_reached` |

Fixed shape: numbers are `0` when unknown, lists are lists, text is `""` when missing.

### How to use it

**By product.** Put ASINs or product URLs in *ASINs or product URLs*:

```
B0D1XD1ZV3
https://www.amazon.com/dp/B01GJOMWVA
https://www.amazon.com/Atomic-Habits/dp/0735211299/ref=sr_1_1
```

**By search.** Put keywords in *Search queries* and set *Max results per search* (about 48 per page). Search rows include price, list price, rating, ratings count, bought-in-past-month, image and sponsored flag. Turn on *Full details for search results* to also open every result for brand, bullets, specs, seller and availability (same price, slower).

Run it on a schedule to track prices and stock of your own products or competitors'.

### Pricing

Pay per event, **$0.001 per product row** ($1 per 1,000), cheaper on higher Apify plans. A product repeated in the input is billed once. `not_found`, `failed`, `invalid_input` rows are free. Apify adds its standard tiny start event per run.

### Status, measured

| | |
|---|---|
| Product pages | 60 of 60 in a row from Apify servers, no proxy, no captcha |
| Mixed run | 4 products + 2 searches x 60 results: 124 rows in 25 s |
| Search with full details | 40 of 40 products with brand, price, bullets, images, seller in 50 s |

### Honest limits

- **amazon.com only.** Other Amazon stores (UK, DE, ...) answered with captchas from Apify servers in testing.
- **No customer reviews text.** Amazon shows reviews only to signed-in visitors; `rating` and `reviewsCount` are included.
- **No Best Sellers Rank or category breadcrumbs**: they are not in the signed-out product page.
- Prices are what a US visitor without an account sees, without coupons or Subscribe & Save.
- Public data only. Use it in line with Amazon's terms and the laws that apply to you.

### Use it from AI agents (MCP)

Hosted, with OAuth sign-in (Claude, Cursor, VS Code and others):

```json
{
    "mcpServers": {
        "amazon-products": {
            "url": "https://mcp.apify.com/?tools=sumitr_mardy/amazon-product-scraper"
        }
    }
}
```

With an API token instead of OAuth:

```json
{
    "mcpServers": {
        "amazon-products": {
            "url": "https://mcp.apify.com/?tools=sumitr_mardy/amazon-product-scraper",
            "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
        }
    }
}
```

Local stdio:

```json
{
    "mcpServers": {
        "amazon-products": {
            "command": "npx",
            "args": ["-y", "@apify/actors-mcp-server", "--actors", "sumitr_mardy/amazon-product-scraper"],
            "env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" }
        }
    }
}
```

### Run it from code

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("sumitr_mardy/amazon-product-scraper").call(run_input={
    "products": ["B0D1XD1ZV3"],
    "searchQueries": ["coffee maker"],
    "maxResultsPerSearch": 48,
})
for p in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(p["asin"], p["price"], p["rating"], p["reviewsCount"], p["title"][:60])
```

cURL (waits for the run and returns the rows):

```bash
curl -X POST "https://api.apify.com/v2/acts/sumitr_mardy~amazon-product-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"products":["B0D1XD1ZV3","B01GJOMWVA"]}'
```

### FAQ

**Why is `price` 0?** The product is currently unavailable or has no buy-box offer; `availability` says which.

**Can I monitor prices daily?** Yes: schedule the same ASIN list; every row carries `scrapedAt`.

**Do I need proxies?** No.

# Actor input Schema

## `products` (type: `array`):

One per line: an ASIN like B0D1XD1ZV3 or an amazon.com product URL. Returns full product details.

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

Keywords to search on amazon.com, e.g. "coffee maker". Returns the result list with price, rating, reviews, bought-in-past-month and sponsored flag.

## `maxResultsPerSearch` (type: `integer`):

Stop each search after this many products (about 48 per page).

## `includeDetails` (type: `boolean`):

Also open each search result for brand, bullets, images, specs, seller and availability. Slower; same price per product.

## Actor input object example

```json
{
  "products": [
    "B0D1XD1ZV3",
    "https://www.amazon.com/dp/B01GJOMWVA"
  ],
  "maxResultsPerSearch": 48,
  "includeDetails": false
}
```

# 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 = {
    "products": [
        "B0D1XD1ZV3",
        "https://www.amazon.com/dp/B01GJOMWVA"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("sumitr_mardy/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 = { "products": [
        "B0D1XD1ZV3",
        "https://www.amazon.com/dp/B01GJOMWVA",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("sumitr_mardy/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 '{
  "products": [
    "B0D1XD1ZV3",
    "https://www.amazon.com/dp/B01GJOMWVA"
  ]
}' |
apify call sumitr_mardy/amazon-product-scraper --silent --output-dataset

```

## MCP server setup

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