Search destinations
const url = 'https://api.wink.travel/api/public//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//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)
Query 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)
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
[ ""]Missing or empty search term
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
Unauthorized
object
object
Forbidden
object
object
Internal Server Error
object
Example generated
{}