# Amazon Search Scraper (`datahamster/amazon-search-scraper`) Actor

Amazon search scraper: keywords or search URLs on 8 Amazon marketplaces with sort and price filters. Organic rank, ASIN, price, list price, rating, exact review count, badges, bought past month, sponsored flag. Monitor mode alerts on rank and price changes.

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

## Pricing

from $0.80 / 1,000 result items

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Search Scraper

Search Amazon by keyword and get one row per product with its **organic rank** in that search, ASIN, title, price and list price in the marketplace currency, rating, exact review count, Best Seller and Amazon's Choice badges, the "bought in past month" line, Prime and delivery text, and a sponsored flag. Eight marketplaces, Amazon's own sort and price filters, many keywords per run. Monitor mode turns the same keywords into a daily rank and price tracker.

**Try it:** the prefilled example returns 16 rows in about 7 seconds and costs about $0.019. Results cost $1.00 per 1,000.

All-in cost: the $0.019 above is $0.016 for 16 results plus $0.0027 of platform usage, almost all of it the residential proxy ($0.0023). Platform usage adds about $0.11 to $0.17 per 1,000 rows on top of the result price (measured 2026-11-05 on .com and .de).

Coverage: amazon.com, .co.uk, .de, .it, .es, .ca, .in and .co.jp. Amazon.fr and amazon.com.au answered every request from the platform with a bot challenge on 2026-11-05, so they are not offered. Amazon itself stops at page 20 of a search, and it shows 16 organic products per page for some searches and 48 for others.

### Why this one

Compared with the most-used Amazon search actor in the Store (igolaizola/amazon-search, checked 2026-11-05: its input is one search URL and a max item count, its README lists title, ASIN, price, image and URL):

- **Organic rank per keyword.** Every row has `position`, the product's place among the organic results of that search (1 = top), counted across pages and never counting ads. That is what you need for keyword rank tracking; the leader returns no rank.
- **Rank and price alerts.** In monitor mode a run returns only products that entered the search, changed `price`, or moved at least `rankChangeThreshold` places (default 5) since the last reported position, and can post them to a webhook or Telegram. The leader has no monitor mode. Measured on 2026-11-05 with the default threshold: a baseline run recorded 30 `wireless earbuds` results on .com (2 pages), and the next run returned 12 rows: 5 new products and 7 that moved 5 or more places (for example from 18 to 10). Without the threshold the same kind of re-run returned 26 rows.
- **Sponsored products flagged or filtered.** Organic results only by default; `includeSponsored` adds the ads with `isSponsored: true`. Measured: `usb c cable` and `ssd` on .de, 2 pages each, returned 62 organic rows and 17 flagged ads. The leader's output lists no sponsored field.
- **Many keywords, eight marketplaces, Amazon's filters.** `keywords` takes a list; `marketplace`, `sort`, `minPrice` and `maxPrice` are plain inputs, and a pasted search URL keeps any filter you clicked. The leader takes one URL per run.
- **More fields per row.** Rating, exact review count (read from the "41,399 ratings" label, where the card shows "(41.3K)"), list price, badge, "bought in past month", Prime and delivery text.

### What you get

One row per product: `id` (`<marketplace>:<ASIN>`), `asin`, `url`, `marketplace`, `query`, `searchUrl`, `searchId`, `position`, `page`, `pagePosition`, `isSponsored`, `title`, `brand`, `price`, `listPrice`, `priceText`, `currency`, `rating`, `reviewsCount`, `isPrime`, `badge`, `badgeType`, `boughtPastMonth`, `delivery`, `imageUrl`, `scrapedAt`.

Sample rows from the smoke runs of 2026-11-05 (`wireless earbuds` on .com, then `ssd` and `usb c cable` on .de with `includeSponsored`):

| `position` | `title` | `price` | `rating` | `reviewsCount` | `badge` |
|---|---|---|---|---|---|
| 1 | JBL Vibe Beam - True Wireless Earbuds - Black | 29.95 USD | 4.2 | 41400 | Overall Pick |
| 2 | Wireless Earbuds, Bluetooth 6.0 Headphones HiFi  | 19.99 USD | 4.8 | 148 |  |
| 3 | Apple AirPods Pro 3 Wireless Earbuds with Active | 199 USD | 4.4 | 17512 | Best Seller in Earbud & In-Ear Headphones |
| 1 | Samsung SSD 990, Internal M.2 NVMe SSD Hard Driv | 174.99 EUR | 4.4 | 135 | Amazon's Choice |
| ad | USB C Cable 2m USB C 3.2 Gen2×2 240W 48V/5A Vide | 16.99 EUR | 4.6 | 637 |  |

One full row:

