Search hotels
anywayr_search_hotelsSearches hotels for exact dates and one room with real guest ages. Results come best-first the way Anywayr ranks them (guest rating and review count, star class, value, location), 20 at a time; pass sort "top_rated" or "cheapest" to change that, and min_stars / min_guest_rating / max_total / max_distance_km / free_cancellation_only / breakfast_included to filter (e.g. for "somewhere nicer"). Sort "best_deal" returns only hotels in the place priced at or below similar hotels near them in the same search, each with a deal: quote deal.why as given, and say "deal" or "great deal" only when deal.label does; a "pick" is about other hotels in this search, never this hotel's usual price. When fewer than 3 hotels inside the place qualify, nearby ones follow with location.inside_place false: never call them in the place, and give their town and distance as their first why line does. An airport is a point: no hotel is in it, only near it. Never compare Anywayr's prices with other sites. With best_deal a state or country is searched as its most-booked hotel area (narrowed_to). With a room filter, quote matched_room. Each hotel has its address and distance from the centre of the searched place. For the next 20, call again with the same search and cursor set to next_cursor (no new supplier search). Quote all_in_total as the price: it adds fees the hotel collects at the property to what Anywayr charges; when it is null, say the hotel may charge extra at the property. Give both prices per hotel when they differ: cheapest_room (often non-refundable) and cheapest_free_cancellation_room with its free-cancellation date. Unsupported party shapes are refused, not adjusted. Results say whether they are live or cached and whether any source was missing; a provider outage is never reported as no availability. Prices shown are leads, not quotes. Effects: Stores a search snapshot (so rates can be read later) and spends provider search budget. Holds nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | ||
| cursor | No | Anywayr cursor reference (starts with cur_), as returned by the next_cursor of a previous page. | |
| currency | No | Currency for prices. Only USD is supported today; omit it or pass "USD". | USD |
| max_total | No | Highest whole-stay price in USD, including fees the hotel collects at the property. | |
| min_stars | No | ||
| date_range | Yes | ||
| occupancies | Yes | ||
| request_key | Yes | Any unique string of 16-128 characters you generate (letters, digits and . _ : -). Reuse the same key only to retry the exact same request. | |
| destination_ref | Yes | Anywayr place reference (starts with plc_), as returned by anywayr_resolve_destination. | |
| max_distance_km | No | Only hotels within this many km of the centre of the searched place. | |
| min_guest_rating | No | ||
| breakfast_included | No | Only hotels with a room that includes breakfast; prices then quote that room. | |
| free_cancellation_only | No | Only hotels with a room that can be cancelled for free; prices then quote that room. |