API · Tripadvisor
GET /tripadvisor/attractions
Tours and things to do in a destination with duration, rating and price filters, paginated.
| Request | GET /v1/tripadvisor/attractions |
| Operation id | tripadvisor.attractions.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Tours and things to do in a destination with duration, rating and price filters, paginated.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | yes | 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. |
category | "any" | "attractions" | "tours" | "outdoor_activities" | "museums" | "shopping" | "nightlife" | "spas" | "classes" | no | One of any, attractions, tours, outdoor_activities, museums, shopping, nightlife, spas, classes. |
duration | "any" | "lt_1_hour" | "1_to_4_hours" | "4_hours_to_1_day" | "multi_day" | no | One of any, lt_1_hour, 1_to_4_hours, 4_hours_to_1_day, multi_day. |
traveler_rating | "3" | "4" | "5" | "any" | "3.5" | "4.5" | no | Minimum traveler rating. One of 3, 4, 5, any, 3.5, 4.5. |
free_cancellation | "true" | "false" | no | Only experiences with free cancellation. One of true, false. |
skip_the_line | "true" | "false" | no | Only skip-the-line experiences. One of true, false. |
private_tour | "true" | "false" | no | Only private tours. One of true, false. |
currency | string | no | Currency for prices (default USD). |
language | string | no | Language for names and reviews: en, fr, de-DE, … (default en-US). |
after | string | no | Cursor: the previous page’s pagination.next_cursor. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | A page of experiences. | TripadvisorAttractionsResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | No Tripadvisor place or destination like that. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Tripadvisor is temporarily unavailable. Retryable; nothing was charged. | Error |
TripadvisorAttractionsResponse fields
| Field | Type | Description |
|---|---|---|
geo | object | |
products | object[] | |
total | number | null | |
pagination | TripadvisorPagination |
Errors use one shape everywhere; see Errors for every code and what to do.