/trip/hotels/search
Search Trip.com hotels in a city by numeric city id for given check-in/check-out dates. Returns the city’s top hotels with id, name, star rating, category, guest review score with category subscores and review count, the lowest nightly from-price, location (address, district, city/province/country, coordinates), a review snippet and photos.
Price: 1 credit
💡 AI Hint: Search hotels in a Trip.com city by numeric city_id (resolve a city name to its id via trip/destinations/search). Optionally pass check_in/check_out dates for the from-price. Returns items with id, name, star, category, score, score_description, review_count, score_details, price, currency, city_id, city_name, province_id, country_id, address, position_desc, zone_names, latitude, longitude, review_snippet, image, images and url.
⚠️ Common errors: 412: No hotels found for the given city id
Authorizations
API token from the dashboard
Headers
Body
Trip.com numeric city id to search hotels in
x >= 1633
Max number of hotels to return
x >= 1Max scrapping execution timeout (in seconds)
20 <= x <= 1500Check-in date (YYYY-MM-DD); defaults to a near-future date
Check-out date (YYYY-MM-DD); defaults to the day after check-in
Response
Successful Response