# Trip.com Reviews Scraper (`nice_dev/tripcom-reviews-scraper`) Actor

Scrape Trip.com and Ctrip hotel reviews: one row per review, several hotels and whole cities per run. Filters, only new reviews, export to JSON, CSV or Excel.

- **URL**: https://apify.com/nice_dev/tripcom-reviews-scraper.md
- **Developed by:** [Nice Dev](https://apify.com/nice_dev) (community)
- **Categories:** Travel, Lead generation, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.72 / 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 Trip.com Reviews Scraper?

**Trip.com Reviews Scraper** extracts the **hotel reviews of [Trip.com](https://www.trip.com) and Ctrip**, one row per review: **score out of 10 with the scores for location, amenities, service and room, full text and the site's translation, month of the stay and date of the review, traveler type, room, the guest's country, photos and videos, and the hotel's reply**. It reads the reviews written on Trip.com and Ctrip **and the Expedia, Hotels.com and Tripadvisor reviews Trip.com publishes**, for one hotel, a list of hotels, a hotel found by its name, or **every hotel of a city**. It works as a **Trip.com reviews API alternative**: run it on a schedule, call it from your code, or plug it into Make, Zapier or n8n.

Paste a **hotel URL** (Trip.com in any country, or Ctrip), type a **hotel name** or a **city**, click **Start**, and download the reviews in JSON, CSV or Excel. No login, nothing to set up: a hotel with thousands of reviews is read to its last one, the reviews Trip.com folds away included (Grand Hyatt Shanghai: 18,895 reviews, all read). By default a run saves 100 reviews per hotel and 1,000 in all. Fast: about 1,000 reviews of a hotel in 12 seconds on the Apify platform.

### 📋 What data can you extract from Trip.com reviews?

One item per review, 105 fields:

| Category | What you get |
| --- | --- |
| ⭐ **Score** | the guest's score out of 10 and the site's word for it — `10`, `Outstanding` — the scores for location, amenities, service and room, and whether the guest recommends the hotel |
| 📝 **The review** | full text, its language, the **translation** the site gives (and whether Google or the site made it), the photos and videos attached, helpful votes |
| 🧳 **The guest** | pseudonym, country, **traveler type** (business, family, friends, solo, couple), room booked, loyalty level, reviewer title, number of reviews and photos posted |
| 📅 **Dates** | the **month of the stay**, the date and time the review was written |
| 💬 **Hotel reply** | the hotel's answer, its translation and its date; what the guest added later to the review |
| 🔗 **Source** | Trip.com, Ctrip, Expedia, Hotels.com or Tripadvisor; the link to the hotel's reviews; what you gave to find the hotel; the time of the run |
| 🏨 **The hotel** | id, name, link, city and country, overall score and the site's word for it, scores per criterion, number of reviews: announced, positive, negative, with photos, folded away |
| 📍 **Hotel details** | address, postal code, GPS position, stars, category, brand, **the phone numbers and email address the hotel shows**, year opened and renovated, number of rooms, amenities, description, policies, check-in and check-out times, nearby places, photos, FAQ; the site's summary of its reviews: topics, scores against hotels of the same type, counts per traveler type, room and language (option) |

Every field, with an example, is listed in the **Output** section below.

The **hotel details** (address, GPS position, stars, contact, amenities, policies, review summary…) are filled when **Add hotel details to each review** is on (off by default).

### ✅ Why use Trip.com Reviews Scraper?

- 🏨 **One row per review, five sources together**: Trip.com, Ctrip, Expedia, Hotels.com and Tripadvisor. Each row says where the review comes from and carries the hotel's name, city, country, scores and counts, so a spreadsheet of a whole city needs no join.
- ⚡ **Fast**: about 1,000 reviews of a hotel in 12 seconds, and a whole city, the 240 hotels of Annecy (5 reviews each at most), in about 3 minutes, measured on the Apify platform.
- 🌆 **A hotel, a list, a name or a whole city in one run**: URLs (any Trip.com country site, or Ctrip), hotel ids, hotel names, cities and city ids add up; a hotel met twice is read once. Paste the list page of a city with filters set on the site (district, brand, category, price): its hotels are read with them.
- 📚 **Every review, the folded ones too**: Trip.com folds away part of each hotel's reviews by default (about a quarter at the Grand Hyatt Shanghai); the Actor reads them all.
- 🎯 **Filters Trip.com does itself**: review language, traveler type, positive or negative, with photos or video, topic (`Convenient location`). The other reviews are never read, so you never pay for them.
- 🔎 **Filters on score, date, words, source and hotel reply**: complaints only (`maxRating`), the last 3 months, the reviews that mention `breakfast`, only the Expedia reviews, only the reviews the hotel answered.
- 🔔 **New reviews only**: tick **Only new reviews** and schedule the Actor: each run returns only the reviews it never delivered before.
- 🔁 **Same input and output names as other Trip.com review scrapers**: paste the JSON you already use, it runs as it is (see **Tips**).
- 🔌 API, scheduling, monitoring, integrations (Make, Zapier, n8n, Google Sheets…) and JSON/CSV/Excel export via the Apify platform.

### 🚀 How to scrape Trip.com reviews

1. Create a free Apify account.
2. Open **Trip.com Reviews Scraper** and paste one or more **Hotel or city URLs** (a hotel page on Trip.com in any country, or on Ctrip, copied from the address bar).
3. Or type **Hotel names** (`Ritz Paris`), **Hotel IDs** (`346403`), or **Cities** (`Paris`): the first hotels of a city are read, up to **Max hotels per city** (10 by default).
4. Set **Max reviews per hotel** (100 by default, 0 = no limit) and **Max reviews** (1,000 by default, 0 = no limit), then click **Start**.
5. Download the dataset in JSON, CSV, Excel or via API.

### 💰 How much does it cost to scrape Trip.com reviews?

This Actor uses **pay per event** pricing: a price per review saved (one row per review), a price per hotel for the **hotel details** (**Add hotel details to each review**, off by default: charged once per hotel with at least one review saved, never per review), and a small price per run start. Filters Trip.com does itself (review language, traveler type, positive or negative, photos, topics) cost nothing more: the reviews they leave out are never read. Filters Trip.com does not offer (score, dates, words, hotel reply, review source) are applied by the Actor on every review it reads: a review you keep costs its normal price, a review read and dropped by one of these filters costs a small filter check (`filter-check`). The same small check is charged for a hotel dropped by **Minimum hotel rating** or **Minimum number of reviews of the hotel**, and, with **Only new reviews**, for each review already delivered that a run reads again (once per review and per run, see **Monitoring** below). See the **Pricing** tab for the amounts. Platform usage (compute, proxy) is included in the price.

### ⚙️ Input

Every review of one hotel (`maxItems` 0 lifts the cap of 1,000 reviews per run, which also stops a run with `maxReviewsPerHotel` 0):

```json
{
    "startUrls": [{ "url": "https://www.trip.com/hotels/shanghai-hotel-detail-346403/grand-hyatt-shanghai/" }],
    "maxReviewsPerHotel": 0,
    "maxItems": 0
}
```

A hotel by its name and one by its id, the English and Japanese reviews of couples and families:

```json
{
    "hotelNames": ["Ritz Paris"],
    "hotelIds": ["346403"],
    "reviewLanguages": ["English", "Japanese"],
    "travellerTypes": ["70", "30"],
    "maxReviewsPerHotel": 100
}
```

The 20 first 4-star and 5-star hotels of a city, their reviews of the last year scored 6 or less:

```json
{
    "locations": ["Paris"],
    "minStars": 4,
    "maxHotelsPerCity": 20,
    "maxReviewsPerHotel": 50,
    "maxRating": 6,
    "postedAfter": "1 year"
}
```

Complaints that mention noise or dirt and that the hotel answered:

```json
{
    "hotelIds": ["346403"],
    "sortBy": "lowest_rating",
    "maxRating": 4,
    "keywords": ["noise", "dirty"],
    "withResponseOnly": true
}
```

Monitoring: the new reviews of the 50 first hotels of a city list, every day:

```json
{
    "startUrls": [{ "url": "https://www.trip.com/hotels/list?city=192" }],
    "maxHotelsPerCity": 50,
    "onlyNew": true,
    "stateKey": "paris-daily"
}
```

| Field | Notes |
| --- | --- |
| `startUrls` | Pages copied from the address bar. A hotel: `https://www.trip.com/hotels/shanghai-hotel-detail-346403/grand-hyatt-shanghai/`, `https://www.trip.com/hotels/detail/?hotelId=346403`, any country site (`fr.trip.com`, `hk.trip.com`) or Ctrip (`https://hotels.ctrip.com/hotels/346403.html`). A city: its list page, `https://www.trip.com/hotels/list?city=192` or `https://www.trip.com/hotels/paris-hotels-list-192/`, with the filters set on the site (stars, district, brand, category, price). Max 1,000. |
| `hotelIds` | Trip.com hotel ids, e.g. `346403` (the number after `hotelId=` in a hotel page address). Trip.com and Ctrip share the same id. Added to the URLs. |
| `hotelNames` | Hotels as you would type them on Trip.com, e.g. `Ritz Paris` or `上海金茂君悦大酒店`: the hotel of exactly that name wins, else the first one the site proposes (the log says which one). |
| `locations` | Cities as typed on the site, e.g. `Paris`, `Tokyo` or `上海`: the reviews of the first hotels of each city, in the site's own ranking. A district, a station or a landmark reads the whole city it belongs to, with a warning in the log. |
| `cityIds` | Trip.com city ids when you already know them, e.g. `192` (Paris) or `2` (Shanghai), the number after `city=` in a list page. |
| `maxHotelsPerCity` | Hotels read per city, after the hotel filters below: `10` by default, `0` = every hotel of the city (a big city holds 5,000 to 10,000 hotels: keep `maxItems` to bound the run). A hotel you also give by URL, ID or name is read once and takes no place of the city. |
| `minStars`, `maxStars` | Hotel filter for a city: stars from 1 to 5, e.g. `4`. Done by Trip.com: the other hotels are never read. |
| `minHotelRating`, `minHotelReviewCount` | Hotel filter for any hotel (given by URL, ID or name, or found in a city): the hotel's overall score out of 10 (e.g. `8.5`) and its number of reviews, judged on its first page of reviews; each hotel dropped costs a filter check. |
| `excludeHotelIds` | Hotel ids to skip even when a city lists them, e.g. `346403`. |
| `maxReviewsPerHotel` | Cap on the reviews saved for each hotel, all sources together, the first ones in `sortBy` order: `100` by default, `0` = every review of the hotel. `maxItems` still caps the whole run: set it to `0` too to read them all. |
| `maxItems` | Stop after this many reviews for the whole run, all hotels together: `1,000` by default, `0` = no limit. A run it stops says so in its log and in its last message. |
| `sortBy` | Order of the reviews read: `newest` (default: by **month of stay**, see the limits below), `relevant` (the site's own order), `highest_rating`, `lowest_rating`. |
| `reviewLanguages` | Reviews written in these languages, done by Trip.com: the English name (`English`, `Japanese`), an ISO code (`fr`, `ja`) or the site's own number (`7`). A language a hotel has no review in gives no review for that hotel, not an error. |
| `travellerTypes` | Reviews of these types of travelers, done by Trip.com: `10` business, `30` family, `40` friends, `50` solo, `60` booked for others, `70` couple, `0` other. |
| `reviewCategory`, `withPhotosOnly` | Done by Trip.com: `all` (default), `positive` or `negative` reviews as the site counts them; only the reviews with a photo or a video. |
| `topicTags` | Reviews on these topics, the ones Trip.com lists above the reviews of each hotel: their name in the **Site language** (`Convenient location`) or their number (`97`). A topic a hotel does not list gives no review for that hotel. |
| `minRating`, `maxRating` | Score bounds out of 10, e.g. `8` or `5` (0 = no bound). With **Highest rating first** or **Lowest rating first**, the reading of a hotel stops at the bound. |
| `postedAfter`, `postedBefore` | Review date range: `2026-01-01` (the whole day), or a period before now (`7 days`, `3 months`, `1 year`). With **Most recent first**, a hotel is read until its stays are 5 months older than `postedAfter`, then the older ones are skipped unread and not charged. |
| `keywords`, `excludeKeywords` | Keep (or drop) the reviews whose text or translation holds one of these words, e.g. `breakfast` or `bed bugs` (whole words, case and accents ignored). |
| `withResponseOnly` | Keep only the reviews the hotel answered. |
| `reviewSources` | Keep only the reviews of these sources: `trip.com`, `ctrip`, `expedia`, `hotels.com`, `tripadvisor`. Empty = every source. |
| `language` | Site language: `en-XX` (default), `ja-JP`, `ko-KR`, `zh-HK`, `zh-TW`… It sets the labels (traveler type, room, rating word) and the translation the site gives for part of the reviews, in `translatedContent`. Hotel names, cities and countries stay in English. |
| `includeHotelDetails` | Add the hotel's address, GPS position, stars, category, contact, amenities, description, policies and the site's summary of its reviews to every review of that hotel (off by default, charged once per hotel). |
| `onlyNew`, `stateKey`, `resetState` | Monitoring: only the reviews never delivered under this memory key, e.g. `paris-daily`; `resetState` forgets the memory. Change the key (or tick `resetState` once) when you change a filter. |
| Advanced | `proxyConfiguration` (Apify proxy by default, included in the price; the residential proxy is not available), `maxConcurrency`, `maxRequestsPerMinute`, `minRequestIntervalMs`, `maxRequestRetries`, `debugLog`. |

### 📦 Output

A real review of the Grand Hyatt Shanghai, shortened (the hotel's reply is cut, and most empty or hotel details fields are left out):

```json
{
    "id": 2156079064,
    "hotelId": 346403,
    "url": "https://www.trip.com/hotels/detail/?hotelId=346403#hotel-review",
    "content": "Mia Xu was incredibly helpful and made our stay truly wonderful. We had a great experience, and we really appreciate her kindness and hospitality. Thank you so much, Mia!",
    "translatedContent": null,
    "language": "en",
    "rating": 10,
    "ratingMax": 10,
    "commentLevel": "Outstanding",
    "ratingLocation": 10,
    "ratingFacility": 10,
    "ratingService": 10,
    "ratingRoom": 10,
    "recommend": true,
    "travelType": 40,
    "travelTypeText": "Traveling with friends",
    "checkInDate": "2026-10-01",
    "stayMonth": "2026-10",
    "createDate": "2026-10-29T11:22:12+08:00",
    "roomName": "Grand River-view Twin Room",
    "roomId": 301750492,
    "imageList": [],
    "imageCount": 0,
    "feedbackContent": "Dear Valued Guest,Thank you for taking the time to share such a heartwarming review with us. We are absolutely delighted to learn that Mia Xu made your stay truly wonderful…",
    "feedbackLanguage": "en",
    "feedbackCreateDate": "2026-10-29",
    "userNickName": "Guest User",
    "userCommentCount": 1,
    "userRegionName": "United States",
    "userRegionCode": "US",
    "userLevel": "Diamond",
    "userGrade": "Rising review star",
    "reviewSource": "trip.com",
    "sourceName": "English",
    "isTripComment": true,
    "hotelName": "Grand Hyatt Shanghai",
    "hotelUrl": "https://www.trip.com/hotels/detail/?hotelId=346403",
    "city": "Shanghai",
    "country": "China",
    "cityId": 2,
    "aggregateReviewScore": 9.4,
    "aggregateReviewDescription": "Outstanding",
    "aggregateReviewCount": 18901,
    "aggregateReviewSubScore": [
        { "name": "Location", "score": 9.5 },
        { "name": "Amenities", "score": 9.2 },
        { "name": "Service", "score": 9.2 },
        { "name": "Cleanliness", "score": 9.5 }
    ],
    "hotelReviewCount": 18901,
    "hotelReadableReviewCount": 18901,
    "positiveReviewCount": 18446,
    "negativeReviewCount": 455,
    "reviewsWithMediaCount": 6198,
    "foldedReviewCount": 4318,
    "sourceInput": "https://www.trip.com/hotels/shanghai-hotel-detail-346403/grand-hyatt-shanghai/",
    "hotelAddress": null,
    "scrapedAt": "2026-11-01T09:30:00.000Z"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV or Excel.

#### All 105 fields

| Fields | What you get |
| --- | --- |
| `id`, `hotelId`, `url` | the review's id (the key **Only new reviews** remembers), the hotel's id (`346403`, the same on Ctrip), the link to the hotel's reviews |
| `content`, `language` | ⭐ **The review** as the guest wrote it, its language (`en`) |
| `translatedContent`, `translatedLanguage`, `translatedBy`, `translateFromRealReview` | the translation the site gives into the **Site language**, its language, `Google` or `AI` (the two makers the site names), the sentence the site prints under it |
| `rating`, `ratingMax`, `commentLevel`, `recommend` | ⭐ **Score**: `10`, `10`, `Outstanding`, `true` |
| `ratingLocation`, `ratingFacility`, `ratingService`, `ratingRoom` | the guest's scores out of 10 for the location, the amenities, the service and the room |
| `travelType`, `travelTypeText` | 🧳 **The guest**: `40`, `Traveling with friends` (`10` business, `30` family, `50` solo, `60` booked for others, `70` couple, `0` other) |
| `checkInDate`, `stayMonth`, `createDate` | 📅 **Dates**: `2026-10-01`, `2026-10` (the site gives the month of the stay only), `2026-10-29T11:22:12+08:00` (written, Beijing time) |
| `roomName`, `roomId` | `Grand River-view Twin Room`, `301750492` |
| `imageList`, `imageCount`, `videoList`, `videos`, `videoCount`, `hasVideo` | the guest's photos (largest size) and videos, with their cover and length: `[{url, coverUrl, durationSeconds}]` |
| `usefulCount` | helpful votes on the review |
| `feedbackContent`, `feedbackTranslateContent`, `feedbackLanguage`, `feedbackCreateDate` | 💬 **Hotel reply**: its text, the site's translation of it, its language and date |
| `followUpContent`, `followUpDate` | what the guest added later to the same review, and when |
| `userNickName`, `userRegionName`, `userRegionCode`, `userAvatarUrl` | pseudonym, country (`United States`, `US`), profile photo |
| `userCommentCount`, `userPhotoCount`, `userHelpfulVotes` | reviews and photos the guest posted on the site, helpful votes received |
| `userLevel`, `userGrade`, `userIsAnonymous`, `userIsRegularCustomer` | loyalty level (`Diamond`), reviewer title (`Rising review star`), anonymous review, regular customer of the hotel |
| `reviewSource`, `sourceName`, `isTripComment` | 🔗 **Source**: `trip.com`, `ctrip`, `expedia`, `hotels.com` or `tripadvisor`; the site's own name of the source; `true` for a review written on Trip.com |
| `hotelName`, `hotelUrl`, `city`, `country`, `cityId` | 🏨 **The hotel**: `Grand Hyatt Shanghai`, its page, `Shanghai`, `China`, `2` |
| `aggregateReviewScore`, `aggregateReviewDescription`, `aggregateReviewCount`, `aggregateReviewSubScore` | the hotel's score `9.4`, `Outstanding`, the `18901` reviews behind it, its scores per criterion `[{name, score}]` |
| `hotelReviewCount`, `hotelReadableReviewCount`, `positiveReviewCount`, `negativeReviewCount`, `reviewsWithMediaCount`, `foldedReviewCount` | the reviews the site announces for the hotel, the ones it really serves (under a filter Trip.com does: the ones the filter keeps), positive, negative, with a photo or a video, folded away by default |
| `sourceInput`, `scrapedAt` | what you gave that led to the hotel, as you typed it; the time of the run |
| `hotelAddress`, `hotelPostalCode`, `hotelProvince`, `hotelZone`, `latitude`, `longitude` | 📍 **Hotel details** (option): address, postal code, province, district, GPS position |
| `hotelStars`, `hotelCategory`, `hotelBrand`, `hotelNameLocal` | stars (1-5), category, brand, name in the local language |
| `hotelPhones`, `hotelEmail` | the phone numbers and the email address the hotel shows on its page (the establishment's own) |
| `hotelOpenYear`, `hotelRenovationYear`, `hotelRoomCount` | year opened, year renovated, number of rooms |
| `hotelAmenities`, `hotelDescription`, `hotelPolicies`, `checkInTime`, `checkOutTime` | amenities, description, policies `[{title, lines}]`, check-in and check-out times |
| `hotelImages`, `hotelHighlights`, `hotelQualityTags`, `hotelFaq`, `hotelLastBooked`, `recommendRate` | photos, highlights, short qualities drawn from the reviews, FAQ `[{question, answer}]`, last booking as shown, share of guests who recommend it (`0.77`) |
| `nearbyPlaces`, `nearestTransit` | places around `[{name, type, distance}]`, nearest transit |
| `sameTypeScores`, `commentTagList`, `travelTypeList`, `roomList`, `languageTypeList`, `commonStatisticList` | the hotel's scores against hotels of the same type; its topics, traveler types, rooms, languages and positive / negative counts, as `[{id, name, commentCount}]` |
| `aiSummaryEntities`, `excitationInfoList`, `filteredOutCommentInfo` | the summary the site writes per topic `[{title, conclusion}]`, its short sentences about the reviews, how many reviews it folds away |

### 💡 Tips

#### How to get more reviews

Set `maxReviewsPerHotel` to `0` for every review of a hotel (Grand Hyatt Shanghai: 18,895 reviews, all read), and `maxItems` to `0` to lift the cap of the run. For a whole city, raise `maxHotelsPerCity` (`0` = every hotel of the city).

#### How to reduce costs

The price is per review, so the levers are `maxReviewsPerHotel`, `maxItems`, `maxHotelsPerCity` and the filters. The filters Trip.com does itself (`reviewLanguages`, `travellerTypes`, `reviewCategory`, `withPhotosOnly`, `topicTags`) and the star filters of a city are the cheapest way to narrow a run: the other reviews and hotels are never read. A review dropped by `minRating`, `maxRating`, `postedAfter`, `postedBefore`, `keywords`, `excludeKeywords`, `withResponseOnly` or `reviewSources` costs only the filter check, lower than a review, and the run summary tells how many were dropped. Leave **Add hotel details to each review** off unless you need the address, the GPS position or the contact: the hotel's name, city, country, scores and counts are on every row anyway.

#### Filters done by Trip.com and filters done by the Actor

Trip.com filters by **review language**, **traveler type**, **positive or negative**, **photos or video** and **topic** itself (and, through the API, by room type: `roomTypeIds` takes the numbers the rows give in `roomId`). These filters add up: English reviews of families with photos are the reviews that are all three. Trip.com has no filter on the score, the date, a word, the hotel's reply or the source: the Actor reads the reviews and drops the ones you did not ask for, each one charged a filter check. Two ways to pay less: **Most recent first** with `postedAfter` skips the reviews of older stays, unread and not charged, once they are 5 months older than the date; **Highest rating first** with `minRating` (or **Lowest rating first** with `maxRating`) stops at the bound. A cap of `maxReviewsPerHotel` counts the reviews that pass the filters: the hotel is read until that many are kept, or to its last review.

#### Several hotels and cities in one run

Fill `startUrls`, `hotelIds`, `hotelNames`, `locations` and `cityIds` together: the sources add up, a hotel met twice is read once and its rows say which source found it (`sourceInput`). The reviews of a city are those of its first hotels in the site's own ranking, filtered by `minStars`, `maxStars`, `minHotelRating`, `minHotelReviewCount` and `excludeHotelIds`. A city list page pasted into `startUrls` keeps the filters set on the site (district, brand, category, price).

#### Monitoring: only the new reviews

Tick **Only new reviews** (`onlyNew`) and schedule the Actor. The first run returns everything; each later run skips the reviews already delivered, and the ones your filters already dropped: they are not saved again. Trip.com sorts the newest reviews by **month of stay**, and a guest may write a review up to 4 months after the stay: so that no new review is missed, each run reads every hotel down to 5 months below the stays of the reviews it already has, and each review already delivered that it reads again costs a small filter check, once per review and per run (see **Pricing**). With **Max reviews per hotel** or **Max reviews** above 0 (the default), a review the memory does not have but that is dated more than 3 days before the last run counts as one an earlier run left under its cap: it is not delivered. Set both to 0 to catch every new review. The memory lives in a named key-value store of your account (`tripcom-reviews-scraper-seen`, up to 150,000 reviews per key) and is only updated with reviews that really reached the dataset, so a failed run never hides anything. Give each schedule its own `stateKey` (two schedules sharing a key would hide each other's reviews), and tick `resetState` once to start over. Changing a filter (score, dates, keywords, replies)? Use a new `stateKey`, or tick `resetState` once: the reviews the old filter dropped are remembered, and would not come back under the same key.

#### Already using another Trip.com reviews scraper?

The input of the other Trip.com review scrapers runs here as it is: `hotelUrl`, `hotelUrls`, `startUrl`, `urls`, `hotelDetailUrl`, `searchUrls` and `propertyUrls` (the same as **Hotel or city URLs**); `hotels`, `hotel` and `hotelUrlOrId` (links, ids and names mixed: each one goes where it belongs); `hotelId` and `tripcomHotelIds` (hotel ids); `cityId`; `city`, `cityName`, `destination`, `cities`, `destinations`, `searchDestinations`, `searches` and `searchQueries` (cities); `maxHotels`, `maxHotelsPerSearch`, `maxHotelsPerQuery`, `maxHotelsPerLocation`, `maxHotelsPerDestination` and `maxListings` (hotels per city); `maxReviews`, `maxItemsPerQuery`, `maxItemsPerSearch` and `maxItemsPerUrl` (reviews per hotel); `maxTotalReviews`, `maxResults` and `results_wanted` (reviews per run); `locale` (`en-US,en;q=0.9` is read as its first word); `reviewLanguage` and `languages`; `travelType`, `travelerTypes` and `reviewTravelTypes`; `reviewFilter` and `reviewSentiment` (`positive`, `negative`, `all`, or photos); `withMedia`, `onlyWithMedia` and `reviewPhotosOnly`; `topicTagIds` and `reviewTopicIds`; `roomIds` and `reviewRoomIds`; `keyword`; `cutoffDate`, `reviewsFrom`, `fromDate`, `dateFrom`, `sinceDate`, `startDate`, `reviewsFromDate` and `reviewedAfter` (reviews after); `toDate`, `reviewsToDate`, `endDate` and `reviewsTo` (reviews before); `minStarRating` and `starRatings`; `minReviews` and `minReviewCount`; `minReviewScore` and `maxReviewScore`; `reviewSort`, `reviewsSort` and `sort`; `onlyNewReviews`, `monitorMode`, `monitoringMode` and `incrementalMode`; `onlyNewRowsStore`, `monitorStoreName`, `dedupStoreName` and `watchName` (a memory key, which turns **Only new reviews** on); `resetMonitoringState`. The orders of reviews of the others are read too: `mostRecent`, `recent` and `most_recent` are **Most recent first**, `mostRelevant` and `recommended` the site's own order, `ratingHighToLow` and `rating_desc` **Highest rating first**, `ratingLowToHigh` and `rating_asc` **Lowest rating first**. A score scale of 1 to 5 sent by default (`minRating` 1 with `maxRating` 5 together) is read as no bound, with a warning. No other name turns on the paid hotel details: tick **Add hotel details to each review** yourself. The names of the rows are the ones the most used Trip.com review scraper gives (`content`, `translatedContent`, `rating`, `checkInDate`, `createDate`, `userNickName`, `feedbackContent`, `aggregateReviewScore`…): a pipeline built on its output reads these rows without a change. For example:

```json
{
    "hotelUrl": "https://www.trip.com/hotels/shanghai-hotel-detail-346403/grand-hyatt-shanghai/",
    "maxReviews": 200,
    "sortBy": "mostRecent",
    "reviewLanguage": "en"
}
```

### 🔌 Integrations and API

Call the Actor via the Apify API, the JavaScript or Python clients, or connect it with integrations and webhooks (Make, Zapier, n8n, Google Sheets, Slack, Airtable…). The dataset can be fetched as JSON or CSV from any tool.

### 🤖 Use with AI agents (MCP)

AI agents (Claude, ChatGPT, Cursor…) can find and run this Actor through the [Apify MCP server](https://mcp.apify.com), billed to their Apify account like any run. It returns one item per Trip.com hotel review. Actor id: `nice_dev/tripcom-reviews-scraper`; MCP server with this Actor only: `https://mcp.apify.com/?tools=fetch-actor-details,nice_dev/tripcom-reviews-scraper`.

Smallest input, for a cheap first call:

```json
{
    "hotelIds": ["346403"],
    "maxReviewsPerHotel": 10
}
```

Key output fields: `hotelName`, `rating`, `content`, `translatedContent`, `createDate`, `stayMonth`, `travelTypeText`, `userRegionName`, `reviewSource` and `aggregateReviewScore`.

Cost: see the pricing section above and the **Pricing** tab. Cap each call with `maxReviewsPerHotel` and `maxItems` and, through the API, with the run option `maxTotalChargeUsd`.

### ❓ FAQ

#### Is it legal to scrape Trip.com reviews?

The Actor only reads what Trip.com shows publicly to any anonymous visitor. It logs in to nothing. Reviews can contain personal data (a pseudonym, a country, a photo), which is protected by GDPR: do not store it without a legitimate reason. You are responsible for using the data in compliance with Trip.com's Terms of Use and applicable law. This Actor is not affiliated with Trip.com, Ctrip, Expedia, Hotels.com or Tripadvisor.

#### Does it need a login or a proxy?

No login. The proxy is included in the price: leave the default setting (the residential proxy is not available). A request the site turns away is retried at once on a new proxy session, up to 10 times on top of the retries (without a proxy, after a pause of 5 seconds, doubled at each retry up to 150 seconds).

#### Is the data safe to open in Excel or to show on a web page?

Reviews are the guests' own words, copied as they are. A text can begin with `-`, `+`, `=` or `@` (a review such as `-20% at the bar, great stay`): Excel and Google Sheets may read such a cell of a CSV file as a formula or as a number. The Actor leaves the text as it is, so that the JSON and the API give the real value: when you open a CSV, import these columns as text. On a web page, escape every field like any text written by a stranger. The photo and link fields hold an http(s) URL or nothing.

#### Known limitations

- **Most recent first** follows the **month of the stay**, not the date the review was written: Trip.com sorts the stays, the reviews of a same month are mixed, and a review can be written up to 4 months after the stay. With a cap, the reviews kept are the first ones in that order: not always the N most recently written. Without a cap (`0`) every review is returned.
- The hotels of a city are its first ones in the site's own ranking. With a high **Max hotels per city**, the whole city is read (Paris: about 6,400 hotels, more than the list page of the site shows; Annecy: all of them), and some hotels may lie in the towns around it. For a very large destination the site places fewer hotels on its map than its list counts (Bali: about 7,200 of 11,200): those hotels are not read.
- The translation comes from the site, for part of the reviews only, and depends on the **Site language** (in a sample of 20 reviews: 7 translated in `en-XX`, 14 in `ja-JP`, none in `fr-FR`). `zh-CN` gives no review on Trip.com: it is read as `zh-HK`, with a warning.
- A hotel or a city the site does not know (a name with no suggestion, an id with no hotel, a city with no hotel) is skipped and named in the log, the others go on; the run's last line counts it ("1 source of the input not found"). A run where nothing given is known ends without reviews, and its last message names the first one.
- `onlyNew` remembers review ids, not their content: a review edited or answered by the hotel since is not returned again.
- Two runs sharing the same `stateKey` at the same time may both return the same new review.

**A run that reaches its timeout** stops itself about 45 seconds before it: no new page is asked, what it read is saved and, with `onlyNew`, remembered, and the run ends *Succeeded* with "Stopped before the run's timeout". Resurrect it to go on from there, or give the next run a longer timeout (Run options).

**A run the platform stops without warning** (out of memory, run timeout)

- Resurrect it: it goes on from where it stood at most a minute before the stop. What it had read since is read again, and the reviews already saved are skipped: none is delivered or charged twice, and `maxItems` still counts them.
- With `onlyNew`, the memory is saved after each write (at most once every 2 seconds): resurrect the stopped run and the reviews it had saved meanwhile join the memory; leave it stopped for good, and the next run may return the reviews of its last 2 seconds once more.

#### Something doesn't work?

The last line of the log counts the reviews saved, the hotels read, the reviews filtered out, the reviews already delivered by a previous run, the sources of the input not found, and the requests that failed after every retry. Those requests are listed, with the reason, in the `FAILED_REQUESTS` record of the run's key-value store; the sources not found are named in the log. A run that saved nothing and had failed requests fails, and its last message gives the cause instead of "run it again".

If Trip.com changes its pages, you are told instead of paying for blank rows. If the first 20 reviews read all lack their text, score, date, month of stay, language, source, the guest's name, the hotel's name, score or number of reviews — or, with **Add hotel details to each review**, the hotel's address, GPS position or amenities — the run saves nothing more, stops and fails, and its last message names the missing field: at most those first reviews are charged. A review that `postedAfter` / `postedBefore` drops because it has no date at all counts among those 20. A run of fewer reviews (a scheduled `onlyNew` run that finds a few new ones, a small **Max reviews per hotel**) is checked at its end, from 5 reviews: its reviews are already saved, and the run fails with the missing field instead of ending green.

### 🛟 Support

Open an issue in the **Issues** tab with a link to your run: the run log and the `FAILED_REQUESTS` record of the key-value store show exactly which hotels or pages failed and why.

# Actor input Schema

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

Pages copied from the address bar. A hotel page: `https://www.trip.com/hotels/shanghai-hotel-detail-346403/grand-hyatt-shanghai/`, `https://www.trip.com/hotels/detail/?hotelId=346403`, any country site (`fr.trip.com`, `hk.trip.com`) or Ctrip (`https://hotels.ctrip.com/hotels/346403.html`). A city list: `https://www.trip.com/hotels/list?city=192` or `https://www.trip.com/hotels/paris-hotels-list-192/`, with the filters set on the site (stars, district, brand, category, price): its hotels are read, up to **Max hotels per city**. Max 1 000 URLs. With no hotel, ID, name or city at all, the Actor reads the reviews of an example hotel (at most 20) instead of stopping.

## `hotelIds` (type: `array`):

Trip.com numeric hotel ids (e.g. `346403`, the number after `hotelId=` or in the page address). Trip.com and Ctrip share the same id. No search, one hotel per id. Added to the URLs.

## `hotelNames` (type: `array`):

Hotels named as you would type them on Trip.com (e.g. `Ritz Paris`, `上海金茂君悦大酒店`): each name is looked up in the site's own suggestions. The hotel of exactly that name wins, else the first one proposed (the log says which one). A name with no result is skipped and named in the log. Added to the URLs.

## `locations` (type: `array`):

Cities as typed on the site (e.g. `Paris`, `Tokyo`, `上海`): the Actor reads the reviews of the first **Max hotels per city** hotels of each city, in the site's own ranking. The city of exactly that name wins, else the first one proposed. A district, a station or a landmark reads the whole city it belongs to, with a warning in the log. A name with no result is skipped and named in the log. Added to the hotels above.

## `cityIds` (type: `array`):

Trip.com numeric city ids (e.g. `192` for Paris, `2` for Shanghai, the number after `city=` in a list page), when you already know them: no name resolution, no ambiguity. Same use as **Cities**.

## `maxHotelsPerCity` (type: `integer`):

How many hotels of each city to read the reviews of, in the site's own ranking, after the hotel filters below. 0 = every hotel the city map holds: a big city holds 5 000 to 10 000 hotels, so keep **Max reviews** to bound the run. The map of a city spills over the neighboring towns: with a high number, some hotels may lie just outside the city.

## `minStars` (type: `integer`):

Hotel filter for the hotels of a city: keep hotels with at least this many stars (1-5). 0 = no filter. Done by the site, so filtered hotels are never read. Not used for hotels given by URL, ID or name.

## `maxStars` (type: `integer`):

Hotel filter for the hotels of a city: keep hotels with at most this many stars. 0 = no filter. Done by the site. Not used for hotels given by URL, ID or name.

## `minHotelRating` (type: `number`):

Hotel filter for any hotel (given by URL, ID or name, or found in a city): keep hotels whose overall score is at least this (out of 10). 0 = no filter. Judged on the first reviews page of the hotel: each hotel dropped is charged a small filter fee (see Pricing). For a filter on the reviews themselves, see **Minimum review rating**.

## `minHotelReviewCount` (type: `integer`):

Hotel filter for any hotel (given by URL, ID or name, or found in a city): keep hotels with at least this many reviews. 0 = no filter. Judged on the first reviews page of the hotel: each hotel dropped is charged a small filter fee (see Pricing).

## `excludeHotelIds` (type: `array`):

Trip.com hotel ids to skip, even when they match a city (e.g. your own hotels).

## `maxReviewsPerHotel` (type: `integer`):

Cap on the reviews saved for each hotel, all sources together: the first ones in **Reviews order**. 0 = every review of the hotel (Grand Hyatt Shanghai: 18 895 reviews, all read) — set **Max reviews** to 0 too: it caps the whole run (1 000 by default).

## `maxItems` (type: `integer`):

Maximum number of reviews saved for the whole run, all hotels together. 0 = no limit. It also stops a run whose hotels have more reviews than this (the log and the last message say so). Use it to bound the cost of a city or a long list of hotels.

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

Order of the reviews read. Careful: on Trip.com, **Most recent first** sorts by MONTH OF STAY, not by the date the review was written: inside a month the dates are mixed, and a review can be written up to 4 months after the stay. With a cap, the first ones in that order are kept. **Only new reviews** always uses this order. The last entries are the words other Trip.com scrapers use, accepted so that their input runs here unchanged.

## `reviewLanguages` (type: `array`):

Keep only the reviews written in these languages: the English name (`French`, `Japanese`, `Chinese`), an ISO code (`fr`, `ja`, `zh`) or the site's own number (`7`, `4`, `3`); case and accents are ignored. Several languages add up. Done by the site: the other reviews are never read, so they cost nothing. A language a hotel has no review in gives 0 review for that hotel, not an error. Empty = every language.

## `travellerTypes` (type: `array`):

Keep only the reviews of these types of travelers. Several types add up. Done by the site: the other reviews are never read, so they cost nothing. Empty = every traveler.

## `reviewCategory` (type: `string`):

Keep only the reviews the site counts as positive, or as negative. Done by the site: the other reviews are never read, so they cost nothing.

## `withPhotosOnly` (type: `boolean`):

Keep only the reviews with at least one photo or video. Done by the site: the other reviews are never read, so they cost nothing.

## `topicTags` (type: `array`):

Keep only the reviews on these topics, the ones the site lists above the reviews of each hotel: their name (`Convenient location`, `Delicious breakfast`, in the **Site language**) or their number (`97`). A topic a hotel does not list gives 0 review for that hotel, not an error. Done by the site: the other reviews are never read, so they cost nothing. Empty = every review.

## `minRating` (type: `number`):

Keep only the reviews scored at least this (out of 10). 0 = every review. With **Highest rating first**, the lower reviews are skipped unread and not charged. Reviews read then dropped by this filter are charged a small filter fee (see Pricing).

## `maxRating` (type: `number`):

Keep only the reviews scored at most this (out of 10). 0 = every review. Set it low to collect complaints only; with **Lowest rating first**, the higher reviews are skipped unread and not charged. Reviews read then dropped by this filter are charged a small filter fee (see Pricing).

## `postedAfter` (type: `string`):

Keep only the reviews written on or after this date: `2026-01-01`, or a period before now such as `7 days`, `3 months`, `1 year`. With **Most recent first**, the Actor stops once the stays are more than 5 months older than this date, because a review can be written months after the stay. Reviews read then dropped by this filter are charged a small filter fee (see Pricing).

## `postedBefore` (type: `string`):

Keep only the reviews written on or before this date (the whole day is included), or older than a period such as `1 month`. Reviews read then dropped by this filter are charged a small filter fee (see Pricing).

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

Keep only the reviews whose text or translation contains at least one of these words (whole words, case and accents ignored): `breakfast`, `noise`. The site has no keyword search, so the Actor reads the reviews and drops the others: each one dropped is charged a small filter fee (see Pricing). Empty = no filter.

## `excludeKeywords` (type: `array`):

Drop the reviews whose text or translation contains one of these words (case and accents ignored). Each one dropped is charged a small filter fee (see Pricing).

## `withResponseOnly` (type: `boolean`):

Keep only the reviews the hotel answered (`feedbackContent` filled). Reviews read then dropped are charged a small filter fee (see Pricing).

## `reviewSources` (type: `array`):

Keep only the reviews coming from these sources. Trip.com serves them all in one list, so the Actor reads the reviews and drops the others: each one dropped is charged a small filter fee (see Pricing). Empty = every source.

## `language` (type: `string`):

Trip.com locale (`en-XX`, `ja-JP`, `ko-KR`, `ru-RU`, `zh-HK`, `zh-TW`…). It sets the language of the labels (traveler type, room name, rating word) and of the translation the site gives for part of the reviews: `translatedContent` is filled for 7 reviews out of 20 in `en-XX`, 14 in `ja-JP`, none in `fr-FR`, `de-DE` or `es-ES`. `zh-CN` returns no review on Trip.com: it is read as `zh-HK`, with a warning. To keep one review language, use **Review languages**. `all` means the default, `en-XX`. Hotel names, cities and countries stay in English.

## `includeHotelDetails` (type: `boolean`):

Add the hotel's address, GPS position, stars, category, amenities, description and policies, plus the summary of its reviews (scores against hotels of the same type, topics, counts per traveler, room and language), to every review row of that hotel. Charged apart once per hotel with at least one review saved, not per review (see Pricing). Off = the name, city, country, overall score and scores per criterion of the hotel are on each row anyway, for free.

## `onlyNew` (type: `boolean`):

Skip the reviews that a previous run (same **Memory key**) already delivered or dropped: they are not saved again. Trip.com sorts by month of stay and a review can be written months after the stay, so each run reads about 5 months back from the first known review: each known review read again is charged the small filter fee, once per review and per run (see Pricing). Always uses **Most recent first**. With **Max reviews per hotel** or **Max reviews** above 0, a review missing from the memory but dated more than 3 days before the last run is taken as left under an earlier run's cap and is not delivered; set both to 0 to catch every new review. First run = everything is new.

## `stateKey` (type: `string`):

Name of the memory used by **Only new reviews**. Give each schedule / task its own key (e.g. `paris-hotels`) so that they do not share their memory. Changing a filter (rating, dates, keywords)? Use a new key, or tick **Reset the memory** once: the reviews the old filter dropped are remembered and would not come back. Letters, digits, `-` and `_`.

## `resetState` (type: `boolean`):

Forget everything remembered under this **Memory key** before the run: this run returns (and charges) every review again. Untick it afterwards.

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

Apify Proxy or your own proxies. Keep the default: it is included in the price. The residential Apify proxy is not available in this Actor.

## `maxConcurrency` (type: `integer`):

Maximum number of requests processed in parallel.

## `maxRequestsPerMinute` (type: `integer`):

Most requests to the site in any 60 seconds. One request reads up to 50 reviews. Lower it if the site answers HTTP 429 or 430 in the log.

## `minRequestIntervalMs` (type: `integer`):

Smallest gap between two requests, in milliseconds. Unlike the per-minute rate, this spreads the requests evenly instead of letting them go out in a burst. 0 = no gap.

## `maxRequestRetries` (type: `integer`):

Retries per request before it is marked as failed. Behind a proxy, a request the site turns away is also retried on a new proxy session up to 10 times without using up these retries.

## `debugLog` (type: `boolean`):

Include debug messages in the run log.

## `hotelUrl` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Hotel or city URLs**.

## `startUrl` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Hotel or city URLs**.

## `hotelUrls` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Hotel or city URLs**. Plain strings.

## `urls` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Hotel or city URLs**. Plain strings or `{url}` objects.

## `hotels` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged: URLs, ids and names mixed (1,000 entries at most, 100 of them names), each sent to the right field above.

## `city` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Cities**.

## `maxHotels` (type: `integer`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Max hotels per city**.

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

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Site language**.

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

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Max reviews per hotel**. 0 = every review of the hotel.

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

Same as **Max reviews per hotel**, the name of the common input of our scrapers.

## `maxItemsPerSearch` (type: `integer`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Max reviews per hotel**.

## `maxItemsPerUrl` (type: `integer`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Max reviews per hotel**.

## `reviewLanguage` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Review languages**.

## `languages` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Review languages**, which wins when it is filled.

## `withMedia` (type: `boolean`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews with photos or video only**.

## `onlyWithMedia` (type: `boolean`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews with photos or video only**.

## `keyword` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Keywords**.

## `cutoffDate` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews after**.

## `reviewsFrom` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews after**.

## `fromDate` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews after**.

## `dateFrom` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews after**.

## `sinceDate` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews after**.

## `startDate` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews after**.

## `toDate` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews before**.

## `reviewsToDate` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews before**.

## `endDate` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews before**.

## `roomTypeIds` (type: `array`):

For API use: keep only the reviews of guests who stayed in these room types, by the site's own number (`roomId` in the output). Done by the site: the other reviews are never read. Empty = every room.

## `hotel` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Hotel or city URLs**.

## `hotelDetailUrl` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Hotel or city URLs**.

## `hotelUrlOrId` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Hotel or city URLs**.

## `searchUrls` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Hotel or city URLs**.

## `propertyUrls` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Hotel or city URLs**.

## `tripcomHotelIds` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Hotel IDs**.

## `cityName` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Cities**.

## `destination` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Cities**.

## `cities` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Cities**.

## `destinations` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Cities**.

## `searchDestinations` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Cities**.

## `searches` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Cities**.

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

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Cities**.

## `maxHotelsPerSearch` (type: `integer`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Max hotels per city**.

## `maxHotelsPerQuery` (type: `integer`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Max hotels per city**.

## `maxHotelsPerLocation` (type: `integer`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Max hotels per city**.

## `maxHotelsPerDestination` (type: `integer`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Max hotels per city**.

## `minReviews` (type: `integer`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Minimum number of reviews of the hotel**.

## `minReviewCount` (type: `integer`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Minimum number of reviews of the hotel**.

## `minStarRating` (type: `integer`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Minimum star rating**.

## `starRatings` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Minimum star rating**.

## `minReviewScore` (type: `number`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Minimum review rating**.

## `maxReviewScore` (type: `number`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Maximum review rating**.

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

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews after**.

## `reviewedAfter` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews after**.

## `reviewsTo` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews before**.

## `reviewSort` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews order**.

## `reviewsSort` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews order**.

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

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews order**.

## `reviewFilter` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Positive or negative reviews**.

## `reviewSentiment` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Positive or negative reviews**.

## `travelType` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Traveler types**.

## `travelerTypes` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Traveler types**.

## `reviewTravelTypes` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Traveler types**.

## `reviewPhotosOnly` (type: `boolean`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reviews with photos or video only**.

## `topicTagIds` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Topics**.

## `reviewTopicIds` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Topics**.

## `roomIds` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Room type IDs**.

## `reviewRoomIds` (type: `array`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Room type IDs**.

## `maxTotalReviews` (type: `integer`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Max reviews**.

## `maxResults` (type: `integer`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Max reviews**.

## `results_wanted` (type: `integer`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Max reviews**.

## `maxListings` (type: `integer`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Max hotels per city**.

## `onlyNewReviews` (type: `boolean`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Only new reviews**.

## `monitorMode` (type: `boolean`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Only new reviews**.

## `monitoringMode` (type: `boolean`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Only new reviews**.

## `incrementalMode` (type: `boolean`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Only new reviews**.

## `onlyNewRowsStore` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Memory key**.

## `monitorStoreName` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Memory key**.

## `dedupStoreName` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Memory key**.

## `watchName` (type: `string`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Memory key**.

## `resetMonitoringState` (type: `boolean`):

Name used by other Trip.com scrapers, accepted so that their input runs here unchanged; use **Reset the memory**.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.trip.com/hotels/shanghai-hotel-detail-346403/grand-hyatt-shanghai/"
    }
  ],
  "hotelIds": [],
  "hotelNames": [],
  "locations": [],
  "cityIds": [],
  "maxHotelsPerCity": 10,
  "minStars": 0,
  "maxStars": 0,
  "minHotelRating": 0,
  "minHotelReviewCount": 0,
  "excludeHotelIds": [],
  "maxReviewsPerHotel": 100,
  "maxItems": 1000,
  "sortBy": "newest",
  "reviewLanguages": [],
  "travellerTypes": [],
  "reviewCategory": "all",
  "withPhotosOnly": false,
  "topicTags": [],
  "minRating": 0,
  "maxRating": 0,
  "keywords": [],
  "excludeKeywords": [],
  "withResponseOnly": false,
  "reviewSources": [],
  "language": "en-XX",
  "includeHotelDetails": false,
  "onlyNew": false,
  "stateKey": "default",
  "resetState": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxConcurrency": 10,
  "maxRequestsPerMinute": 300,
  "minRequestIntervalMs": 0,
  "maxRequestRetries": 5,
  "debugLog": 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.trip.com/hotels/shanghai-hotel-detail-346403/grand-hyatt-shanghai/"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nice_dev/tripcom-reviews-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": [{ "url": "https://www.trip.com/hotels/shanghai-hotel-detail-346403/grand-hyatt-shanghai/" }],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("nice_dev/tripcom-reviews-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.trip.com/hotels/shanghai-hotel-detail-346403/grand-hyatt-shanghai/"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call nice_dev/tripcom-reviews-scraper --silent --output-dataset

```

## MCP server setup

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