# Amazon Product & Price Scraper (`morgan-studio/amazon-product-price-scraper`) Actor

Get Amazon product data by ASIN, URL, or keyword search: price, list price, rating, review count, bestseller rank, images, and stock.

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

## Pricing

from $4.00 / 1,000 product records

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 & Price Scraper

### What it does

This actor collects product and price data from Amazon. Give it ASINs, product URLs, or search keywords. For each product it returns the title, brand, current price, list price, discount, stock status, star rating, review count, bestseller ranks, images, feature bullets, category path, and variant ASINs. For each keyword search it returns the hits in page order, with price, rating, review count, and whether the hit is sponsored. It reads the public product and search pages over plain HTTP, without a browser, and it does not sign in.

### What it returns

Each product becomes one record in the dataset. Anything that is not on the page is `null`; no key is ever missing.

| Field | Type | Notes |
|---|---|---|
| `recordType` | string | `product` |
| `asin` | string | Amazon product ID |
| `url` | string | Product page URL |
| `marketplace` | string | Domain suffix, for example `com` |
| `title` | string | Product title |
| `brand` | string | Brand or store name; the author for books |
| `price` | number | Price to pay |
| `currency` | string | `USD`, `GBP`, `EUR`, `CAD`, or `AUD` |
| `listPrice` | number | "List" or "Typical" price, only when it is above `price` |
| `savingsPercent` | number | Discount from `listPrice` to `price` |
| `availability` | string | Stock message as shown, for example "In Stock" |
| `inStock` | boolean | `true` when the product can be added to the cart |
| `rating` | number | Average stars, out of 5 |
| `reviewCount` | number | Number of ratings |
| `bestsellerRanks` | array | `[{ rank, category }]`, top-level category first |
| `images` | array | Full-size image URLs |
| `mainImage` | string | Main image URL |
| `bullets` | array | "About this item" bullet points |
| `categoryPath` | array | Breadcrumb categories |
| `variantAsins` | array | ASINs of other sizes and colors |
| `fetchedAt` | string | ISO timestamp |
| `fetchStatus` | string | `ok`, `not-found`, `blocked`, or `error` |
| `error` | string | Why a fetch failed, otherwise `null` |

Example product record (arrays shortened):

```json
{
  "recordType": "product",
  "asin": "B09W2SPRDG",
  "url": "https://www.amazon.com/dp/B09W2SPRDG",
  "marketplace": "com",
  "title": "Super Fast Charger Type C, 25W USB C Wall Charger Fast Charging 10FT Cable",
  "brand": "Vilive",
  "price": 16.99,
  "currency": "USD",
  "listPrice": 18.99,
  "savingsPercent": 11,
  "availability": "In Stock",
  "inStock": true,
  "rating": 4.6,
  "reviewCount": 22732,
  "bestsellerRanks": [
    { "rank": 128, "category": "Cell Phones & Accessories" },
    { "rank": 16, "category": "Cell Phone Wall Chargers" }
  ],
  "images": ["https://m.media-amazon.com/images/I/61bzII2gzKL._AC_SL1500_.jpg"],
  "mainImage": "https://m.media-amazon.com/images/I/61bzII2gzKL._AC_SL1500_.jpg",
  "bullets": ["Small & Powerful: With 25W charging power but smaller size..."],
  "categoryPath": ["Cell Phones & Accessories", "Accessories", "Chargers & Power Adapters", "Wall Chargers"],
  "variantAsins": ["B0DG5MKSFT", "B0H7X6WQ5Z", "B0BZD7LL6Q"],
  "fetchedAt": "2026-09-24T04:14:26.352Z",
  "fetchStatus": "ok",
  "error": null
}
```

Each search hit becomes one shorter record with `recordType: "search-result"` and these fields: `searchTerm`, `position`, `asin`, `title`, `price`, `currency`, `rating`, `reviewCount`, `url`, `sponsored`, `marketplace`, `fetchedAt`, `fetchStatus`, `error`.

The Output tab has two views: Overview (products) and Search results.

### Input

- **ASINs**: a list of Amazon product IDs.
- **Product URLs**: Amazon product page URLs. The actor reads the ASIN from the URL.
- **Search terms**: keywords to search.
- **Max results per search**: stop each search after this many hits (default 20, up to 200).
- **Fetch product details for search hits**: off writes one short record per hit; on also fetches each hit's product page as a full product record.
- **Marketplace**: the Amazon domain (default `com`).
- **Max concurrency**: pages fetched at once (default 4, up to 10).
- **Proxy configuration**: optional. Leave it empty and product pages go without a proxy while search pages use Apify residential proxy in the marketplace's country. If you set a proxy, every request uses it.

