Hotels
Search hotels
Find hotels by name, brand, city, city code or coordinates, with indicative nightly prices. Prices are for reference; quote get_rates. Refused with 422 when more than 30,000 hotels match.
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 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.