Trip.com API

Trip.com API for Hotels, One-Way Flights, Attractions, Cruises, and Train Stations

Scrappa's Trip.com API returns structured JSON from Trip.com, the international site of Ctrip. Suggest cities, hotels and airports by name, list hotel prices for a city and stay with star and price filters, read hotel details with amenities, policies and photos, page through guest reviews, search one-way flights with segments, carriers and prices, look up train stations, search attractions with ticket options and reviews, and read cruise sailings with cabin category prices and itineraries. Scrappa is an independent service and is not affiliated with or endorsed by Trip.com.

500 free credits
No card needed
From $0.20 / 1k
Pay as you go
Structured JSON
Ready for apps
API key access
Test in minutes
11
Endpoints
5
Currencies
$0.20
Per 1k requests

Try it now

Make one request. Inspect structured JSON.

Use the first endpoint in this API family with a Scrappa API key. Every account includes 500 free monthly credits, so you can validate the response shape before buying credits.

Request preview
Request
curl -X GET "https://scrappa.co/api/tripcom/hotels/search?city_id=192&check_in=2027-03-14&check_out=2027-03-16&adults=2&currency=EUR&stars=4,5&sort=price_asc" \
  -H "Accept: application/json" \
  -H "X-API-KEY: YOUR_API_KEY"
JSON response
{
  "success": true,
  "data": {
    "city_id": "192",
    "currency": "EUR",
    "page": 1,
    "total": 6503,
    "count": 12,
    "hotels": [
      {
        "position": 1,
        "hotel_id": "718146",
        "name": "Hotel Régence Etoile",
        "stars": 4,
        "guest_score": 9.2,
        "review_count": 562,
        "price_per_night": 232.0,
        "original_price_per_night": 357.0,
        "total_price": 547.96,
        "currency": "EUR",
        "free_cancellation": true,
        "is_ad": false
      }
    ]
  },
  "meta": { "endpoint_family": "hotel_search", "billable": true }
}

What you can build

Structured data for real applications. Here are some ideas.

Rate Parity Checks

Compare the Trip.com price of a hotel with Booking, Agoda and Expedia for the same stay.

Asia Hotel Research

Track prices, stars and guest scores of hotels in Asian and global cities.

Reputation Tracking

Follow guest reviews by date, score, traveller type and room type.

Flight Price Tracking

Read one-way fares with carriers, flight numbers, stops and duration.

Trip.com scraper API

Trip.com API for hotel prices, details, reviews, and flights

The Trip.com API is built for rate parity checks, hotel research and review monitoring. Every price is a number with its currency. Filters are always honoured: a row that breaks a filter is never returned.

Find city ids, hotel ids and airport codes with the suggest endpoint.

Hotel search returns page 1 only. Narrow a search with a price range, stars and sort.

Choose one of seven site languages and five currencies: USD, EUR, GBP, JPY and KRW.

Flights are one way. Search the return leg as its own flight.

Attractions and cruises are separate endpoints with their own search, detail and reviews. Train endpoints list stations only.

Cruise cabin prices are the lowest fare per person for each category, not a quote.

Room rate plans are not available. Hotel search shows the cheapest offer per hotel.

Choose the right Trip.com API endpoint

Use Suggest to find ids

Send a name to get the city id for hotel search, the hotel id for detail and reviews, and airport codes for flights.

Open Trip.com Suggest API docs

Use Hotel Search for prices

Pass a city id and your dates to get the cheapest offer per hotel with price per night, total price and free cancellation.

Open Trip.com Hotel Search API docs

Use Detail and Reviews for depth

Open a hotel by id for amenities, policies, photos and room types, and page through its guest reviews.

Open Trip.com Hotel Detail API docs

Available endpoints

Everything you need in one API.

GET

Hotel Search

/api/tripcom/hotels/search

List hotel prices for a city and stay, with paging, star, price, guest score and cancellation filters

GET

Hotel Filters

/api/tripcom/hotels/filters

List the filters and sorts of a hotel search for one city and stay, with labels

GET

Hotel Rooms

/api/tripcom/hotels/rooms

Get room rates for one stay at a hotel. Rates exist for a subset of hotels only

GET

Train Search

/api/tripcom/trains/search

Search dated train journeys with times, changes and cheapest fares in Europe, Japan, Korea and China

GET

Car Rental Locations

/api/tripcom/cars/locations

Find car rental pickup places such as airports by name, with the values the car search needs

GET

Car Rental Search

/api/tripcom/cars/search

Search car rental offers for an airport pickup and period with supplier, class, policies and total and daily prices

Scrappa vs Apify actors

See how Scrappa compares to Apify actors.

Trip.com data as JSON
Scrappa
Apify actors
Filters that are always honoured
Scrappa
Typed parameters
Apify actors
Varies by actor
Price per 1k requests
Scrappa
From $0.20
Apify actors
About $5 to $20
Unified API key
Scrappa
Yes (350+ APIs)
Apify actors
One actor per site
Free tier
Scrappa
500 credits/month
Apify actors
Trial credits

Key features

City, hotel and airport suggest with ids the other endpoints accept unchanged
Hotel prices as numbers with currency, original price, total price and free cancellation
Star and price filters that are always honoured
Hotel details with amenities, policies, check-in times, photos and room types
Guest reviews with score, date, traveller type and room type
One-way flights with segments, carriers, stops and duration
Seven site languages and five currencies. Failed requests are never billed

Frequently asked questions

No. Scrappa is an independent service and is not affiliated with or endorsed by Trip.com. The API returns structured JSON from public Trip.com data through a Scrappa API key.

Every Scrappa account includes 500 free credits each month. After that, each successful request costs one credit. Failed requests are never billed.

Trip.com shows more hotels only to a live browser session. Narrow your search with a price range, stars and sort to reach other hotels. A page above 1 returns 422.

No. Trip.com shows rate plans only to a live browser session. Hotel search returns the cheapest offer per hotel, and hotel detail lists the room types without prices.

No. Search each leg as its own one-way flight. A return_date parameter returns 422.

Start using the Trip.com API

Sign up and get 500 free credits. No credit card required.