trip.com Hotel Details API
One Trip.com hotel: name, description, address, WGS-84 coordinates (plus GCJ-02 for mainland China), star class, every photo in the hotel's album, amenities by category, review score and count, check-in and check-out times, other policies, and the lowest total price for the whole stay (null with available=false when nothing can be booked for those dates).
https://api.maviapi.com/v1/sites/trip/hotel_details5 credits per callParameters
| Name | Required | Example | Description |
|---|---|---|---|
hotel_idstring in query | Optional | 1565557 | Trip.com hotel id, as returned by the search endpoints |
checkinstring in query | Optional | None | check-in date YYYY-MM-DD (default: 30 days from today) |
checkoutstring in query | Optional | None | check-out date YYYY-MM-DD (default: 2 nights after checkin) |
adultsinteger in query | Optional | 2 | number of adults in total |
childreninteger in query | Optional | 0 | number of children (ages taken from child_ages, missing ages count as 8) |
child_agesstring in query | Optional | None | comma-separated child ages, e.g. "4,9" |
roomsinteger in query | Optional | 1 | number of rooms |
currencystring in query | Optional | USD | ISO currency code for prices, e.g. USD, EUR, JPY |
Response fields
hotel_ide.g."1565557"namee.g."Hotel Mercure Paris Centre Gare Montparnasse"local_namee.g."Hotel Mercure Paris Centre Gare Montparnasse"star_ratinge.g.4star_rating_typee.g."star"descriptione.g."In the heart of the 14th district, the Mercure Paris Centre Gare Montparnasse has a unique past: it once served as the former entrance to the Bobino theatre. Close to some of the most iconic stages in the world’s theatre capital, you can book a room with views of the Eiffel Tower or the Montparnasse Tower. For business travellers, three inspiring meeting rooms are available. Before heading to a show, enjoy a cocktail at the bar and discover the creative dishes of our bistronomic restaurant.\n\nImmerse yourself in the lively atmosphere of Rue de la Gaîté in Paris: the historic charm of the Gaîté Montparnasse Theatre, the music-hall spirit of Bobino, the comedy productions of Le Grand Point Virgule, and the contemporary works at Théâtre Rive Gauche. Just a few steps from the hotel, admire one of the finest panoramic views of Paris from the top of the Montparnasse Tower. Explore the fascinating catacombs and wander through Montparnasse Cemetery or the Luxembourg Gardens, located within a 15-minute walk.\n\nJust a 5-minute walk from the Montparnasse high-speed train station, the hotel is close to several metro lines. Reach the Champs-Élysées and Notre-Dame de Paris within a few stops, and travel easily to Paris-Charles de Gaulle and Paris-Orly airports."addresse.g."20 Rue de la Gaité, Paris, 75014, France"areae.g."Montparnasse"citye.g."Paris"provincee.g."Ile-de-France"countrye.g."France"latitudee.g.48.839996longitudee.g.2.323562coordinate_systeme.g."WGS-84"latitude_gcj02longitude_gcj02openede.g."1987"renovatede.g."2018"review_scoree.g.8.9review_score_maxe.g.10review_counte.g.124review_subscores
Cleanlinesse.g.9Amenitiese.g.8.4Locatione.g.9.2Servicee.g.8.8check_in_timee.g."After 14:00"check_out_timee.g."Before 12:00"front_desk_hourse.g."Front desk hours: 24/7"policies
titlee.g."Child policies"textamenities
categorye.g."Internet"descriptionitems
namee.g."Wi-Fi in public areas"notee.g."Free"photos
urle.g."https://ak-d.tripcdn.com/images/0225x12000c37e42q26DF_R_960_660_R5_D.jpg"categorye.g."Exterior"titlee.g."Hotel Exterior"sourcee.g."hotel"checkine.g."2026-12-28"checkoute.g."2026-12-30"adultse.g.2childrene.g.0roomse.g.1availablee.g.truelowest_price
total_pricee.g.460.29currencye.g."USD"taxes_and_fees_includede.g.truepay_nowe.g.441.81room_namee.g."Classic Room With Double Bed"meale.g."Great breakfast for $22.96 (optional)"cancellatione.g."Non-refundable"free_cancellatione.g.falseprice_notee.g."Total price: $460 1 room × 2 nights incl. taxes & fees"urle.g."https://us.trip.com/hotels/detail/?hotelId=1565557&checkIn=2026-12-28&checkOut=2026-12-30&adult=2&children=0&ages=&crn=1&curr=USD"fetched_ate.g."2026-11-28T14:50:47.251Z"agee.g.0Example request
Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.
curl 'https://api.maviapi.com/v1/sites/trip/hotel_details' \
-H "Authorization: Bearer $MAVI_KEY"trip.com Hotel Details API questions
What you get, what it costs and how to call it.
What does the trip.com Hotel Details API return?
One Trip.com hotel: name, description, address, WGS-84 coordinates (plus GCJ-02 for mainland China), star class, every photo in the hotel's album, amenities by category, review score and count, check-in and check-out times, other policies, and the lowest total price for the whole stay (null with available=false when nothing can be booked for those dates). The response has hotel_id, name, local_name, star_rating, star_rating_type, description, address, area and 30 more.
Which parameters does the trip.com Hotel Details API take?
Every parameter of GET /hotel_details is optional. You can pass hotel_id, checkin, checkout, adults, children, child_ages, rooms and currency.
How much does one trip.com Hotel Details API call cost?
One successful call costs 5 credits. A failed call costs nothing. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.
How do I call the trip.com Hotel Details API?
Send an HTTPS GET request to https://api.maviapi.com/v1/sites/trip/hotel_details with your API key in the Authorization header, as in the example request on this page. Create a key on your API keys page, or try the endpoint first in the console with the free test key.
Is the trip.com Hotel Details API official?
No. It is an independent, hosted API from maviapi for the public data on trip.com, and it is not made, endorsed or supported by trip.com. Its parameters and response fields are documented on this page.