```json
{
  "id": "com:B0HKS98X51",
  "asin": "B0HKS98X51",
  "url": "https://www.amazon.com/dp/B0HKS98X51",
  "marketplace": "com",
  "query": "wireless earbuds",
  "searchUrl": "https://www.amazon.com/s?k=wireless+earbuds",
  "position": 2,
  "page": 1,
  "pagePosition": 2,
  "isSponsored": false,
  "title": "Wireless Earbuds, Bluetooth 6.0 Headphones HiFi Stereo 50H Playback LED Digital Display Ear Buds with ENC Noise Canceling Headset, IPX7 Waterproof Earphones for Gym/Running/Work（White）",
  "brand": null,
  "price": 19.99,
  "listPrice": 249.99,
  "priceText": "$19.99",
  "currency": "USD",
  "rating": 4.8,
  "reviewsCount": 148,
  "isPrime": true,
  "badge": null,
  "badgeType": null,
  "boughtPastMonth": "3K+ bought in past month",
  "delivery": "Join Prime to get FREE delivery Tomorrow, Nov 6 Or Non-members get FREE delivery Fri, Nov 13 on $35 of items shipped by Amazon",
  "imageUrl": "https://m.media-amazon.com/images/I/61lW-nQhWIL._AC_UY218_.jpg",
  "scrapedAt": "2026-11-05T17:11:06.645932Z"
}
```

- `position` is the organic rank inside this search. `pagePosition` is the slot on its page counting ads too, so you can see how far down the ads pushed a product.
- `brand` is filled only when the card prints a separate brand line (mostly fashion); otherwise it is empty and the brand is the start of `title`.
- `isPrime` is true when the card carries the Prime mark or its delivery line offers Prime delivery.
- `delivery` is the delivery promise Amazon shows to the proxy's location in that country.

### Use cases

- **Keyword rank tracking.** Run your product's keywords daily in monitor mode and get a row whenever your listing or a competitor's moves.
- **Competitor and niche research.** Price, rating, review count, badges and monthly sales hints for everything on the first pages of a search.
- **Ad share.** With `includeSponsored` you see which products buy the top slots for a keyword.
- **Cross-marketplace comparison.** Run the same keyword on .com and .de and compare prices in each store's currency.

### Related actors

