API · Tripadvisor
GET /tripadvisor/hotels
Hotels in a destination with Tripadvisor’s filters, sorts and prices, paginated.
| Request | GET /v1/tripadvisor/hotels |
| Operation id | tripadvisor.hotels.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Hotels in a destination with Tripadvisor’s filters, sorts and prices, 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. |
sort_by | "BEST_VALUE" | "RANKED" | "PRICE_LOW_TO_HIGH" | "DISTANCE" | no | Order (default BEST_VALUE). One of BEST_VALUE, RANKED, PRICE_LOW_TO_HIGH, DISTANCE. |
price_min | number | null | no | Lowest nightly price. |
price_max | number | null | no | Highest nightly price. |
star_rating_min | "0" | "1" | "2" | "3" | "4" | "5" | "any" | no | Minimum hotel class in stars. One of 0, 1, 2, 3, 4, 5, any. |
review_score_min | "3" | "4" | "5" | "any" | "3.5" | "4.5" | no | Minimum traveler rating. One of 3, 4, 5, any, 3.5, 4.5. |
property_type | "any" | "hotel" | "resort" | "apartment" | "villa" | "hostel" | "guest_house" | "bed_and_breakfast" | no | Kind of property. One of any, hotel, resort, apartment, villa, hostel, guest_house, bed_and_breakfast. |
currency | string | no | Currency for prices (default USD). |
after | string | no | Cursor: the previous page’s pagination.next_cursor. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | A page of hotels. | TripadvisorHotelsResponse |
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 |
TripadvisorHotelsResponse fields
| Field | Type | Description |
|---|---|---|
geo | object | |
results | object[] | |
total | number | null | |
pagination | TripadvisorPagination |
Errors use one shape everywhere; see Errors for every code and what to do.