> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /booking/hotels

> Get a Booking.com property profile by its URL or country code and alias

**Price:** 5 credits

**⚠️ Common errors:** 412: Property not found



## OpenAPI

````yaml /openapi/travel-hospitality.json post /api/booking/hotels
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/booking/hotels:
    post:
      tags:
        - /booking
      summary: /booking/hotels
      description: |-
        Get a Booking.com property profile by its URL or country code and alias

        **Price:** 5 credits

        **⚠️ Common errors:** 412: Property not found
      operationId: __api_booking_hotels_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BookingHotelPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/BookingHotel'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BookingHotelPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        checkin:
          anyOf:
            - type: string
              format: date
            - type: 'null'
        checkout:
          anyOf:
            - type: string
              format: date
            - type: 'null'
        adults:
          type: integer
          maximum: 30
          minimum: 1
          default: 2
        children_ages:
          items:
            type: integer
          type: array
          maxItems: 10
          default: []
        rooms:
          type: integer
          maximum: 30
          minimum: 1
          default: 1
        currency:
          $ref: '#/components/schemas/BookingCurrency'
          default: USD
        language:
          $ref: '#/components/schemas/BookingLanguage'
          default: en-us
        hotel:
          type: string
          minLength: 3
      type: object
      required:
        - hotel
    BookingHotel:
      properties:
        '@type':
          type: string
          default: BookingHotel
        id:
          type: integer
        alias:
          type: string
        country_code:
          type: string
        name:
          type: string
        url:
          type: string
        accommodation_type:
          anyOf:
            - type: string
            - type: 'null'
        accommodation_type_id:
          anyOf:
            - type: integer
            - type: 'null'
        star_rating:
          anyOf:
            - type: number
            - type: 'null'
        star_rating_symbol:
          anyOf:
            - type: string
            - type: 'null'
        review_score:
          anyOf:
            - type: number
            - type: 'null'
        review_count:
          anyOf:
            - type: integer
            - type: 'null'
        address:
          anyOf:
            - type: string
            - type: 'null'
        address_short:
          anyOf:
            - type: string
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        destination_id:
          anyOf:
            - type: integer
            - type: 'null'
        destination_name:
          anyOf:
            - type: string
            - type: 'null'
        destination_type:
          anyOf:
            - type: string
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
        is_city_center:
          anyOf:
            - type: boolean
            - type: 'null'
        is_old_town:
          anyOf:
            - type: boolean
            - type: 'null'
        currency:
          anyOf:
            - type: string
            - type: 'null'
        chain_ids:
          items:
            type: integer
          type: array
          default: []
        brands:
          items:
            $ref: '#/components/schemas/BookingHotelBrand'
          type: array
          default: []
        is_travel_proud:
          anyOf:
            - type: boolean
            - type: 'null'
        is_sustainable:
          anyOf:
            - type: boolean
            - type: 'null'
        is_work_friendly:
          anyOf:
            - type: boolean
            - type: 'null'
        is_non_trader:
          anyOf:
            - type: boolean
            - type: 'null'
        is_preferred:
          anyOf:
            - type: boolean
            - type: 'null'
        allows_children:
          anyOf:
            - type: boolean
            - type: 'null'
        facility_count:
          anyOf:
            - type: integer
            - type: 'null'
        spoken_languages:
          items:
            type: string
          type: array
          default: []
        image:
          anyOf:
            - type: string
            - type: 'null'
        category_scores:
          items:
            $ref: '#/components/schemas/BookingHotelCategoryScore'
          type: array
          default: []
        review_topics:
          items:
            $ref: '#/components/schemas/BookingHotelReviewTopic'
          type: array
          default: []
        photos:
          items:
            $ref: '#/components/schemas/BookingHotelPhoto'
          type: array
          default: []
        facilities:
          items:
            $ref: '#/components/schemas/BookingHotelFacility'
          type: array
          default: []
        rooms:
          items:
            $ref: '#/components/schemas/BookingHotelRoom'
          type: array
          default: []
      type: object
      required:
        - id
        - alias
        - country_code
        - name
        - url
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    BookingCurrency:
      type: string
      enum:
        - AED
        - AMD
        - ARS
        - AUD
        - AZN
        - BDT
        - BGN
        - BHD
        - BRL
        - BYN
        - CAD
        - CHF
        - CLP
        - CNY
        - COP
        - CZK
        - DKK
        - EGP
        - EUR
        - FJD
        - GBP
        - GEL
        - GHS
        - HKD
        - HUF
        - IDR
        - ILS
        - INR
        - ISK
        - JOD
        - JPY
        - KGS
        - KRW
        - KWD
        - KZT
        - LAK
        - LKR
        - MAD
        - MDL
        - MXN
        - MYR
        - NAD
        - NGN
        - NOK
        - NZD
        - OMR
        - PHP
        - PKR
        - PLN
        - QAR
        - RON
        - RSD
        - RUB
        - SAR
        - SEK
        - SGD
        - THB
        - TND
        - TRY
        - TWD
        - UAH
        - USD
        - UZS
        - VND
        - XOF
        - XPF
        - ZAR
    BookingLanguage:
      type: string
      enum:
        - ar
        - bg
        - ca
        - cs
        - da
        - de
        - el
        - en-gb
        - en-us
        - es
        - es-ar
        - es-mx
        - et
        - fi
        - fr
        - he
        - hi
        - hr
        - hu
        - id
        - is
        - it
        - ja
        - ko
        - lt
        - lv
        - ms
        - nl
        - 'no'
        - pl
        - pt-br
        - pt-pt
        - ro
        - ru
        - sk
        - sl
        - sr
        - sv
        - th
        - tl
        - tr
        - uk
        - vi
        - zh-cn
        - zh-tw
    BookingHotelBrand:
      properties:
        '@type':
          type: string
          default: BookingHotelBrand
        id:
          type: integer
        name:
          type: string
      type: object
      required:
        - id
        - name
    BookingHotelCategoryScore:
      properties:
        '@type':
          type: string
          default: BookingHotelCategoryScore
        name:
          type: string
        score:
          type: number
        label:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
        - score
    BookingHotelReviewTopic:
      properties:
        '@type':
          type: string
          default: BookingHotelReviewTopic
        id:
          type: integer
        name:
          type: string
      type: object
      required:
        - id
        - name
    BookingHotelPhoto:
      properties:
        '@type':
          type: string
          default: BookingHotelPhoto
        id:
          type: integer
        image:
          type: string
        alt_text:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
        - image
    BookingHotelFacility:
      properties:
        '@type':
          type: string
          default: BookingHotelFacility
        id:
          type: integer
        slug:
          anyOf:
            - type: string
            - type: 'null'
        group_id:
          anyOf:
            - type: integer
            - type: 'null'
        group:
          anyOf:
            - type: string
            - type: 'null'
        name:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
    BookingHotelRoom:
      properties:
        '@type':
          type: string
          default: BookingHotelRoom
        id:
          type: integer
        name:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````