# Trip.com Scraper — Hotels Flights Trains Cars (`lentic_clockss/trip-com-scraper`) Actor

Scrape Trip.com hotels, flights, trains, cars, packages & attractions across regional domains (www, UK, JP, PH). Get prices, ratings & listing URLs. Export JSON/CSV. Pay per result — no login.

- **URL**: https://apify.com/lentic\_clockss/trip-com-scraper.md
- **Developed by:** [kane liu](https://apify.com/lentic_clockss) (community)
- **Categories:** Travel, Lead generation
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 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.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Trip.com Scraper — Hotels, Flights, Trains, Cars, Packages & Attractions

### What does Trip.com Scraper do?

[Trip.com Scraper](https://apify.com/lentic_clockss/trip-com-scraper) extracts structured travel data from [Trip.com](https://www.trip.com) (Ctrip IBU / 携程国际站) search results in one Actor. Unlike hotel-only scrapers, it covers **hotels, flights, trains, cars, vacation packages, and attractions** across regional Trip.com domains such as `www.trip.com`, `uk.trip.com`, `jp.trip.com`, and `ph.trip.com`.

Use it for travel price comparison, rate monitoring, OTA competitive intelligence, and market research — **no Trip.com login**. Export results as **JSON or CSV** from the Apify dataset.

### What Trip.com data can you extract?

| Field | Description |
|---|---|
| `service` | hotels / flights / trains / cars / packages / attractions |
| `name` | Hotel, offer, or listing title |
| `price` / `priceDisplay` / `currency` | Parsed and display pricing |
| `rating` / `reviewCount` | Guest rating signals when present |
| `url` | Listing or SERP deep link |
| `listingId` | Stable id when available |
| `domain` | Regional Trip.com host |
| `destination` / `origin` | Search geography |
| `sponsored` | Sponsored ad flag |
| `scrapedAt` | Collection timestamp |

#### Hotels
Search stays by destination (and optional Trip.com `regionId` / city id), check-in / check-out, adults, and rooms. Hotel SERP uses DOM `hotel-card` with scroll pagination.

#### Flights
One-way or roundtrip offers with origin, destination, and departure / return dates.

#### Trains
Timetable / fare-class style offers for supported Trip.com train searches.

#### Cars
Car hire / rental offers by destination and dates.

#### Packages & attractions
Bundled vacation packages and things-to-do / attractions cards from matching Trip.com SERP families.

### Which Trip.com domains are supported?

Regional hosts include: `www.trip.com`, `us.trip.com`, `uk.trip.com`, `ph.trip.com`, `sg.trip.com`, `jp.trip.com`, `kr.trip.com`, `hk.trip.com`, `tw.trip.com`, `my.trip.com`, `th.trip.com`, `id.trip.com`, `in.trip.com`, `au.trip.com`, `de.trip.com`, `fr.trip.com`, `es.trip.com`, `it.trip.com`, `nl.trip.com`, `ca.trip.com`, `mx.trip.com`, `br.trip.com`, `ae.trip.com`.

Set `domain`, `currency`, and `locale` for the market you care about. Residential proxy country defaults from the selected domain (for example `uk.trip.com` → GB).

### Why scrape Trip.com / Ctrip (携程)?

- **Price comparison** — track hotel, flight, and train offers for OTAs and agencies
- **Rate monitoring** — schedule runs to watch stay rates for target destinations
- **Market research** — compare availability across Trip.com country sites
- **Lead generation** — collect structured stay and attraction inventory
- **Competitive intelligence** — inspect sponsored placement and LOB coverage

### More Actors like this

Looking for another **travel / stays** scraper, or a specialized Actor outside Trip.com? Use a dedicated Actor when one exists — structured fields, better coverage, usually lower cost.

#### Similar travel & stays Actors
- [Agoda Scraper](https://apify.com/lentic_clockss/agoda-scraper)
- [Booking.com & Airbnb Scraper](https://apify.com/lentic_clockss/booking-airbnb-scraper)
- [Booking.com Hotels Scraper](https://apify.com/lentic_clockss/booking-hotels-scraper)
- [Airbnb Listings Scraper](https://apify.com/lentic_clockss/airbnb-listings-scraper)
- [Expedia Scraper](https://apify.com/lentic_clockss/expedia-scraper)
- [Traveloka Scraper](https://apify.com/lentic_clockss/traveloka-scraper)
- [TripAdvisor Scraper](https://apify.com/lentic_clockss/tripadvisor-scraper)
- [Despegar Scraper](https://apify.com/lentic_clockss/despegar-scraper)
- [Travelstart Flights Scraper](https://apify.com/lentic_clockss/travelstart-scraper)

#### Prefer another specialized scraper?

**Jobs & Freelance**
- [LinkedIn Jobs Scraper](https://apify.com/lentic_clockss/linkedin-jobs-scraper)
- [Indeed Jobs Scraper](https://apify.com/lentic_clockss/indeed-jobs-scraper)
- [Upwork Jobs Scraper](https://apify.com/lentic_clockss/upwork-jobs-scraper)
- [Glassdoor Scraper](https://apify.com/lentic_clockss/glassdoor-scraper)
- [Fiverr Gigs Scraper](https://apify.com/lentic_clockss/fiverr-programming-tech-gigs-scraper)
- [Bayt Jobs Scraper](https://apify.com/lentic_clockss/bayt-scraper)

**E-commerce**
- [Walmart Product Scraper](https://apify.com/lentic_clockss/walmart-scraper)
- [Amazon Search Scraper](https://apify.com/lentic_clockss/amazon-search-results-collector)
- [Costco Product Scraper](https://apify.com/lentic_clockss/costco-scraper)
- [Shopee Search Scraper](https://apify.com/lentic_clockss/shopee-search-scraper)
- [Etsy Scraper](https://apify.com/lentic_clockss/etsy-scraper)
- [SHEIN Product Scraper](https://apify.com/lentic_clockss/shein-scraper)
- [Temu Product Scraper](https://apify.com/lentic_clockss/temu-scraper)
- [Target Product Scraper](https://apify.com/lentic_clockss/target-scraper)

**Real Estate**
- [Zillow & Zumper Scraper](https://apify.com/lentic_clockss/us-real-estate-scraper)
- [Realtor.com Scraper](https://apify.com/lentic_clockss/realtor-com-scraper)
- [Apartments.com Rental Scraper](https://apify.com/lentic_clockss/apartments-com-rental-scraper)
- [Rightmove Scraper](https://apify.com/lentic_clockss/rightmove-property-scraper)
- [Idealista Scraper](https://apify.com/lentic_clockss/idealista-scraper)
- [realestate.com.au Scraper](https://apify.com/lentic_clockss/realestate-com-au-scraper)

**Social & Content**
- [YouTube Research Scraper](https://apify.com/lentic_clockss/youtube-research-scraper)
- [TikTok Scraper](https://apify.com/lentic_clockss/tiktok-scraper)
- [Reddit Scraper](https://apify.com/lentic_clockss/reddit-scraper)
- [YouTube Shorts Scraper](https://apify.com/lentic_clockss/youtube-shorts-scraper)

**Ads Intelligence**
- [Facebook Ad Library Scraper](https://apify.com/lentic_clockss/facebook-ad-library-scraper)
- [TikTok Ads Scraper](https://apify.com/lentic_clockss/tiktok-ads-top-ads-actor)

**Local & Maps**
- [Google Maps Scraper](https://apify.com/lentic_clockss/google-maps-scraper)

**General Tools**
- [Stealth Web Scraper](https://apify.com/lentic_clockss/stealth-web-scraper)
- [Email Risk Validator](https://apify.com/lentic_clockss/email-risk-validator)
- [Phone Number Intelligence](https://apify.com/lentic_clockss/phone-number-intelligence)

→ See the full catalog in [Related Actors](#related-actors) below, or browse [apify.com/lentic_clockss](https://apify.com/lentic_clockss).

---

### How to scrape Trip.com (step-by-step)

1. Open [Trip.com Scraper](https://apify.com/lentic_clockss/trip-com-scraper) and click **Try for free**.
2. Choose a `service` (start with `hotels`).
3. Set `destination` (and `origin` for flights). For hotels, add `checkin` / `checkout`.
4. Optionally pick a regional `domain` (for example `uk.trip.com`) and `maxResults`.
5. Click **Start** and download the dataset as JSON or CSV.

You can also run via the Apify API, Scheduler, or integrations (Make, Zapier, n8n, webhooks).

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

This Actor uses **Pay per event** pricing. You are **not** charged separately for Apify platform usage on this Actor.

| Event | Price |
|---|---|
| Actor Start (`apify-actor-start`) | **$0.005** per start (memory-scaled) |
| result (`apify-default-dataset-item`) | **$3.00 / 1,000** results ($0.003 each) |

**Examples**

- 100 hotel results ≈ $0.005 + $0.30 = **~$0.31**
- 1,000 results ≈ $0.005 + $3.00 = **~$3.01**

Free Apify-plan users are capped at **10 runs** and **200 results** for this Actor.

### Input

| Parameter | Default | Description |
|---|---|---|
| `service` | `hotels` | hotels / flights / trains / cars / packages / attractions |
| `domain` | `www.trip.com` | Regional Trip.com host |
| `destination` | `Bangkok` | City / region / arrival |
| `regionId` | — | Optional Trip.com city id (Bangkok `359`) |
| `origin` | — | Required for flights |
| `checkin` / `checkout` | — | Stay / car dates (`YYYY-MM-DD`) |
| `departureDate` / `returnDate` | — | Flight dates |
| `tripType` | `oneway` | `oneway` or `roundtrip` |
| `adults` / `children` / `rooms` | `2` / `0` / `1` | Party size |
| `maxResults` | `50` | Cap (free plan ≤ 200) |
| `currency` / `locale` | `USD` / `en_US` | Market prefs |
| `includeSponsored` | `false` | Keep sponsored cards |
| `proxyCountry` | from domain | Apify RESIDENTIAL country |

#### Hotels in Bangkok

```json
{
  "service": "hotels",
  "domain": "www.trip.com",
  "destination": "Bangkok",
  "regionId": "359",
  "checkin": "2026-09-12",
  "checkout": "2026-09-14",
  "adults": 2,
  "rooms": 1,
  "maxResults": 5,
  "currency": "USD"
}
````

#### UK domain hotel search

```json
{
  "service": "hotels",
  "domain": "uk.trip.com",
  "destination": "London",
  "checkin": "2026-10-01",
  "checkout": "2026-10-03",
  "currency": "GBP",
  "locale": "en_GB",
  "maxResults": 5
}
```

#### One-way flights SIN → BKK

```json
{
  "service": "flights",
  "origin": "SIN",
  "destination": "BKK",
  "departureDate": "2026-09-20",
  "tripType": "oneway",
  "adults": 1,
  "maxResults": 5
}
```

### Output / sample dataset

```json
{
  "source": "trip.com",
  "service": "hotels",
  "listingId": "1234567",
  "name": "Example Riverside Hotel Bangkok",
  "domain": "www.trip.com",
  "destination": "Bangkok",
  "url": "https://www.trip.com/hotels/bangkok-hotel-detail-1234567/",
  "price": 89,
  "priceDisplay": "US$89",
  "currency": "USD",
  "rating": 8.6,
  "reviewCount": 2140,
  "sponsored": false,
  "scrapedAt": "2026-07-27T02:00:00+00:00"
}
```

### Tips for multi-domain & multi-LOB runs

- Prefer **check-in / check-out** for hotels so Trip.com returns priced stay cards.
- Use Trip.com `regionId` / city id when known (Bangkok `359`) for tighter hotel SERPs.
- Start with small `maxResults` (3–10) while validating a market, then scale.
- Hotel pagination uses scroll / card accumulation; URL `page=` alone is unreliable.
- Standby Live View exposes `/health`, `/input-example`, and `/openapi.json`; scraping still runs via normal Actor runs.

### FAQ

#### Trip.com vs Ctrip — same Actor?

Yes for practical scraping: Trip.com is the international brand of Trip.com Group / Ctrip IBU. This Actor targets Trip.com regional hosts (`*.trip.com`), not the mainland `ctrip.com` Chinese site.

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

This Actor is **unofficial** and not affiliated with Trip.com Group. Scraping public search results may be subject to Trip.com terms, applicable laws, and your compliance policies. You are responsible for how you use the data.

#### Do I need an official Trip.com API or login?

No. Provide destination and dates; receive structured dataset rows you can schedule and pipe into workflows. No Trip.com account is required.

#### Why not plain HTTP?

Trip.com uses anti-spider defenses. Acquisition runs through an authenticated Cloud Run worker using **Camoufox** (anti-detect Firefox) plus residential proxy.

### Support

Questions or feature requests? Open an issue on the Actor page or contact the developer on Apify.

Related travel scrapers: [Expedia Scraper](https://apify.com/lentic_clockss/expedia-scraper) and other Actors on the [lentic\_clockss](https://apify.com/lentic_clockss) profile.

***

### Related Actors

All **77** public Actors from \[[lentic\_clockss](https://apify.com/lentic_clockss)]. Click a name to open the Store detail page.

#### Jobs & Freelance

- [LinkedIn Jobs Scraper](https://apify.com/lentic_clockss/linkedin-jobs-scraper)
- [Bayt Jobs Scraper](https://apify.com/lentic_clockss/bayt-scraper)
- [Fiverr Gigs Scraper](https://apify.com/lentic_clockss/fiverr-programming-tech-gigs-scraper)
- [Freelancer.com Scraper](https://apify.com/lentic_clockss/freelancer-scraper)
- [Glassdoor Scraper](https://apify.com/lentic_clockss/glassdoor-scraper)
- [Himalayas Jobs Scraper](https://apify.com/lentic_clockss/himalayas-jobs-scraper)
- [Indeed Jobs Scraper](https://apify.com/lentic_clockss/indeed-jobs-scraper)
- [Jobicy Remote Jobs Scraper](https://apify.com/lentic_clockss/jobicy-remote-jobs-scraper)
- [RemoteOK Jobs Scraper](https://apify.com/lentic_clockss/remoteok-all-jobs-scraper)
- [SEEK Jobs Scraper](https://apify.com/lentic_clockss/seek-scraper)
- [Upwork Jobs Scraper](https://apify.com/lentic_clockss/upwork-jobs-scraper)

#### Real Estate

- [Zillow & Zumper Scraper](https://apify.com/lentic_clockss/us-real-estate-scraper)
- [Realtor.com Scraper](https://apify.com/lentic_clockss/realtor-com-scraper)
- [99.co Scraper](https://apify.com/lentic_clockss/ninetynine-co-sg-scraper)
- [Realtor.com Agents Scraper](https://apify.com/lentic_clockss/realtor-com-agents-scraper)
- [Apartments.com Rental Scraper](https://apify.com/lentic_clockss/apartments-com-rental-scraper)
- [Bayut Scraper](https://apify.com/lentic_clockss/bayut-uae-scraper)
- [Craigslist Housing Scraper](https://apify.com/lentic_clockss/craigslist-housing-scraper)
- [Daft.ie Scraper](https://apify.com/lentic_clockss/daft-property-scraper)
- [Dot Property Scraper](https://apify.com/lentic_clockss/dot-property-th-scraper)
- [FINN.no Scraper](https://apify.com/lentic_clockss/finn-scraper)
- [Funda Scraper](https://apify.com/lentic_clockss/funda-scraper)
- [Hepsiemlak Scraper](https://apify.com/lentic_clockss/hepsiemlak-scraper)
- [Idealista Scraper](https://apify.com/lentic_clockss/idealista-scraper)
- [Immobiliare.it Scraper](https://apify.com/lentic_clockss/immobiliare-property-scraper)
- [ImmoScout24 Scraper](https://apify.com/lentic_clockss/immobilienscout24-scraper)
- [Naver Land Scraper](https://apify.com/lentic_clockss/naver-land-scraper)
- [OpenSooq Scraper](https://apify.com/lentic_clockss/opensooq-real-estate-scraper)
- [Otodom Scraper](https://apify.com/lentic_clockss/otodom-scraper)
- [Property Finder Scraper](https://apify.com/lentic_clockss/property-finder-uae-scraper)
- [PropertyGuru Scraper](https://apify.com/lentic_clockss/propertyguru-sg-scraper)
- [realestate.com.au Scraper](https://apify.com/lentic_clockss/realestate-com-au-scraper)
- [Realtor.ca Scraper](https://apify.com/lentic_clockss/realtor-ca-scraper)
- [Rightmove Scraper](https://apify.com/lentic_clockss/rightmove-property-scraper)
- [SeLoger Scraper](https://apify.com/lentic_clockss/seloger-property-scraper)
- [SUUMO Scraper](https://apify.com/lentic_clockss/suumo-property-scraper)
- [Zillow Group Scraper](https://apify.com/lentic_clockss/zillow-group-scraper)

#### E-commerce

- [Shopee Search Scraper](https://apify.com/lentic_clockss/shopee-search-scraper)
- [E-commerce Scraper](https://apify.com/lentic_clockss/ecommerce-scraper)
- [1688 Global Product Search Scraper](https://apify.com/lentic_clockss/1688-global-scraper)
- [Allegro Scraper](https://apify.com/lentic_clockss/allegro-scraper)
- [Amazon Search Scraper](https://apify.com/lentic_clockss/amazon-search-results-collector)
- [ASOS Product Scraper](https://apify.com/lentic_clockss/asos-scraper)
- [Cdiscount Product Scraper](https://apify.com/lentic_clockss/cdiscount-scraper)
- [Costco Product Scraper](https://apify.com/lentic_clockss/costco-scraper)
- [Coupang Product Scraper](https://apify.com/lentic_clockss/coupang-scraper)
- [Etsy Scraper](https://apify.com/lentic_clockss/etsy-scraper)
- [Lazada Scraper](https://apify.com/lentic_clockss/lazada-ph-search-results-collector)
- [MercadoLibre Scraper](https://apify.com/lentic_clockss/mercadolibre-scraper)
- [Mercari Japan Scraper](https://apify.com/lentic_clockss/mercari-scraper)
- [Rakuten Japan Scraper](https://apify.com/lentic_clockss/rakuten-scraper)
- [SHEIN Product Scraper](https://apify.com/lentic_clockss/shein-scraper)
- [Target Product Scraper](https://apify.com/lentic_clockss/target-scraper)
- [Temu Product Scraper](https://apify.com/lentic_clockss/temu-scraper)
- [Walmart Product Scraper](https://apify.com/lentic_clockss/walmart-scraper)

#### Travel & Stays

- [Booking.com & Airbnb Scraper](https://apify.com/lentic_clockss/booking-airbnb-scraper)
- [Agoda Scraper](https://apify.com/lentic_clockss/agoda-scraper)
- [Airbnb Listings Scraper](https://apify.com/lentic_clockss/airbnb-listings-scraper)
- [Booking.com Hotels Scraper](https://apify.com/lentic_clockss/booking-hotels-scraper)
- [Despegar Scraper](https://apify.com/lentic_clockss/despegar-scraper)
- [Expedia Scraper](https://apify.com/lentic_clockss/expedia-scraper)
- [Traveloka Scraper](https://apify.com/lentic_clockss/traveloka-scraper)
- [Travelstart Flights Scraper](https://apify.com/lentic_clockss/travelstart-scraper)
- [Trip.com Scraper](https://apify.com/lentic_clockss/trip-com-scraper)
- [TripAdvisor Scraper](https://apify.com/lentic_clockss/tripadvisor-scraper)

#### Social & Content

- [TikTok Scraper](https://apify.com/lentic_clockss/tiktok-scraper)
- [Reddit Scraper](https://apify.com/lentic_clockss/reddit-scraper)
- [YouTube Shorts Scraper](https://apify.com/lentic_clockss/youtube-shorts-scraper)
- [YouTube Research Scraper](https://apify.com/lentic_clockss/youtube-research-scraper)
- [Hacker News Scraper](https://apify.com/lentic_clockss/hacker-news-scraper)

#### Ads Intelligence

- [Facebook Ad Library Scraper](https://apify.com/lentic_clockss/facebook-ad-library-scraper)
- [Google Ads Transparency VN](https://apify.com/lentic_clockss/google-ads-transparency-center-vn)
- [TikTok Ads Scraper](https://apify.com/lentic_clockss/tiktok-ads-top-ads-actor)

#### Local & Maps

- [Google Maps Scraper](https://apify.com/lentic_clockss/google-maps-scraper)

#### General Tools

- [Stealth Web Scraper](https://apify.com/lentic_clockss/stealth-web-scraper)
- [Email Risk Validator](https://apify.com/lentic_clockss/email-risk-validator)
- [Phone Number Intelligence](https://apify.com/lentic_clockss/phone-number-intelligence)

→ Browse the full profile: [apify.com/lentic\_clockss](https://apify.com/lentic_clockss)

# Actor input Schema

## `service` (type: `string`):

Trip.com product line: hotels, flights, trains, cars, packages, attractions.

## `domain` (type: `string`):

Regional Trip.com host (e.g. www.trip.com, ph.trip.com, uk.trip.com, jp.trip.com).

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

City/region for hotels/cars/packages/attractions/trains, or arrival airport/city for flights. Optional if regionId is set.

## `regionId` (type: `string`):

Optional Trip.com city id (e.g. Bangkok=359). Improves hotel SERP precision.

## `origin` (type: `string`):

Required for flights (airport code or city). Optional package origin.

## `checkin` (type: `string`):

YYYY-MM-DD for hotels, cars, packages. Recommended for hotels — without dates Trip.com may return generic availability cards.

## `checkout` (type: `string`):

YYYY-MM-DD for hotels, cars, packages. Recommended for hotels with checkin.

## `departureDate` (type: `string`):

YYYY-MM-DD for flights (and optional trains).

## `returnDate` (type: `string`):

YYYY-MM-DD when tripType=roundtrip.

## `tripType` (type: `string`):

oneway or roundtrip for flights

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

Number of adult travelers

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

Number of children

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

Number of hotel rooms

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

Maximum listings to return. Free-plan users capped at 200.

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

ISO currency code

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

Trip.com locale tag (e.g. en\_US)

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

Hotel SERP sort (e.g. RECOMMENDED)

## `includeSponsored` (type: `boolean`):

Include sponsored ad cards in results

## `proxyCountry` (type: `string`):

Optional ISO country for Apify RESIDENTIAL proxy (defaults from domain).

## `workerBaseUrl` (type: `string`):

Optional HTTPS override for the Cloud Run worker. Only allowlisted hosts are accepted (configured worker host, localhost, or ALLOWED\_WORKER\_HOSTS). Defaults to Actor env WORKER\_BASE\_URL.

## Actor input object example

```json
{
  "service": "hotels",
  "domain": "www.trip.com",
  "destination": "Bangkok",
  "regionId": "",
  "origin": "",
  "checkin": "2026-09-12",
  "checkout": "2026-09-14",
  "departureDate": "",
  "returnDate": "",
  "tripType": "oneway",
  "adults": 2,
  "children": 0,
  "rooms": 1,
  "maxResults": 50,
  "currency": "USD",
  "locale": "en_US",
  "sort": "RECOMMENDED",
  "includeSponsored": false,
  "proxyCountry": "",
  "workerBaseUrl": ""
}
```

# Actor output Schema

## `listings` (type: `string`):

Default dataset containing scraped Trip.com listings and offers across all supported lines of business.

## `runSummary` (type: `string`):

Key-value store record with run counters, selected input, worker endpoint, and completion timestamp.

## `inputEcho` (type: `string`):

Key-value store record containing the sanitized input used by this run.

## `errorSummary` (type: `string`):

Key-value store record containing controlled error details when the Actor cannot complete the requested scrape.

# 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 = {
    "service": "hotels",
    "domain": "www.trip.com",
    "destination": "Bangkok"
};

// Run the Actor and wait for it to finish
const run = await client.actor("lentic_clockss/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 = {
    "service": "hotels",
    "domain": "www.trip.com",
    "destination": "Bangkok",
}

# Run the Actor and wait for it to finish
run = client.actor("lentic_clockss/trip-com-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "service": "hotels",
  "domain": "www.trip.com",
  "destination": "Bangkok"
}' |
apify call lentic_clockss/trip-com-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=lentic_clockss/trip-com-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Trip.com Scraper — Hotels Flights Trains Cars",
        "description": "Scrape Trip.com hotels, flights, trains, cars, packages & attractions across regional domains (www, UK, JP, PH). Get prices, ratings & listing URLs. Export JSON/CSV. Pay per result — no login.",
        "version": "0.2",
        "x-build-id": "YRqJ6lloM31kkMVxF"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/lentic_clockss~trip-com-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-lentic_clockss-trip-com-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/lentic_clockss~trip-com-scraper/runs": {
            "post": {
                "operationId": "runs-sync-lentic_clockss-trip-com-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/lentic_clockss~trip-com-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-lentic_clockss-trip-com-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "service",
                    "destination"
                ],
                "properties": {
                    "service": {
                        "title": "Service / Line of Business",
                        "enum": [
                            "hotels",
                            "flights",
                            "trains",
                            "cars",
                            "packages",
                            "attractions"
                        ],
                        "type": "string",
                        "description": "Trip.com product line: hotels, flights, trains, cars, packages, attractions.",
                        "default": "hotels"
                    },
                    "domain": {
                        "title": "Trip.com Domain",
                        "type": "string",
                        "description": "Regional Trip.com host (e.g. www.trip.com, ph.trip.com, uk.trip.com, jp.trip.com).",
                        "default": "www.trip.com"
                    },
                    "destination": {
                        "title": "Destination",
                        "type": "string",
                        "description": "City/region for hotels/cars/packages/attractions/trains, or arrival airport/city for flights. Optional if regionId is set.",
                        "default": "Bangkok"
                    },
                    "regionId": {
                        "title": "City ID",
                        "type": "string",
                        "description": "Optional Trip.com city id (e.g. Bangkok=359). Improves hotel SERP precision.",
                        "default": ""
                    },
                    "origin": {
                        "title": "Origin",
                        "type": "string",
                        "description": "Required for flights (airport code or city). Optional package origin.",
                        "default": ""
                    },
                    "checkin": {
                        "title": "Check-in / Pickup Date",
                        "type": "string",
                        "description": "YYYY-MM-DD for hotels, cars, packages. Recommended for hotels — without dates Trip.com may return generic availability cards.",
                        "default": ""
                    },
                    "checkout": {
                        "title": "Check-out / Dropoff Date",
                        "type": "string",
                        "description": "YYYY-MM-DD for hotels, cars, packages. Recommended for hotels with checkin.",
                        "default": ""
                    },
                    "departureDate": {
                        "title": "Flight Departure Date",
                        "type": "string",
                        "description": "YYYY-MM-DD for flights (and optional trains).",
                        "default": ""
                    },
                    "returnDate": {
                        "title": "Flight Return Date",
                        "type": "string",
                        "description": "YYYY-MM-DD when tripType=roundtrip.",
                        "default": ""
                    },
                    "tripType": {
                        "title": "Flight Trip Type",
                        "enum": [
                            "oneway",
                            "roundtrip"
                        ],
                        "type": "string",
                        "description": "oneway or roundtrip for flights",
                        "default": "oneway"
                    },
                    "adults": {
                        "title": "Adults",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Number of adult travelers",
                        "default": 2
                    },
                    "children": {
                        "title": "Children",
                        "minimum": 0,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Number of children",
                        "default": 0
                    },
                    "rooms": {
                        "title": "Rooms",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Number of hotel rooms",
                        "default": 1
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Maximum listings to return. Free-plan users capped at 200.",
                        "default": 50
                    },
                    "currency": {
                        "title": "Currency",
                        "type": "string",
                        "description": "ISO currency code",
                        "default": "USD"
                    },
                    "locale": {
                        "title": "Locale",
                        "type": "string",
                        "description": "Trip.com locale tag (e.g. en_US)",
                        "default": "en_US"
                    },
                    "sort": {
                        "title": "Hotel Sort",
                        "type": "string",
                        "description": "Hotel SERP sort (e.g. RECOMMENDED)",
                        "default": "RECOMMENDED"
                    },
                    "includeSponsored": {
                        "title": "Include Sponsored Ads",
                        "type": "boolean",
                        "description": "Include sponsored ad cards in results",
                        "default": false
                    },
                    "proxyCountry": {
                        "title": "Proxy Country",
                        "type": "string",
                        "description": "Optional ISO country for Apify RESIDENTIAL proxy (defaults from domain).",
                        "default": ""
                    },
                    "workerBaseUrl": {
                        "title": "Worker Base URL Override",
                        "type": "string",
                        "description": "Optional HTTPS override for the Cloud Run worker. Only allowlisted hosts are accepted (configured worker host, localhost, or ALLOWED_WORKER_HOSTS). Defaults to Actor env WORKER_BASE_URL.",
                        "default": ""
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
