API reference

HTS APIs

Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.

PUT/api/lodging/v1/reviewsReviews

Get lodging reviews

https://travel-distribution.staging.htsapis.com/api/lodging/v1/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_id
string · uuid
required

Unique value used to identify this request. If provided to us during operational questions, it will help us provide better support.

Example 123e4567-e89b-12d3-a456-426614174000
lodging_ids
array of lodging_id
required

List of lodging IDs to get reviews for (up to 200)

Items ≥ 1, ≤ 200

Responses

200Reviews and summary scores for the requested lodgings
response_id
string · uuid
required

Unique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.

Example 123e4567-e89b-12d3-a456-426614174000
lodgings
array of lodging_reviews
required

Reviews for each requested lodging

Show fields
Array of lodging_reviews · Reviews for each requested lodging
lodging_id
string
required

Unique identifier for the lodging

Example 123e4567-e89b-12d3-a456-426614174000
summary
review_summary

Aggregate review scores for a lodging

Show fields
score
number · double
required

Overall review score on a 5-star scale

Range ≥ 0, ≤ 5 · Example 4.2
count
integer · int32
required

Total number of reviews contributing to the score

Range ≥ 0 · Example 342
rating_image
string · uri

URI of the star-rating image for the overall score

Example https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/4.0-12345-4.svg
category_scores
review_category_scores

Per-category review score breakdowns, each on a 5-star scale

Show fields
cleanliness
number · double

Score for cleanliness

Range ≥ 0, ≤ 5 · Example 4.5
service
number · double

Score for service quality

Range ≥ 0, ≤ 5 · Example 4.3
rooms
number · double

Score for room quality

Range ≥ 0, ≤ 5 · Example 4.1
sleep_quality
number · double

Score for sleep quality

Range ≥ 0, ≤ 5 · Example 4
location
number · double

Score for location

Range ≥ 0, ≤ 5 · Example 4.7
value_for_money
number · double

Score for value for money

Range ≥ 0, ≤ 5 · Example 3.9
reviews
array of review

Individual guest reviews for this lodging

Show fields
Array of review · Individual guest reviews for this lodging
title
string
required

Review title or headline

Example Great stay, friendly staff
text
string
required

Full review text written by the guest

Example We had a wonderful time at this hotel. The staff was incredibly helpful and the rooms were clean and spacious.
score
integer · int32
required

Reviewer's overall score on a 5-star scale

Range ≥ 0, ≤ 5 · Example 4
author
string
required

Name of the review author

Example John D.
created
string · date-time
required

Date and time the review was submitted (ISO 8601)

Example 2025-08-15T14:30:00Z
rating_image
string · uri

URI of the star-rating image for this review

Example https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/4.0-12345-4.svg
400Invalid Request. There will be an error code in the response detailing the issue.
error_code
string enum
required

Error codes for the reviews operation. This is a non-exhaustive list of enum values, which will be extended in the future.

Values invalid_inputunauthorizedunknown_error
description
string
required

A human-readable description of the error.

response_id
string · uuid
required

Unique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.

Example 123e4567-e89b-12d3-a456-426614174000
Example
{
  "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_code
string enum
required

Error returned when a client closes the connection before the response could be sent.

Values client_closed_request
description
string
required

A human-readable description of what happened. For booking requests, this may include the partner reference ID for tracking.

response_id
string · uuid
required

Unique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.

Example 123e4567-e89b-12d3-a456-426614174000
additional_context
object

Additional 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_code
string enum
required

Error returned when an internal server error occurs.

Values internal_server_error
description
string
required

A human-readable description of the error.

response_id
string · uuid
required

Unique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.

Example 123e4567-e89b-12d3-a456-426614174000
Example
{
  "error_code": "internal_server_error",
  "description": "string",
  "response_id": "123e4567-e89b-12d3-a456-426614174000"
}
Request
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 200
{
  "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.