Skip to main content
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

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.
Facets describe the destination catalogue, not live availability. Apply them to hotel search, then use fresh room options and prebook before checkout.
The OpenAPI section below contains every parameter, facet field, and response schema.

Authorizations

x-api-key
string
header
required

Environment-specific API key created in the Unifystays portal

Headers

Query Parameters

city_id
number

City ID from destination autocomplete. Required if place_id/hotel_id not supplied.

Example:

101

place_id
number

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
string

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"

Response

success
boolean
required
Example:

true

message
string
required
Example:

"Filters fetched successfully"

data
object
required