Suggest
/api/tripcom/suggest
Find cities, hotels and airports by name
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.
Try it now
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.
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¤cy=EUR&stars=4,5&sort=price_asc" \
-H "Accept: application/json" \
-H "X-API-KEY: YOUR_API_KEY"
{
"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 }
}
Structured data for real applications. Here are some ideas.
Compare the Trip.com price of a hotel with Booking, Agoda and Expedia for the same stay.
Track prices, stars and guest scores of hotels in Asian and global cities.
Follow guest reviews by date, score, traveller type and room type.
Read one-way fares with carriers, flight numbers, stops and duration.
Trip.com scraper API
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.
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 docsPass 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 docsOpen a hotel by id for amenities, policies, photos and room types, and page through its guest reviews.
Open Trip.com Hotel Detail API docsEverything you need in one API.
/api/tripcom/suggest
Find cities, hotels and airports by name
/api/tripcom/hotels/search
List hotel prices for a city and stay, with paging, star, price, guest score and cancellation filters
/api/tripcom/hotels/filters
List the filters and sorts of a hotel search for one city and stay, with labels
/api/tripcom/hotels/detail
Get one hotel with description, amenities, policies, photos and rooms
/api/tripcom/hotels/reviews
Get paginated guest reviews with scores and traveller types
/api/tripcom/hotels/rooms
Get room rates for one stay at a hotel. Rates exist for a subset of hotels only
/api/tripcom/flights/search
Search one-way and round-trip flights with segments, carriers and prices
/api/tripcom/flights/calendar
Cheapest price per departure day for a route
/api/tripcom/packages/search
Hotels priced together with a round-trip flight
/api/tripcom/trains/stations
Find train stations by name or list the hot stations of a country
/api/tripcom/trains/search
Search dated train journeys with times, changes and cheapest fares in Europe, Japan, Korea and China
/api/tripcom/trains/calendar
Lowest train price per departure window for a station pair
/api/tripcom/buses/search
Search coach journeys between coach stations or cities
/api/tripcom/attractions/search
Search attractions and tours with prices, ratings and rankings
/api/tripcom/attractions/detail
Get opening hours, location and ticket options of an attraction
/api/tripcom/attractions/reviews
Get paginated attraction reviews with ratings and photos
/api/tripcom/cruises/search
Search cruise sailings by destination, month and sort
/api/tripcom/cruises/detail
Get cabin category prices, itinerary and inclusions of a sailing
/api/tripcom/cars/locations
Find car rental pickup places such as airports by name, with the values the car search needs
/api/tripcom/cars/search
Search car rental offers for an airport pickup and period with supplier, class, policies and total and daily prices
See how Scrappa compares to Apify actors.
| Feature | Scrappa | Apify actors |
|---|---|---|
| Trip.com data as JSON | ||
| Filters that are always honoured | Typed parameters | Varies by actor |
| Price per 1k requests | From $0.20 | About $5 to $20 |
| Unified API key | Yes (350+ APIs) | One actor per site |
| Free tier | 500 credits/month | Trial credits |
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.