Search destinations
const url = 'https://api.wink.travel/api/public/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/search?term=Bangkok';const options = { method: 'GET', headers: {'Wink-Version': '2.0', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.wink.travel/api/public/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/search?term=Bangkok' \ --header 'Authorization: Bearer <token>' \ --header 'Wink-Version: 2.0'Returns matching hotels, cities, countries, and attractions for the given search term, filtered by the managing entity. Supports partial matching and case-insensitive search across all lookup types.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Managing entity identifier (e.g., account or distribution channel ID)
Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69Query Parameters
Section titled “Query Parameters ”Search term (e.g., city, hotel name, activity name). Supports partial matching.
Example
BangkokHeader Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”List of matching lookup entries (may be empty if no matches)
Cached lookup entry representing a searchable entity such as a hotel, activity, city, or attraction
object
Unique lookup identifier
Type of lookup (CITY, HOTEL, ACTIVITY, SPA, RESTAURANT, ATTRACTION, ISLAND, COUNTRY, PLACE, MEETING_ROOM)
Unique identifier for the lookup type resource (e.g., hotel ID, city geoname ID)
Human-readable name of the lookup entry
URL-friendly slug that uniquely identifies this lookup within its type and location
Identifier of the owner (supplier) that created or manages this lookup entry
Name of the owner (supplier) that created this lookup entry
Name of the closest city where this lookup entry is located
Country name where this lookup entry is located
State or province where this lookup entry is located
County or district where this lookup entry is located
ISO 3166-1 alpha-2 country code
Type of owner that created this lookup (TRAVELIKO for platform-managed entries, HOTEL for supplier-created entries)
Language code for the lookup name (ISO 639-1 format)
Platform-specific sort order (lower values sort first: CITY=1, ISLAND=2, HOTEL=3, others vary)
Whether this is the primary/original lookup entry for this resource (true) or a variant like an alternate language or name (false)
Lowercase version of the name, used for regex-based search operations
Longitude coordinate of the lookup entry location
Latitude coordinate of the lookup entry location
GeoJson location
object
Example
[ { "identifier": "b7e4c1a2-3f5d-4e8a-9c21-6f0b5d8e3a47", "type": "ACTIVITY", "typeIdentifier": "1609350", "name": "Thai Cooking Class at The Siam Residences", "urlName": "thai-cooking-class-at-the-siam-residences", "ownerIdentifier": "e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18", "ownerName": "The Siam Residences, Bangkok", "cityName": "Bangkok", "countryName": "Thailand", "countryCode": "TH", "ownerType": "HOTEL", "languageCode": "en", "sort": 3, "origin": true, "locationX": 100.5581533, "locationY": 13.7370197 }]Bad Request — missing or invalid request parameter or body
object
object
Example
Unauthorized — authentication is required or the session has expired
object
object
Example
Forbidden — authenticated but lacking the required permission or scope
object
object
Example
Not Found — the requested resource does not exist
object
object
Example
Method Not Allowed — the HTTP verb is not supported on this endpoint
object
object
Example
Unsupported Media Type — use application/json
object
object
Example
Internal Server Error — an unexpected failure occurred on the server
object
object
Example
Service Unavailable — a downstream dependency is unreachable