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

Collect Amazon search results by keyword - rank, ASIN, price, rating and sponsored flag - across 7 marketplaces.

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

## Pricing

from $4.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Amazon Search Scraper — ranked keyword results, prices and sponsored flags

This Actor scrapes Amazon search results for any keyword and returns one row per result with its
on-page `rank`, `asin`, `title`, a **numeric** `price`, `currency`, `rating`, `reviewCount`,
`imageUrl` and an `isSponsored` flag. It searches **seven Amazon marketplaces** — US, UK, Germany,
France, Spain, Japan and Australia.

No Amazon account, API key or cookies are used — the Amazon Search Scraper reads the public results
page a logged-out visitor sees. Around **22 results per search term**, in about 3.4 seconds per
search at the measured median.

### What it returns

| Field | Type | Notes |
| --- | --- | --- |
| `query` | string | The search term this row came from |
| `rank` | number | Position on the results page, 1-based, **ads included** |
| `asin` | string | Amazon's product ID — stable, use it to join or de-duplicate |
| `title` | string | The product title, not the brand line above it |
| `price` | number | `24.99`, not `"$24.99"` |
| `priceText` | string | The formatted price as shown, in the marketplace's own currency |
| `currency` | string | ISO code — `USD`, `GBP`, `EUR`, `JPY`, `AUD` |
| `rating` | number | Stars out of 5. Locale decimals are handled — `"4,5"` on `.de` is `4.5` |
| `reviewCount` | number | Exact where the page carries the exact count, e.g. `8157` rather than `8.1K` |
| `isSponsored` | boolean | `true` for an ad placement |
| `imageUrl` | string | The result's thumbnail |
| `marketplace` | string | `us`, `uk`, `de`, `fr`, `es`, `jp`, `au` |
| `sourceUrl`, `collectedAt` | string | Provenance for every row |

### Input

```json
{
  "queries": ["wireless earbuds", "usb c charger"],
  "marketplace": "us",
  "maxItems": 1000
}
```

| Field | Description |
| --- | --- |
| `queries` | Keywords to search on Amazon. Required, 1–50. |
| `marketplace` | `us` (default), `uk`, `de`, `fr`, `es`, `jp` or `au`. |
| `maxItems` | Cap on dataset items. Default 1000. Free plans stop at 250 requests and 250 results — see below. |
| `concurrency` | Searches fetched in parallel. Default 5, maximum 10. |

**`rank` is the position on the page, with ads counted in place.** An ad's slot is the point: the
`isSponsored` flag tells you which rows are paid, so you can measure organic rank and sponsored
share of the first page from the same dataset.

Each search is fetched from an exit in its own country and carries Amazon's own `language`
parameter, so amazon.de returns German titles and euro prices rather than English titles converted
to USD.

### How it reads the page

An Amazon search page carries no state blob and runs 1.2–2.5MB, so the Amazon Search Scraper parses
the result grid directly. Each result element is sliced by balancing its `<div>` tags rather than
splitting on the next result, which is what keeps an injected comparison table or brand carousel
from folding a neighbour's price into a row that has none. Sponsored rows are detected from markup
classes rather than the visible "Sponsored" label, so the flag holds in every marketplace's
language.

### Use cases

- Keyword rank tracking for your own ASINs over time
- Measuring sponsored share of the first page for a keyword
- Competitor discovery — who ranks for the terms you sell against
- Price benchmarking across a keyword's first page
- Comparing assortment and pricing for one keyword in seven marketplaces

### Frequently asked questions

**Do I need an Amazon account or API key to scrape Amazon search results?** No. The Amazon Search
Scraper reads only the public search results page a logged-out visitor sees.

**How many results does one search term return?** Around 22 — one Amazon results page per keyword.
This Actor does not paginate, so a keyword produces one fetch and one page of rows.

**Are sponsored products included?** Yes, and they are marked. Every row carries `isSponsored`, and
`rank` counts ad placements in the position they occupy on the page.

**Which Amazon marketplaces can I search?** Seven: US, UK, Germany, France, Spain, Japan and
Australia. Every row carries its `marketplace`, so one dataset can hold several.

**Is the price a number?** Yes. `price` is numeric with the displayed string in `priceText`, and
`currency` is read from what the page printed rather than assumed from the storefront.

**What happens to a search that returns no results page?** That query is recorded under `failures`
in the run's `SUMMARY` key, and the other queries in the run still return.

### Limitations

One results page per keyword: no pagination, no search filters, no sort order, and no department or
category restriction. Search rows carry what the grid shows, so there is no product description,
availability, seller or variant data — use the Amazon Product Scraper on the returned ASINs for
that. Marketplaces outside the seven listed above, including amazon.in, are not supported. Rankings
reflect the page at collection time, stamped in `collectedAt`.

### Free plan limit

Runs started from an Apify **free plan** stop at **250 requests and 250 results**, and the run
reports that it reached the limit. Any paid plan runs the full input and `maxItems` you set.

The limit exists because this Actor fetches through our own infrastructure, which Apify does not
cover for free-plan runs. It binds on requests as well as results so that a large input list cannot
spend those fetches for rows the run will not return.

# Actor input Schema

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

Keywords to search on Amazon.

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

Amazon marketplace to search.

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

Global cap on dataset items. Runs started from an Apify free plan stop at 250 requests and 250 results; any paid plan runs the full amount.

## `concurrency` (type: `integer`):

Targets fetched in parallel.

## Actor input object example

```json
{
  "queries": [
    "wireless earbuds"
  ],
  "marketplace": "us",
  "maxItems": 1000,
  "concurrency": 5
}
```

# Actor output Schema

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

Collect Amazon search results by keyword - rank, ASIN, price, rating and sponsored flag - across 7 marketplaces.

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

Item count, failure count and every target that failed, with its error.

# 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 earbuds"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("usestring/amazon-search").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 earbuds"] }

# Run the Actor and wait for it to finish
run = client.actor("usestring/amazon-search").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 earbuds"
  ]
}' |
apify call usestring/amazon-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,usestring/amazon-search"
        }
    }
}

```

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/lciI2HFIkMcgEQWhS/builds/0Sn3Dj0UUNxTL0lX3/openapi.json
