# Trip.com Hotel Reviews Scraper (`wyle/trip-hotel-reviews-scraper`) Actor

Scrape verified Trip.com hotel guest reviews, ratings, 4 category sub-scores, stay dates, room types, and hotel replies by hotel URL or ID cleanly without a browser.

- **URL**: https://apify.com/wyle/trip-hotel-reviews-scraper.md
- **Developed by:** [Willy Lengkong](https://apify.com/wyle) (community)
- **Categories:** Travel, E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Hotel Reviews Scraper

Extract verified Trip.com hotel guest reviews, ratings, category sub-scores, room types, stay dates, guest photos and videos, and management replies. Target any property worldwide by Trip.com URL, numeric hotel ID, or hotel name, with filters for traveler demographic, sentiment, language, and rating. Fast, lightweight, and runs without launching a browser.

### Modes

| Mode | Input | What you get |
|---|---|---|
| Hotel URL or ID | `hotels` with Trip.com hotel URLs or numeric hotel IDs (`"687592"`) | Verified guest reviews, overall & category sub-scores, room types, reviewer loyalty tiers, photos, videos, and hotel management responses. |
| Hotel name search | `hotels` or `hotelSearchQueries` with property names (`"Marina Bay Sands"`, `"The Ritz-Carlton, Tokyo"`) | Automatically resolves each hotel name to its matching Trip.com property and extracts deduplicated reviews. |

### Supported Regions & Options

- **Global coverage**: Supports hotels worldwide across global and regional Trip.com domains (`www.trip.com`, `uk.trip.com`, `sg.trip.com`, `id.trip.com`, `hk.trip.com`, etc.).
- **Multi-language filtering**: Filter by ISO codes or language names (`en`, `zh`, `zh-cn`, `zh-tw`, `ja`, `ko`, `fr`, `de`, `es`, `it`, `ru`, `th`, `id`, `ms`, `vi`, `nl`, `pl`, `tr`, `pt`, `ar`), or leave empty for all languages.
- **Sorting & filters**: `most_recent`, `most_relevant`, `highest_rated`, `lowest_rated`; `travelerType` (`all`, `business`, `family`, `friends`, `solo`, `couple`, `booked_for_others`, `other`); `sentimentFilter` (`all`, `positive`, `negative`, `with_media`); `minRating` (`0–10`); `includeOnlyWithText`.

### Output Modes & Proxy Tips

- **Sentiment & media filtering**: Set `sentimentFilter` to `with_media` to collect only reviews with guest photos or videos, or `positive` / `negative` to focus on specific guest feedback. When Trip.com provides a translation, `translatedText` and `translatedLanguage` are included alongside the original review.
- **Review limits & concurrency**: Set `maxReviewsPerHotel: 0` to collect all available reviews, and tune `maxConcurrency` (`1–10`) when scraping multiple properties.
- **Zero-null schema & proxy tips**: Every field uses typed non-null defaults. Direct connections work by default; enable Apify Residential proxies in `proxyConfiguration` for large multi-hotel runs or if rate-limited.

### Use Cases

- **Hospitality Sentiment & Aspect Mining**: Analyze per-review scores for location, amenities, service, and cleanliness across guest segments.
- **Visual UGC Discovery**: Filter `sentimentFilter: "with_media"` to collect verified guest photos and videos for property audits.
- **Cross-Market Guest Experience Tracking**: Compare feedback across languages and Trip.com loyalty tiers (`Diamond+`, `Platinum`).
- **Competitor & Reputation Benchmarking**: Monitor management reply rates and recurring complaints across competing hotels.

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `hotels` | Array | `["https://www.trip.com/hotels/singapore-hotel-detail-687592/marina-bay-sands-singapore/"]` | Trip.com hotel URLs, numeric hotel IDs (`687592`), or hotel names (`Marina Bay Sands`). |
| `hotelSearchQueries` | Array | `[]` | Additional hotel names to resolve and merge with `hotels`. |
| `sortBy` | String | `"most_recent"` | Review sort order: `most_recent`, `most_relevant`, `highest_rated`, `lowest_rated`. |
| `travelerType` | String | `"all"` | Demographic filter: `all`, `business`, `family`, `friends`, `solo`, `couple`, `booked_for_others`, `other`. |
| `sentimentFilter` | String | `"all"` | Review category filter: `all`, `positive`, `negative`, `with_media`. |
| `languages` | Array | `[]` | ISO language codes or names to keep (e.g., `["en", "zh"]`). Empty returns all languages. |
| `minRating` | Number | `0` | Minimum review score from `0` to `10` (`0` keeps all ratings). |
| `maxReviewsPerHotel` | Integer | `100` | Maximum reviews to extract per hotel (`0` = all available reviews). |
| `includeOnlyWithText` | Boolean | `false` | Skip rating-only entries that contain no written review text. |
| `maxConcurrency` | Integer | `3` | Maximum hotels to scrape concurrently (`1` to `10`). |
| `proxyConfiguration` | Object | `{"useApifyProxy": false}` | Apify Proxy settings (Residential recommended for large runs). |

### Sample Output

```json
{
  "reviewId": 2166191876,
  "hotelId": 687592,
  "hotelName": "Marina Bay Sands Singapore",
  "hotelUrl": "https://www.trip.com/hotels/singapore-hotel-detail-687592/marina-bay-sands-singapore/",
  "hotelReviewsUrl": "https://www.trip.com/hotels/singapore-hotel-detail-687592/marina-bay-sands-singapore/#reviews",
  "hotelCity": "Singapore",
  "hotelCountry": "Singapore",
  "hotelAddress": "10 Bayfront Avenue, Singapore, 018956, Singapore",
  "hotelStarRating": 5.0,
  "hotelOverallScore": 9.7,
  "hotelScoreLabel": "Amazing",
  "hotelTotalReviews": 1695,
  "hotelCategoryScores": {
    "Location": 9.8,
    "Amenities": 9.7,
    "Service": 9.6,
    "Cleanliness": 9.8
  },
  "source": "Trip.com",
  "isTripComment": true,
  "rating": 10.0,
  "ratingLabel": "Outstanding",
  "ratingDetails": {
    "overall": 10.0,
    "location": 10.0,
    "amenities": 10.0,
    "service": 10.0,
    "cleanliness": 10.0
  },
  "reviewText": "birriliant hotel",
  "translatedText": "",
  "language": "en",
  "translatedLanguage": "",
  "reviewDate": "2026-11-07 17:58:13",
  "checkInDate": "2026-11-01 00:00:00",
  "roomType": "Sands Premier King City View",
  "roomId": 423325895,
  "travelerType": "Couple",
  "travelerTypeId": 70,
  "reviewerName": "Guest User",
  "reviewerLevel": "Diamond+",
  "reviewerGrade": "Rising review star",
  "reviewerTotalReviews": 4,
  "helpfulVotes": 0,
  "isRecommended": true,
  "hasHotelResponse": false,
  "hotelResponseDate": "",
  "hotelResponseText": "",
  "photos": [],
  "videos": [],
  "scrapedAt": "2026-11-12T04:26:53.636490+00:00"
}
```

# Actor input Schema

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

List of Trip.com hotel URLs (e.g. https://www.trip.com/hotels/singapore-hotel-detail-687592/marina-bay-sands-singapore/ or /hotels/detail/?hotelId=687592), numeric Trip.com hotel IDs (e.g. 687592), or hotel names (e.g. Marina Bay Sands). Can be combined with Additional Hotel Name Queries.

## `hotelSearchQueries` (type: `array`):

Optional extra hotel names to resolve via Trip.com hotel search (e.g. 'Marina Bay Sands', 'The Ritz-Carlton, Tokyo'). Merged and deduplicated with Hotels above.

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

Order in which Trip.com returns reviews.

## `travelerType` (type: `string`):

Filter guest reviews by traveler demographic segment.

## `sentimentFilter` (type: `string`):

Filter reviews by Trip.com review sentiment or media availability.

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

Optional ISO language codes or language names to keep (e.g. 'en', 'zh', 'ja', 'ko', 'id', 'English'). Leave empty to return reviews in all languages.

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

Keep only reviews with rating >= this score (0 to 10). Set 0 to keep all ratings.

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

Maximum number of reviews to extract per hotel. Set 0 to scrape all available reviews.

## `includeOnlyWithText` (type: `boolean`):

Skip rating-only submissions that contain no written review text.

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

Maximum number of hotels to scrape concurrently.

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

Direct connection is used by default. Enable Apify Residential Proxy for large multi-hotel runs or if rate-limited.

## Actor input object example

```json
{
  "hotels": [
    "https://www.trip.com/hotels/singapore-hotel-detail-687592/marina-bay-sands-singapore/"
  ],
  "hotelSearchQueries": [],
  "sortBy": "most_recent",
  "travelerType": "all",
  "sentimentFilter": "all",
  "languages": [],
  "minRating": 0,
  "maxReviewsPerHotel": 100,
  "includeOnlyWithText": false,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `reviews` (type: `string`):

Normalized Trip.com guest reviews dataset with ratings, sub-scores, room types, stay details, media URLs, and hotel management responses.

# 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 = {
    "hotels": [
        "https://www.trip.com/hotels/singapore-hotel-detail-687592/marina-bay-sands-singapore/"
    ],
    "maxReviewsPerHotel": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("wyle/trip-hotel-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 = {
    "hotels": ["https://www.trip.com/hotels/singapore-hotel-detail-687592/marina-bay-sands-singapore/"],
    "maxReviewsPerHotel": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("wyle/trip-hotel-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 '{
  "hotels": [
    "https://www.trip.com/hotels/singapore-hotel-detail-687592/marina-bay-sands-singapore/"
  ],
  "maxReviewsPerHotel": 100
}' |
apify call wyle/trip-hotel-reviews-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,wyle/trip-hotel-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/rebZc1xc0eEZNRrne/builds/Y0Nn8hLpRag9zT1IG/openapi.json
