search_hotels
Searches hotels and other places to stay by city or country and check-in/check-out dates, with optional filters for brand, room type, maximum nightly rate, star rating and amenities. Results come from our hotel partners and hotels contracted directly with Autonomad, and include nightly and total rates, room options, the cancellation policy, a photo and whether each result can be booked. Every star level is included, ranked best first (guest score or star rating, then price); a hotel whose star rating is unknown has stars null. If the person wants only higher-rated hotels, pass min_star_rating (hotels with an unknown rating are then left out and counted in meta.unrated_excluded); if they want the cheapest first, pass flexible: true. Searching does not reserve anything or charge anyone. If the traveler gave no length, assume about 7 nights abroad (6 for Mexico, 4 for Canada from the US), 3 at home, and tell them it's an assumption.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City name (e.g., 'New York', 'Tokyo') | |
| brand | No | Hotel brand name to filter by | |
| place | No | The exact place of this trip stop: the `place` an earlier search for the trip returned, or the candidate the person picked when a search asked which place they meant. Searches given the same place cover the same place. | |
| region | No | State / region of the city (e.g. 'NV', 'Nevada', 'Maine'), when known. | |
| country | No | ISO 3166-1 alpha-2 country code (e.g., 'US', 'JP') | |
| check_in | Yes | Check-in date (YYYY-MM-DD) | |
| flexible | No | true: order results cheapest first instead of best first. | |
| latitude | No | Latitude of the destination, when known. | |
| amenities | No | Required amenities (wifi, gym, pool, spa, restaurant, etc.) | |
| check_out | Yes | Check-out date (YYYY-MM-DD) | |
| longitude | No | Longitude of the destination, when known. | |
| room_type | No | ||
| max_rate_usd | No | Maximum nightly rate in USD | |
| min_star_rating | No | Minimum star rating (1-5). Hotels whose rating is unknown are left out and counted in meta.unrated_excluded. | |
| destination_iata | No | IATA code of the airport the traveler flies into (e.g. 'LAS'). Pass it whenever a flight is known: it decides which same-named city is meant (Las Vegas NV vs NM). |