
Tripadvisor travel data: location search, hotels (lists, details, reviews, photos, filters, offers, amenities), restaurants, attractions, airport lookup, nearby places, and destination overviews. Identify a place by its numeric location_id (from search, or from a URL d208453). Identify a destination by its numeric geo_id (from search, or from a URL g60763). Review routes take both. Unknown ids return HTTP 404. Invalid parameters return HTTP 400. This API does not complete bookings. Hotel offer prices are the public rates shown for a stay.
Returns matching destinations (geo_id) and places (location_id). Use a returned id on the detail, review, and list routes.
Place or destination name.
Restrict results. Default all.
Interface language, e.g. en, es.
Max suggestions. Default 10.
Language:
Client:
fetch('https://api.apivex.com/tripadvisor/api/search/locations?query=Hilton Times Square&hl=en&limit=10', {
method: 'GET',
headers: {
'x-apivex-key': 'YOUR_API_KEY'
}
})
.then(response => response.json())
.then(data => console.log(data));