Hotels
Search hotels
Find hotels by name/brand/city text (query), catalogue cityCode or coordinates (near), with per-night prices for the dates in currency (CNY by default, or USD). Those prices come from the supplier's minimum-price feed, not live rates; get_hotel_rates returns the bookable price. facilities must match catalogue names exactly. Refused (422) when more than 30,000 hotels match: narrow the search.
Input
querystringHotel name, brand or city to search for. Provide at least one of query, cityCode or near.
cityCodeintegerCatalogue city code, as returned in hotels[].cityCode.
nearobjectSearch around a point.
near.latnumberrequiredLatitude.
near.lngnumberrequiredLongitude.
near.radiusKmnumberrequiredRadius in kilometres.
starMinnumberLowest star rating to include.
starMaxnumberHighest star rating to include.
facilitiesstring[]Facilities every hotel must have. Names must match the catalogue exactly (case-insensitive), e.g. Swimming pool, Parking.
checkInstringrequiredCheck-in date, yyyy-MM-dd.
checkOutstringrequiredCheck-out date, yyyy-MM-dd. Stays are 1 to 15 nights.
currency"CNY" | "USD"Currency to show prices in. Prices are converted from the supplier's at Stripe's exchange rate; the response's fx says how.
priceMinnumberLowest average nightly price, in currency. Applied to indicative prices.
priceMaxnumberHighest average nightly price, in currency.
sortBy"recommended" | "price-asc" | "price-desc" | "star-desc" | "distance"Result order. recommended sorts by distance with near, by relevance with query, otherwise by catalogue weight. distance requires near.
pageintegerPage number.
pageSizeintegerHotels per page.
Output
Returns the Search result object as structuredContent. Errors are described in the overview.