# Amazon Reviews Scraper (`epctex/amazon-reviews-scraper`) Actor

Gain access to incredibly rapid, essential, and highly informative Amazon product review data. Pull out ratings, reviews, images, product specifics, and more. Retrieve reviews of any product, regardless of the country of origin. Unlimited and exceptionally fast.

- **URL**: https://apify.com/epctex/amazon-reviews-scraper.md
- **Developed by:** [epctex](https://apify.com/epctex) (community)
- **Categories:** E-commerce
- **Stats:** 919 total users, 21 monthly users, 83.8% runs succeeded, 23 bookmarks
- **User rating**: 4.86 out of 5 stars

## Pricing

from $1.80 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Reviews Scraper Actor

### What is Amazon Reviews Scraper actor?

The Amazon Reviews Scraper Actor is an advanced, efficient tool tailored for effortlessly extracting customer reviews from Amazon. It's engineered to rapidly collect reviews, ratings, user comments, and associated images from any product listed on Amazon, across all its global marketplaces.

#### Key features

- 🌐 **Global Review Extraction**: Capable of retrieving reviews for any Amazon product, regardless of the country or marketplace.
- 📊 **Comprehensive Data Collection**: Gathers user comments, ratings, and scores, providing a holistic view of customer feedback.
- 📝 **Product Details Access**: Automatically includes product specifications and related information alongside reviews.
- 🖼️ **Image Retrieval**: Efficiently collects user-submitted images from reviews, offering visual feedback and enhancing analysis.
- ⚡ **High-Speed Performance**: Optimized for fast data retrieval, ensuring quick access to vast amounts of review data.

### Use Cases | Who Can Use Amazon Reviews Scraper

- **Market researchers and analysts** to dive deep into consumer sentiment and product performance across various categories.
- E-commerce entrepreneurs to gauge product viability and **customer satisfaction levels** for better inventory decisions.
- Brand managers to **monitor brand reputation and product feedback**, ensuring timely responses to customer concerns.
- **Product developers** to refine product features or address issues highlighted in customer feedback.
- **SEO and content marketers** to identify popular products and trends for creating targeted content strategies.

### Input

When you want to scrape over the reviews from a specific URL, just copy and paste the link as one of the *startUrls*.

#### Input Parameters Explained

The input of this scraper should be JSON containing the list of pages on Amazon that should be visited. Required fields are:

- `startUrls`: (Optional) (Array)

  List of Amazon URLs. You should only provide product URLs.
- `proxy`: (Required) (Proxy Object)

  Proxy configuration.
- `includeOtherCountriesReviews`: (Optional) (Boolean)

  Whether to include reviews from other countries.
- `extendOutputFunction`: (Optional) (String)

  A function that takes a JQuery handle ($) as an argument and returns an object with data.
- `customMapFunction`: (Optional) (String)

  A function that takes each object's handle as an argument and returns the object with executing the function.

This solution requires the use of **Proxy servers**, either your own proxy servers or you can use [Apify Proxy](https://www.apify.com/docs/proxy).

#### Amazon Reviews Scraper Input Example

```json
{
    "startUrls":[
        "https://www.amazon.com/JBL-Quantum-400-Headphones-Game-Chat/dp/B084CZDX61"
    ],
    "proxy": {
        "useApifyProxy": true
    },
    "includeOtherCountriesReviews": true
}
```

#### Compute Unit Consumption

The actor is optimized to run blazing fast and scrape as many items as possible. Therefore, it forefronts all the detailed requests. If the actor doesn't block very often it'll scrape 100 listings in 2 minutes with ~0.02-0.04 compute units.

### During the Run

During the run, the actor will output messages letting you know what is going on. Each message always contains a short label specifying which page from the provided list is currently specified. When items are loaded from the page, you should see a message about this event with a loaded item count and total item count for each page.

If you provide incorrect input to the actor, it will immediately stop with a failure state and output an explanation of what is wrong.

#### Amazon Export

During the run, the actor stores results into a dataset. Each item is a separate item in the dataset.

You can manage the results in any language (Python, PHP, Node JS/NPM). See the FAQ or <a href="https://www.apify.com/docs/api" target="blank">our API reference</a> to learn more about getting results from this Amazon Reviews actor.

#### Bugs, fixes, updates, and changelog

This scraper is under active development. If you have any feature requests you can create an issue from [here](https://github.com/epctex-support/amazon-reviews-scraper/issues).

### Output

The structure of each item in Amazon Reviews looks like this:

```json
{
	"id": "R7CTABRDB2PRD",
	"type": "review",
	"url": "https://www.amazon.com/gp/customer-reviews/R7CTABRDB2PRD",
	"productAsin": "B084CZDX61",
	"productLink": "https://www.amazon.com/JBL-Quantum-400-Headphones-Game-Chat/dp/B084CZDX61/ref=sr_1_3",
	"score": 5,
	"title": "Amazing gift for gamers!",
	"helpfulCount": 2,
	"dateAndLocation": "Reviewed in the United States on October 3, 2024",
	"description": "Bought this headset as a gift for my boyfriend to play Apex Legends and he loves it! It reduces background noise by a-lot and ironically works well for business meetings. 5/5 headset. Great product for the price.",
	"isVerified": true,
	"specs": "Color: Black",
	"images": [
		"https://m.media-amazon.com/images/I/81-aW6XvCtL._SY500.jpg"
	]
}
```

### FAQ

**Can I extract reviews from multiple products at once?**<br/>
Yes, Amazon Reviews Scraper supports batch processing, allowing the extraction of reviews from multiple products simultaneously. 🔄

**Is there a limit to the number of reviews I can scrape?**<br/>
You can scrape only quick reviews of the relevant product and optionally reviews from other countries. As per Amazon policies, you need to be logged in to view all reviews and this is unethical as it requires authentication.  📏

**How do I handle data from different Amazon regions?**<br/>
The scraper supports all Amazon TLDs, enabling users to specify the region for targeted review extraction. 🌍

**Can I do my research by using just keywords with Amazon Reviews Scraper?**<br/>
If you need to start with keywords, you can check our Amazon Scraper product. It provides more comprehensive data gathering. 🔍

### Contact

Please visit us through [epctex.com](https://epctex.com) to see all the products that are available for you. If you are looking for any custom integration or so, please reach out to us through the chat box in [epctex.com](https://epctex.com). In need of support? <business@epctex.com> is at your service.

# Actor input Schema

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

URLs to start with. It should be product URL

## `extendOutputFunction` (type: `string`):

Function that takes a JQuery handle ($) as argument and returns data that will be merged with the default output

## `customMapFunction` (type: `string`):

Function that takes each of the objects as argument and returns data that will be mapped by the function itself.

## `proxy` (type: `object`):

Select proxies to be used by your crawler.

## `includeOtherCountriesReviews` (type: `boolean`):

Include reviews of other countries

## Actor input object example

```json
{
  "startUrls": [
    "https://www.amazon.com/JBL-Quantum-400-Headphones-Game-Chat/dp/B084CZDX61/"
  ],
  "extendOutputFunction": "($) => { return {} }",
  "customMapFunction": "(object) => { return {...object} }",
  "proxy": {
    "useApifyProxy": true
  },
  "includeOtherCountriesReviews": true
}
```

# 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/JBL-Quantum-400-Headphones-Game-Chat/dp/B084CZDX61/"
    ],
    "extendOutputFunction": ($) => { return {} },
    "customMapFunction": (object) => { return {...object} },
    "proxy": {
        "useApifyProxy": true
    },
    "includeOtherCountriesReviews": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("epctex/amazon-reviews-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 = {
    "startUrls": ["https://www.amazon.com/JBL-Quantum-400-Headphones-Game-Chat/dp/B084CZDX61/"],
    "extendOutputFunction": "($) => { return {} }",
    "customMapFunction": "(object) => { return {...object} }",
    "proxy": { "useApifyProxy": True },
    "includeOtherCountriesReviews": True,
}

# Run the Actor and wait for it to finish
run = client.actor("epctex/amazon-reviews-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 '{
  "startUrls": [
    "https://www.amazon.com/JBL-Quantum-400-Headphones-Game-Chat/dp/B084CZDX61/"
  ],
  "extendOutputFunction": "($) => { return {} }",
  "customMapFunction": "(object) => { return {...object} }",
  "proxy": {
    "useApifyProxy": true
  },
  "includeOtherCountriesReviews": true
}' |
apify call epctex/amazon-reviews-scraper --silent --output-dataset

```

## MCP server setup

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