# Restaurant Review Aggregator (`tri_angle/restaurant-review-aggregator`) Actor

Add restaurant names and get reviews from Yelp, Google Maps, Doordash, UberEats, Tripadvisor, and Facebook. Extract review text, place address, rating, date, reviewer's name. Export reviews in JSON, CSV, HTML, use API, schedule and monitor runs or integrate reviews data with other tools.

- **URL**: https://apify.com/tri_angle/restaurant-review-aggregator.md
- **Developed by:** [Tri⟁angle](https://apify.com/tri_angle) (Apify)
- **Categories:** E-commerce, Travel
- **Security:** Limited permissions
- **Stats:** 658 total users, 7 monthly users, 100.0% runs succeeded, 27 bookmarks
- **User rating**: 4.25 out of 5 stars

## Pricing

from $3.80 / 1,000 generic 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 Restaurant Reviews Aggregator?

Restaurant Reviews Aggregator is designed to **scrape restaurant reviews across 6 restaurant review sites: Tripadvisor, Yelp, Google Maps, Facebook, DoorDash and UberEats**. The scraper extracts the reviews based on your search query + location or place URL. It is an [Actor Bundle](https://blog.apify.com/apify-power-actors/) created by combining scrapers from six most popular restaurant review platforms (see the [detailed list](https://apify.com/tri_angle/restaurant-review-aggregator#want-more-tools-for-scraping-restaurant-reviews) ⬇️).

#### What can you accomplish with this aggregator tool?

🍤 Extract restaurant reviews data **by keywords, names or specific URLs**

⭐️ Extract **review text, place address, rating, date, reviewer's name** in one go

🍱 Aggregate reviews from **multiple platforms into one dataset**

👀 Choose **how many platforms to scrape reviews from** — just a few or all six at once

🎯 Choose location and **narrow down the keyword search** to match the restaurant name

🗓 Prefilter scraped reviews **by date**

☄️ Get **more than 1,600 results for free**

🦾 Use scraped data as **restaurant reviews API**

⬇️ **Download reviews data** in Excel, CSV, JSON, XML, and other formats

### 💸 Is this reviews aggregator free?

Yes. Apify provides you with $5 free usage credits every month on the [Apify Free plan](https://apify.com/pricing), allowing you to **scrape 1,600 restaurant reviews** within those limits.

For regular data extraction needs, consider getting an Apify subscription. We recommend our [$49/month Starter plan](https://apify.com/pricing) for **extensive scraping**.

### 🛎 How to use Restaurant Review Aggregator

It's easy to extract reviews across different review sites with Restaurant Reviews Aggregator. Follow these steps:

1. Find [Restaurant Review Aggregator](https://apify.com/tri_angle/restaurant-review-aggregator) on Apify Store and click the **Try for free** button.
2. Add the search queries and location.
3. Add a number of reviews to be scraped from that area by that keyword.
4. Alternatively, add Google Maps URLs of restaurants (as a starting point).
5. Choose the target review websites you want to scrape reviews from.
6. Click "Start" and wait for the data to be extracted.
7. Export your reviews dataset in JSON, XML, CSV, Excel, or HTML or using API.

### ⬇️ Input

To search for restaurant reviews, the input for Restaurant Reviews Aggregator should be **search queries or restaurant names, location or URLs**. You can add queries or URLs one by one or all at once. Here's an example of an input for the keyword "grill" in Chicago, for all 6 review sites for the past year.

[![restaurant Reviews API](https://raw.githubusercontent.com/apify-projects/actor-readme-images/0e3e09eef6c64992449067dc97a6aa07971e7b43/restaurant%20reviews%20bundle.jpg)](https://console.apify.com/actors/wXupshmbCBDWd39y7)

You can input data by filling out fields, using JSON, or programmatically via an API. For more details on how to configure input in JSON, see the [input tab](https://apify.com/tri_angle/restaurant-review-aggregator/input-schema).

### ⬆️ Output sample

The results will be wrapped into a dataset which you can find in the **Output** tab. The full information about each review comes from the target review website. In case the review for some reason is not available on the target review site, the review will be scraped from Google Maps. Each place is uniquely identified through the `googleMapsPlaceId`.

[![Google Reviews API](https://github.com/apify-projects/actor-readme-images/blob/master/restaurant%20review%20API.png?raw=true)](https://console.apify.com/actors/wXupshmbCBDWd39y7)
You can preview all the fields in the **Storage** tab and choose the format in which to export the restaurant reviews you've extracted: JSON, CSV, Excel, or HTML table. Here below is the same sample dataset in JSON:

```json
{
    "googleMapsPlaceId": "ChIJJcecAXjLD4gRXx7OEnnaQ74",
    "placeName": "Jerusalem Grill",
    "placeAlternateNames": [],
    "placeUrl": "https://www.tripadvisor.com/Restaurant_Review-g35805-d15168112-Reviews-Jerusalem_Grill-Chicago_Illinois.html",
    "placeAddress": "3142 N Narragansett Ave, Chicago, IL 60634-4919",
    "provider": "tripadvisor",
    "reviewId": "631461494",
    "reviewUrl": "https://www.tripadvisor.com/ShowUserReviews-g35805-d15168112-r631461494-Jerusalem_Grill-Chicago_Illinois.html",
    "reviewTitle": "Delicious and fresh",
    "reviewText": "Healthy and delicious and fresh! We absolutely love ordering from the place, especially since it’s close to the house. Even our kids love it. My favorite is the mixed grill 😋",
    "reviewDate": "2018-11-06T00:00:00.000Z",
    "reviewRating": 5,
    "authorName": "ToleRae"
  },
  {
    "googleMapsPlaceId": "ChIJVb_BQabND4gRcoAAUepE81o",
    "placeName": "Outdoor Grill",
    "placeAlternateNames": [],
    "placeUrl": "https://www.tripadvisor.com/Restaurant_Review-g35805-d3349050-Reviews-Outdoor_Grill-Chicago_Illinois.html",
    "placeAddress": "3265 N Milwaukee Ave, Chicago, IL 60618-5118",
    "provider": "tripadvisor",
    "reviewId": "824503927",
    "reviewUrl": "https://www.tripadvisor.com/ShowUserReviews-g35805-d3349050-r824503927-Outdoor_Grill-Chicago_Illinois.html",
    "reviewTitle": "Fantastic!",
    "reviewText": "Wonderful food, incredible staff, local flavors, and a great atmosphere. Simply delicious and I will definitely be back again!",
    "reviewDate": "2022-01-09T00:00:00.000Z",
    "reviewRating": 5,
    "authorName": "Michael M"
  },
  {
  "googleMapsPlaceId": "ChIJI84nLZrND4gRE4zTJfq4xG0",
  "placeName": "Subway",
  "placeAlternateNames": [],
  "placeUrl": "https://www.doordash.com/store/subway-chicago-277530/",
  "placeAddress": "5150 W Belmont Ave, Chicago, IL 60641, USA",
  "provider": "door-dash",
  "reviewUrl": null,
  "reviewTitle": null,
  "reviewText": "add more meat for gods sake",
  "reviewDate": "2024-01-03T21:47:20.757Z",
  "reviewRating": 4,
  "authorName": "laiiboo l"
},
{
  "googleMapsPlaceId": "ChIJI84nLZrND4gRE4zTJfq4xG0",
  "placeName": "Subway",
  "placeAlternateNames": [],
  "placeUrl": "https://www.doordash.com/store/subway-chicago-277530/",
  "placeAddress": "5150 W Belmont Ave, Chicago, IL 60641, USA",
  "provider": "door-dash",
  "reviewUrl": null,
  "reviewTitle": null,
  "reviewText": "Forgot my lettuce and Mayonesa",
  "reviewDate": "2023-03-03T00:43:20.300Z",
  "reviewRating": 2,
  "authorName": "Roberto V"
},
{
  "initialQuery": "https://www.google.com/maps/search/?api=1&query=Haps%20grill%20fish%26chicken&query_place_id=ChIJud67RoUvDogRWY8Zem-iYVs",
  "googleMapsPlaceId": "ChIJud67RoUvDogRWY8Zem-iYVs",
  "placeName": "Haps grill fish&chicken",
  "placeAlternateNames": [],
  "placeUrl": "https://www.google.com/maps/search/?api=1&query=Haps%20grill%20fish%26chicken&query_place_id=ChIJud67RoUvDogRWY8Zem-iYVs",
  "placeAddress": "6859 S Loomis Blvd, Chicago, IL 60636",
  "provider": "google-maps",
  "reviewId": "ChdDSUhNMG9nS0VJQ0FnSUNsdzV6YThBRRAB",
  "reviewUrl": "https://www.google.com/maps/reviews/data=!4m8!14m7!1m6!2m5!1sChdDSUhNMG9nS0VJQ0FnSUNsdzV6YThBRRAB!2m1!1s0x0:0x5b61a26f7a198f59!3m1!1s2@1:CIHM0ogKEICAgIClw5za8AE%7CCgwIqrmIqwYQ4NOVhQE%7C?hl=en",
  "reviewTitle": null,
  "reviewText": "quick sandwich, kool enjoyed it going back,",
  "reviewDate": "2023-11-25T16:11:22.279Z",
  "reviewRating": 3,
  "authorName": "Michael McClom Sr."
},
{
  "initialQuery": "https://www.google.com/maps/search/?api=1&query=Haps%20grill%20fish%26chicken&query_place_id=ChIJud67RoUvDogRWY8Zem-iYVs",
  "googleMapsPlaceId": "ChIJud67RoUvDogRWY8Zem-iYVs",
  "placeName": "Haps grill fish&chicken",
  "placeAlternateNames": [],
  "placeUrl": "https://www.google.com/maps/search/?api=1&query=Haps%20grill%20fish%26chicken&query_place_id=ChIJud67RoUvDogRWY8Zem-iYVs",
  "placeAddress": "6859 S Loomis Blvd, Chicago, IL 60636",
  "provider": "google-maps",
  "reviewId": "ChdDSUhNMG9nS0VJQ0FnSURGcHZPeF9BRRAB",
  "reviewUrl": "https://www.google.com/maps/reviews/data=!4m8!14m7!1m6!2m5!1sChdDSUhNMG9nS0VJQ0FnSURGcHZPeF9BRRAB!2m1!1s0x0:0x5b61a26f7a198f59!3m1!1s2@1:CIHM0ogKEICAgIDFpvOx_AE%7CCgwI-balqgYQgJCwgQM%7C?hl=en",
  "reviewTitle": null,
  "reviewText": "Welp they close again 😕 he was struggling",
  "reviewDate": "2023-11-06T21:32:41.808Z",
  "reviewRating": 2,
  "authorName": "Tiara Carter"
},
{
  "googleMapsPlaceId": "ChIJ_14BgMIvDogRdL0QQ2VYLXY",
  "placeName": "Chicago Food On The Run | Chicago IL",
  "placeAlternateNames": [],
  "placeUrl": "https://www.facebook.com/100026879958286/",
  "placeAddress": "8040 S. Ashland Ave, Chicago, IL, United States, Illinois",
  "provider": "facebook",
  "reviewId": "UzpfSTEwMDA3MTcyMTQ4Nzk2ODoxNDUwMjkxODQ1NjQ0NjQ6MTQ1MDI5MTg0NTY0NDY0",
  "reviewUrl": "https://www.facebook.com/permalink.php?story_fbid=pfbid0YAVjAiA7d8Z1tTmaC2dZ9m5Pye3yVXGgXViTM3Ttk9MGdPAhoAwcngHhW926Xaqvl&id=100071721487968",
  "reviewTitle": null,
  "reviewText": "Last year in August they was pretty good, I don’t know if they changed cooks or what, theirs food is to spicy now, put to many potatoes in their roast now, and less meat , sweet potatoes ain’t the same , string beans to hot, they food used to taste fresher, now is like it’s a week old or  cooked food has been frozen to long , I haven’t been in awhile, until today and it’s even worse .",
  "reviewDate": "2022-01-10T23:58:31.000Z",
  "reviewRating": null,
  "authorName": "Antoinette Wash"
},
{
  "googleMapsPlaceId": "ChIJ_14BgMIvDogRdL0QQ2VYLXY",
  "placeName": "Chicago Food On The Run | Chicago IL",
  "placeAlternateNames": [],
  "placeUrl": "https://www.facebook.com/100026879958286/",
  "placeAddress": "8040 S. Ashland Ave, Chicago, IL, United States, Illinois",
  "provider": "facebook",
  "reviewId": "UzpfSTEwMDAwMDI1MjY3Nzg1NDo1MzA2NTgyNzg2MDI2NzU4OjUzMDY1ODI3ODYwMjY3NTg=",
  "reviewUrl": "https://www.facebook.com/carolyn.fourte/posts/pfbid04J5SH2KrpubdgDppJByXUqwnofscnr92vvYKnpm7ZdSzGQh4p3AxzPgAhocqETbLl",
  "reviewTitle": null,
  "reviewText": "seasoned just right! Quick service!",
  "reviewDate": "2022-03-30T22:09:38.000Z",
  "reviewRating": null,
  "authorName": "Carolyn Diane Fourté"
},
 {
    "googleMapsPlaceId": "ChIJUd2L8trND4gRJZ9gTYiBhIQ",
    "placeName": "Los Asadores Mexican Grill",
    "placeAlternateNames": [],
    "placeUrl": "https://www.ubereats.com/store/los-asadores-mexican-grill/U27Ry8M7SHGBaNJRHM0sqw?srsltid=AfmBOooqXiCCl2sgEMHNoNWexoV-fYCI_69_7Ut5_maKwKxvIYg4WnE2",
    "placeAddress": "3312 W Foster Ave, Chicago, IL 60625",
    "provider": "uber-eats",
    "reviewId": null,
    "reviewUrl": null,
    "reviewTitle": null,
    "reviewText": "great tasting food!",
    "reviewDate": "2024-08-10T00:00:00.000Z",
    "reviewRating": null,
    "authorName": "Paola R."
  },
  {
    "googleMapsPlaceId": "ChIJUd2L8trND4gRJZ9gTYiBhIQ",
    "placeName": "Los Asadores Mexican Grill",
    "placeAlternateNames": [],
    "placeUrl": "https://www.ubereats.com/store/los-asadores-mexican-grill/U27Ry8M7SHGBaNJRHM0sqw?srsltid=AfmBOooqXiCCl2sgEMHNoNWexoV-fYCI_69_7Ut5_maKwKxvIYg4WnE2",
    "placeAddress": "3312 W Foster Ave, Chicago, IL 60625",
    "provider": "uber-eats",
    "reviewId": null,
    "reviewUrl": null,
    "reviewTitle": null,
    "reviewText": "they're salsa and their chips as well as the food is awesome they fix it just the way I like it and they take a special care to the fact that I'm allergic to certain foods and they take care and understanding that I like that most restaurants don't c",
    "reviewDate": "2024-06-18T00:00:00.000Z",
    "reviewRating": null,
    "authorName": "Ramona S."
  },
  {
    "googleMapsPlaceId": "ChIJ0VfBS10tDogR93VPEGTyeek",
    "placeName": "Uncle Ben's Grill",
    "placeAlternateNames": [],
    "placeUrl": "https://www.ubereats.com/store/uncle-bens-grill/0w04aYotQMWip0_qt-gNbg?srsltid=AfmBOooNBelKsg3R17iPiLKBW2NY_pi59W2p0XKAIsA_0jif8_YEk-q_",
    "placeAddress": "456 North Damen Avenue, Chicago, IL 60622",
    "provider": "uber-eats",
    "reviewId": null,
    "reviewUrl": null,
    "reviewTitle": null,
    "reviewText": "amazing breakfast sandwiches",
    "reviewDate": "2024-07-20T00:00:00.000Z",
    "reviewRating": null,
    "authorName": "Chris D."
  },
  {
    "googleMapsPlaceId": "ChIJ0VfBS10tDogR93VPEGTyeek",
    "placeName": "Uncle Ben's Grill",
    "placeAlternateNames": [],
    "placeUrl": "https://www.ubereats.com/store/uncle-bens-grill/0w04aYotQMWip0_qt-gNbg?srsltid=AfmBOooNBelKsg3R17iPiLKBW2NY_pi59W2p0XKAIsA_0jif8_YEk-q_",
    "placeAddress": "456 North Damen Avenue, Chicago, IL 60622",
    "provider": "uber-eats",
    "reviewId": null,
    "reviewUrl": null,
    "reviewTitle": null,
    "reviewText": "wonderful server and lovely person",
    "reviewDate": "2024-05-17T00:00:00.000Z",
    "reviewRating": null,
    "authorName": "Vondale M."
  },
  ...
```

Some additional information is saved in the [`KeyValueStore`](https://docs.apify.com/platform/storage/key-value-store), for instance:

- the external Actors' run IDs;
- the places scraped from each provider;
- the addresses' geocodes.

### 🍴 Want more tools for scraping restaurant reviews?

This scraper is an [Actor Bundle](https://blog.apify.com/apify-power-actors/), named so because it combines six different Actors into one. You can of course scrape each restaurant review site separately using a designated Actor. Restaurant Review Aggregator combines the results of scrapers from the following websites:

<table>
<tr>
<th>Reviews site</th>
<th>Scraper</th>
</tr>
<tr>
<td>🥂 Yelp</td>
<td><a href="https://apify.com/tri_angle/yelp-scraper">Yelp Scraper</a></td>
</tr>
<tr>
<td>📍 Google Maps</td>
<td><a href="https://apify.com/compass/google-maps-reviews-scraper">Google Maps Reviews Scraper</a></td>
</tr>
<tr>
<td>🍔 UberEats</td>
<td><a href="https://apify.com/tri_angle/ubereats-reviews-scraper">UberEats Reviews Scraper</a></td>
</tr>
<tr>
<td>🌴 Tripadvisor</td>
<td><a href="https://apify.com/maxcopell/tripadvisor-reviews">Tripadvisor Reviews Scraper</a></td>
</tr>
<tr>
<td>📘 Facebook</td>
<td><a href="https://apify.com/apify/facebook-reviews-scraper">Facebook Reviews Scraper</a></td>
</tr>
<tr>
<td>🍽️ DoorDash</td>
<td><a href="https://apify.com/tri_angle/doordash-reviews-scraper">DoorDash Reviews Scraper</a></td>
</tr>
</table>

If you want to check out more Bundles, you might be interested in 🤔 [Social Media Sentiment Analysis Tool](https://apify.com/tri_angle/social-media-sentiment-analysis-tool) and 📱 [Social Media Finder](https://apify.com/tri_angle/social-media-finder).

If you want to check out more Actor bundles, you might be interested in 🤔 [Social Media Sentiment Analysis Tool](https://apify.com/tri_angle/social-media-sentiment-analysis-tool) and 📱 [Social Media Finder](https://apify.com/tri_angle/social-media-finder).

### ❓FAQ

#### How does Restaurant Review Aggregator work?

First, it identifies places from Google Maps according to your input. The scraper takes places found Google Maps as the source of truth: therefore, each extracted review will refer to a place found on Google Maps, at the very least. Then, the Aggregator takes the places found on Google Maps as the new input and scrapes their reviews on other review sites.

#### How does the Aggregator extract restaurant reviews from Facebook?

Scraping restaurant reviews from Facebook in particular has a special approach:

1. Once the Aggregator finds each place on Google Maps, it then searches for their respective Facebook Pages using Google Search.
2. The Aggregator scrapes the Facebook URLs it found to get the necessary information from each page, such as the place address.
3. The addresses from Google Maps and the Facebook Pages are then geocoded (using their coordinates on Google Maps) and compared.
4. The places with the matching addresses are eventually scraped for reviews.

#### Is it legal to scrape restaurant reviews?

Our [scrapers](https://apify.com/tri_angle) are ethical and **do not extract any private user data**. They only extract what the user has chosen to share publicly. However, you should be aware that your results could contain personal data such as names. You should not scrape personal data unless you have a legitimate reason to do so.

If you're unsure whether your reason is legitimate, consult your lawyers. You can also read our blog post on the [legality of web scraping](https://blog.apify.com/is-web-scraping-legal/) and [ethical scraping](https://blog.apify.com/what-is-ethical-web-scraping-and-how-do-you-do-it/).

#### Can I use this Review Aggregator as a Restaurant Review API?

Yes, you can use the Apify API to access data scraped by Restaurant Review Aggregator programmatically. The API allows you to manage, schedule, and run Apify Actors, access datasets, monitor performance, get results, create and update Actor versions, and more.

To access the API using Node.js or Python, you can use the `apify-client` in the [NPM package](https://apify.com/tri_angle/restaurant-review-aggregator/api/client/nodejs) or [PyPI package](https://apify.com/tri_angle/restaurant-review-aggregator/api/client/python). There are also [API endpoints](https://apify.com/tri_angle/restaurant-review-aggregator/api/endpoints) available for extracting data without a client. For detailed information and code examples, see the [API tab](https://apify.com/tri_angle/restaurant-review-aggregator/api/client/nodejs) or refer to the [Apify API documentation](https://docs.apify.com/api/v2).

#### Can I integrate Restaurant Reviews Aggregator with other apps?

Yes. Restaurant Reviews Aggregator can be connected with almost any cloud service or web app thanks to the integrations available on the Apify platform. You can **[integrate your reviews data](https://apify.com/integrations) with Zapier, Slack, Make, Airbyte, GitHub, Google Drive, LangChain**, and more.

You can also use [webhooks](https://docs.apify.com/integrations/webhooks) to carry out an action whenever an event occurs, e.g., get a notification whenever Restaurant Reviews Aggregator successfully finishes a run.

#### Your feedback

We’re always working on improving the performance of our Actors. So if you’ve got any technical feedback for this Review Aggregator or simply found a bug, please create an issue on the Aggregator's [Issues tab](https://apify.com/tri_angle/restaurant-review-aggregator/issues/open).

# Actor input Schema

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

Keywords to search on Google Maps.

## `checkNames` (type: `boolean`):

Filter out places found on Google Maps whose name is too far from all the search keywords or the given names.

## `requireExactNameMatch` (type: `boolean`):

Only include places whose name contains the exact keyword or one of the given names (case insensitive). Does nothing if "check place titles" is not selected.

## `altMatchingNames` (type: `array`):

Allows to specify alternative names (to the right, separated by comma) for each place (to the left). Ignored if "checkTitle" is not selected.

## `location` (type: `string`):

Location for the Google Maps search. Use simple locations, e.g., city and country.

## `deeperCityScrape` (type: `boolean`):

Extract more places inside each city in a region, from Google Maps (more expensive).

## `maxPlaces` (type: `integer`):

Only considered if searching places using a keyword. If you want to scrape all available places, set this value to <code>9999999</code>. If the number is less than <code>200</code>, <code>deeperCityScrape</code> will be disabled.

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

The URLs of the Google Maps pages to start from. Only URLs containing the substring "/maps/search" support using the faster Google Maps Extractor. If specified, keyword and other search parameters will be ignored, except for Place IDs.

## `startIds` (type: `array`):

Google Maps IDs to start from, e.g., `ChIJ9WHIk0RDwokRepvvClAy9Ss`. They will be converted to URLs and added to possible existing start URLs, and they require using the regular Google Maps scraper (slower). If specified, keyword and other search parameters will be ignored, except for Start URLs.

## `providers` (type: `array`):

Select the providers to scrape for reviews. Even if you deselect Google Maps, it will still be used to scrape the places at the beginning. If omitted, all the providers will be automatically selected.

## `maxReviewsPerPlaceAndProvider` (type: `integer`):

The number of reviews to scrape for each place, from each provider. Some providers may not support scraping a very high number of reviews: the number will be clipped.

## `reviewsFromDate` (type: `string`):

Scrape only reviews from a given date. Some providers may not be compatible with this feature.

## `scrapeReviewPictures` (type: `boolean`):

Add review pictures into the output. Currently supported providers: Facebook, Google Maps, TripAdvisor, Yelp.

## `scrapeReviewResponses` (type: `boolean`):

Add owner's responses to reviews into the output. Currently supported providers: Google Maps, TripAdvisor, Yelp.

## Actor input object example

```json
{
  "checkNames": false,
  "requireExactNameMatch": false,
  "deeperCityScrape": false,
  "maxPlaces": 10,
  "maxReviewsPerPlaceAndProvider": 10,
  "scrapeReviewPictures": false,
  "scrapeReviewResponses": false
}
```

# 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 = {
    "maxPlaces": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("tri_angle/restaurant-review-aggregator").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 = { "maxPlaces": 10 }

# Run the Actor and wait for it to finish
run = client.actor("tri_angle/restaurant-review-aggregator").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 '{
  "maxPlaces": 10
}' |
apify call tri_angle/restaurant-review-aggregator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tri_angle/restaurant-review-aggregator"
        }
    }
}
```

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/wXupshmbCBDWd39y7/builds/Ww0Q6xgsFYWsNVUvd/openapi.json
