# Trip.com Hotels, Rooms & Reviews Scraper (`abotapi/trip-com-scraper`) Actor

Pull structured hotel listings from trip.com with prices, room types, amenities, policies, nearby places, and full guest reviews with ratings breakdown and an AI review summary. Search by destination or paste trip.com URLs directly.

- **URL**: https://apify.com/abotapi/trip-com-scraper.md
- **Developed by:** [Abot API](https://apify.com/abotapi) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 hotel results

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 Hotels Scraper

Pull structured hotel listings from Trip.com (trip.com) at scale: name, star rating, guest review score, price (current, original, and with taxes and fees), images, amenities, check-in and check-out policies, nearby places, room types with per-room pricing, and the full guest-review feed with a ratings breakdown and an AI-generated review summary. Search by destination and dates, or paste trip.com links straight from your browser.

### Why this scraper

- Full hotel record in one run: pricing, star rating, review score, images, amenities, policies, nearby places, and a description, all in a single dataset row per hotel.
- Room-level detail nested per hotel: room name, meal notes, cancellation terms, occupancy, per-room price with taxes and fees, promotions, and remaining availability.
- Full guest-review feed per hotel, not just an average: individual review text, per-category rating breakdown, traveler type, reviewer profile, useful-count, plus an aggregate ratings breakdown and an AI-generated summary of what guests say.
- Two input modes: build a search from a destination and dates, or paste finished trip.com list or detail URLs (multiple supported, each pages forward on its own).
- Forward pagination with de-duplication by hotel id, and client-side filters for minimum star rating and minimum guest review score.
- Pay per result. No flat monthly fee, so a 20-listing run costs cents, not a subscription.

### Data you get

Sample shape - values are illustrative placeholders, not from a live listing.

| Field | Example |
| --- | --- |
| hotelId | 0000000 |
| name | Sample Grand Hotel |
| detailUrl | https://www.trip.com/hotels/detail/?hotelId=0000000\&checkIn=2026-11-15\&checkOut=2026-11-16\&adult=2\&children=0\&curr=USD |
| starRating | 4 |
| reviewScore | 9.1 |
| reviewScoreLabel | Great |
| reviewCount | 1200 |
| reviewTags | \["Easy to get around", "Delicious breakfast"] |
| address | Sample District, Sample City |
| lat | 35.0000 |
| lng | 139.0000 |
| priceCurrent | 120 |
| priceOriginal | 140 |
| priceTotalWithTaxes | 134 |
| discountPercent | 14 |
| discountLabel | 14% off |
| currency | USD |
| images | \["https://example.com/photo1.jpg"] |
| badges | \["Free Cancellation"] |
| medal | null |
| propertyTag | Hotel |
| amenities | \["Free WiFi", "Fitness center", "Parking"] |
| policies | {"checkin": "After 15:00", "checkout": "Before 11:00", "cancellation": "Free cancellation"} |
| nearbyPlaces | \[{"name": "Sample Station", "type": "station", "distance": "400m"}] |
| description | With a stay at Sample Grand Hotel, you'll be steps from... |
| contactPhone | +1-000-0000000 |
| contactEmail | stay@samplegrandhotel.com |
| rooms | \[{"roomId": "0", "roomName": "Superior Queen Room", "roomPrice": {"current": 120, "original": 140, "currency": "USD", "taxesAndFeesTotal": 14}}] |
| roomCount | 1 |
| reviews | \[{"reviewId": "0", "reviewerNickname": "Jane Doe", "reviewRatingOverall": 9, "reviewContent": "Great location and clean room."}] |
| aggregateTotalReviewCount | 1200 |
| aggregateRatingBreakdown | {"overall": 9.1, "location": 9.3, "facility": 8.9, "service": 9.0, "room": 9.0} |
| aggregateCommentTags | \["Clean and tidy", "Great location"] |
| aggregateAiSummary | Facilities: guests liked the range of amenities... | Guest Suggestion: some guests wanted a quicker check-in process... |
| scrapedAt | 2026-11-01T00:00:00.000Z |

Not returned by trip.com on any probed page (left `null` or empty): `roomImages` (no separate room-gallery payload), `confirmInfo` (no post-booking confirmation payload is exposed pre-booking), and `reviewOwnerReply` (no populated property-response example was found on any review).

### How to use

Search by destination and dates:

```json
{
  "mode": "search",
  "locations": ["228|Tokyo"],
  "checkIn": "2026-11-15",
  "checkOut": "2026-11-16",
  "adults": 2,
  "maxListings": 20,
  "fetchDetails": true
}
```

Search multiple destinations with a star-rating filter:

```json
{
  "mode": "search",
  "locations": ["228|Tokyo", "359|Bangkok"],
  "checkIn": "2026-12-01",
  "checkOut": "2026-12-04",
  "minStarRating": 4,
  "maxListings": 40
}
```

Paste a trip.com URL directly:

```json
{
  "mode": "url",
  "urls": [
    "https://www.trip.com/hotels/list?city=228&cityName=Tokyo&provinceId=0&countryId=0&checkIn=2026-11-15&checkOut=2026-11-16&adult=2&children=0&crn=1&curr=USD"
  ],
  "fetchDetails": true
}
```

Scrape a single hotel's full detail and reviews:

```json
{
  "mode": "url",
  "urls": ["https://www.trip.com/hotels/detail/?hotelId=0000000&checkIn=2026-11-15&checkOut=2026-11-16&adult=2&children=0&curr=USD"]
}
```

### Input parameters

| Parameter | Type | Description |
| --- | --- | --- |
| mode | string | `search` (destination and dates) or `url` (paste trip.com links). |
| locations | array | Search mode. One destination per line, `"<cityId>|<City Name>"`. |
| checkIn | string | Search mode. Check-in date, `YYYY-MM-DD`. Defaults to 14 days from today. |
| checkOut | string | Search mode. Check-out date, `YYYY-MM-DD`. Defaults to one night after check-in. |
| adults | integer | Search mode. Adults per room, default 2. |
| children | integer | Search mode. Children per room, default 0. |
| rooms | integer | Search mode. Number of rooms, default 1. |
| currency | string | Search mode. Currency for prices, default USD. |
| minStarRating | integer | Search mode. Keep only hotels rated at or above this many stars, 0 = no filter. |
| minReviewScore | integer | Search mode. Keep only hotels scoring at or above this out of 10, 0 = no filter. |
| urls | array | URL mode. One or more trip.com hotel list or hotel detail links. |
| fetchDetails | boolean | Also fetch each hotel's detail page for amenities, policies, nearby places, description, and reviews. Default on. |
| maxPages | integer | Max list pages to walk per destination or URL. Leave empty to walk every page. Trip.com doesn't expose a stable page number for its listing pages, so each additional page re-queries the destination and keeps only hotels not already collected; a destination with many hotels may need a higher `maxPages` to reach past the first ~12-20. |
| maxListings | integer | Stop after this many hotels total. 0 = no cap. Default 20. |
| proxy | object | Apify proxy configuration used to fetch pages. |
| mcpConnectors | array | Optional MCP connectors to also send results to (Notion, Linear, Airtable, Apify). |
| notionParentPageUrl | string | Notion parent page, required only when the Notion connector is selected. |
| maxNotifyListings | integer | Cap on items sent to each connector per run. Does not affect the dataset. |

### Output example

Sample shape - values are illustrative placeholders, not from a live listing.

```json
{
  "hotelId": "0000000",
  "name": "Sample Grand Hotel",
  "detailUrl": "https://www.trip.com/hotels/detail/?hotelId=0000000&checkIn=2026-11-15&checkOut=2026-11-16&adult=2&children=0&curr=USD",
  "starRating": 4,
  "reviewScore": 9.1,
  "reviewScoreLabel": "Great",
  "reviewCount": 1200,
  "priceCurrent": 120,
  "priceOriginal": 140,
  "priceTotalWithTaxes": 134,
  "currency": "USD",
  "amenities": ["Free WiFi", "Fitness center"],
  "policies": { "checkin": "After 15:00", "checkout": "Before 11:00", "cancellation": "Free cancellation" },
  "contactPhone": "+1-000-0000000",
  "contactEmail": "stay@samplegrandhotel.com",
  "rooms": [
    { "roomId": "0", "roomName": "Superior Queen Room", "roomPrice": { "current": 120, "original": 140, "currency": "USD", "taxesAndFeesTotal": 14 } }
  ],
  "reviews": [
    { "reviewId": "0", "reviewerNickname": "Jane Doe", "reviewRatingOverall": 9, "reviewContent": "Great location and clean room." }
  ],
  "aggregateRatingBreakdown": { "overall": 9.1, "location": 9.3, "facility": 8.9, "service": 9.0, "room": 9.0 },
  "aggregateAiSummary": "Facilities: guests liked the range of amenities...",
  "scrapedAt": "2026-11-01T00:00:00.000Z"
}
```

### Send results into your apps (MCP connectors)

Optionally send the scraped results into the apps you already use, via Model Context Protocol (MCP) connectors. Authorize a connector once under Apify -> Settings -> Integrations, then select it in the `mcpConnectors` input. Each item is delivered as a condensed, human-readable summary (title plus key fields), not the full JSON record, the complete record always stays in the Apify dataset. Supported connectors: Notion, Linear, Airtable, and Apify. Notion export also requires `notionParentPageUrl`.

### Proxy & plan

Apify Proxy is used by default and works on any paid Apify plan. If a request is refused, the actor automatically retries on a different connection so a flaky patch of the internet doesn't fail the whole run. None of this is exposed as an input beyond the standard `proxy` field above.

If your Apify plan doesn't include proxy access (for example, some free-tier accounts), a warning is logged and the run falls back to whatever connection is available rather than crashing outright, see "Plan requirement" below.

### Plan requirement

Requires an Apify account with proxy access to run.

### 🔗 Want more travel data?

Pair this actor with these related scrapers from the same team:

<table>
<tr><td>🏨 <a href="https://apify.com/abotapi/wego-com-scraper"><b>Wego Scraper</b></a><br>Scrape Wego hotels by city or search URL. Get rates, providers, booking links...</td><td>🏨 <a href="https://apify.com/abotapi/expedia-universal-scraper"><b>Expedia Hotels Scraper</b></a><br>From $1/1K. Scrape Expedia.com hotel listings and reviews for any destination. Extract...</td></tr>
<tr><td>🏨 <a href="https://apify.com/abotapi/booking-com-scraper"><b>Booking.com Hotels, Prices and Reviews Scraper</b></a><br>Scrape booking.com hotels, apartments, villas and hostels. Search any destination with...</td><td>🏨 <a href="https://apify.com/abotapi/traveloka-com-scraper"><b>Traveloka Hotel Scraper</b></a><br>Scrape Traveloka hotels across Singapore, Malaysia, Indonesia, Thailand, Vietnam and the...</td></tr>
<tr><td>🏨 <a href="https://apify.com/abotapi/yanolja-com-scraper"><b>Yanolja Scraper</b></a><br>Scrape Yanolja (NOL), Korea's largest accommodations marketplace, by region or URL. Every...</td><td>🏨 <a href="https://apify.com/abotapi/klook-activities-scraper"><b>Klook Scraper</b></a><br>Scrape Klook activities, tours, attractions and travel experiences from search pages or...</td></tr>
</table>

👉 [Browse all abotapi scrapers](https://apify.com/abotapi)

### 💬 Support & custom scrapers

- 🐞 **Found a bug or a missing field?** Open a ticket on the [Issues tab](https://apify.com/abotapi/trip-com-scraper/issues/open). We usually reply within hours.
- 🛠️ **Need another site, extra fields or a private build?** Email <abotapi@proton.me> or message [Telegram @abotapi](https://t.me/abotapi).
- ⭐ **Enjoying it?** A quick review on the actor page helps other users find it.

# Actor input Schema

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

Search: pick a destination, dates and filters below. URL: paste trip.com hotel list or hotel detail links copied from your browser.

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

One destination per line, formatted as "<cityId>|<City Name>". Trip.com identifies destinations by a numeric city id, not a name, so find it once by searching the destination on trip.com and copying the `city=` number from the resulting URL. Known ids: 228|Tokyo, 359|Bangkok, 73|Singapore, 192|Paris.

## `checkIn` (type: `string`):

Check-in date, format YYYY-MM-DD. Leave empty to default to 14 days from today.

## `checkOut` (type: `string`):

Check-out date, format YYYY-MM-DD. Leave empty to default to one night after check-in.

## `adults` (type: `integer`):

Number of adult guests per room.

## `children` (type: `integer`):

Number of child guests per room.

## `rooms` (type: `integer`):

Number of rooms to search for.

## `currency` (type: `string`):

Currency prices are shown and pushed in.

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

Keep only hotels rated at or above this many stars. 0 = no filter. Applied client-side after fetching each page.

## `minReviewScore` (type: `integer`):

Keep only hotels scoring at or above this out of 10 from guest reviews. 0 = no filter. Applied client-side after fetching each page.

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

One or more trip.com URLs. Multi-URL supported, filter fields above are ignored, pagination walks forward. Paste either a hotel list search URL or a single hotel detail URL.

## `fetchDetails` (type: `boolean`):

When ON, also fetch each hotel's detail page for amenities, policies, nearby places, full description, and guest reviews with an AI summary. When OFF, only the listing-page fields are returned (name, price, rating, image, address). Default ON since most of the field set lives on the detail page.

## `maxPages` (type: `integer`):

How many list pages to walk per destination (or per pasted list URL). Does not cap the total, only how many pages are fetched, defers to Max listings. Leave empty to walk every result page.

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

Stop after this many hotels across all destinations. This is the run's cap, defaulting to 20. Set to 0 to remove the cap entirely (an empty Max pages will then walk every result page).

## `proxy` (type: `object`):

Apify proxy used to fetch pages. The default below works out of the box.

## `mcpConnectors` (type: `array`):

Optionally send the scraped results into the apps you already use, via Model Context Protocol (MCP) connectors. Authorize a connector once under Apify -> Settings -> Integrations, then select it here. The connector receives a condensed, human-readable summary per item (title + key fields), not the full JSON, the complete record stays in the dataset. Leave empty to skip. Supported: Notion (https://mcp.notion.com/mcp), Linear (https://mcp.linear.app/sse), Airtable (https://mcp.airtable.com/mcp), Apify (https://mcp.apify.com).

## `notionParentPageUrl` (type: `string`):

URL (or id) of the Notion page under which item pages are created. Required to enable the Notion export, ignored by other connectors.

## `maxNotifyListings` (type: `integer`):

Cap on items written to each connector per run. Does not affect the dataset.

## Actor input object example

```json
{
  "mode": "search",
  "locations": [
    "228|Tokyo"
  ],
  "adults": 2,
  "children": 0,
  "rooms": 1,
  "currency": "USD",
  "minStarRating": 0,
  "minReviewScore": 0,
  "urls": [
    "https://www.trip.com/hotels/list?city=228&cityName=Tokyo&provinceId=0&countryId=0&checkIn=2026-10-15&checkOut=2026-10-16&adult=2&children=0&crn=1&curr=USD"
  ],
  "fetchDetails": true,
  "maxListings": 20,
  "proxy": {
    "useApifyProxy": true
  },
  "maxNotifyListings": 50
}
```

# Actor output Schema

## `overview` (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 = {
    "mode": "search",
    "locations": [
        "228|Tokyo"
    ],
    "urls": [
        "https://www.trip.com/hotels/list?city=228&cityName=Tokyo&provinceId=0&countryId=0&checkIn=2026-10-15&checkOut=2026-10-16&adult=2&children=0&crn=1&curr=USD"
    ],
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("abotapi/trip-com-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 = {
    "mode": "search",
    "locations": ["228|Tokyo"],
    "urls": ["https://www.trip.com/hotels/list?city=228&cityName=Tokyo&provinceId=0&countryId=0&checkIn=2026-10-15&checkOut=2026-10-16&adult=2&children=0&crn=1&curr=USD"],
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("abotapi/trip-com-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 '{
  "mode": "search",
  "locations": [
    "228|Tokyo"
  ],
  "urls": [
    "https://www.trip.com/hotels/list?city=228&cityName=Tokyo&provinceId=0&countryId=0&checkIn=2026-10-15&checkOut=2026-10-16&adult=2&children=0&crn=1&curr=USD"
  ],
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call abotapi/trip-com-scraper --silent --output-dataset

```

## MCP server setup

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