# Tripadvisor Reviews and Search Scraper (`deepmine/tripadvisor-scraper-rust`) Actor

Tripadvisor scraper: every review of any hotel, restaurant or attraction (text, rating, trip type, travel date, subratings, photos, owner reply, reviewer) by URL or by name, the place's rating and star counts, and places by name. No login, no browser. Fast, cheap per result.

- **URL**: https://apify.com/deepmine/tripadvisor-scraper-rust.md
- **Developed by:** [DeepMine](https://apify.com/deepmine) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.33 / 1,000 review or places

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

## Tripadvisor Reviews and Search Scraper

Get every review of any Tripadvisor hotel, restaurant, attraction or tour (text, stars, title, trip type, travel date,
subratings, photos, the owner's reply, the reviewer's profile) plus the place's rating, full address, website,
phone and email. Give Tripadvisor URLs or place names, or search places by name. No login,
no browser, no Tripadvisor account.

| Place | Stars | Published | Title | Reviewer | From | Trip |
|---|---|---|---|---|---|---|
| The Michelangelo New York | 5 | 2026-11-03 | Always perfect! | Lilybell1101 | Saint Louis, Missouri | Family |
| Joe's Stone Crab | 5 | 2026-11-08 | Fantastic first time experience | scott o | Nottingham, United Kingdom | Couples |
| Colosseum | 5 | 2026-11-10 | Excellent! | Rosalind O | Dryden, Canada | Friends |

*Real rows, collected 2026-11-11.*

**Price: $0.45 per 1,000 reviews on the Starter plan** ($0.99 on Free, $0.39 Scale, $0.33 Business). The prefill run
(100 reviews of Marina Bay Sands) costs about $0.05 on Starter. You pay only for reviews saved: never for duplicates,
places that failed or were unclear, or the summary record.

### What you can do with it

- **Monitor your hotel or restaurant**: schedule a run with *Only reviews since* = `7 days` and get only the new reviews.
- **Compare competitors**: put several places in one run; each row says which place it belongs to.
- **Research guests**: filter by star rating, trip type (family, couples, solo, business, friends), language, or reviews
  mentioning a word (`breakfast`, `pool`, `noise`).
- **Feed analytics or AI**: clean JSON, one review per row, with dates in ISO format and photos as full-size URLs.

### Input

| Field | What it does |
|---|---|
| Tripadvisor URLs | Hotel, restaurant, attraction or tour pages on any Tripadvisor domain, or bare location ids |
| Place names | `Katz's Delicatessen, New York` or `Louvre Museum Paris`: give the city with the name. The Actor takes a place only when it is clearly the one you named (name and city match); otherwise it reads nothing, charges nothing, and lists the candidates in `OUTPUT` so you can pick a URL |
| City or area for names | One city for all names (`Miami Beach`), when the names don't say it |
| Max reviews per place | Default 100; Tripadvisor serves every review back to the first one |
| Sort reviews by | Newest first (default), most detailed, most insightful, Tripadvisor's default |
| Only reviews since | `2026-01-31`, or `3 months`, `14 days` back from today; works with every sort order |
| Skip machine translations | Leave out reviews Tripadvisor machine-translated into your locale (they are marked `isMachineTranslated` otherwise) |
| Ratings / Review languages / Trip types / Reviews mentioning | Tripadvisor's own review filters |
| Hotel website | On by default: fills a hotel's own website (one small request per hotel, no extra charge) |
| Search terms | Search mode: places for each term, up to 20 each |

Example:

```json
{
  "startUrls": [{"url": "https://www.tripadvisor.com/Hotel_Review-g294265-d1770798-Reviews-Marina_Bay_Sands-Singapore.html"}],
  "placeNames": ["Joe's Stone Crab Miami Beach"],
  "maxReviewsPerPlace": 200,
  "lastReviewDate": "3 months",
  "reviewRatings": ["1", "2"]
}
```

### Output

One row per review:

```json
{
  "id": 1010698048,
  "url": "https://www.tripadvisor.com/ShowUserReviews-g294265-d1770798-r1010698048-Marina_Bay_Sands-Singapore.html",
  "title": "Luxury Defined: Marina Bay Sands is the Best Hotel Stay in Singapore",
  "text": "If you're looking for a 5-star luxury hotel in Singapore…",
  "rating": 5,
  "publishedDate": "2025-06-02T04:35:15.333Z",
  "travelDate": "2025-01",
  "tripType": "FAMILY",
  "lang": "en",
  "originalLanguage": "en",
  "isMachineTranslated": false,
  "helpfulVotes": 2,
  "subratings": [{"name": "Rooms", "value": 5}, {"name": "Service", "value": 5}],
  "roomTip": null,
  "photoCount": 7,
  "photos": [{"id": 806013980, "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/30/0a/cc/1c/caption.jpg?w=2880&h=1620&s=1", "caption": null, "width": 2880, "height": 1620}],
  "user": {"userId": "5C9B…", "name": "990MatthieuL", "username": "990MatthieuL", "link": "https://www.tripadvisor.com/Profile/990MatthieuL", "avatar": "https://…", "userLocation": {"id": 187147, "name": "Paris, France"}, "contributions": {"totalContributions": 808, "helpfulVotes": 151}},
  "ownerResponse": {"id": 1013006412, "text": "Dear 990MatthieuL, …", "lang": "en", "publishedDate": "2025-06-14T17:39:21.43Z", "responder": "Shawn Ng", "connectionToSubject": "Other"},
  "isPinned": true,
  "confirmedBooking": false,
  "hasTrustSafetyAlert": false,
  "partner": null,
  "locationId": 1770798,
  "placeInfo": {"id": 1770798, "name": "Marina Bay Sands", "type": "ACCOMMODATION", "webUrl": "https://www.tripadvisor.com/Hotel_Review-…", "numberOfReviews": 2755, "address": "10 Bayfront Avenue, Singapore 018956 Singapore", "addressObj": {"street1": "10 Bayfront Avenue", "street2": null, "city": null, "state": null, "country": "Singapore", "postalcode": "018956"}, "locationString": "Singapore, Singapore", "latitude": 1.28376, "longitude": 103.8591, "rating": 4.8, "ratingHistogram": {"count1": 49, "count2": 24, "count3": 51, "count4": 134, "count5": 2497}, "subratings": [{"name": "Cleanliness", "value": 4.9}, {"name": "Location", "value": 4.9}, {"name": "Rooms", "value": 4.9}, {"name": "Service", "value": 4.8}, {"name": "Sleep Quality", "value": 4.9}, {"name": "Value", "value": 4.5}]},
  "input": "https://www.tripadvisor.com/Hotel_Review-g294265-d1770798-Reviews-Marina_Bay_Sands-Singapore.html"
}
```

`placeInfo` carries the place's own rating, its 1-5 star counts (`ratingHistogram`) and its subratings, the full
`address` and its parts (`addressObj`: street1, street2, city, state, country, postalcode), `locationString`,
`latitude` and `longitude`, and the place's contacts as Tripadvisor lists them: `website`, `phone` and `email` for
restaurants, attractions and hotels (a hotel lists them through its Tripadvisor business listing; places that list
no contact give `null`). Restaurants add `cuisines` and `priceRange`.

A hotel's website comes from a short Tripadvisor redirect that refuses datacenter connections, so the Actor reads it
with one to three small residential-proxy requests per hotel (about 9 KB each; you are charged only per review, never
for this). It asks only once the hotel has a review to save, and waits at most 10 seconds for it so your rows are not
held up. Tripadvisor's tracking tags (`utm_...`) are removed, and when the hotel's own site moves `http://` to
`https://`, you get the `https://` address. Turn off *Hotel website* to skip it; phone and email are still filled.

Every hotel row says why its website is or is not there, in `placeInfo.websiteStatus`:

| websiteStatus | Meaning |
|---|---|
| `fetched` | the hotel's own website is in `website` |
| `off` | the hotel lists a website, but the *Hotel website* input was off |
| `notListed` | the hotel lists no website on Tripadvisor (no business listing, or one without a website link) |
| `refused` | Tripadvisor refused the website redirect on 3 tries (or the hotel's listing did not load) |
| `budget` | not asked: the run reached its cap of 400 website asks, or your spending limit stopped it |
| `timedOut` | Tripadvisor took longer than 10 seconds to answer, so the rows went out without it |

The run's OUTPUT counts hotels per status (`hotelWebsite.hotelsByWebsiteStatus`), and the status message ends with
the same counts (for example "hotel website: 2 fetched, 1 not listed on Tripadvisor").

**Not included:** the original text of a machine-translated review (Tripadvisor sends only the translation: use *Review languages* or *Skip machine
translations* to get originals only).

If a place has no review that matches your filters, or a name is unclear, the run says so in its status line and in
`OUTPUT` (it never ends as a silent empty success). Search mode
rows: `locationId`, `name`, `type`, `webUrl`, `address`, `locationString`, `nameWithParent`, `isGeo`, `latitude`,
`longitude`, `image`, `sponsored`, `searchQuery`, `rank`.

The run's `OUTPUT` record lists each place with Tripadvisor's review total, the rows saved and how the run went.

### Pricing

$0.45 per 1,000 reviews on Starter ($0.99 Free, $0.39 Scale, $0.33 Business): 100 reviews cost about $0.05.
Search mode charges the same per place found. Duplicates, failed or unclear places and summary records are free.

### FAQ

**Do I need a proxy?** Apify's datacenter proxy (the default) is enough.

**What if Tripadvisor changes its site?** The Actor reads Tripadvisor's current query id from the live site by
itself when Tripadvisor refuses the one it knows, and fails with a clear message (never an empty "success") if it
can't recover.

**A name picked the wrong place?** It shouldn't: a name is taken only when the name and city match one place. If you
see one, paste the Tripadvisor URL instead and tell us in the Issues tab.

### Next step

Run the prefill, then put your own places in. If the Actor saved you time, a short review on its Store page helps
others find it; questions and requests go to the Issues tab.

# Actor input Schema

## `mode` (type: `string`):

Reviews of the places below, or places found by name (search). Left empty: reviews when you give URLs or names, search when you give only search terms.

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

Hotel, restaurant, attraction or tour pages on any Tripadvisor domain (the -d<number> part names the place), or bare location ids. Example: https://www.tripadvisor.com/Hotel_Review-g294265-d1770798-Reviews-Marina_Bay_Sands-Singapore.html

## `placeNames` (type: `array`):

Names instead of URLs, best with the city: "Katz's Delicatessen, New York", "Louvre Museum Paris". A name is taken only when one hotel, restaurant or attraction clearly matches its name and city. When none or several do, nothing is read or charged for it, and OUTPUT lists the candidates with their URLs.

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

The city every place name above is in (like Miami Beach or New York), when the names don't say it. A place must lie there to be taken.

## `maxReviewsPerPlace` (type: `integer`):

Stop each place after this many reviews. Tripadvisor serves every review, back to the first one.

## `sortBy` (type: `string`):

Newest first (default) is what a date cutoff needs. Detailed and insightful are Tripadvisor's own orders.

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

Only reviews written on or after this date: 2026-01-31, or a span back from today like 3 months or 14 days. Works with every sort order (newest first stops reading at the date; other orders read on and skip older reviews).

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

Only reviews with these star ratings (1 to 5). Empty: all ratings.

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

Only reviews written in these languages (codes like en, fr, de, es, it, ja, zh). Empty: all languages, with Tripadvisor's machine translations marked by isMachineTranslated.

## `tripTypes` (type: `array`):

Only reviews from these kinds of trips. Empty: all.

## `reviewsContaining` (type: `string`):

Only reviews that mention this word or phrase (Tripadvisor's own review search), like pool or breakfast.

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

Leave out reviews that Tripadvisor machine-translated into your locale (not saved, not charged). Off: they are kept and marked isMachineTranslated; Tripadvisor does not send their original text.

## `includeHotelWebsite` (type: `boolean`):

Fill a hotel's own website (placeInfo.website). Tripadvisor hands it out only through a short redirect that refuses datacenter IPs, so it is read with one to three small residential-proxy requests per hotel (about 9 KB each, no extra charge to you). Off: hotel website stays empty (placeInfo.websiteStatus says off); phone and email are still filled.

## `searchQueries` (type: `array`):

Search mode: places for each term (hotels, restaurants, attractions, tours, cities), with id, type, address, area, coordinates, photo and URL. Use the URLs as input for reviews.

## `maxSearchResults` (type: `integer`):

Places per search term (Tripadvisor's search gives up to 20).

## `locale` (type: `string`):

Tripadvisor locale for the answers, like en-US, en-GB, fr-FR, de-DE.

## `refreshQueryId` (type: `boolean`):

The Actor keeps Tripadvisor's review query id between runs and reads it again from the site by itself when Tripadvisor refuses it. Turn this on only to force a fresh read at the start.

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

Apify datacenter proxy is enough; no residential proxy is needed.

## Actor input object example

```json
{
  "mode": "reviews",
  "startUrls": [
    {
      "url": "https://www.tripadvisor.com/Hotel_Review-g294265-d1770798-Reviews-Marina_Bay_Sands-Singapore.html"
    }
  ],
  "maxReviewsPerPlace": 100,
  "sortBy": "newest",
  "disableMachineTranslations": false,
  "includeHotelWebsite": true,
  "searchQueries": [
    "marina bay sands singapore"
  ],
  "maxSearchResults": 10,
  "locale": "en-US",
  "refreshQueryId": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (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-g294265-d1770798-Reviews-Marina_Bay_Sands-Singapore.html"
        }
    ],
    "maxReviewsPerPlace": 100,
    "searchQueries": [
        "marina bay sands singapore"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("deepmine/tripadvisor-scraper-rust").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-g294265-d1770798-Reviews-Marina_Bay_Sands-Singapore.html" }],
    "maxReviewsPerPlace": 100,
    "searchQueries": ["marina bay sands singapore"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("deepmine/tripadvisor-scraper-rust").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-g294265-d1770798-Reviews-Marina_Bay_Sands-Singapore.html"
    }
  ],
  "maxReviewsPerPlace": 100,
  "searchQueries": [
    "marina bay sands singapore"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call deepmine/tripadvisor-scraper-rust --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,deepmine/tripadvisor-scraper-rust"
        }
    }
}
```

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/4oLTYQzbfCKcC3Swk/builds/harQYINVKuqZ1auB3/openapi.json
