# Tripadvisor Reviews Scraper (Hotels, Restaurants, Attractions) (`praguedatalab/tripadvisor-scraper`) Actor

Scrape Tripadvisor reviews and place details for hotels, restaurants and attractions from their URLs: rating, title, text, stay date, trip type, language, owner response. Drop-in input of maxcopell/tripadvisor-reviews at $1 per 1,000.

- **URL**: https://apify.com/praguedatalab/tripadvisor-scraper.md
- **Developed by:** [Prague Data Lab](https://apify.com/praguedatalab) (community)
- **Categories:** Travel, Business, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 2 monthly users, 77.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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.

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

## Tripadvisor Scraper

Get Tripadvisor reviews and place details for hotels, restaurants and attractions, from their URLs: rating, title, text, stay date, trip type, language and the owner's response, one row per review. Hoteliers and reputation teams use it to follow their own reviews and their competitors'. $1 per 1,000 reviews.

### Why this one

| | Price per 1,000 results |
|---|---|
| **This Actor** | $1.00 (reviews and place rows) |
| Popular alternatives (top 5 on the Store by users) | $0.50 – $5.00 |

The top five Actors for "tripadvisor scraper" list between $0.50 and $5 per 1,000 results.

### Quick start

Run the Actor with this input. Every other field has a default.

```json
{
  "startUrls": [
    {
      "url": "https://www.tripadvisor.com/Hotel_Review-g187147-d188732-Reviews-Le_Meurice-Paris_Ile_de_France.html"
    }
  ],
  "maxItemsPerQuery": 30
}
```

### Output example

One row, trimmed. The full field list is further down this page.

```json
{
  "type": "review",
  "id": "1082028823",
  "title": "Lovely evening",
  "text": "Great food, friendly staff, we would come back.",
  "rating": 5,
  "lang": "en",
  "publishedDate": "2026-10-16T11:58:34.320Z",
  "tripType": "couples",
  "ownerResponse": {
    "text": "Thank you for your kind review, see you soon!",
    "publishedDate": "2026-10-19T09:12:00.000Z"
  }
}
```

### Use it from your code

The Actor id is `praguedatalab/tripadvisor-scraper`. Replace `YOUR_APIFY_TOKEN` with your Apify API token.

**Python** (`pip install apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("praguedatalab/tripadvisor-scraper").call(run_input={"startUrls":[{"url":"https://www.tripadvisor.com/Hotel_Review-g187147-d188732-Reviews-Le_Meurice-Paris_Ile_de_France.html"}],"maxItemsPerQuery":30})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**JavaScript** (`npm install apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('praguedatalab/tripadvisor-scraper').call({"startUrls":[{"url":"https://www.tripadvisor.com/Hotel_Review-g187147-d188732-Reviews-Le_Meurice-Paris_Ile_de_France.html"}],"maxItemsPerQuery":30});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**curl** (returns the rows as JSON; the endpoint waits for the run, up to 5 minutes, so keep the limits small)

```bash
curl -X POST "https://api.apify.com/v2/acts/praguedatalab~tripadvisor-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"startUrls":[{"url":"https://www.tripadvisor.com/Hotel_Review-g187147-d188732-Reviews-Le_Meurice-Paris_Ile_de_France.html"}],"maxItemsPerQuery":30}'
```

### Use it with AI agents

AI assistants can call `praguedatalab/tripadvisor-scraper` through the Apify MCP server. They get the recent reviews of a place as JSON rows, one per review.

### FAQ

#### Is it legal to scrape Tripadvisor?

The Actor reads public review pages without logging in. It never returns reviewer names, avatars, profile links or home towns. Tripadvisor's terms still apply to how you use the data. This is not legal advice.

#### How much do 10,000 results cost?

$10.00 for 10,000 reviews. Place rows cost the same per row. Set a maximum cost per run to cap the spend. A run that is blocked before the first review charges nothing.

#### Do I need a proxy?

Keep the default proxy setting: Apify Proxy with the RESIDENTIAL group, because Tripadvisor checks each IP address. Keep it on for regular runs.

#### How fresh is the data?

Each run reads the review pages when it runs. Set `lastReviewDate`, for example to "1 week", to get only recent reviews.

#### Can I export to Excel, CSV or Google Sheets?

Yes. Each run saves a dataset that you can download as JSON, CSV or Excel. For Google Sheets, import the CSV, or connect Apify to Google Sheets with an integration.

#### Can I schedule it daily?

Yes. In the Apify Console, open the Actor, go to Schedules, and add a daily schedule with the same input. Each run is billed per result, as usual.

### Compatible with the input of maxcopell/tripadvisor-reviews

Switching takes one change: the Actor ID. This Actor accepts the same input fields: `startUrls`, `maxItemsPerQuery`, `reviewRatings` (`ALL_REVIEW_RATINGS`, `1`…`5`), `reviewsLanguages`, `lastReviewDate` (`YYYY-MM-DD` or `3 days`, `1 week`, `6 months`), and also `scrapeReviewerInfo`, `disableMachineTranslations` and `sourceDatasetId`, which are accepted so existing inputs validate but have no effect (see below). It writes the same review field names next to its own: `id`, `url`, `title`, `text`, `rating`, `lang`, `originalLanguage`, `isMachineTranslated`, `publishedDate`, `travelDate`, `helpfulVotes`, `subratings` (`[{name, value}]`), `ownerResponse` (`id`, `title`, `text`, `lang`, `publishedDate`), `locationId` and `placeInfo` (`id`, `name`, `numberOfReviews`, `locationString`, `latitude`, `longitude`, `webUrl`, `website`, `address`, `addressObj`).

Differences to know about:

| Leader | Here |
|---|---|
| `user` (reviewer name, avatar, profile, home town, contributions) | **Not returned, ever.** `scrapeReviewerInfo` is ignored. |
| `ownerResponse.responder` | Replaced by `ownerResponse.responderRole` (General Manager, Owner…). The responding account's name is not copied. |
| `photos` | `photosCount` only. Photos uploaded by travellers are not returned. |
| `publishedDate` with a local time offset | Same moment in UTC (`…Z`). |
| `disableMachineTranslations` (original-language text) | Not supported: Tripadvisor serves translated text on the pages we read. Each row says `isMachineTranslated` and `originalLanguage`, so you can filter afterwards. |
| `sourceDatasetId` | Not supported: pass the URLs in `startUrls`. |
| One output type | Reviews are `type: "review"`. Place rows (`type: "place"`) exist only when you turn on `scrapePlaceDetails`. |

### What you get

| Place type | URL contains | Reviews per page | Place details |
|---|---|---|---|
| Hotel | `Hotel_Review-` | 10 | rating, review count, ranking, price level, address, coordinates, phone, website, amenities |
| Restaurant | `Restaurant_Review-` | 15 | the same, with cuisines instead of amenities |
| Attraction | `Attraction_Review-` | 10 | the same, with opening hours when Tripadvisor gives them |

Any Tripadvisor domain works (`tripadvisor.com`, `.co.uk`, `.fr`, `.de`…). Reviews come newest first, from the page's default review list, which is the English view of Tripadvisor (reviews in other languages appear machine-translated; `originalLanguage` tells you what the reviewer wrote). For the hotel used in our tests that list holds 955 of the place's 1,478 reviews: `totalAvailable` in the `SUMMARY` record shows the figure for every place.

### Use cases

- **Hotels and restaurants:** follow your own reviews and your competitors', tag complaints by month, answer faster.
- **Travel and hospitality analysts:** rating and sentiment trends per city, per category, per season.
- **Agencies and reputation tools:** feed a dashboard with new reviews every week (`lastReviewDate: "1 week"`).
- **AI agents:** one call returns a structured, de-duplicated list of recent reviews of a place.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `startUrls` | array | | Hotel, restaurant or attraction URLs. A page number in the URL (`-or10-`) is ignored. |
| `maxItemsPerQuery` | integer | `50` | Maximum reviews per URL. Each review is one charged result. `maxReviews` works as an alias. |
| `reviewRatings` | array | all | Keep only these ratings (`1`…`5`). |
| `reviewsLanguages` | array | all | Keep only reviews in this language (original or shown). |
| `lastReviewDate` | string | | Stop at reviews older than this date. |
| `scrapePlaceDetails` | boolean | `false` | One extra `place` row per URL. |
| `proxyConfiguration` | object | none | Optional Apify Proxy. See the proxy advice. |
| `scrapeReviewerInfo`, `disableMachineTranslations`, `sourceDatasetId` | | | Leader fields, accepted and ignored. |

The rating and language filters are applied while reading: a rare rating or language means more pages read before `maxItemsPerQuery` is reached.

### Output fields

| Field | Rows | Description |
|---|---|---|
| `type` | all | `review` or `place` (also the charged event). |
| `id`, `url` | review | Tripadvisor review ID and link. |
| `title`, `text` | review | Review title and text. |
| `rating` | review | 1 to 5 (place: overall rating such as 4.7). |
| `lang`, `originalLanguage`, `isMachineTranslated` | review | Language shown, language written, whether the text is a translation. |
| `publishedDate` | review | ISO 8601 UTC. |
| `travelDate` | review | Month of the stay or visit, `YYYY-MM`. |
| `tripType` | review | `family`, `couples`, `solo`, `business`, `friends` or `null`. |
| `helpfulVotes` | review | Number of helpful votes. |
| `subratings` | review | `[{name, value}]`, e.g. Value, Rooms, Service (hotels). |
| `ownerResponse` | review | `{id, title, text, lang, publishedDate, responderRole}` or `null`. |
| `photosCount` | review | Number of photos on the review. |
| `locationId`, `placeType`, `placeName`, `placeUrl`, `placeInfo` | review | The place the review is about. |
| `name`, `webUrl`, `website`, `numberOfReviews`, `priceLevel`, `priceRange`, `address`, `addressObj`, `latitude`, `longitude`, `phone`, `amenities`, `cuisines`, `openingHours`, `image` | place | Basic place details. |
| `rankingText`, `rank`, `rankOutOf`, `rankCategory`, `rankArea` | place | Ranking such as "#12 of 16,895 restaurants in Paris". |
| `scrapedAt` | all | When the place was read (UTC). |

The run also writes a `SUMMARY` record to the key-value store: reviews and place rows delivered, and for every URL its status (`ok`, `partial`, `blocked`, `no_reviews_found`, `error`, `skipped`), pages read and `totalAvailable`.

### Pricing

Pay per event, nothing else: **$0.001 per review** ($1 per 1,000) and **$0.001 per place row**. No platform usage is added on top. Set a maximum cost per run in the run options to cap spending; the Actor stops cleanly when it is reached. A run that is blocked before the first review charges nothing.

### Proxy advice

Tripadvisor protects its pages with DataDome, which scores the visitor's IP and browser. The Actor starts a real Google Chrome once, gets through DataDome's JavaScript check, and then pages the reviews over plain HTTP with the cookie it earned. When DataDome asks again (every few pages on a busy IP) the same URL is opened in a fresh browser session, which also returns that page. Captchas are never solved.

- **Default (no proxy):** the Actor starts from the platform's own IP, which often gets a few hundred reviews per place through. If DataDome serves a captcha that no retry gets past, the run ends with a clear status and charges nothing for the missing reviews.
- **Blocked, or more than a few hundred reviews per place:** open **Proxy** in the input, choose **Apify Proxy** and the **RESIDENTIAL** group. Every refresh then uses a new IP, which is what keeps DataDome calm. Residential traffic is about 150 KiB per page of 10 reviews, i.e. about $0.12 of proxy cost per 1,000 reviews, plus roughly 1-2 MB each time the browser refreshes the session.
- The browser step needs about 2 GB of memory, which is the default for this Actor.
- Speed: roughly 0.5-1 s per page of 10 reviews, plus 3-5 s each time the browser has to refresh the session.

### Residential fallback

With no proxy in the input, the browser step runs once from the platform's IP. If DataDome blocks it and the run has Apify residential proxy access, the Actor retries through the **RESIDENTIAL** group by itself and keeps it for the rest of the run. Without that access the run ends with the advice above. The status message says which path served the pages (`residentialFallback=true` means the retry happened). The prefilled input already uses the residential proxy, so the daily test is not affected.

Cost, measured on 23/10: about $0.00005 of platform usage per 30 reviews.

### Not supported

Search by place name or location (paste URLs), vacation rentals, flights, forums, traveller photos, questions and answers, reviewer profiles.

### Privacy and terms

The Actor reads public Tripadvisor pages without logging in and returns the content of each review (rating, title, text, dates, trip type, language, owner response) and business data about the place. It does not read or return reviewer names, avatars, profile links, home towns or contribution counts. When an owner's response quotes the reviewer's Tripadvisor handle, the handle is replaced by `[reviewer]`; names the business writes into free text cannot be detected, so treat response texts as business correspondence. Review text itself can contain personal information that the reviewer chose to publish; you are responsible for using the data in line with the privacy law that applies to you. Tripadvisor's terms restrict automated collection: use moderate volumes and check that your use is permitted. This Actor is not affiliated with Tripadvisor.

# Actor input Schema

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

Pages of hotels (<code>Hotel_Review-…</code>), restaurants (<code>Restaurant_Review-…</code>) or attractions (<code>Attraction_Review-…</code>). Any language domain (tripadvisor.com, .co.uk, .fr…). A page number such as <code>-or10-</code> in the URL is ignored: reviews always start from the newest.

## `maxItemsPerQuery` (type: `integer`):

Maximum reviews returned per URL (each review is one charged result). Use a large value to get every review. To cap the total cost of a run use <b>Maximum cost per run</b> in the run options. One IP typically gets a few hundred reviews before Tripadvisor asks for a captcha: enable a residential proxy for more.

## `reviewRatings` (type: `array`):

Keep only reviews with these ratings (1 = terrible … 5 = excellent). <b>All ratings</b> keeps everything. The filter is applied while reading, so a rare rating makes the run slower.

## `reviewsLanguages` (type: `array`):

Keep only reviews written in this language (a translated review counts for its original language and for the language it is shown in). <b>All review languages</b> keeps everything.

## `lastReviewDate` (type: `string`):

Stop at reviews older than this date. Format <code>YYYY-MM-DD</code> or <code>{number} {unit}</code> (e.g. <code>3 days</code>, <code>1 week</code>, <code>6 months</code>).

## `scrapePlaceDetails` (type: `boolean`):

Add one extra row per URL with the place itself: name, rating, number of reviews, ranking, address, coordinates, phone, price level, amenities (hotels), cuisines (restaurants), opening hours. One <code>place</code> event is charged per row. Every review row already carries a short <code>placeInfo</code> for free.

## `proxyConfiguration` (type: `object`):

Optional. Tripadvisor uses DataDome, which scores the IP. If a run says it was blocked, choose Apify Proxy with the <b>RESIDENTIAL</b> group: a new IP is used each time DataDome asks again. Tripadvisor sits behind DataDome: Apify datacenter IPs pass only sometimes, so the residential proxy is prefilled (about $0.0001 of proxy usage per 30 reviews in our tests).

## `scrapeReviewerInfo` (type: `boolean`):

Leader field, accepted so its inputs validate. <b>Ignored:</b> reviewer names, avatars, profiles and home towns are never collected.

## `disableMachineTranslations` (type: `boolean`):

Leader field, accepted so its inputs validate. Not supported: Tripadvisor shows translated text on the page we read. Every row says <code>isMachineTranslated</code> and <code>originalLanguage</code>, so you can filter afterwards.

## `sourceDatasetId` (type: `string`):

Leader field, accepted so its inputs validate. Not supported: pass the URLs in <b>Tripadvisor URLs</b>.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.tripadvisor.com/Hotel_Review-g187147-d188732-Reviews-Le_Meurice-Paris_Ile_de_France.html"
    }
  ],
  "maxItemsPerQuery": 30,
  "reviewRatings": [
    "ALL_REVIEW_RATINGS"
  ],
  "reviewsLanguages": [
    "ALL_REVIEW_LANGUAGES"
  ],
  "lastReviewDate": "2024-01-01",
  "scrapePlaceDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "scrapeReviewerInfo": false,
  "disableMachineTranslations": false
}
```

# Actor output Schema

## `results` (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 = {
    "startUrls": [
        {
            "url": "https://www.tripadvisor.com/Hotel_Review-g187147-d188732-Reviews-Le_Meurice-Paris_Ile_de_France.html"
        }
    ],
    "maxItemsPerQuery": 30,
    "reviewRatings": [
        "ALL_REVIEW_RATINGS"
    ],
    "reviewsLanguages": [
        "ALL_REVIEW_LANGUAGES"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("praguedatalab/tripadvisor-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": [{ "url": "https://www.tripadvisor.com/Hotel_Review-g187147-d188732-Reviews-Le_Meurice-Paris_Ile_de_France.html" }],
    "maxItemsPerQuery": 30,
    "reviewRatings": ["ALL_REVIEW_RATINGS"],
    "reviewsLanguages": ["ALL_REVIEW_LANGUAGES"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("praguedatalab/tripadvisor-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": [
    {
      "url": "https://www.tripadvisor.com/Hotel_Review-g187147-d188732-Reviews-Le_Meurice-Paris_Ile_de_France.html"
    }
  ],
  "maxItemsPerQuery": 30,
  "reviewRatings": [
    "ALL_REVIEW_RATINGS"
  ],
  "reviewsLanguages": [
    "ALL_REVIEW_LANGUAGES"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call praguedatalab/tripadvisor-scraper --silent --output-dataset

```

## MCP server setup

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