Search modes
| Mode | Trigger | Description |
|---|---|---|
| Fuzzy name | q is present | Full-text search against hotel names |
| Geographic | lat, lon, and radius all present | Returns hotels within the given radius |
| Filter-based | None of the above | Filters by country, city, and rating |
limit is clamped to a maximum of 100. offset must be zero or greater. Both are applied after the search mode is resolved.GET /api/v1/reference/search
Search the reference hotel inventory.Query parameters
Fuzzy search query for hotel name. When present, name search mode is used and geographic/filter parameters are ignored.
Latitude for geographic search. Must be combined with
lon and radius.Longitude for geographic search. Must be combined with
lat and radius.Search radius in kilometers. Must be greater than 0.
Filter results by country name. Case-insensitive. Can be combined with any search mode.
Filter results by region. Applicable in name and filter-based modes.
Filter results by city name.
Minimum star rating (e.g.
3, 4.5). Applied in filter-based mode.Maximum number of results to return. Clamped to the range 1–100.
Number of results to skip for pagination.
Response
Array of matching reference hotel objects.
Total number of results matching the query before pagination.
Examples
GET /api/v1/reference/search/advanced
Advanced search with additional filters and sorting options.Query parameters
Hotel name query string.
Filter by country name.
Filter by city name.
Minimum star rating.
When
true, only return hotels that have latitude and longitude values.Field to sort by. Accepted values:
name, rating, created.Sort direction. Accepted values:
asc, desc.Maximum number of results. Clamped to 1–100.
Pagination offset.