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.
https://api.maviapi.com/v1/sites/trip/search_hotels-v25 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 |
page_sizeinteger in query | Optional | 10 | hotels per page, 1 to 100 (default 10) |
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 destination, ignored with 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-29"checkoute.g."2026-12-31"adultse.g.2childrene.g.0roomse.g.1currencye.g."USD"pagee.g.1page_sizee.g.10total_resultse.g.6662total_results_exacte.g.trueis_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.751.51prepay_onlinee.g.714.55currencye.g."USD"taxes_and_fees_includede.g.trueprice_notee.g."Total price: $752 1 room × 2 nights incl. taxes & fees"free_cancellatione.g.falsephotosurle.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_pricede.g.1pagination
counte.g.10has_moree.g.truenext_cursore.g."WzEsIjhkY2I1MzNmIixudWxsLDAseyJwYWdlIjoyfV0"fetched_ate.g."2026-11-29T06:29:51.368Z"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-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.