Skip to main content

Hotels reviews API (1.0)

HotelReviewsService

HotelReviewsService_GetHotelReviews

Authorizations:
UserAuth
Request Body schema: application/json
required

The request body for Hotels Reviews Request method

hotelId
string (Hotel ID)

ID of the hotel to retrieve reviews for

locale
string (Locale)

Locale that the results are returned in. e.g. en-GB We provide a Culture API to get all the locales we support. See Culture API Documentation.

object (Pagination Options)

A message specifying pagination parameters used across APIs. This message allows clients to request a specific subset of results by defining how many items to skip and how many to return.

sort
string (Sorting type)
Default: "SORT_ORDER_TYPE_UNSPECIFIED"
Enum: "SORT_ORDER_TYPE_UNSPECIFIED" "SORT_ORDER_TYPE_RECOMMENDED" "SORT_ORDER_TYPE_RATING_DESC" "SORT_ORDER_TYPE_RATING_ASCENDING" "SORT_ORDER_TYPE_MOST_RECENT"
  • SORT_ORDER_TYPE_UNSPECIFIED: Default value when not specified
  • SORT_ORDER_TYPE_RECOMMENDED: Order by recommended
  • SORT_ORDER_TYPE_RATING_DESC: Order by rating descending
  • SORT_ORDER_TYPE_RATING_ASCENDING: Order by rating ascending
  • SORT_ORDER_TYPE_MOST_RECENT: Order by most recent
Array of objects (Filters)

Filters to be applied on the query. Reviews not matching an applied filter are excluded. A maximum of 1 of each filter type can be specified.

Responses

Request samples

Content type
application/json
{
  • "hotelId": "string",
  • "locale": "string",
  • "pagination": {
    },
  • "sort": "SORT_ORDER_TYPE_UNSPECIFIED",
  • "filters": [
    ]
}

Response samples

Content type
application/json
{
  • "availableReviewCount": 0,
  • "reviews": [
    ]
}