TripAdvisor Hotel Details API
Extract comprehensive hotel information from TripAdvisor using the hotel's location ID.
Copy for your AI agent
Paste into Claude, ChatGPT, Cursor or Copilot — endpoint, parameters, response fields and a curl example in Markdown.
Availability of hotel details
A successful response identifies the hotel with numeric location_id and data.name. Other property fields are optional: a valid response can contain only basic identity information and ranking_status.
ranking_status is ok when a ranking is available, no_pop_index when the hotel has no ranking, not_in_top300_of_geo when it is outside the destination coverage window, or no_parent_geo when no destination is available. geo_search_failed means additional details are temporarily unavailable; the basic hotel information is still returned successfully. When present, ranking contains optional rank, total, and localized fields.
amenities contains highlighted amenities only, not the complete About-box list, and is omitted when unavailable. The response does not include contact.website or num_rooms.
An unknown hotel returns HTTP 404. An unavailable or malformed hotel identity response returns HTTP 502 with Problem Details; it is not reported as a missing hotel.
Overview
Hotel Details
Get hotel identity, ratings, structured address, phone, coordinates, and highlighted amenities when available.
The TripAdvisor Hotel Details endpoint returns hotel identity, ratings, location data, phone, and highlighted amenities when available.
Endpoint URL
Fields inside data are conditional on upstream coverage.
amenities contains highlighted amenities only, not the full About-box list.
contact.website and num_rooms are not returned, even when
TripAdvisor displays them in its About box. If the hotel is outside the parent-area
search window, the response may contain only its name and parent location data.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| location_id | integer | Required | TripAdvisor location ID (path parameter, e.g., 83189) |
Response Structure
Basic Information
name- Hotel nameaccommodation_type- Accommodation categoryhotel_url- TripAdvisor hotel page URLrating- Overall traveler rating (1–5)num_reviews- Review count
Location & Contact
address- Object containing street, city, state, country, postal_code, and full_addresscontact.phone- Hotel phone number (when available)coordinates- GPS coordinates objectlatitude- Latitude coordinatelongitude- Longitude coordinate
Amenities & Ranking
amenities- Highlighted amenity names (when available)ranking.localized- Localized hotel rankingranking_status- Whether ranking data was available
Common Use Cases
- Building hotel profile pages with contact and location data
- Displaying hotel locations on maps
- Comparing ratings and highlighted hotel amenities
- Enriching hotel data with TripAdvisor information
- Creating hotel comparison tools
- Implementing "click to call" or "get directions" features
Data Freshness
Hotel details change less frequently than reviews. Consider caching this data for 24-48 hours to improve performance.