# Trip.com Hotel Reviews Scraper (`deepmine/tripcom-reviews-rust`) Actor

Trip.com and Ctrip hotel reviews: text and its English translation, score, recommends, stay month, room, trip type, guest country, photos, the hotel's reply, plus the hotel's score and sub-scores. Many hotels per run, date and score filters. No login. Fast, cheap per review.

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

## Pricing

from $1.49 / 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

## Trip.com & Ctrip Hotel Reviews Scraper

Get every review of any hotel on **Trip.com** and **Ctrip** in seconds: review text with its English translation,
score, stay month, room type, traveler type, reviewer country, member tier and reviewer grade, guest photos and
videos, the hotel's reply (with its translation), and the hotel's name, stars, address and overall and category
scores on every row. No login, no browser.

### What you can do with it

- Track what guests say about your hotel or your competitors on the biggest travel site in Asia.
- Pull Ctrip's Chinese-language reviews (from Ctrip's own host) next to Trip.com's international ones.
- Feed reviews into sentiment analysis, reputation dashboards or market research.

### Input

| Field | What it does |
|---|---|
| **Hotels** (`startUrls`) | Trip.com hotel pages (`https://www.trip.com/hotels/detail/?hotelId=2985758`, `.../london-hotel-detail-2985758/...`), Ctrip pages (`https://hotels.ctrip.com/hotels/432298.html`). Only an id? Enter it as `https://www.trip.com/hotels/detail/?hotelId=<id>` (the field takes URLs). Many at once. |
| **Max reviews per hotel** | 0 or empty = every review the site lists. |
| **Only reviews newer than** | A date (`2026-01-31`) or a span (`3 months`). |
| **Sort reviews by** | Recommended, newest stays first, highest score, lowest score. |
| **Min / max score** | Keep reviews in a score range (1-10); sorted by score, the Actor stops past the range. |
| **Include folded repeat reviews** | Trip.com folds repeat reviews out of its list; switch on to read the full total. |

Example:

```json
{"startUrls": [{"url": "https://www.trip.com/hotels/detail/?hotelId=2985758"}], "maxReviewsPerHotel": 100, "sortBy": "newest"}
```

### Output

One row per review:

```json
{"id": 2162359893, "hotelId": 2985758, "site": "trip.com", "rating": 8.5, "ratingMax": 10, "recommend": true, "commentLevel": "Very good",
 "content": "Las habitaciones estas limpias...", "language": "es",
 "translatedContent": "The rooms are clean and we got a renovated one...", "translateFromRealReview": "Translation provided by AI",
 "createDate": "2026-11-04T03:26:34", "checkInDate": "2026-10", "travelType": 70, "travelTypeText": "Couple",
 "roomTypeName": "Standard Plus Twin Room", "usefulCount": 0, "userNickName": "Tamara S.", "userCommentCount": 2,
 "userCountry": "Spain", "userCountryCode": "ES", "userTier": "Gold", "userTierProgram": "TRIP",
 "userGrade": "Rising review star", "userIsAnonymous": false,
 "imageList": ["https://ak-d.tripcdn.com/images/..."], "videoList": [],
 "feedbackContent": "Estimada Sra...", "feedbackTranslateContent": "Dear Ms...", "feedbackLanguage": "es",
 "feedbackCreateDate": "2026-11-05T00:00:00", "aggregateReviewScore": 8.3, "aggregateReviewDescription": "Very good",
 "aggregateReviewCount": 3361, "aggregateReviewSubScore": {"location": 8.8, "amenities": 7.6, "service": 8.3, "cleanliness": 8.5},
 "hotelName": "Royal National Hotel", "hotelNameLocal": "Royal National Hotel", "hotelStars": 3,
 "hotelAddress": "38-51 Bedford Way, Camden, London, WC1H 0DG, United Kingdom", "hotelArea": "Bloomsbury",
 "hotelCity": "London", "hotelProvince": "Greater London", "hotelCountry": "United Kingdom",
 "hotelLatitude": 51.523463, "hotelLongitude": -0.127315,
 "hotelReviewCount": 3361, "hotelPageableReviewCount": 2694, "hotelUrl": "https://www.trip.com/hotels/detail/?hotelId=2985758"}
```

