Skip to content

trip.com Search Hotels v2 API

Hotels on Trip.com for a destination, a map bounding box or a point and radius, for given stay dates, in pages of up to 100. Same fields as /search_hotels: id, English name, WGS-84 latitude/longitude (plus GCJ-02 for mainland China), property type, star class, review score and count, total price of the whole stay with currency and whether taxes and fees are included, photo URLs and a hotel page URL. In addition every bookable row has free_cancellation (true/false for the offer priced) and rooms_priced (how many rooms total_price covers - the asked number of rooms whenever the hotel sells an offer for that many rooms that fits the guests; otherwise the site's suggested room count, also stated in price_note). Sold-out rows have available=false and no price fields (total_price, price_note, free_cancellation and rooms_priced are null). Bookable hotels come first, then sold-out ones. A destination search is in Trip.com's recommended order. A bounding-box search returns only hotels inside the box, bookable first and each group nearest-first from the box centre, with total_results = the number of hotels inside the box (total_results_exact=false when the area is too dense to count fully: then rows and count cover the hotels nearest the box's centre). A point search is nearest-first within the radius. Map searches carry distance_km.

GEThttps://api.maviapi.com/v1/sites/trip/search_hotels-v25 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
page_sizeinteger in queryOptional10hotels per page, 1 to 100 (default 10)
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 destination, ignored with 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-29"
checkoutstringe.g."2026-12-31"
adultsintegere.g.2
childrenintegere.g.0
roomsintegere.g.1
currencystringe.g."USD"
pageintegere.g.1
page_sizeintegere.g.10
total_resultsintegere.g.6662
total_results_exactbooleane.g.true
is_last_pagebooleane.g.false
hotelsobject[]26 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.751.51
prepay_onlinenumbere.g.714.55
currencystringe.g."USD"
taxes_and_fees_includedbooleane.g.true
price_notestringe.g."Total price: $752 1 room × 2 nights incl. taxes & fees"
free_cancellationbooleane.g.false
photosstring[]
urlstringe.g."https://us.trip.com/hotels/detail/?hotelId=2171570&checkIn=2026-12-29&checkOut=2026-12-31&adult=2&children=0&ages=&crn=1&curr=USD"
rooms_pricedintegere.g.1
paginationobject3 fields
countintegere.g.10
has_morebooleane.g.true
next_cursorstringe.g."WzEsIjhkY2I1MzNmIixudWxsLDAseyJwYWdlIjoyfV0"
fetched_atstringe.g."2026-11-29T06:29:51.368Z"
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-v2' \
  -H "Authorization: Bearer $MAVI_KEY"

trip.com Search Hotels v2 API questions

What you get, what it costs and how to call it.

What does the trip.com Search Hotels v2 API return?

Hotels on Trip.com for a destination, a map bounding box or a point and radius, for given stay dates, in pages of up to 100. Same fields as /search_hotels: id, English name, WGS-84 latitude/longitude (plus GCJ-02 for mainland China), property type, star class, review score and count, total price of the whole stay with currency and whether taxes and fees are included, photo URLs and a hotel page URL. In addition every bookable row has free_cancellation (true/false for the offer priced) and rooms_priced (how many rooms total_price covers - the asked number of rooms whenever the hotel sells an offer for that many rooms that fits the guests; otherwise the site's suggested room count, also stated in price_note). Sold-out rows have available=false and no price fields (total_price, price_note, free_cancellation and rooms_priced are null). Bookable hotels come first, then sold-out ones. A destination search is in Trip.com's recommended order. A bounding-box search returns only hotels inside the box, bookable first and each group nearest-first from the box centre, with total_results = the number of hotels inside the box (total_results_exact=false when the area is too dense to count fully: then rows and count cover the hotels nearest the box's centre). A point search is nearest-first within the radius. Map searches carry distance_km. The response has destination, checkin, checkout, adults, children, rooms, currency, page and 8 more.

Which parameters does the trip.com Search Hotels v2 API take?

Every parameter of GET /search_hotels-v2 is optional. You can pass destination, checkin, checkout, adults, children, child_ages, rooms, currency, page, page_size, north, south and 5 more.

How much does one trip.com Search Hotels v2 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 v2 API?

Send an HTTPS GET request to https://api.maviapi.com/v1/sites/trip/search_hotels-v2 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 v2 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.