Skip to main content
POST
Search live hotel inventory and rates
Search live hotel inventory and whole-stay prices for a destination and stay window. It handles requests like “three nights in Lisbon next weekend for two adults” or “family room in Rome with one child in August”. Each offer’s total_amount_money covers the full requested stay; max_budget_per_night is a per-night filter. Each result includes an htl_* offer token you can hand to the trip tool to start a booking. A hotel search is a session. Each call returns within a time limit with the hotels found so far. has_more: true means the search can go on: send next_handle for the next page, even when this page holds no hotel (empty_reason: search_in_progress). has_more: false means the search is over; on an empty page, empty_reason says why, or, for a search by hotel_ids or hotel_name, destination_resolution.hotel_ids_without_rates lists the hotels that priced nothing.
Read hotel prices from the *_money fields. rates[].total_amount_money, taxes_breakdown[].amount_money and cancellation_schedule[].amount_money carry value in minor units with its decimal_places, the same shape as every other money field: divide value by 10 ** decimal_places, or show display. A cancellation step expressed as a percentage or a number of nights carries percent or nights instead. The older total_amount, amount and currency fields are deprecated and hold major units. A room’s capacity is room_capacity; the deprecated max_occupancy repeats the requested occupancy. See Money & prices.

Authorizations

X-API-Key
string
header
required

Body

application/json
next_handle
string
required

Opaque continuation handle returned by a prior hotel_search. Send this field by itself; the search session keeps destination, dates, occupancy, currency and filters.

Minimum string length: 1
Example:

"hp_example_2"

intent
object

Response

Matching hotels

hotels
object[]
nearby_alternatives
object[]

Other hotels near the one a hotel_name search matched, priced for the same dates and occupancy, so they can be compared without a second search. Same shape as hotels, and not counted in total. Present only on a hotel_name search that found usable neighbours.

total
number
Example:

87

search_handle
string
deprecated

Deprecated: use next_handle instead. The identifier of the search session on its own, which no endpoint accepts. next_handle carries the session and the next page, has_more says whether there is one and expires_at when the session ends.

Example:

"hs_example"

next_handle
string | null

Opaque handle for the next page. Send it by itself to hotel_search. The next page serves the hotels this answer held, then asks the hotel source for the next ones, and widens a city or default radius when its area has none left. Null means the search has nothing left. A page can hold no hotel and still carry next_handle (empty_reason search_in_progress): the search goes on, so send it.

Example:

"hp_example_2"

has_more
boolean

Whether this fixed search session has another page. A page answers one of three ways: hotels, with has_more saying whether next_handle gives more; no hotel yet while the search goes on (has_more true, empty_reason search_in_progress); or no hotel and the search is over (has_more false; empty_reason says why, or, for a search by hotel_ids or hotel_name, destination_resolution.hotel_ids_without_rates lists the hotels that priced nothing; after pages that listed hotels, empty_reason is absent: the results ended).

expires_at
string<date-time>

RFC 3339 expiry for the search session and its page handles.

Example:

"2027-01-15T10:30:00Z"

search_context
object

Normalized first-request stay and occupancy frozen by the search session and repeated on every page. trip_id only associates the search with a trip for display.

warnings
string[]

Non-fatal advisories, e.g. budget-filter outcomes or ignored filters.

destination_resolution
object

How the request’s destination resolved into these hotels. Present on every successful search. Rendering rule for an agent or tool: say something ONLY when there is something to say — match is fuzzy or fallback_string, resolved_city differs from requested_city, or the platform located a place that is not a city (place_type other than city), or alternatives is present. exact and provider_matched otherwise need no header line of their own. When resolved_place is present, name it as the place searched, with place_type when it is not a city, instead of resolved_city. When alternatives is present, name them too and let the user pick before booking.

empty_reason
enum<string>

Why hotels is empty. Absent whenever hotels is non-empty. search_in_progress: no hotel yet, and the search has not finished; has_more is true, so send next_handle to continue it, without changing the search. Every other value means the search is over: has_more is false. no_availability_with_filters: the search sent property filters (min_star_rating, max_star_rating, min_rating, min_reviews, chain_ids, facility_ids or hotel_type_ids) with the area and the dates, and no hotel came back; the filters or the dates are the cause, and which one is not known. Relax or drop the filters first, then try other dates or a wider area. party_too_large_for_one_room: a room of the search holds 10 or more guests and no hotel had a rate for it; other dates rarely help. Split that room into several, one occupancies entry per room, each with at least one adult. For both values, warnings and instruction say what to do.

Available options:
no_availability_for_dates,
destination_not_found,
catalog_exhausted,
all_dropped_by_budget,
no_catalog_match,
all_dropped_by_star_filter,
all_dropped_by_rating_filter,
search_in_progress,
no_availability_with_filters,
party_too_large_for_one_room
Example:

"no_availability_for_dates"

result
enum<string>

Only when hotels is empty; absent when hotels were returned. nearby_alternatives do not count as hotels. no_matches means the search is over and this page has no hotel to return: none at all, or, after earlier pages that listed hotels, none more (those hotels stand); relay instruction. timed_out means this page ended before the search finished (empty_reason search_in_progress, has_more true): it does not show whether hotels exist; send next_handle to continue the search.

Available options:
no_matches,
timed_out
instruction
string

Present with result: what to tell the user or do next. After pages that listed hotels, it says the results ended. Otherwise, when the empty case has a warning that says what to do next (budget, filters, a room for 10 or more guests, a named hotel or hotel_ids with no rate, a country sent as city_name), it is that warning, word for word, also in warnings; else a short sentence chosen by empty_reason.

Example:

"Search completed successfully, but no hotel had a bookable rate for these dates and guests. Ask the user whether to try other dates or another area before searching again."