# Amazon Product Scraper (Search, Prices, Buy Box, 19 Sites) (`locaihost/amazon-scraper`) Actor

Amazon search results and product pages on 19 marketplaces: every product's price, list price, rating, reviews, badges, and (with details on) the buy box seller, images, variants, best-seller rank and rating histogram. One row per product, plus free price statistics per search.

- **URL**: https://apify.com/locaihost/amazon-scraper.md
- **Developed by:** [locaihost data](https://apify.com/locaihost) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.65 / 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 (Search, Prices, Buy Box, 19 Sites)

Search Amazon like a shopper and get one row per product: price, list price, currency, star rating, review count, badges, sponsored flag. Paste keywords or links from any of the 19 Amazon marketplaces (amazon.com, .co.uk, .de, .fr, .it, .es, .ca, .co.jp, .in, .com.au, .com.mx, .com.br, .nl, .se, .pl, .sg, .ae, .sa, .com.tr) and mix them in one run. Turn on details and every product's own page is read too: buy box seller, availability, category path, best-seller rank, all images, bullet points, variants and the star histogram. Every run also remembers prices, so each row says what the product cost at your last run of the same search. The prefill (US search for wireless headphones, top 20) finishes in well under a minute.

### How do I start?

Paste this into the input (JSON tab) and press Start:

```json
{
    "queries": ["wireless headphones"]
}
```

That reads the current top 20 results for wireless headphones on amazon.com. Want one product in full, plus a German search with more results?

```json
{
    "queries": ["https://www.amazon.com/dp/B0BS1QCFHX", "https://www.amazon.de/s?k=kopfhörer"],
    "maxProductsPerSearch": 50,
    "includeDetails": true
}
```

A pasted link carries its own marketplace, so German, Japanese and US searches work in the same run. A product link (`/dp/ASIN`) or a bare ASIN is always read in full, whatever the detail switch says, and charged as a detailed row.

### What does it return?

One row per product per search, always the same shape:

| Field | What it holds |
|---|---|
| `marketplace`, `query`, `position` | Which search the row came from: marketplace (US, UK, DE, ...), the keywords as given, and the 1-based position in the results (`null` for a product link) |
| `asin`, `title`, `url` | Amazon product id, product title, canonical product link on that marketplace |
| `price`, `currency`, `listPrice` | Current price as a number, its ISO currency code (USD, EUR, SGD, ...), and the struck-through list price when the page shows one |
| `rating`, `reviewCount` | Star rating 0 to 5 and the number of ratings |
| `boughtPastMonth`, `boughtPastMonthMin` | Amazon's own "bought in past month" line as shown ("10K+") and as a number (10000); `null` when Amazon does not show it |
| `isPrime`, `isSponsored` | Prime mark on the page, and whether the card is a sponsored placement |
| `badges` | Card badges such as Overall Pick or Amazon's Choice, as a list |
| `brand` | Brand from the product page when details are on, else from the card when Amazon shows one |
| `images` | The card thumbnail, or with details on every high-resolution product image |
| `seller`, `sellerId` | Buy box seller ("Sold by") and its Amazon seller id (details on) |
| `availability` | Buy box availability line, e.g. In Stock (details on) |
| `categoryPath` | Breadcrumb category path, broadest first (details on) |
| `bsr` | Best Sellers Rank entries with `rank` and `category`, in the page's order (details on) |
| `bullets` | About-this-item bullet points (details on) |
| `variants` | Product variations from the page's own picker, each with `asin` and `name` (details on) |
| `ratingHistogram` | Star histogram, 5 stars down to 1, each with `stars` and `percent` (details on) |
| `detail`, `detailStatus` | `full` when the product page was read, `search-card` from the results page only; `ok`, or `missing` when a product page could not be read |
| `previousPrice`, `priceChange`, `newProduct` | This product in this search at your last run: its price then, the move since (positive is up), and whether it is new to the search |
| `id`, `type`, `scrapedAt` | Stable row id, `product`, and the ISO timestamp of the read |

Example product row (details off):

```json
{
    "type": "product",
    "marketplace": "US",
    "query": "wireless headphones",
    "position": 1,
    "asin": "B09LYF2ST7",
    "title": "BERIBES Bluetooth Headphones Over Ear, 65H Playtime",
    "url": "https://www.amazon.com/dp/B09LYF2ST7",
    "price": 25.7,
    "currency": "USD",
    "listPrice": 37.34,
    "rating": 4.5,
    "reviewCount": 49334,
    "boughtPastMonth": "10K+",
    "boughtPastMonthMin": 10000,
    "isSponsored": true,
    "isPrime": false,
    "badges": [],
    "detail": "search-card",
    "previousPrice": 30,
    "priceChange": -4.3,
    "newProduct": false,
    "scrapedAt": "2026-11-14T15:00:00.000Z"
}
```

### What do the free rows give me?

Nothing in the summary rows is ever charged. Each search adds one free statistics row: `level` `search`, `status`, `reason` when something needs saying, `results` and `returned` counts, `totalResults` as Amazon states it, `priceMin`, `priceMedian` and `priceMax` of the products that came back, the `topBrands` with counts, `detailFailures`, and `filteredOut` (results your filters left out). A search that could not be read or came back empty gets a free row saying exactly why, and the run ends with one free run summary: `searchesTotal`, `searchesRead`, `searchesBlocked`, `searchesEmpty`, `products`, `detailPagesRead`, `newProducts` and `skippedAsSeen`.

### What makes it different?

- **Price change since your last run.** The Actor remembers every search's prices between runs, so each row carries `previousPrice`, `priceChange` and `newProduct`. A daily schedule turns any search into a price tracker with no spreadsheet.
- **Only changed rows.** Turn on **Only changed rows** and each run returns just the products that are new to the search or whose price moved. Everything else is skipped and not charged.
- **19 marketplaces, one schema.** Every Amazon site this side reads, from amazon.com to amazon.com.tr, in one dataset with one shape, so mixed-marketplace runs sort and filter cleanly.
- **Prices in every format Amazon uses.** `$1,299.00`, `€1.234,56`, `3,99 €`, `¥2,580`, `S$113.34`, `349,00 kr` and `1.299,00 TL` all become numbers with the right currency code.
- **Free statistics per search.** Result counts, total on Amazon, price minimum, median and maximum, and the brands that came back most: free, every run, for every search.
- **A blocked search never sinks a run.** When Amazon shows its check page, the search is retried on a fresh session and then reported in a free blocked row; the other searches carry on.

### How much does it cost?

You pay per product row, and each row is charged once, at one of three prices:

| Row | Per 1,000 rows (Free and Starter plans) | When |
|---|---|---|
| Product | $3.00 | Read from the search results page (details off) |
| Product with details, amazon.com or amazon.ca | $5.00 | The product's own page was read too |
| Product with details, other marketplaces | $10.00 | The product's own page was read on any other marketplace. Those pages only open over connections from the marketplace's own country, which cost us several times more |

Scale plans pay 0.75 of these prices and Business plans 0.55. A detailed row is charged instead of the plain one, never on top of it. Each product is returned and charged once per run, even when several of your searches find it. Summary rows are never charged, and a search that could not be read or came back empty costs nothing.

The default input (20 products, details off) costs about $0.06.

**Free Apify plan:** up to 100 product rows and 40 Amazon pages per run. Any paid Apify plan removes both limits.

### Which inputs can I use?

| Input | What it does |
|---|---|
| `queries` | Keywords (wireless headphones), Amazon search links from any of the 19 marketplaces (filters in the link are kept), department or category links (`/s?i=...`, `/s?rh=n:...`, `/s?node=...`), or products as links (`/dp/ASIN`) or bare ASINs (both read in full). Keywords and bare ASINs use the marketplace you pick. |
| `marketplace` | US (default), UK, DE, FR, IT, ES, CA, JP, IN, AU, MX, BR, NL, SE, PL, SG, AE, SA or TR. Links carry their own and ignore this. |
| `sort` | Featured (default), price low to high, price high to low, customer rating, newest, or best sellers. Applies to keywords; links keep their own sort. |
| `maxProductsPerSearch` | Products per search, 1 to 200 (about 22 come on one result page). Default 20. |
| `includeDetails` | Also read each product's own page: buy box seller, availability, brand, category path, best-seller rank, all images, bullets, variants, rating histogram. Costs one more page per product. |
| `onlyPriceChanges` | Return a product row only when it is new to the search or its price moved since the last run. Price history works even with this off. |

Filters for API callers: `minPrice` and `maxPrice` (in the marketplace's currency), `minRating` (stars), `excludeSponsored` and `primeOnly`. Results a filter leaves out are not returned or charged, and the search reads further pages to fill your count.

Input names from other Amazon tools work too, so a saved input runs unchanged: `searchTerms`, `startUrls`, `searchQueries`, `urls` or `categoryOrProductUrls` for `queries`; `maxItems`, `maxResults` or `count` for `maxProductsPerSearch`; `country`, `domain` or `website` for `marketplace`; `deepScrape` or `enrichDetails` for `includeDetails`; `sortBy` for `sort`.

### How do I track prices over time?

1. Save your input as a task with your searches.
2. Add a schedule to the task (daily is enough for prices).
3. Each run compares against the last run of the same search: `previousPrice`, `priceChange` and `newProduct` do the tracking, and with `onlyPriceChanges` on, you pay only for what moved.

### What happens when something goes wrong?

- Bad input (no keywords, an unknown marketplace, a link that is not an Amazon search or product page) ends the run with a message and charges nothing.
- A search Amazon refuses gets a free blocked row; the run carries on and the status message says what happened.
- An empty search is real data: a free empty row, never a failure.
- With details on, a product page that cannot be read does not lose the row: it comes back from the search card at the plain Product price, with `detailStatus` saying `missing`.
- If the run's time limit or the free-plan page limit is near, it stops early, saves everything and says which searches were not finished.

### Can I call it from an agent or my own code?

Yes. It works through the Apify API, the Apify MCP server and the Apify client libraries, with the same input as above. The default prefill returns in well under a minute. People also run it from their own agents and feed the rows into a language model, which works the same as any other caller.

### Is it legal to collect Amazon product data?

The Actor reads the search and product pages anyone can see in a browser without signing in, one marketplace at a time, and only product data: no reviews text and no reviewer names. You are responsible for how you use the data, including Amazon's own terms and the laws that apply to you.

### Questions or problems?

Open an issue on the Issues tab and we will answer within a day. If the Actor helped, a rating on the Store helps other people find it.

# Changelog

This Actor's version history is a separate document: https://apify.com/locaihost/amazon-scraper/changelog.md

# Actor input Schema

## `queries` (type: `array`):

Keywords (wireless headphones), Amazon search links from any of the 19 supported marketplaces (filters in the link are kept), or product links (/dp/ASIN, read in full). Keywords use the marketplace picked below.

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

Which Amazon site to search when you give keywords. Links carry their own marketplace and ignore this.

## `sort` (type: `string`):

The order Amazon lists the results in, for keywords. Links keep their own sort.

## `maxProductsPerSearch` (type: `integer`):

Products returned per search, 1 to 200 (about 22 come on one result page).

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

Also read each product's own page: buy box seller, availability, brand, category path, best-seller rank, all images, bullets, variants and the rating histogram. Costs one more page per product.

## `onlyPriceChanges` (type: `boolean`):

Return a product row only when it is new to the search or its price moved since the last run. Everything else is skipped and not charged. Price history works even with this off.

## `minPrice` (type: `number`):

Only products at or above this price, in the marketplace's currency. Products without a price are left out.

## `maxPrice` (type: `number`):

Only products at or below this price, in the marketplace's currency. Products without a price are left out.

## `minRating` (type: `number`):

Only products rated at least this many stars (0 to 5). Products without a rating are left out.

## `excludeSponsored` (type: `boolean`):

Skip sponsored placements; they are not returned or charged.

## `primeOnly` (type: `boolean`):

Only products with the Prime mark on the results page.

## Actor input object example

```json
{
  "queries": [
    "wireless headphones",
    "https://www.amazon.de/s?k=kopfhörer",
    "https://www.amazon.com/dp/B0BS1QCFHX"
  ],
  "marketplace": "US",
  "sort": "relevance",
  "maxProductsPerSearch": 20,
  "includeDetails": false,
  "onlyPriceChanges": false,
  "excludeSponsored": false,
  "primeOnly": false
}
```

# Actor output Schema

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

One row per product: price, list price, currency, rating, reviews, badges, sponsored and Prime flags.

## `details` (type: `string`):

The same rows with the product-page columns in front: seller, availability, category path, best-seller rank, images, variants, rating histogram.

## `summaries` (type: `string`):

One free row per search with result counts, price min/median/max and top brands, one free row per search that could not be read, and one free run summary.

## `summary` (type: `string`):

Searches read, products returned, new products, price-change skips and cost.

# 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 = {
    "queries": [
        "wireless headphones"
    ]
};

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

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

```

## MCP server setup

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