# Amazon Product Scraper (`bhansalisoft/amazon-product-scraper`) Actor

Amazon Product Scraper : Scrap all amazon product based on keyword category wise.

- **URL**: https://apify.com/bhansalisoft/amazon-product-scraper.md
- **Developed by:** [bhansalisoft](https://apify.com/bhansalisoft) (community)
- **Categories:** Automation, E-commerce, Lead generation
- **Stats:** 4 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$20.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## 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 : is unique tool for scrap all amazon products as per category keyword for example "Toys","Kids"

It extracts below field:

- Product title  : Amazon product name
- Brand : Amazon product brand
- ASIN  : Product ASIN Number
- Price: Amazon product price
- Rating count : Amazon product Rating Count
- Availability  : Stock Availability
- Up to 6 product images
- Product URL  : Product detail url

### 🚀 How It Works

insert below field and Start Process

| Field                         | Type   | Required | Description                                                                                 |
| ----------------------------- | ------ | -------- | ------------------------------------------------------------------------------------------- |
| **Amazon URL**             | string | no       | Base URL of Amazon marketplace. Example: `https://www.amazon.com`, `https://www.amazon.in`. |
| **keyword**                   | string | yes      | Search term for Amazon (e.g., `"laptop stand"`).                                            |
| **maxPages**                  | number | no       | How many search result pages to scrape. Default: `10`.                                      |
| **waitBetweenRequestsMillis** | number | no       | Delay between product requests (to reduce blocking). Default: `1500`.                       |

***

### 📤 Output

Each scraped product is pushed into the default dataset in this structure:

```json
[
  {
    "pname": "Melissa & Doug Super Smile Dentist Play Set, 25-Piece Dentist Kit with Oversized Teeth, Large Tools & Accessories, Kids Toys for Girls & Boys 3+",
    "pbrand": "Visit the Melissa & Doug Store",
    "isin": "B08CLH6Q5J",
    "ratingcount": "10,205 ratings",
    "priceblock_ourprice": "$15.34",
    "availability": "In Stock",
    "url": "https://www.amazon.com/Melissa-Doug-Dentist-Pretend-Accessories/dp/B08CLH6Q5J/ref=sr_1_1?dib=eyJ2IjoiMSJ9.1wQQzisOCPjK7AYPWficRA57Nx4PC10GzNK1JAGG4HjWHJ3eJs4IRduqZlOfdBLnP_zNXzu4kHIQ-IzoMlcIebNN2I4mTeoeN3N5aj7ChSQ9YjOET5m6oBhse-Bnjip5TmshYbFSe4vFN-BzGtrs3m300dCg59Yg07hI_sS9yno6P3xbl3Fk0ov3UdCYDMg4HZNjepURwmMXFmJYbv18svRfZQo8xPkRXEwF8tcAk4Iyxi1h7rum60lfuuBgKz2i9LQ2ID1lEdYDdiyccymMOl7GJW1NpQQe1w3hQa6GKIU.pqzmo_kl2S9zSKStNUbCDp70e1Hk3vhL2lJ0lRTsjag&dib_tag=se&keywords=toys&qid=1763494509&sr=8-1",
    "image1": "https://m.media-amazon.com/images/I/41HiZtzn55L..jpg",
    "image2": "https://m.media-amazon.com/images/I/516yNvQUlcL..jpg",
    "image3": "https://m.media-amazon.com/images/I/511El4IEzXL..jpg",
    "image4": "https://m.media-amazon.com/images/I/31HijqPBZaL..jpg",
    "image5": "https://m.media-amazon.com/images/I/412TuIgE34L..jpg",
    "image6": "https://m.media-amazon.com/images/I/41evbmmN07L..jpg"
  },
  {
    "pname": "Play Doh Swirlin' Smoothies Toy Blender Playset, Play Kitchen Appliances, Kids Arts and Crafts Toys for 3 Year Old Girls and Boys and Up",
    "pbrand": "Visit the Play-Doh Store",
    "isin": "B0C3528VHM",
    "ratingcount": "3,110 ratings",
    "priceblock_ourprice": "$7.78",
    "availability": "In Stock",
    "url": "https://www.amazon.com/Play-Doh-Swirlin-Smoothies-Blender-Appliances/dp/B0C3528VHM/ref=sr_1_2?dib=eyJ2IjoiMSJ9.1wQQzisOCPjK7AYPWficRA57Nx4PC10GzNK1JAGG4HjWHJ3eJs4IRduqZlOfdBLnP_zNXzu4kHIQ-IzoMlcIebNN2I4mTeoeN3N5aj7ChSQ9YjOET5m6oBhse-Bnjip5TmshYbFSe4vFN-BzGtrs3m300dCg59Yg07hI_sS9yno6P3xbl3Fk0ov3UdCYDMg4HZNjepURwmMXFmJYbv18svRfZQo8xPkRXEwF8tcAk4Iyxi1h7rum60lfuuBgKz2i9LQ2ID1lEdYDdiyccymMOl7GJW1NpQQe1w3hQa6GKIU.pqzmo_kl2S9zSKStNUbCDp70e1Hk3vhL2lJ0lRTsjag&dib_tag=se&keywords=toys&qid=1763494509&sr=8-2",
    "image1": "https://m.media-amazon.com/images/I/51pX9X-vb7L..jpg",
    "image2": "https://m.media-amazon.com/images/I/51WaZxbsDoL..jpg",
    "image3": "https://m.media-amazon.com/images/I/417oJL6wHSL..jpg",
    "image4": "https://m.media-amazon.com/images/I/41iph8ncpLL..jpg",
    "image5": "https://m.media-amazon.com/images/I/41SN7-aL8BL..jpg",
    "image6": "https://m.media-amazon.com/images/I/41e6tHN-bZL..jpg"
  }
  ]
```

***

# Actor input Schema

## `amazonBaseUrl` (type: `string`):

Amazon URL

## `keyword` (type: `string`):

Insert keyword as per category like 'Toys'

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

Depth to which to scrape to

## `waitBetweenRequestsMillis` (type: `integer`):

Depth to which to scrape to

## Actor input object example

```json
{
  "amazonBaseUrl": "https://www.amazon.com",
  "keyword": "toys",
  "maxPages": 1,
  "waitBetweenRequestsMillis": 15
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {
    "amazonBaseUrl": "https://www.amazon.com",
    "keyword": "toys"
};

// Run the Actor and wait for it to finish
const run = await client.actor("bhansalisoft/amazon-product-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 = {
    "amazonBaseUrl": "https://www.amazon.com",
    "keyword": "toys",
}

# Run the Actor and wait for it to finish
run = client.actor("bhansalisoft/amazon-product-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "amazonBaseUrl": "https://www.amazon.com",
  "keyword": "toys"
}' |
apify call bhansalisoft/amazon-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=bhansalisoft/amazon-product-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/s9K31DXXZluuM2I2J/builds/m1bE0enFX4POJozjb/openapi.json
