# List accommodation review scores

`GET /demand-api-v2-compatible/reviewScores`

> This is a subset of the full specification, limited to the `GET /demand-api-v2-compatible/reviewScores` operation.
>
> You can find the full specification here: /_bundle/metasearch/connect-api/open-api.yaml

```yaml
openapi: 3.0.1
info:
  title: Connect API
  description: This is a subset of the full specification, limited to the `GET /demand-api-v2-compatible/reviewScores` operation. Components more than 3 `$ref` hops away are not included.
  version: 1.2.2
servers:
  - url: https://metasearch-connect-api.booking.com
    description: Production URL
security:
  - BearerAuth: []
paths:
  /demand-api-v2-compatible/reviewScores:
    get:
      tags:
        - demand-api-v2-compatible
      summary: List accommodation review scores
      description: |
        Gives information about review scores for specified hotel_ids and filter.
        The information consists of score breakdown per reviewer_type and review questions,
        and overall score distribution per score value (1 - 10).

        The available filter is input parameter reviewer_type=... .
        It allows generating review score information for just one reviewer type.

        Language in which the response is rendered can be controlled with the input parameter language=...
        (default: 'en'). Setting the language will reflect on the output fields question and review_score_word.

        One additional output field can be requested with input parameter extras=review_score_word.
      operationId: getHotelsReviewScores
      parameters:
        - name: reviewScoresInputDto
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/ReviewScoresInputDto'
        - name: Accept
          in: header
          schema:
            type: string
            enum:
              - application/json, application/xml
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseOutputV2ReviewScoresOutputDto'
        '400':
          description: Invalid input, e.g. a missing, invalid, unknown, or conflicting parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2Error'
              example:
                meta:
                  ruid: b1a2c3d4e5f6
                  account_id: '123432'
                errors:
                  - id: invalid_parameter
                    name: Invalid Value
                    message: Parameter 'hotel_ids' is invalid.
            application/xml:
              schema:
                $ref: '#/components/schemas/V2Error'
        '500':
          description: An unexpected server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2Error'
              example:
                meta:
                  ruid: b1a2c3d4e5f6
                  account_id: '123432'
                errors:
                  - id: server_error
                    name: Internal Server Error
                    message: We are experiencing technical difficulties. Please try again later.
            application/xml:
              schema:
                $ref: '#/components/schemas/V2Error'
components:
  schemas:
    ErrorDetail:
      type: object
      description: Details of a single error.
      properties:
        id:
          type: string
          description: Machine-readable error identifier.
          example: invalid_parameter
        name:
          type: string
          description: Human-readable error name.
          example: Invalid Value
        message:
          type: string
          description: Detailed error message explaining what went wrong.
          example: The request contains an invalid parameter.
    ReviewScoresInputDto:
      required:
        - hotel_ids
      type: object
      properties:
        hotel_ids:
          type: array
          description: List of hotel ids for which review score information should be displayed.
          items:
            type: integer
            description: List of hotel ids for which review score information should be displayed.
            format: int32
        affiliate_id:
          type: integer
          description: Can be used to specify the affiliate id that should be used instead of the default one.
          format: int32
        language:
          type: string
          description: |
            Code of the language used to render response.
            Please check the "Possible Values" section of the documentation for the accepted language codes.
          enum:
            - ar
            - bg
            - ca
            - cs
            - da
            - de
            - el
            - en
            - en-gb
            - en-us
            - es
            - es-ar
            - es-mx
            - et
            - fi
            - fr
            - he
            - hi
            - hr
            - hu
            - id
            - is
            - it
            - ja
            - ka
            - ko
            - lt
            - lv
            - ms
            - nl
            - 'no'
            - pl
            - pt-br
            - pt-pt
            - pt
            - ro
            - ru
            - sk
            - sl
            - sr
            - sv
            - th
            - tl
            - tr
            - uk
            - vi
            - zh
            - zh-cn
            - zh-tw
        reviewer_type:
          type: string
          description: Limits reviews to those written by specific reviewer type.
          enum:
            - SOLO_TRAVELLER
            - YOUNG_COUPLE
            - MATURE_COUPLE
            - FAMILY_WITH_YOUNG_CHILDREN
            - FAMILY_WITH_OLDER_CHILDREN
            - WITH_FRIENDS
            - GROUP
            - REVIEW_CATEGORY_COUPLES
            - REVIEW_CATEGORY_FAMILIES
            - REVIEW_CATEGORY_GROUP_OF_FRIENDS
            - REVIEW_CATEGORY_BUSINESS_TRAVELLERS
    Meta:
      type: object
      properties:
        ruid:
          type: string
    V2Error:
      type: object
      description: Standard error response format for demand-api-v2-compatible errors.
      properties:
        errors:
          type: array
          description: List of errors that occurred during request processing.
          items:
            $ref: '#/components/schemas/ErrorDetail'
        meta:
          $ref: '#/components/schemas/error_meta'
    error_meta:
      type: object
      properties:
        ruid:
          type: string
        account_id:
          type: string
          description: Account ID that triggered request, useful for debugging and support.
          example: '123432'
    ResponseOutputV2ReviewScoresOutputDto:
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/Meta'
        result:
          type: array
          items:
            $ref: '#/components/schemas/ReviewScoresOutputDto'
    ReviewScoresOutputDto:
      type: object
      properties:
        hotel_id:
          type: integer
          description: Id of the hotel.
          format: int64
        hotel_url:
          type: string
          description: URL of the hotel's page on Booking.com.
          example: https://www.booking.com/hotel/nl/amsterdam-canal-hotel.html?tab=4&aid=338734&label=hotel-472820_reviewscore
        score_breakdown:
          type: array
          description: A breakdown of scores per reviewer type and review question.
          items:
            $ref: '#/components/schemas/ScoreBreakdown'
        score_distribution:
          type: array
          description: A breakdown of all review scores into buckets 1 - 10.
          items:
            $ref: '#/components/schemas/ScoreDistribution'
    ScoreBreakdown:
      type: object
      properties:
        average_score:
          multipleOf: 0.1
          type: number
          description: Average score from this reviewer type.
          format: double
          example: 8.5
        count:
          type: integer
          description: Number of responses from this reviewer type.
          format: int32
        question:
          type: array
          description: Review scores per question.
          items:
            $ref: '#/components/schemas/QuestionDto'
        reviewer_type:
          type: string
          description: Reviewer type.
      description: A breakdown of scores per reviewer type and review question.
    ScoreDistribution:
      type: object
      properties:
        count:
          type: integer
          description: Total number of reviews in this bucket.
          format: int64
          example: 435
        percent:
          multipleOf: 0.01
          type: number
          description: Percent of score distribution that went into this bucket.
          format: double
          example: 17.76
        score:
          type: integer
          description: The bucket's review score value (1 - 10).
          format: int32
          example: 10
      description: A breakdown of all review scores into buckets 1 - 10.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: string
```