- [Amazon Price Tracker](https://apify.com/datahamster/amazon-product-monitor): once you know the ASINs, track Buy Box, seller and stock per product.
- [Amazon Best Sellers Scraper](https://apify.com/datahamster/amazon-bestsellers): Amazon's own category rankings.
- [Walmart Product Scraper & Price Monitor](https://apify.com/datahamster/walmart-product-monitor): the same idea for Walmart.
- [Flipkart Product Scraper & Price Monitor](https://apify.com/datahamster/flipkart-products): the Indian market.

### Input

| Field | Meaning | Default |
|---|---|---|
| `keywords` | Search terms, one per line | `wireless earbuds` (prefill) |
| `searchUrls` | Pasted `amazon.<tld>/s?…` URLs; filters in the URL are kept | empty |
| `marketplace` | `com`, `co.uk`, `de`, `it`, `es`, `ca`, `in`, `co.jp` | `com` |
| `sort` | `relevance`, `price-asc`, `price-desc`, `reviews`, `newest`, `bestsellers` | `relevance` |
| `minPrice`, `maxPrice` | Price range in the marketplace currency | empty |
| `maxPages` | Pages per search, 1-20 | `1` |
| `includeSponsored` | Add sponsored products, flagged | `false` |
| `strictQueryMatch` | Keep only products with a keyword word in the title | `true` |
| `rankChangeThreshold` | Monitor: minimum rank move to report, 0 = any | `5` |
| `maxItems` | Stop after this many rows | `100` |
| `mode` | `scrape`, or `monitor` for new and changed rows only | `scrape` |
| `monitorStateId`, `webhookUrl`, `telegramBotToken`, `telegramChatId` | Monitor state key and alert targets | empty |

**Monitor mode** keys each row on the search (keyword, marketplace, filters and depth) + ASIN and compares `position` and `price`. The first run of a search records it and returns nothing (a baseline). Later runs return products that are new in that search (`changeType: "new"`), whose price changed, or whose rank moved at least `rankChangeThreshold` places from the last reported rank (`changeType: "changed"`, with `previous`). Smaller moves are not forgotten: they add up until they cross the threshold. You pay only for those rows. Ads are never part of monitor mode, because an ad slot comes and goes on every page load. Every run reads exactly `maxPages` pages, so a move on page 2 is seen too; changing `maxPages` or the threshold starts a new baseline.

### Pricing

| Event | Price |
|---|---|
| result | $0.001 per product ($1.00 per 1,000) |
| monitor-check | $0.005 per monitor run |
| change | $0.001 per new or changed product |

You are charged only for rows actually pushed. A blocked request pushes nothing and charges nothing.

The actor runs through Apify's residential proxy with the exit in the marketplace's country, because Amazon prices by exit location and the datacenter proxy gets a bot challenge on every request. That proxy traffic is platform usage billed to your account at Apify's rate.

**Found it useful?** A quick review on the Store page helps other sellers find this actor and tells us what to improve. Spot a rank or price mismatch? Open an issue on the actor page.

### Limits

- Eight marketplaces only. Amazon.fr and amazon.com.au are not offered (bot challenge on every request on 2026-11-05).
- Amazon never shows more than 20 pages of a search. A nonsense keyword still returns a handful of loosely related products, because Amazon has no empty result page for most queries.
- Prices are the search-card price for the proxy's location, not a per-seller offer. Use the Amazon Price Tracker for Buy Box and seller data.
- One marketplace per run, because the proxy exit is pinned to that marketplace's country.
- Amazon reshuffles search results between page loads: on 2026-11-05, 23 of 32 `wireless earbuds` products changed `position` within 10 minutes. That is why monitor mode reports only moves of `rankChangeThreshold` places (default 5) or more. Positions on page 2 and later are approximate: they count the organic products of the earlier pages as Amazon served them on this run.
- `strictQueryMatch` judges by title words only. It drops a relevant product whose title shares no word with the keyword (for `wireless earbuds`, "Apple AirPods 2 with Charging Case" on page 20); turn it off to get everything Amazon returned. Japanese and Korean keywords are matched by two-character pieces against titles written mainly in Japanese or Korean; .co.jp mostly answers with English titles, and those are kept, because a Japanese keyword cannot judge them.
- Amazon sometimes answers with a bot challenge. The actor retries each page twice, then reports the run as blocked (`emptyReason: blocked` in `RUN_SUMMARY`) instead of returning an empty dataset as if nothing matched.

### What is NOT collected

No personal data. Rows are product-level: no reviews, no reviewer names, no seller contacts, no customer data. Product pages and review pages are never opened, and the click-tracking parts of Amazon's links are dropped from every URL.

### FAQ

**Why is `position` empty on some rows?** Those are sponsored products (`isSponsored: true`); ads have no organic rank.

**Why does the same ASIN appear twice?** With `includeSponsored`, a product can be both an ad and an organic result of the same search. You get two rows: the ad (`isSponsored: true`, no `position`) and the organic one with its rank.

**Why do I get 16 products per page for one keyword and 48 for another?** Amazon picks a list or a grid layout per search. `position` keeps counting across pages either way.

**Why did a run return nothing?** The `RUN_SUMMARY` record in the run's key-value store has `emptyReason`; `SEARCH_SUMMARY` lists pages read and wall answers.

### Changelog

- 0.1: initial release: keyword and URL search on eight marketplaces, organic rank, sponsored flag and filter, sort and price filters, monitor mode on rank and price.

# Actor input Schema

## `keywords` (type: `array`):

Search terms, one per line, e.g. "wireless earbuds". Each keyword is one Amazon search; a product found by two keywords is returned once per keyword, each with its own rank.

## `searchUrls` (type: `array`):

Optional. Paste search result URLs from your browser (amazon.com/s?k=…) to keep every filter, department and sort you clicked. A URL names its own marketplace; all searches of one run must be on the same marketplace.

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

Which Amazon store to search. The proxy exit is pinned to that country, so prices come back in its currency. Ignored when a search URL is given.

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

Amazon's own sort order for keyword searches.

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

Optional lower price bound in the marketplace currency, e.g. 20.

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

Optional upper price bound in the marketplace currency, e.g. 50.

## `maxPages` (type: `integer`):

How many result pages to read per search. Amazon shows 16 to 48 organic products per page depending on the layout it picks, and never more than 20 pages.

## `includeSponsored` (type: `boolean`):

Off: organic results only. On: sponsored products are added with isSponsored true and no organic position. Monitor mode always ignores ads.

## `strictQueryMatch` (type: `boolean`):

On: keep only products whose title contains at least one word of the keyword (Amazon fills weak searches with unrelated products). Dropped products still count toward position. Not applied to pasted search URLs.

## `rankChangeThreshold` (type: `integer`):

Monitor mode: report a product when its organic position moved at least this many places from the last reported position. 0 = any move. Price changes are always reported.

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

Stop after this many results (you are charged only for pushed items)

## `mode` (type: `string`):

scrape = full results; monitor = only new/changed items since the previous run of this task

## `monitorStateId` (type: `string`):

Optional state id when not running as a saved task (monitor mode)

## `webhookUrl` (type: `string`):

POST a change summary here in monitor mode

## `telegramBotToken` (type: `string`):

Optional: bot token for monitor-mode change summaries

## `telegramChatId` (type: `string`):

Optional: chat id that receives monitor-mode summaries

## Actor input object example

```json
{
  "keywords": [
    "wireless earbuds"
  ],
  "marketplace": "com",
  "sort": "relevance",
  "maxPages": 1,
  "includeSponsored": false,
  "strictQueryMatch": true,
  "rankChangeThreshold": 5,
  "maxItems": 20,
  "mode": "scrape"
}
```

# Actor output Schema

## `results` (type: `string`):

All pushed rows (dataset, JSON)

## `resultsTable` (type: `string`):

Dataset in the Console viewer

## `runSummary` (type: `string`):

RUN_SUMMARY record

# 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 = {
    "keywords": [
        "wireless earbuds"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datahamster/amazon-search-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 = {
    "keywords": ["wireless earbuds"],
    "maxItems": 20,
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datahamster/amazon-search-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/0fAbGC0JdZqjf3B69/builds/76DWzS7XYETOxE2TG/openapi.json
