HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
/api/lodging/v1/reviewsReviewsGet lodging reviews
Get guest reviews and review summary scores for one or more lodgings. Returns overall scores, category breakdowns, and individual reviews.
Request body application/json · required
Lodging identifiers to retrieve reviews for
request_idUnique value used to identify this request. If provided to us during operational questions, it will help us provide better support.
123e4567-e89b-12d3-a456-426614174000lodging_idsList of lodging IDs to get reviews for (up to 200)
Responses
200Reviews and summary scores for the requested lodgings
response_idUnique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.
123e4567-e89b-12d3-a456-426614174000lodgingsReviews for each requested lodging
Show fields
lodging_idUnique identifier for the lodging
123e4567-e89b-12d3-a456-426614174000summaryAggregate review scores for a lodging
Show fields
scoreOverall review score on a 5-star scale
4.2countTotal number of reviews contributing to the score
342rating_imageURI of the star-rating image for the overall score
https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/4.0-12345-4.svgcategory_scoresPer-category review score breakdowns, each on a 5-star scale
Show fields
cleanlinessScore for cleanliness
4.5serviceScore for service quality
4.3roomsScore for room quality
4.1sleep_qualityScore for sleep quality
4locationScore for location
4.7value_for_moneyScore for value for money
3.9reviewsIndividual guest reviews for this lodging
Show fields
titleReview title or headline
Great stay, friendly stafftextFull review text written by the guest
We had a wonderful time at this hotel. The staff was incredibly helpful and the rooms were clean and spacious.scoreReviewer's overall score on a 5-star scale
4authorName of the review author
John D.createdDate and time the review was submitted (ISO 8601)
2025-08-15T14:30:00Zrating_imageURI of the star-rating image for this review
https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/4.0-12345-4.svg400Invalid Request. There will be an error code in the response detailing the issue.
error_codeError codes for the reviews operation. This is a non-exhaustive list of enum values, which will be extended in the future.
invalid_inputunauthorizedunknown_errordescriptionA human-readable description of the error.
response_idUnique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.
123e4567-e89b-12d3-a456-426614174000Example
{
"error_code": "invalid_input",
"description": "string",
"response_id": "123e4567-e89b-12d3-a456-426614174000"
}499Client closed the connection before the response could be sent (HTTP 499). This occurs when clients timeout or cancel requests while the server is still processing. The client will not receive this response. This means a quote, a booking or any other long running process may have been processed.
error_codeError returned when a client closes the connection before the response could be sent.
client_closed_requestdescriptionA human-readable description of what happened. For booking requests, this may include the partner reference ID for tracking.
response_idUnique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.
123e4567-e89b-12d3-a456-426614174000additional_contextAdditional context about the error. For booking requests, includes partner_reference_id for tracking in BigQuery.
Example
{
"error_code": "client_closed_request",
"description": "string",
"response_id": "123e4567-e89b-12d3-a456-426614174000",
"additional_context": {}
}500Internal server error
error_codeError returned when an internal server error occurs.
internal_server_errordescriptionA human-readable description of the error.
response_idUnique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.
123e4567-e89b-12d3-a456-426614174000Example
{
"error_code": "internal_server_error",
"description": "string",
"response_id": "123e4567-e89b-12d3-a456-426614174000"
}curl -X PUT "https://travel-distribution.staging.htsapis.com/api/lodging/v1/reviews" \
-H "HTS-API-KEY: $HTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"request_id": "123e4567-e89b-12d3-a456-426614174000",
"lodging_ids": [
"123e4567-e89b-12d3-a456-426614174000"
]
}'{
"response_id": "123e4567-e89b-12d3-a456-426614174000",
"lodgings": [
{
"lodging_id": "123e4567-e89b-12d3-a456-426614174000",
"summary": {
"score": 4.2,
"count": 342,
"rating_image": "https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/4.0-12345-4.svg"
},
"category_scores": {
"cleanliness": 4.5,
"service": 4.3,
"rooms": 4.1,
"sleep_quality": 4,
"location": 4.7,
"value_for_money": 3.9
},
"reviews": [
{
"title": "Great stay, friendly staff",
"text": "We had a wonderful time at this hotel. The staff was incredibly helpful and the rooms were clean and spacious.",
"score": 4,
"author": "John D.",
"created": "2025-08-15T14:30:00Z",
"rating_image": "https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/4.0-12345-4.svg"
}
]
}
]
}Examples are generated from the schema where the spec publishes none; field values are illustrative.
