Locations

All TripAdvisor destinations and points of interest (POIs) are identified by a location ID and a name, which are included in all API responses.

Field

Type

Description

location_id

number

Unique TripAdvisor location ID of the destination or POI.

name

string

Name of the destination or POI.

 

A destination (or geo) is geographic location. This can be a country, state, province, region or city. You can identify a geo location ID on TripAdvisor by navigating to that destination’s page and looking for the number after the ‘g’ parameter in the URL. For example, the geo location ID for the city of Boston is 60745, as defined in the URL below:

 

http://www.tripadvisor.com/Tourism-g60745-Boston_Massachusetts-Vacations.html  

 

POIs include accommodations, attractions and restaurants that are listed and can be reviewed on TripAdvisor. You can find the location ID for a TripAdvisor POI by navigating to the property’s page on TripAdvisor and looking for the number after the ‘d’ parameter in the URL. For example, the location ID for the Hotel Commonwealth in Boston is 258705.

 

http://www.tripadvisor.com/Hotel_Review-g60745-d258705-Reviews-Hotel_Commonwealth-Boston_Massachusetts.html

 

Note that the URL for a POI also includes the geo location ID for the city in which it’s located (after the ‘g’).

 

Location ID Mapping

TripAdvisor does not support any services to its Content API users for mapping partner or external location IDs to TripAdvisor location IDs for destinations or POIs.