Search Lookups
const url = 'https://api.wink.travel/api/public//search?term=Los%20A';const options = {method: 'GET', headers: {'Wink-Version': '2.0'}};
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=Los%20A' \ --header 'Wink-Version: 2.0'Searches for hotels, cities or countries by the search term.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Managing entity identifier
Query Parameters
Section titled “Query Parameters ”Search for lookups by this term
Example
Los AHeader Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”OK
object
Unique lookup identifier
Type of lookup
Unique lookup type identifier
Name of lookup
Url-friendly slug that uniquely identifies this lookup
Lookup that is supplier inventory includes the supplier identifier
Lookup that is supplier inventory includes the supplier name
Closest city where lookup entry is located
Country where lookup entry is located
State where lookup entry is located
County where lookup entry is located
Country code
The type of owner that created this lookup
The language the lookup code was written in
Platform-specific sort
If this lookup is the origin lookup.
Name in lower case
Longitude
Latitude
GeoJson location
object
Example
[ { "identifier": "", "type": "CITY", "typeIdentifier": "", "name": "", "urlName": "", "ownerIdentifier": "", "ownerName": "", "cityName": "", "countryName": "", "subCountryName": "", "subSubCountryName": "", "countryCode": "", "ownerType": "TRAVELIKO", "languageCode": "", "sort": "", "origin": false, "lowercaseName": "", "locationX": "", "locationY": "", "location": "" }]Bad Request
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
{}