Skip to content

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.

GEThttps://api.maviapi.com/v1/sites/trip/search_hotels5 credits per call

Parameters

NameRequiredExampleDescription
destinationstring in queryOptionalParisfree 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 queryOptionalNonecheck-in date YYYY-MM-DD (default: 30 days from today)
checkoutstring in queryOptionalNonecheck-out date YYYY-MM-DD (default: 2 nights after checkin)
adultsinteger in queryOptional2number of adults in total
childreninteger in queryOptional0number of children (ages taken from child_ages, missing ages count as 8)
child_agesstring in queryOptionalNonecomma-separated child ages, e.g. "4,9"
roomsinteger in queryOptional1number of rooms
currencystring in queryOptionalUSDISO currency code for prices, e.g. USD, EUR, JPY
pageinteger in queryOptional1page 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 queryOptionalNonebounding box northern latitude, WGS-84 decimal degrees (give all four of north, south, east, west)
southstring in queryOptionalNonebounding box southern latitude
eaststring in queryOptionalNonebounding box eastern longitude
weststring in queryOptionalNonebounding box western longitude
latstring in queryOptionalNonecentre latitude, WGS-84 decimal degrees (with lng; used instead of a bounding box)
lngstring in queryOptionalNonecentre longitude
radius_kmstring in queryOptionalNoneradius around lat/lng in km (default 2)

Response fields

destinationobject5 fields
namestringe.g."Paris"
typestringe.g."CT"
trip_idstringe.g."192"
citystringe.g."Paris"
countrystringe.g."France"
checkinstringe.g."2026-12-28"
checkoutstringe.g."2026-12-30"
adultsintegere.g.2
childrenintegere.g.0
roomsintegere.g.1
currencystringe.g."USD"
pageintegere.g.1
page_sizeintegere.g.10
total_resultsintegere.g.6661
is_last_pagebooleane.g.false
hotelsobject[]25 fields
hotel_idstringe.g."2171570"
namestringe.g."Hotel des Grands Voyageurs"
latitudenumbere.g.48.84698
longitudenumbere.g.2.32594
coordinate_systemstringe.g."WGS-84"
latitude_gcj02null
longitude_gcj02null
property_typestringe.g."Hotel"
star_ratingintegere.g.4
review_scorenumbere.g.9.3
review_score_maxnumbere.g.10
review_countintegere.g.141
areastringe.g."Near Paris Montparnasse Station | Jardin du Luxembourg"
citystringe.g."Paris"
availablebooleane.g.true
availability_notenull
room_namestringe.g."Classic Room"
total_pricenumbere.g.610.77
prepay_onlinenumbere.g.573.81
currencystringe.g."USD"
taxes_and_fees_includedbooleane.g.true
price_notestringe.g."Total price: $611 1 room × 2 nights incl. taxes & fees"
free_cancellationnull
photosstring[]
urlstringe.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"
paginationobject3 fields
countintegere.g.10
has_morebooleane.g.true
next_cursorstringe.g."WzEsIjBjNmYwZjFlIixudWxsLDAseyJwYWdlIjoyfV0"
fetched_atstringe.g."2026-11-28T14:50:45.093Z"
ageintegere.g.0

Example request

Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.

cURL
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.