API · Tripadvisor
GET /tripadvisor/hotel
A Tripadvisor hotel: rating, sub-ratings, amenities, price range, contact, description.
| Request | GET /v1/tripadvisor/hotel |
| Operation id | tripadvisor.hotel.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A Tripadvisor hotel: rating, sub-ratings, amenities, price range, contact, description.
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 hotel. | TripadvisorHotelResponse |
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 |
TripadvisorHotelResponse fields
| Field | Type | Description |
|---|---|---|
location | TripadvisorContentLocation | |
hotel | object | |
hotelInformation | object | null | |
amenities | object | null | |
priceRange | object | null | |
nearbyLocations | object | null |
Errors use one shape everywhere; see Errors for every code and what to do.