Trip.com Travel API reference
Get Trip.com travel data as clean JSON: the hotels on a city's hotel page with ratings and review counts, hotel details, the attractions in a destination and one-way flight offers. Send a page link or a route and get structured data back.
The Trip.com Travel API has 8 endpoints, called the same way: POST /execute with the endpoint ID as capability and its fields as input, or pin Trip.com Travel in the MCP server and call each one as a tool. The data comes back as JSON in results[0].data, with what the call cost in billing.credits_charged.
The inputs you send most are destination, hotel_url and origin. Prices run from 1 credit to 1 credit per call, and a failed call costs nothing.
Endpoints
Open an endpoint for its input, the fields it returns and the request in cURL, Python and Node.js.
| Endpoint | What it returns | Price |
|---|---|---|
tripcom.hotel.search |
Send a Trip.com city hotel page, such as London hotels, and get every hotel on it with its rating, review count, position and link. | 1 credit |
tripcom.hotel.get |
Get one hotel from its Trip.com link: name, description, address, rating, review count and amenities. | 1 credit |
tripcom.attractions.search |
List the attractions Trip.com shows for a destination, such as the London Eye in London, with their IDs and links. | 1–3 credits |
tripcom.attractions.get |
Get one attraction from its Trip.com link: title, category, description and location. | 1 credit |
tripcom.flight.search |
Search one-way Trip.com flights for a route and date, with passengers and cabin class, in the currency you choose. | 1–3 credits |
tripcom.hotel.reviews.list |
Read the public reviews on a Trip.com hotel page, page by page. | 1 credit |
tripcom.train.search |
Find trains between two cities on Trip.com with stations, times, duration, operator and train number. | 1 credit |
tripcom.car_rental.search |
See which cars and rental companies Trip.com lists at a pickup place, such as London Heathrow, with their from prices. | 1 credit |
What to know
- The page you send Hotel search returns the hotels on the Trip.com city page you send, in the order Trip.com shows them.
- Ratings out of 10 Hotel ratings use Trip.com's 10-point scale, with the review count beside them.
- Lists, then details Lists give names, IDs and links. Pass a link to the hotel or attraction endpoint for its full details.
- Flight fares in your currency Flight offers come in the currency you ask for.
Something missing or unclear? Ask the team that builds the Trip.com Travel endpoints.