Search & hotels
Get Search Price Updates
Poll a search session for fresh supplier prices and merge them into a visible result list.
GET
After an
To prioritize hotel cards currently on screen, pass up to 50 comma-separated
hotel IDs in
instant hotel search, call this endpoint every two seconds while the
customer is viewing the result page. It returns the hotel prices that have
become fresh since the search response.
Request Example
refresh_ids:
Update the Result List
1
Keep the search ID
Save
data.search_id from the original hotel search response.2
Poll while results are visible
Poll every two seconds only while the customer is actively viewing the
search results.
3
Merge updates
Replace the matching hotel card data using each
updated_prices item and
its hotel_id, then reapply the current sort order.4
Stop the loop
Stop polling when
data.status is COMPLETE or EXPIRED, or when the
customer leaves the result page.Response Example
no_price_hotel_ids identifies hotels whose live supplier requests returned no
price for the stay. Your UI can badge, deprioritize, or remove them according
to the product experience.
The OpenAPI section below contains all status values, request parameters, and
the precise update payload.Authorizations
Environment-specific API key created in the Unifystays portal
Headers
Path Parameters
Example:
"srch_a1b2c3d4e5f6g7h8"
Query Parameters
Comma-separated hotel ids to refresh on demand (max 50).
Example:
"15419351,15312010"