Kinds of experiences in a destination API
The kinds of tours and experiences on offer in a destination, with counts and prices.
GET /v1/tripadvisor/experience-typesBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/tripadvisor/experience-types?query=New%20York%20City",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "geo": { "geoId": 60763, "name": "New York City" }, "types": [ { "tagId": 11938, "name": "Private and Luxury", "count": 59, "fromPrice": 9.99, "currency": "USD" }, { "tagId": 21729, "name": "Sightseeing Cruises", "count": 11, "fromPrice": 27, "currency": "USD" }, "… 14 more" ], "total": 2619, "sampled": 100}Parameters
| Name | Type | Description |
|---|---|---|
queryquery · required | string | The destination: a city or region name (the first match is used), a geo id (60763 or g60763), or a Tripadvisor link to it. Example: New York City. |
currencyquery | string | Currency for prices (default USD). |
languagequery | string | Language for names and reviews: en, fr, de-DE, … (default en-US). |
Response fields
200 with a TripadvisorExperienceTypesResponse, in Tripadvisor’s own JSON.
| Field | Type | Description |
|---|---|---|
geo | object | |
types | TripadvisorExperienceType[] | |
total | number | null | |
sampled | number |
Status codes
| Status | Meaning |
|---|---|
200 | The destination’s experience categories. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No Tripadvisor place or destination like that. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Tripadvisor is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Tripadvisor is a trademark of its owner. We are not affiliated with or endorsed by it.