# Amazon Product Detail Scraper (`axlymxp/amazon-product-detail-scraper`) Actor

Scrape Amazon products by ASIN, URL or keyword — price, list price, savings, rating with full star histogram, images, brand & specs. Clean JSON from Amazon's own product API across 17 marketplaces. No login. Pay only for results.

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

## Pricing

from $2.00 / 1,000 dataset items

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?

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

**Turn ASINs, product URLs, or keywords into clean, structured Amazon product data** — the exact fields buyers need for price monitoring, catalog enrichment, market research, and AI pipelines. Data comes straight from Amazon's own product API, so you get consistent JSON (including the full star-by-star rating breakdown) instead of brittle HTML scraping. No Amazon account, no API key.

### Who it's for

- **E-commerce & retail analysts** tracking prices, discounts, and availability.
- **Brands & sellers** monitoring their own and competitors' listings.
- **Catalog / PIM teams** enriching product databases from a list of ASINs.
- **Data & AI teams** feeding structured product data into models and agents.

### What you get (output fields)

| Field | Description |
|---|---|
| `asin` | Amazon product identifier |
| `title` | Product title |
| `brand` / `brand_url` | Brand name and its Amazon store URL |
| `price` | Current price to pay (numeric) |
| `list_price` | Strikethrough / list price (numeric) |
| `savings_amount` / `savings_percent` | Discount amount and percentage |
| `currency` | ISO currency code for the marketplace |
| `availability` | Stock message (e.g. "In Stock") |
| `rating` / `rating_display` | Average star rating (numeric + display) |
| `ratings_count` | Total number of ratings |
| `rating_histogram` | **% of reviews per star (5→1)** — sentiment distribution most scrapers omit |
| `product_type` / `category_id` / `sub_category_id` | Amazon category taxonomy |
| `images` / `main_image` | Full-resolution product image URLs |
| `overview` | Key product attributes (brand, color, material, specs…) |
| `marketplace` / `url` | Marketplace code and canonical product URL |

### Three ways to input

1. **ASINs** — the fastest path; enriched directly in batches of 30.
2. **Product URLs** — paste `/dp/…` links; the ASIN is extracted automatically.
3. **Search keywords** — no ASINs yet? Search Amazon and enrich the top matches.

Mix all three in one run. Choose any of **17 marketplaces** (US, UK, DE, FR, ES, IT, CA, JP, IN, AU, MX, BR, NL, SE, PL, AE, SG).

### Example input

```json
{
  "asins": ["B004YAVF8I", "B0CHX3QBCH"],
  "searchQueries": ["wireless mouse"],
  "maxItemsPerSearch": 20,
  "marketplace": "US",
  "maxItems": 1000
}
```

### Example output (one row)

```json
{
  "asin": "B004YAVF8I",
  "title": "Logitech M185 Compact Ambidextrous 2.4 GHz Wireless Mouse - Swift Grey",
  "brand": "Logitech",
  "price": 14.9,
  "list_price": 17.99,
  "savings_amount": 3.09,
  "savings_percent": "17%",
  "currency": "USD",
  "availability": "In Stock",
  "rating": 4.4,
  "ratings_count": 45106,
  "rating_histogram": { "5": 76, "4": 11, "3": 5, "2": 1, "1": 7 },
  "product_type": "INPUT_MOUSE",
  "images": ["https://m.media-amazon.com/images/I/51WN5aXZWIL.jpg"],
  "overview": { "Brand": "Logitech", "Color": "Swift Grey", "Connectivity Technology": "USB" },
  "marketplace": "US",
  "url": "https://www.amazon.com/dp/B004YAVF8I"
}
```

### Scheduling & webhooks

Run it on a **schedule** (e.g. daily price checks) from the Apify Console, and wire a **webhook** to push new datasets straight into your database, Google Sheets, or Slack when a run finishes.

### Use it from AI assistants (MCP)

The actor's dataset is standard JSON, so it plugs into AI/agent workflows and the Apify MCP server — hand an agent a list of ASINs and get structured product facts back for RAG, comparison, or monitoring.

### FAQ

**Do I need an Amazon account or API key?** No. The actor calls Amazon's own product API anonymously.

**How fresh is the data?** Every run fetches live data at request time.

**Which marketplaces are supported?** 17: US, UK, CA, DE, FR, ES, IT, JP, IN, AU, MX, BR, NL, SE, PL, AE, SG.

**Can I get full review text?** This actor returns the aggregate rating and the star-by-star histogram, not individual review text (Amazon gates full review listings behind login). The histogram is ideal for sentiment overviews.

**Why might a field be null?** Some products omit a list price, savings, or specs; those fields are `null` rather than guessed.

**Is scraping this legal?** The actor collects publicly available product data. You are responsible for using the data in line with Amazon's terms and applicable law.

**How reliable is it?** It uses Amazon's structured API rather than HTML parsing, so output is stable across page-layout changes.

# Actor input Schema

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

Amazon ASINs to scrape (e.g. B004YAVF8I). The fastest, most reliable input — enriched directly via Amazon's product API in batches of 30.

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

Amazon product page URLs (/dp/… or /gp/product/…). The ASIN is extracted from each URL.

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

Keywords to search on Amazon; the top matching products are discovered and enriched. Use this when you don't already have ASINs.

## `maxItemsPerSearch` (type: `integer`):

How many products to collect from each search keyword before enriching.

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

Amazon marketplace to query. Prices, availability and currency are marketplace-specific.

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

Hard cap on the total number of product rows across all inputs.

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

Proxy settings. Datacenter Apify Proxy is enough for this actor and is enabled by default; you can disable it or supply your own.

## Actor input object example

```json
{
  "asins": [
    "B004YAVF8I"
  ],
  "productUrls": [
    {
      "url": "https://www.amazon.com/dp/B004YAVF8I"
    }
  ],
  "searchQueries": [
    "wireless mouse"
  ],
  "maxItemsPerSearch": 20,
  "marketplace": "US",
  "maxItems": 1000,
  "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 = {
    "asins": [
        "B004YAVF8I",
        "B0CHX3QBCH"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("axlymxp/amazon-product-detail-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": [
        "B004YAVF8I",
        "B0CHX3QBCH",
    ] }

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

```

## MCP server setup

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