The run's summary (per hotel: review count, pageable count, scores, pages read) is in the key-value store as `OUTPUT`.

### Good to know

- **Newest first on Trip.com is by stay month**, not by review date. With a cutoff date this Actor reads three
  months of stays past your date and keeps every review written after it, so a recent review of an older stay is
  never lost. With a cutoff date, the *Recommended* order reads newest first instead: a recommended order can't
  stop at a date, so it would read every page of the hotel.
- `hotelReviewCount` is the hotel's headline count; `hotelPageableReviewCount` is what Trip.com lists (repeat
  reviews folded). Switch on *Include folded repeat reviews* to read up to the headline count.
- `userTier` is the guest's member tier (Trip.com's Silver/Gold/Platinum/Diamond, or a Ctrip tier in Chinese, as
  `userTierProgram` says). `userGrade` is Trip.com's reviewer grade (Rising review star 1-4 reviews, Review
  Specialist 5-29, Review Expert 30+) and `userIsAnonymous` marks guests shown as "Anonymous User"; both are null on
  Ctrip rows, whose host uses another scale. The hotel's name, stars and address come from one small call per hotel.
- `recommend` is Trip.com's "recommends this hotel" flag, which the site sets for a score of 6 or more out of 10
  (null on Ctrip's 5-point scores).
- A hotel that gives no review (none at all, or none past your filters) is named in the run's `OUTPUT` record
  (`empty`) and in its status line; a hotel the site would not answer is named there as an `error`.
- You pay per review saved; nothing for hotels with no reviews.

### FAQ

**Do I need a Trip.com account or proxies?** No. It runs logged out on Apify's datacenter proxy.

**Can I scrape Ctrip?** Yes: paste a `hotels.ctrip.com` address. Ctrip reviews come back in Chinese, from Ctrip's own host.

**How fast is it?** 100 reviews in about one second of fetching; a run of 1,000 reviews takes a few seconds.

# Actor input Schema

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

Trip.com hotel pages (https://www.trip.com/hotels/detail/?hotelId=2985758 or .../london-hotel-detail-2985758/...), Ctrip pages (https://hotels.ctrip.com/hotels/432298.html, read on Ctrip's own host in Chinese). Only an id? Enter it as https://www.trip.com/hotels/detail/?hotelId=<id> (the field takes URLs).

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

How many reviews to save per hotel. 0 or empty = every review the site lists.

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

A date (2026-01-31) or a span back from today (3 months, 10 days). Empty = no cutoff.

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

Trip.com's 'newest' orders by stay month, not review date; with a cutoff the Actor reads 3 months past it and cuts on the review date itself, so no recent review is lost. With a cutoff, 'Recommended' reads newest first instead (a recommended order can't stop at a date).

## `minRating` (type: `integer`):

Keep reviews scoring at least this (Trip.com scores are out of 10). Empty = all.

## `maxRating` (type: `integer`):

Keep reviews scoring at most this (sort by lowest first to reach them fast). Empty = all.

## `includeFoldedReviews` (type: `boolean`):

Trip.com folds repeat reviews out of its list (the site's count for 'pageable' is smaller than the total). On: read the full total.

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

Apify datacenter proxy is all this Actor needs (residential is never used).

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.trip.com/hotels/detail/?hotelId=2985758"
    }
  ],
  "maxReviewsPerHotel": 100,
  "sortBy": "recommended",
  "includeFoldedReviews": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (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.trip.com/hotels/detail/?hotelId=2985758"
        }
    ],
    "maxReviewsPerHotel": 100,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("deepmine/tripcom-reviews-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.trip.com/hotels/detail/?hotelId=2985758" }],
    "maxReviewsPerHotel": 100,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("deepmine/tripcom-reviews-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.trip.com/hotels/detail/?hotelId=2985758"
    }
  ],
  "maxReviewsPerHotel": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call deepmine/tripcom-reviews-rust --silent --output-dataset

```

## MCP server setup

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