Get lookup by URL name
const url = 'https://api.wink.travel/api/public//lookup/bangkok-thailand?type=CITY';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//lookup/bangkok-thailand?type=CITY' \ --header 'Authorization: Bearer <token>' \ --header 'Wink-Version: 2.0'Retrieves full details of a single lookup entry identified by its URL-friendly name and type. The type parameter disambiguates cases where the same destination appears in multiple lookup types (e.g., Bangkok as both CITY and ISLAND).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Managing entity identifier (e.g., account or distribution channel ID)
URL-friendly slug for the lookup (e.g., bangkok-thailand, the-siam-residences-bangkok-thailand)
Example
bangkok-thailandQuery Parameters
Section titled “Query Parameters ”Lookup type to filter by (CITY, HOTEL, ACTIVITY, SPA, RESTAURANT, ATTRACTION, ISLAND, COUNTRY, PLACE, MEETING_ROOM)
Example
CITYHeader Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”Lookup entry found with full details including geolocation
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
Geo-location
object
Example
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
Lookup entry not found for the given URL name and type
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
Geo-location
object
Example
{ "identifier": "", "type": "CITY", "typeIdentifier": "", "name": "", "urlName": "", "ownerIdentifier": "", "ownerName": "", "cityName": "", "countryName": "", "subCountryName": "", "subSubCountryName": "", "countryCode": "", "ownerType": "TRAVELIKO", "languageCode": "", "sort": "", "origin": false, "lowercaseName": "", "location": ""}Internal Server Error
object
Example generated
{}