> ## 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.

# /hopper/hotels/search

> Search Hopper stays (hotels and vacation rentals) for a destination place id or a specific set of lodging ids over a check-in/check-out date range, for a given number of adults, children, rooms and pets. Optionally filter by property type, star rating, nightly price range, minimum guest score and free cancellation, and choose the result ordering. Returns each stay with its hotel details (name, type, star rating, description, coordinates, address, photos, amenities), nightly and total price (with any discount), currency, meal plan, cancellation and payment highlights, guest review score and count, and a shop token for room rates. Resolve place_id via the locations search (kind=stay).

**Price:** 20 credits per 15 results

**⚠️ Common errors:** 412: Destination not found or no stays available for the given dates



## OpenAPI

````yaml /openapi/travel-hospitality.json post /api/hopper/hotels/search
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/hopper/hotels/search:
    post:
      tags:
        - /hopper
      summary: /hopper/hotels/search
      description: >-
        Search Hopper stays (hotels and vacation rentals) for a destination
        place id or a specific set of lodging ids over a check-in/check-out date
        range, for a given number of adults, children, rooms and pets.
        Optionally filter by property type, star rating, nightly price range,
        minimum guest score and free cancellation, and choose the result
        ordering. Returns each stay with its hotel details (name, type, star
        rating, description, coordinates, address, photos, amenities), nightly
        and total price (with any discount), currency, meal plan, cancellation
        and payment highlights, guest review score and count, and a shop token
        for room rates. Resolve place_id via the locations search (kind=stay).


        **Price:** 20 credits per 15 results


        **⚠️ Common errors:** 412: Destination not found or no stays available
        for the given dates
      operationId: __api_hopper_hotels_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HopperHotelsSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/HopperHotelOffer'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HopperHotelsSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        place_id:
          anyOf:
            - type: string
            - type: 'null'
        lodging_ids:
          items:
            type: string
          type: array
          default: []
        check_in:
          type: string
          format: date
        check_out:
          type: string
          format: date
        adults:
          type: integer
          maximum: 16
          minimum: 1
          default: 2
        children_ages:
          items:
            type: integer
          type: array
          default: []
        rooms:
          type: integer
          maximum: 8
          minimum: 1
          default: 1
        pets:
          type: integer
          maximum: 8
          minimum: 0
          default: 0
        property_type:
          $ref: '#/components/schemas/HopperPropertyType'
          default: all
        star_ratings:
          items:
            type: integer
          type: array
          default: []
        price_min:
          anyOf:
            - type: number
              minimum: 0
            - type: 'null'
        price_max:
          anyOf:
            - type: number
              minimum: 0
            - type: 'null'
        min_guest_score:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
        free_cancellation:
          type: boolean
          default: false
        sort:
          $ref: '#/components/schemas/HopperHotelSort'
          default: recommended
        count:
          type: integer
          minimum: 1
      type: object
      required:
        - check_in
        - check_out
        - count
    HopperHotelOffer:
      properties:
        '@type':
          type: string
          default: HopperHotelOffer
        hotel:
          anyOf:
            - $ref: '#/components/schemas/HopperHotel'
            - type: 'null'
        nightly_price:
          anyOf:
            - type: number
            - type: 'null'
        total_price:
          anyOf:
            - type: number
            - type: 'null'
        original_nightly_price:
          anyOf:
            - type: number
            - type: 'null'
        original_total_price:
          anyOf:
            - type: number
            - type: 'null'
        discount_percentage:
          anyOf:
            - type: number
            - type: 'null'
        currency:
          anyOf:
            - type: string
            - type: 'null'
        meal_plan:
          anyOf:
            - type: string
            - type: 'null'
        free_cancellation:
          anyOf:
            - type: boolean
            - type: 'null'
        pay_now:
          anyOf:
            - type: boolean
            - type: 'null'
        pay_at_check_in:
          anyOf:
            - type: boolean
            - type: 'null'
        is_preferred:
          anyOf:
            - type: boolean
            - type: 'null'
        review_score:
          anyOf:
            - type: number
            - type: 'null'
        review_count:
          anyOf:
            - type: integer
            - type: 'null'
        shop_token:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    HopperPropertyType:
      type: string
      enum:
        - all
        - hotel
        - vacation_rental
    HopperHotelSort:
      type: string
      enum:
        - recommended
        - price_low
        - price_high
        - rating
    HopperHotel:
      properties:
        '@type':
          type: string
          default: HopperHotel
        id:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        hotel_type:
          anyOf:
            - type: string
            - type: 'null'
        star_rating:
          anyOf:
            - type: integer
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
        formatted_address:
          anyOf:
            - type: string
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        state:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        images:
          items:
            type: string
          type: array
          default: []
        amenities:
          items:
            type: string
          type: array
          default: []
      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

````