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

Amazon scraper to extract reviews from Amazon products. Scrape and download detailed reviews without using the Amazon API, including rating score, review description, reactions and images. Download your data as HTML table, JSON, CSV, Excel, XML.

- **URL**: https://apify.com/junglee/amazon-reviews-scraper.md
- **Developed by:** [Junglee](https://apify.com/junglee) (Apify)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 18,007 total users, 2,380 monthly users, 99.6% runs succeeded, 165 bookmarks
- **User rating**: 2.70 out of 5 stars

## Pricing

from $3.00 / 1,000 reviews

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?

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

### What is Amazon Reviews Scraper and how does it work?

Amazon Reviews Scraper is a web scraping tool that enables you to extract product reviews from Amazon by using product URLs.

Insert the URL of an Amazon product in the product URLs input field, start the scraper, and then download the data from the output tab. You can also limit the maximum number of reviews you want to extract for a shorter run. If you want to scrape all reviews, just leave the 'Max Reviews\` option blank. Also, remember that Amazon Reviews Scraper only scrapes ratings with text reviews, so you typically won't get the same number of results as Amazon shows for the total number of ratings.

> NOTE: You usually get great results using the automatic proxy (which is set by default) but if you want to be 100% sure, residential proxies return results more stably.

### Why scrape Amazon product reviews?

Scraping Amazon reviews can help you to:

- monitor the most commonly used rating score and analyze the quality of the reviewed products.
- discover the most helpful reviews and use their content for product comparison and recommendation.
- fine-tune your advertising and messaging.

* sort reviews by date or place to evaluate the product's reach.
* filter verified-only reviews.
* collect product images taken directly from the users to compare them with advertisement images.

For more inspiration, check out how web scraping is [transforming e-commerce analytics](https://apify.com/industries/ecommerce-and-retail).

### How many results can you scrape with Amazon Reviews Scraper?

Amazon Reviews Scraper can return a maximum of 100 results per star rating, so in the best-case scenario (the product has at least a hundred reviews per star) you get 500 reviews per product. However, you have to keep in mind that scraping amazon.com has many variables to it and may cause the results to fluctuate case by case. There’s no one-size-fits-all-use-cases number. The maximum number of results may vary depending on the complexity of the input, location, and other factors. Some of the most frequent cases are:

- website gives a different number of results depending on the type/value of the input
- website has an internal limit that no scraper can cross
- scraper has a limit that we are working on improving

Therefore, while we regularly run Actor tests to keep the benchmarks in check, the results may also fluctuate without our knowing. The best way to know for sure for your particular use case is to do a test run yourself.

### How much will scraping Amazon Reviews cost you?

When it comes to scraping, it can be challenging to estimate the resources needed to extract data as use cases may vary significantly. That's why the best course of action is to run a test scrape with a small sample of input data and limited output. You’ll get your price per scrape, which you’ll then multiply by the number of scrapes you intend to do.

[Watch this video](https://www.youtube.com/watch?v=cCUjoIOOGdk) for a few helpful tips. And don't forget that choosing a higher plan will save you money in the long run.

https://www.youtube.com/watch?v=cCUjoIOOGdk

### Is it legal to scrape Amazon reviews?

It is legal to scrape publicly available data such as product ratings, review descriptions, or the number of reactions to a particular review. You just need to be careful with personal data, specifically the reviewer's name and avatar, as these could be used to identify the user. You should only scrape and store this information if you have a legitimate reason to do so. Otherwise, keep the `include personal information` option as `false` ("includeGdprSensitive": false' in the JSON editor). Read our blog post on the [legality of web scraping](https://blog.apify.com/is-web-scraping-legal/) to learn more.

### How do I use Amazon Reviews Scraper?

If you need some guidance on how to use Amazon Reviews Scraper, follow this short and simple [step-by-step guide](https://blog.apify.com/how-to-scrape-amazon-reviews-in-under-a-minute).

### Input options

For input options, click on the [input tab](https://apify.com/lhotanok/amazon-reviews-scraper/input-schema).

### Output: sample dataset

```json
[{
  "productAsin": "B08BHHSB6M",
  "ratingScore": 4,
  "reviewTitle": "Great experience, Read for a honest unbiased  however just a few things people should know",
  "reviewUrl": "https://www.amazon.com/gp/customer-reviews/R3U6LFKDTCOJYW/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=B08BHHSB6M",
  "reviewReaction": "21 people found this helpful",
  "reviewedIn": "Reviewed in the United States on February 3, 2022",
  "reviewDescription": "I declined to leave a unboxing video & picture on this one as its the 2nd device I've bought from this store/seller in a month, technically 3 in total from one of their affiliates. So , I'll start with delivery & packaging , in my profession ( CyberSec/OSINT  ) this is very important detail, it will typically tell the rest of your experience. They did great with shipping times, the got it to me early which is always welcomed and as promised came with a very generic charging block & cable and the device that's about it and it all works great!.  I will also say their after market packaging they used was actually very professional and looked great, sealed with care . There was some paperwork on the side I highly suggest reading as its about your warranty and thus is important.  Remember you pay for what you get, especially with Iphones. I use Android and IOS in business,  I bought a brand new 2021 NEW flagship android device for $320 less than this product but what I paid extra for was that Amazon renewed guarantee which not only promises your device to come with certain prerequisites like over 90% battery life etc BUT it comes with a one year warranty as well as a great return policy which is also a year. I saw alot of mixed reviews , and the details is where you need to look . This company/store did a great job. With its presentation,  Now I'm not going to go to deep I go i to a deep review on the device as a iphone is a iphone,  is a iphone. I have owned every model ,this was a replacement for me aside from business use. This would have been 5 stars all around given the check star system Amazon has in place However,  for example the battery I gave 4 stars, it did come with  90% battery in its bank but like most Iphones unless it's a new battery and has been conditioned ( charged ) properly the battery life is not great on any pro model unless it's the max versions but it will do most great and  as expected. The forest green was a color I loved and was out of stock when I bought it new so that was a nice  addition vs the green iphone 12 pro I have which a total different shade of green. So I bought a bundle , a recommended case and some tempered glass screen protectors,  I will say as they are sufficient,  I made a common mistake as I do like to pay for convienance these bundles are not always the most cost effective route. Do yourself a favor & look around, so  my total was about $730 , the phone itself was priced decent enough but remember that tax is going go be a least $50 added to the device. The phone came 100% Factory Unlocked as advertised and in great shape , the only blemish which I wasn't heartbroken about However for that kind of money and knowing how inexpensive it is to fix the glass as I've done it many of times, there was a decent scratch at the top near the top speaker HOWEVER, I am a tad OCD about things like that especially when spending  that kind of money and having actually bought 3 devices Factory Unlocked I have a high standard. I think most people wont take a 2nd look at it. Just a side note, the resell and value system of used Iphones especially are still very off in 2022 considering for another $150 I could've just bought the iPhone 13 NEW. That said, that has nothing to do with this seller or store just a observation as my business is in all tech. At the end of the day,I can o my fairly go off of what I git & my experience.  I am highly impressed and happy with this purchase. This store/seller took great care in its delivery time, its great packaging, everything came as advertised and product for all Intensive purposes is basically NEW. After 3 devices both IOS & Android , I would not hesitate to do business with this company again. Don't second guess these guys , in reality this was a 5 star sale . They did great business and as I said I was willing to pay more as yes you can find this de ice cheaper all day BUT you are gambling , when it co es to stuff like this I can't stress enough you get what you pay for. The device was perfect, again great presentation,  Factory unlocked,ive tested it on over 20 GSM carriers thus far and I paid for a great product but a peace of mind for a full year , it has a great warranty,  and I have no plans of a return but that option is there if you want it . They did great, I am happy and would buy again!",
  "isVerified": true,
  "variant": "Size: 256GBColor: Midnight GreenService Provider: UnlockedProduct grade: Renewed Premium",
  "reviewImages": [
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/61WRBXaqLGL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/51t72cX1+NL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/619h8PnX3iL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/61SDlpI5bvL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/61XDSuCCKNL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/61yDqd6tA+L._SY88.jpg"
  ],
  "position": 1
},
{
  "productAsin": "B08BHHSB6M",
  "ratingScore": 5,
  "reviewTitle": "Excellent condition and exactly as advertised",
  "reviewUrl": "https://www.amazon.com/gp/customer-reviews/R2Q6916T1GJWT3/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=B08BHHSB6M",
  "reviewReaction": "2 people found this helpful",
  "reviewedIn": "Reviewed in the United States on August 27, 2022",
  "reviewDescription": "I needed to upgrade my phone, but new iPhones are due out soon and I didn't want to buy a NIB phone until that happens. The iPhone 11 Pro is a couple of years old, but it will meet my needs until I am ready to purchase the latest generation. I had recently bought this same model, used, on a popular reseller market site. The experience was terrible. The phone condition wasn't as good as it was advertised to be, not even close. The battery health was poor as well, again, a misrepresentation. I returned that phone immediately (more hassle) and bought one I am using now through Amazon. The experience was as different as night and day. This phone is in excellent condition, and the battery health meets the guaranteed minimum (over 80% capacity).I was confident in my purchase because I know that Amazon makes returns easy.  Didn't need to go there because the phone is great!",
  "isVerified": true,
  "variant": "Size: 64GBColor: GoldService Provider: UnlockedProduct grade: Renewed",
  "reviewImages": [
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/61WRBXaqLGL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/51t72cX1+NL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/619h8PnX3iL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/61SDlpI5bvL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/61XDSuCCKNL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/61yDqd6tA+L._SY88.jpg"
  ],
  "position": 2
},
{
  "productAsin": "B08BHHSB6M",
  "ratingScore": 5,
  "reviewTitle": "My wife was so happy",
  "reviewUrl": "https://www.amazon.com/gp/customer-reviews/R4RV5QGKE92S0/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=B08BHHSB6M",
  "reviewReaction": "5 people found this helpful",
  "reviewedIn": "Reviewed in the United States on August 12, 2022",
  "reviewDescription": "I got my wife this phone not only to finally get it into her head that apple makes a better phone then android but because she has been wanting an iPhone for as long as I have known her, Was hoping the battery life would have been better but with a renewed device you get what you get, I ended up paying the 70 dollars to put a new battery in the phone for her so now it is like a brand new phone. She is vary happy with it and now we aren't fighting over who uses android auto or apple car play lol.",
  "isVerified": true,
  "variant": "Size: 256GBColor: Space GrayService Provider: UnlockedProduct grade: Renewed",
  "reviewImages": [
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/61WRBXaqLGL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/51t72cX1+NL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/619h8PnX3iL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/61SDlpI5bvL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/61XDSuCCKNL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/61yDqd6tA+L._SY88.jpg"
  ],
  "position": 3
},
{
  "productAsin": "B08BHHSB6M",
  "ratingScore": 4,
  "reviewTitle": "Locked iPhone. Carrier does not match listing.",
  "reviewUrl": "https://www.amazon.com/gp/customer-reviews/R1GODDHNW2GD42/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=B08BHHSB6M",
  "reviewReaction": "One person found this helpful",
  "reviewedIn": "Reviewed in the United States on August 30, 2022",
  "reviewDescription": "iPhone is locked by a different carrier than what I listed in the product description. Specifically purchased from this listing for model and carrier.",
  "isVerified": true,
  "variant": "Size: 64GBColor: Midnight GreenService Provider: AT&TProduct grade: Renewed",
  "reviewImages": [
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/61WRBXaqLGL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/51t72cX1+NL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/619h8PnX3iL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/61SDlpI5bvL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/61XDSuCCKNL._SY88.jpg",
    "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/61yDqd6tA+L._SY88.jpg"
  ],
  "position": 4
}]
```

### Need to find product pairs between Amazon and another online shop?

Try our [AI Product Matcher](https://apify.com/equidem/ai-product-matcher). This AI model was created to compare items from different web stores, identifying exact matches and comparing real-time data obtained via web scraping. With the AI Product Matcher, you can use scraped product data to monitor product matches across the industry, implement dynamic pricing for your website, replace or complement manual mapping, and obtain realistic estimates against your competition for upcoming promo campaigns.

Most importantly, it is relatively easy to get started with (just follow [this Product Matcher guide](https://blog.apify.com/product-matching-ai-pricing-intelligence-web-scraping/)), and it can check thousands of pairs of products.

### Integrations and Amazon Reviews Scraper

Last but not least, Amazon Reviews Scraper can be connected with almost any cloud service or web app thanks to <a href="https://apify.com/integrations"  target="_blank"> integrations on the Apify platform</a>. You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, <a href="https://docs.apify.com/integrations"  target="_blank"> and more</a>. Or you can use <a href="https://docs.apify.com/integrations/webhooks"  target="_blank"> webhooks</a> to carry out an action whenever an event occurs, e.g. get a notification whenever Instagram API Scraper successfully finishes a run.

### Using Amazon Reviews Scraper with the Apify API

The Apify API gives you programmatic access to the Apify platform. The API is organized around RESTful HTTP endpoints that enable you to manage, schedule, and run Apify actors. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more.

To access the API using Node.js, use the apify-client NPM package. To access the API using Python, use the apify-client PyPI package.

Check out the <a href="https://docs.apify.com/api/v2"  target="_blank"> Apify API reference</a> docs for full details or click on the <a href="https://apify.com/junglee/amazon-reviews-scraper/api"  target="_blank"> API tab</a> for code examples.

### Error items

When the scraper cannot retrieve data for a given input — for example no reviews match the active filters or a start URL is malformed — it pushes an **error item** to the dataset instead of silently skipping it. Normal output items are never affected; you can tell them apart by the presence of an `error` field.

#### Error item structure

```json
{
    "error": "product_not_found",
    "errorDescription": "Loaded a 404 page. The product does not exist.",
    "input": "https://www.amazon.com/dp/B0XXXXXXXX",
    "url": "https://www.amazon.com/dp/B0XXXXXXXX"
}
```

#### Error codes reference

| `error`                          | Meaning                                                        |
| -------------------------------- | -------------------------------------------------------------- |
| `invalid_url`                    | One or more start URLs were malformed or not recognized        |
| `invalid_input`                  | Actor failed due to bad configuration (run is also terminated) |
| `product_not_found`              | Product URL returns a 404 page                                 |
| `shortened_url_invalid`          | Amazon shortened URL could not be resolved                     |
| `bestsellers_category_not_found` | Bestsellers category page could not be found                   |
| `no_relevant_reviews_found`      | Reviews exist but none match the active filters                |
| `no_results_found`               | No results were found for the given input                      |

***

### Not your cup of tea? Build your own scraper

Amazon Reviews Scraper doesn’t exactly do what you need? You can always build your own! We have various [scraper templates](https://apify.com/templates) in Python, JavaScript, and TypeScript to get you started. Alternatively, you can write it from scratch using our [open-source library Crawlee](https://crawlee.dev/). You can keep the scraper to yourself or make it public by adding it to Apify Store (and [find users](https://blog.apify.com/make-regular-passive-income-developing-web-automation-actors-b0392278d085/) for it).

Or let us know if you need a [custom scraping solution](https://apify.com/custom-solutions).

### Your feedback

We’re always working on improving the performance of our Actors. So if you’ve got any technical feedback for xxx or simply found a bug, please create an issue on the Actor’s [Issues tab](https://console.apify.com/actors/R8WeJwLuzLZ6g4Bkk/issues) in Apify Console.

# Changelog

This Actor's version history is a separate document: https://apify.com/junglee/amazon-reviews-scraper/changelog.md

# Actor input Schema

## `productUrls` (type: `array`):

Enter the URL or URLs of the Amazon products you want to scrape. <br> (E.g., https://www.amazon.com/Sceptre-E248W-19203R-Monitor-Speakers-Metallic/dp/B0773ZY26F). Click <strong>+ Add</strong> to scrape multiple URLs at once.

## `maxReviews` (type: `integer`):

Type in the amount of reviews to be scraped. Leave this blank if you want to extract all reviews. <br><b>❗ Note: </b> max amount of reviews per product is 100 per star count (e.g. 100 reviews per 1 star), 100 per product variant (100 reviews per each product variant), several hundred for media reviews, ~20 for keyword search

## `includeGdprSensitive` (type: `boolean`):

Personal data such as name, ID or profile image is protected by GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. [Read more](https://blog.apify.com/is-web-scraping-legal/).

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

Select by which criteria the reviews should be sorted. Amazon's default is <b>Top reviews</b>.

## `reviewsCutoffDate` (type: `string`):

Limit how far back to the history the scraper should go. The date should be in YYYY-MM-DD or full ISO absolute format or in relative format e.g. 1 days, 2 months, 3 years. All time values are taken in UTC timezone. The maximum reviews per product we can get is 100.

## `filterByRatings` (type: `array`):

Select the number of stars by which reviews should be filtered. Amazon's default is <b>All stars</b>. <br> Duplicate reviews, caused by selecting overlapping ratings (e.g., <b>1 star</b> and <b>All critical</b>) will be filtered out.

## `reviewsUseProductVariantFilter` (type: `boolean`):

If the product has multiple variants <i>(e.g., different colors, sizes, etc.)</i>, you can scrape reviews only for the selected variant.

## `reviewsFilterByKeywords` (type: `array`):

Enter keywords by which the reviews should be filtered. Each keyword is scraped separately, in a combination with <b>Filter by ratings</b> option. Duplicate reviews, caused by selecting overlapping keywords, will be filtered out.

Example keywords that get lots of results:
`["Good", "Bad", "Great", "Quality", "Useful", "Love", "Price"]`

## `scrapeProductDetails` (type: `boolean`):

If enabled, the Actor will scrape and save product data the same way as the [Amazon Product Scraper](https://console.apify.com/actors/BG3WDrGdteHgZgbPK). The product details will be available in the `product` output field.

## `reviewsAlwaysSaveCategoryData` (type: `boolean`):

If enabled, the Actor will return the review category data even if there are no reviews.

- Normally, only reviews are saved, if there are no reviews, the review category data is not saved.
- With this option, the review category data will be saved alone, if there are no reviews (review fields are empty).

## `deduplicateRedirectedAsins` (type: `boolean`):

If set, the crawler will deduplicate the redirected ASINs (by default). Otherwise the product will be saved multiple times under the ASINs it was redirected to.

## Actor input object example

```json
{
  "productUrls": [
    {
      "url": "https://www.amazon.com/dp/B0CWXNS552"
    }
  ],
  "maxReviews": 100,
  "includeGdprSensitive": false,
  "sort": "helpful",
  "reviewsCutoffDate": "2024-01-01",
  "filterByRatings": [
    "allStars"
  ],
  "reviewsUseProductVariantFilter": false,
  "reviewsFilterByKeywords": [
    "Good",
    "Quality"
  ],
  "scrapeProductDetails": false,
  "reviewsAlwaysSaveCategoryData": false,
  "deduplicateRedirectedAsins": true
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all scraped review data

# 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 = {
    "productUrls": [
        {
            "url": "https://www.amazon.com/dp/B0CWXNS552"
        }
    ],
    "maxReviews": 100,
    "filterByRatings": [
        "allStars"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("junglee/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 = {
    "productUrls": [{ "url": "https://www.amazon.com/dp/B0CWXNS552" }],
    "maxReviews": 100,
    "filterByRatings": ["allStars"],
}

# Run the Actor and wait for it to finish
run = client.actor("junglee/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 '{
  "productUrls": [
    {
      "url": "https://www.amazon.com/dp/B0CWXNS552"
    }
  ],
  "maxReviews": 100,
  "filterByRatings": [
    "allStars"
  ]
}' |
apify call junglee/amazon-reviews-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,junglee/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/R8WeJwLuzLZ6g4Bkk/builds/cE9XbtmyF6XBWsbtR/openapi.json
