API · Tripadvisor
GET /tripadvisor/attraction
A Tripadvisor attraction: categories, rating, description, address, visit length, tours.
| Request | GET /v1/tripadvisor/attraction |
| Operation id | tripadvisor.attraction.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A Tripadvisor attraction: categories, rating, description, address, visit length, tours.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | yes | The place: a Tripadvisor link or its path (/Hotel_Review-g60763-d93437-Reviews-…html), d93437, or the location id. Example: /Hotel_Review-g60763-d93437-Reviews-Hotel_Edison_Times_Square-New_York_City_New_York.html. |
language | string | no | Language for names and reviews: en, fr, de-DE, … (default en-US). |
currency | string | no | Currency for prices (default USD). |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The attraction. | TripadvisorAttractionResponse |
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 |
TripadvisorAttractionResponse fields
| Field | Type | Description |
|---|---|---|
location | TripadvisorContentLocation | |
summary | TripadvisorLocationSummary | |
tickets | object | null |
Errors use one shape everywhere; see Errors for every code and what to do.