Search & hotels
Get Hotel Filters
Retrieve available search facets and counts for a place, city, or hotel’s city.
GET
Use this endpoint to build a filter drawer before a hotel search. It returns
only the facet values and counts that are relevant to one selected destination:
star ratings, price range, property types, hotel chains, and facilities.
Pass exactly one of
place_id, city_id, or hotel_id. The API caches
the resulting destination facets for 24 hours and returns cached_until in
the response.Request Example
Apply the Facets to Search
Use values from the response as inputs to Search Hotels:
For a
place_id, counts cover the full place subtree. For a hotel_id,
Unifystays resolves the hotel’s city so a single-hotel result still has a
useful filter set.
The OpenAPI section below contains every parameter, facet field, and response
schema.Authorizations
Environment-specific API key created in the Unifystays portal
Headers
Query Parameters
City ID from destination autocomplete. Required if place_id/hotel_id not supplied.
Example:
101
Place ID from destination autocomplete (type=place). Facets cover every hotel in the place subtree (e.g. all of Bali). Takes precedence over city_id/hotel_id.
Example:
2930267
Hotel ID (bigint as string). Required if city_id not supplied. Server resolves the hotel's city and returns facets for that city.
Example:
"1892345"