Geo Details

Retrieves the factual and rich details of a single Tripadvisor Geo by its ID.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Geo Details requests

A Geo Details request takes a Tripadvisor Geo ID and returns that destination — a country, region, city or neighbourhood. Every Location carries a geo_id, which is how a Location is resolved to the destination that contains it.

A request is an HTTP GET to a URL in the form:

https://terra.tripadvisor.com/api/geos/{id}

Geo Details responses

The response is a single Geo object containing localized names and descriptions, the ancestor hierarchy, coordinates, the Geo type, Tripadvisor landing-page URLs, forum FAQs and suggested itineraries.

hierarchy

hierarchy.ancestors is ordered from the top of the tree down: rank 0 is the broadest ancestor and the final entry is the immediate parent. Walk the array in order to build breadcrumbs.

urls

Separate landing pages are provided for the destination itself and for hotels, restaurants, things to do and flights. Use the supplied URL rather than constructing one.

suggested_itineraries

trip_creation_method indicates how an itinerary was produced and may be GENERATIVE_AI. AI-generated content shown to users requires the disclosure your Master Terms specify.

Locales

locale behaves as on Location Details: repeatable for translated text, first locale only for enum labels.

Note: collections is deprecated and will be removed in a future major version.

Examples

Retrieve a destination

curl "https://terra.tripadvisor.com/api/geos/187147?version=1&locale=en-US" \
  -H "X-API-Key: API_KEY"

Related

Path Params
int32
required

the Tripadvisor Geo ID to retrieve

Query Params
locale
array of strings

preferred locales for localized fields (e.g. names, descriptions), in priority order;
falls back to the default locale when omitted

locale
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json