Skip to main content

Search hotel availability

POST 

/hotels/v1/availability

Searches for hotel availability across multiple providers based on search criteria. Supports filtering by hotels, check-in/check-out dates, occupancies, and other criteria. The API aggregates responses from multiple providers specified in the connectionCodes array.

Results include available hotel options with pricing, room details, board types, and cancellation policies. The response can be used for subsequent prebooking and booking operations.

Streaming (opt-in): Send Accept: text/event-stream to receive results as Server-Sent Events (SSE). Each event is either update (this connection's options/errors delta, not a merged snapshot) or done (final merged snapshot as SearchResponse, including timed-out connections). API key calls receive one update per connection. A signed-in user session can receive a connection with many options in more than one update: append them. Only the last update of that connection carries its errors and the completed count that includes it. Event data is JSON with searchId, connectionCode (update only), completed, total, timedOut, plus options/errors on update or snapshot on done. By default done.snapshot does not repeat options: every option already arrived on an update, so clients keep the options they accumulated and take errors, warnings, tracing, auditData and timedOut from done. Do not rely on options being present on done; if it is present, it holds the same options. When the request sends Accept-Encoding: gzip (any list that includes the gzip token) the stream is gzip-compressed (Content-Encoding: gzip, Vary: Accept-Encoding) and flushed after every event, so each event is decodable as soon as it arrives. Without that token the stream is cleartext. SSE JSON matches unary Connect JSON (enum names, unpopulated bools/zeros present, RFC 3339 timestamps), with the search-body rules below. Search free text is capped (default 256 UTF-8 bytes, cut at a code point boundary) on rooms[].description, remarks[].value, surcharges[].description and rateRules[].description; quote and book keep the full text. On search bodies (unary and SSE done.snapshot) the top-level errors, warnings and debugData arrays are absent, not [], when empty; read a missing array as empty. Pre-fan-out refusals (invalid/past stay dates, hotelCodeProvider) still answer application/json with errors[] even when Accept is text/event-stream. A comment line : ping is sent periodically as a keepalive.

Request​

Responses​

Unary JSON or SSE stream. Client and provider failures on this path are still HTTP 200 with errors[] (ERR_CODE_* / ERR_TYPE_*), not HTTP 400. When Accept is text/event-stream, pre-fan-out refusals (stay dates, hotelCodeProvider) may still return application/json SearchResponse with errors[].