API reference

HTS APIs

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

Schema

reviews_response

Response for the reviews operation

Fields

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
Example
{
  "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"
        }
      ]
    }
  ]
}