Example input:

```json
{
  "asins": ["B09W2SPRDG", "B08XMJN44P"],
  "searchTerms": ["silicone spatula set"],
  "maxResultsPerSearch": 20
}
```

### Pricing

You pay per record. There is no separate charge for Apify platform usage; it is included in the record price.

| Event | Price |
|---|---|
| Product record (`fetchStatus: "ok"`) | $0.004 |
| Search result record (`fetchStatus: "ok"`) | $0.001 |
| Actor start | $0.00005 per run |

Only records that came back with data are charged. Failed records (`not-found`, `blocked`, `error`) are free. They are still written to the dataset so you can see what failed.

If `fetchDetailsForSearchResults` is on, each product page fetched for a search hit is charged as a product record, in addition to its search result record.

You can cap a run's total charge in the run options (maximum cost per run). When the cap is reached, the actor stops starting new fetches and the run ends.

### Limits

- amazon.com is verified. The other marketplaces use the same page structure and should mostly work, but they have not been tested in this version.
- No reviews. Amazon's review pages require sign-in, and this actor does not sign in.
- No content behind a sign-in, such as some seller or account pages.
- Search pages go through Apify residential proxy, so large search runs are slower than product runs.
- Prices are what a signed-out visitor in the proxy's country sees. Delivery location, Prime, and coupons can change the price a signed-in shopper sees.
- Amazon changes its page layouts from time to time. Fields that stop filling show up as `null`, not as a failed run.

### How failures are reported

Every input ASIN and every search page produces at least one record, so nothing is dropped silently. Each record has a `fetchStatus`:

- `ok`: the page was read.
- `not-found`: Amazon has no page for this ASIN. Not retried.
- `blocked`: Amazon returned a block or error page three times, each on a fresh session.
- `error`: the connection failed three times, or the page could not be parsed.

The `error` field says what happened. The run log ends with a summary line: requests, ok, walls cleared, retries, failed, elapsed time, and usage.

### Changelog

- **0.1** (2026-09-24): Pay per record. Product record $0.004, search result record $0.001, failed records free.
- **0.1.0** (2026-09-23): First release. Products by ASIN or URL, keyword search. Free to run.

# Actor input Schema

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

Amazon product IDs (10 characters, for example B09W2SPRDG). One product record per ASIN.

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

Amazon product page URLs. The ASIN is read from the URL (/dp/, /gp/product/). Other URL parts are ignored.

## `searchTerms` (type: `array`):

Keywords to search on Amazon. Each hit becomes a search-result record with position, price, rating, and a sponsored flag.

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

Stop each search after this many hits. Amazon shows about 20 to 60 hits per page, so higher numbers fetch more pages.

## `fetchDetailsForSearchResults` (type: `boolean`):

Off: one short record per search hit. On: also fetch each hit's product page and write a full product record (charged as a product record).

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

Amazon domain suffix. Only amazon.com is verified in this version; the others are best-effort.

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

How many pages to fetch at once. Keep it low to stay polite; 4 is a good default.

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

Leave empty for the default: product pages go without a proxy, search pages go through Apify residential proxy in the marketplace's country. If you set a proxy here, it is used for every request.

## Actor input object example

```json
{
  "asins": [
    "B09W2SPRDG",
    "B08XMJN44P"
  ],
  "productUrls": [
    "https://www.amazon.com/dp/B09XDHNQKS"
  ],
  "searchTerms": [
    "silicone spatula set"
  ],
  "maxResultsPerSearch": 20,
  "fetchDetailsForSearchResults": false,
  "marketplace": "com",
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

One record per ASIN with price, rating, bestseller rank, images, and fetchStatus.

## `searchResults` (type: `string`):

One record per search hit with position, price, rating, and a sponsored flag.

## `allRecords` (type: `string`):

Every record in the dataset, all fields.

# 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": [
        "B09W2SPRDG",
        "B08XMJN44P"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("morgan-studio/amazon-product-price-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": [
        "B09W2SPRDG",
        "B08XMJN44P",
    ] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,morgan-studio/amazon-product-price-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/TrJqbVMxvmhwbmOCO/builds/i6eHDAMKlr5xZFiQN/openapi.json
