# Amazon Scrapper (`kawsar/amazon-scrapper`) Actor

Amazon Product Scraper that extracts product titles, prices, ratings, review counts, and Prime eligibility from Amazon search results, so you can monitor markets and build product catalogs without writing any code.

- **URL**: https://apify.com/kawsar/amazon-scrapper.md
- **Developed by:** [Kawsar](https://apify.com/kawsar) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 7 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 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/actors/running/actors-in-store.md#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 Product Scraper

Amazon Product Scraper extracts structured product data from Amazon search results at scale. Provide search URLs or keywords and the actor returns product titles, ASINs, prices, ratings, review counts, Prime eligibility, and more, ready to export as JSON, CSV, or Excel.

### What it does

- Accepts Amazon search URLs (e.g. `https://www.amazon.com/s?k=Mouse`) or plain keywords
- Paginates through multiple result pages automatically
- Extracts up to 16 products per page
- Returns clean, structured data for each product
- Handles sponsored listings and organic results

### Use cases

- Price monitoring and competitor research
- Product catalog building for e-commerce stores
- Market research and trend tracking
- Lead generation for Amazon sellers
- Academic and business data collection

### Input

| Field | Type | Description | Default |
|---|---|---|---|
| `startUrls` | List of URLs | Amazon search result URLs | — |
| `keywords` | List of strings | Search keywords (actor builds URLs automatically) | — |
| `maxPages` | Integer | Max result pages per search | 5 |
| `maxItems` | Integer | Max total products to return | 100 |
| `requestTimeoutSecs` | Integer | Per-request timeout in seconds | 30 |

You must provide at least one value in `startUrls` or `keywords`.

#### Example input

```json
{
  "startUrls": ["https://www.amazon.com/s?k=gaming+mouse"],
  "keywords": ["mechanical keyboard", "USB hub"],
  "maxPages": 3,
  "maxItems": 150
}
```

### Output

Each result is one Amazon product listing. Fields:

| Field | Type | Description |
|---|---|---|
| `asin` | String | Amazon Standard Identification Number |
| `productTitle` | String | Full product name |
| `productUrl` | String | Link to the product detail page |
| `imageUrl` | String | Main product thumbnail image URL |
| `price` | Float | Current sale price |
| `currency` | String | Currency symbol (e.g. `$`) |
| `listPrice` | Float | Original/list price (strikethrough), if shown |
| `rating` | Float | Average star rating out of 5 |
| `reviewCount` | Integer | Total number of customer ratings |
| `isPrime` | Boolean | True if eligible for Prime delivery |
| `isSponsored` | Boolean | True if a sponsored advertisement |
| `position` | Integer | Rank within the page (1-based) |
| `keyword` | String | Search term used |
| `searchUrl` | String | Amazon search URL |
| `pageNumber` | Integer | Page number where the product appeared |
| `scrapedAt` | String | ISO 8601 UTC timestamp |

#### Example output record

```json
{
  "asin": "B08SJ5Z8JL",
  "productTitle": "Redragon M612 Predator RGB Gaming Mouse, 8000 DPI Wired Optical Mouse",
  "productUrl": "https://www.amazon.com/Redragon-M612-Predator-Programmable/dp/B08SJ5Z8JL/",
  "imageUrl": "https://m.media-amazon.com/images/I/61vF4LdktpL._AC_UY218_.jpg",
  "price": 16.99,
  "currency": "$",
  "listPrice": 19.99,
  "rating": 4.5,
  "reviewCount": 12840,
  "isPrime": true,
  "isSponsored": false,
  "position": 2,
  "keyword": "gaming mouse",
  "searchUrl": "https://www.amazon.com/s?k=gaming+mouse",
  "pageNumber": 1,
  "scrapedAt": "2025-01-15T12:34:56.789012+00:00"
}
```

### How to use

1. Open the actor on Apify and click **Try for free**
2. Enter one or more Amazon search URLs or keywords in the input
3. Set `maxPages` and `maxItems` to control how much data to collect
4. Click **Start** and wait for results
5. Download your data as JSON, CSV, Excel, or HTML table

### Frequently asked questions

**Does it scrape individual product pages?**
Not in the current version. It scrapes search result listing pages and extracts the data shown in the cards. For full product detail pages (description, bullet points, seller info), use a product detail scraper with the ASINs returned here.

**What regions does it support?**
The actor targets `amazon.com` (US). To scrape other Amazon regions, provide the full search URL for that region (e.g. `amazon.co.uk`, `amazon.de`).

**How many results per page?**
Amazon typically shows 16-24 organic results per search page.

**Can it scrape sponsored listings?**
Yes. Sponsored products are included and flagged with `isSponsored: true` so you can filter them out if needed.

**What happens when a product has no price?**
The `price` field will be `null`. Some products use "See price in cart" or show prices only on the detail page.

# Actor input Schema

## `startUrls` (type: `array`):

Amazon search result URLs to scrape. Example: https://www.amazon.com/s?k=Mouse

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

Search keywords. The actor automatically builds Amazon search URLs from these terms.

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

Maximum number of result pages to scrape per search URL or keyword (each page has ~16 products).

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

Maximum total number of products to return across all searches.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.amazon.com/s?k=gaming+mouse",
    "https://www.amazon.com/s?k=mechanical+keyboard"
  ],
  "keywords": [
    "wireless mouse",
    "mechanical keyboard",
    "USB hub"
  ],
  "maxPages": 1,
  "maxItems": 100,
  "requestTimeoutSecs": 30
}
```

# 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 = {
    "startUrls": [
        "https://www.amazon.com/s?k=Mouse"
    ],
    "keywords": [
        "wireless mouse"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/amazon-scrapper").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 = {
    "startUrls": ["https://www.amazon.com/s?k=Mouse"],
    "keywords": ["wireless mouse"],
}

# Run the Actor and wait for it to finish
run = client.actor("kawsar/amazon-scrapper").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 '{
  "startUrls": [
    "https://www.amazon.com/s?k=Mouse"
  ],
  "keywords": [
    "wireless mouse"
  ]
}' |
apify call kawsar/amazon-scrapper --silent --output-dataset

```

## MCP server setup

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

```

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/j7SI9iuhbtb3Eo8vh/builds/xyFjY6uMB6hK3zHTs/openapi.json
