Tripadvisor

List Tripadvisor attraction types in a city

List the kinds of attractions and experiences in a Tripadvisor city or region, with how many of each there are.

GET/v1/tripadvisor/attractions/types
x-api-keystringheader

API key (`sfk_...`)

Parameters
1
geoIdintegerrequiredquery

Tripadvisor geo id of a city or region, e.g. `60763` (New York City): the `g` number in a Tripadvisor address, or `locationId` of a `geo` search result.

≥ 1 · ≤ 2147483647

Response fields
14

Endpoint-specific response payload.

datalookupStatus
string

`not_found` when no city or region has this geo id.

one of: found, not_found

datageoId
integer

The geo id asked for.

Types, in the site's own order.

datatypes[]id
integer

The site's id for the type.

datatypes[]name
string

Type, e.g. `Sights & Landmarks`.

datatypes[]count
integernullable

Attractions and experiences of this type in the city.

datatypes[]url
string

The city's Tripadvisor list of this type.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

metastale
booleanoptional

Present, and `true`, only when the source couldn't be reached and this is the last good answer for the same request instead, up to 24 hours old. Absent on every live answer.

one of: true

metafetchedAt
stringoptional

When a stale answer (`stale: true`) was originally fetched (ISO 8601, UTC). Absent on every live answer.

Code example

curl "https://api.socialfetch.dev/v1/tripadvisor/attractions/types?geoId=187147" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Kinds of attractions and experiences in a Tripadvisor city or region.