trip.com Search Hotels API
Hotels on Trip.com for a destination or a map area and stay dates, 10 per site page. Each hotel has its id, English name, WGS-84 latitude/longitude (plus GCJ-02 ones for mainland China), property type, star class, review score and count, the total price of the whole stay with currency and whether taxes and fees are included, a free-cancellation flag when Trip.com shows one, photo URLs and a hotel page URL carrying the same dates, guests and rooms. Bookable hotels come first, then sold-out ones (available=false, no price). A destination search is in Trip.com's recommended order; a map-area search is nearest-first from the area's centre and carries distance_km.
https://api.maviapi.com/v1/sites/trip/search_hotels5 credits per callParameters
| Name | Required | Example | Description |
|---|---|---|---|
destinationstring in query | Optional | Paris | free text - a city, region, country, district, landmark, station or hotel name (e.g. "Tokyo", "Eiffel Tower"); ignored when a map area is given |
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 |
pageinteger in query | Optional | 1 | page number, starting at 1 (in a bounding-box search a page can hold fewer than 10 hotels: those outside the box are left out) |
northstring in query | Optional | None | bounding box northern latitude, WGS-84 decimal degrees (give all four of north, south, east, west) |
southstring in query | Optional | None | bounding box southern latitude |
eaststring in query | Optional | None | bounding box eastern longitude |
weststring in query | Optional | None | bounding box western longitude |
latstring in query | Optional | None | centre latitude, WGS-84 decimal degrees (with lng; used instead of a bounding box) |
lngstring in query | Optional | None | centre longitude |
radius_kmstring in query | Optional | None | radius around lat/lng in km (default 2) |
Response fields
destination
namee.g."Paris"typee.g."CT"trip_ide.g."192"citye.g."Paris"countrye.g."France"checkine.g."2026-12-28"checkoute.g."2026-12-30"adultse.g.2childrene.g.0roomse.g.1currencye.g."USD"pagee.g.1page_sizee.g.10total_resultse.g.6661is_last_pagee.g.falsehotels
hotel_ide.g."2171570"namee.g."Hotel des Grands Voyageurs"latitudee.g.48.84698longitudee.g.2.32594coordinate_systeme.g."WGS-84"latitude_gcj02longitude_gcj02property_typee.g."Hotel"star_ratinge.g.4review_scoree.g.9.3review_score_maxe.g.10review_counte.g.141areae.g."Near Paris Montparnasse Station | Jardin du Luxembourg"citye.g."Paris"availablee.g.trueavailability_noteroom_namee.g."Classic Room"total_pricee.g.610.77prepay_onlinee.g.573.81currencye.g."USD"taxes_and_fees_includede.g.trueprice_notee.g."Total price: $611 1 room × 2 nights incl. taxes & fees"free_cancellationphotosurle.g."https://us.trip.com/hotels/detail/?hotelId=2171570&checkIn=2026-12-28&checkOut=2026-12-30&adult=2&children=0&ages=&crn=1&curr=USD"pagination
counte.g.10has_moree.g.truenext_cursore.g."WzEsIjBjNmYwZjFlIixudWxsLDAseyJwYWdlIjoyfV0"fetched_ate.g."2026-11-28T14:50:45.093Z"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/search_hotels' \
-H "Authorization: Bearer $MAVI_KEY"trip.com Search Hotels API questions
What you get, what it costs and how to call it.
What does the trip.com Search Hotels API return?
Hotels on Trip.com for a destination or a map area and stay dates, 10 per site page. Each hotel has its id, English name, WGS-84 latitude/longitude (plus GCJ-02 ones for mainland China), property type, star class, review score and count, the total price of the whole stay with currency and whether taxes and fees are included, a free-cancellation flag when Trip.com shows one, photo URLs and a hotel page URL carrying the same dates, guests and rooms. Bookable hotels come first, then sold-out ones (available=false, no price). A destination search is in Trip.com's recommended order; a map-area search is nearest-first from the area's centre and carries distance_km. The response has destination, checkin, checkout, adults, children, rooms, currency, page and 7 more.
Which parameters does the trip.com Search Hotels API take?
Every parameter of GET /search_hotels is optional. You can pass destination, checkin, checkout, adults, children, child_ages, rooms, currency, page, north, south, east and 4 more.
How much does one trip.com Search Hotels 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 Search Hotels API?
Send an HTTPS GET request to https://api.maviapi.com/v1/sites/trip/search_hotels 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 Search Hotels 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.