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

# /trivago/hotels/search

> Search Trivago hotels in a destination. Returns a paginated list of properties with id, name, accommodation type, star class, guest rating with review count and top aspects, highlights, lowest 'from' price, number of comparing partner sites, coordinates, locality, distance, images and room details. Filter by dates, occupancy, price, star class, property type, amenities, meal plan, payment and cancellation options, style, traveller type and minimum guest rating, and choose the sort order.

**Price:** 5 credits per 35 results

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



## OpenAPI

````yaml /openapi/travel-hospitality.json post /api/trivago/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/trivago/hotels/search:
    post:
      tags:
        - /trivago
      summary: /trivago/hotels/search
      description: >-
        Search Trivago hotels in a destination. Returns a paginated list of
        properties with id, name, accommodation type, star class, guest rating
        with review count and top aspects, highlights, lowest 'from' price,
        number of comparing partner sites, coordinates, locality, distance,
        images and room details. Filter by dates, occupancy, price, star class,
        property type, amenities, meal plan, payment and cancellation options,
        style, traveller type and minimum guest rating, and choose the sort
        order.


        **Price:** 5 credits per 35 results


        **⚠️ Common errors:** 412: Destination not found or no hotels available
        for the given filters
      operationId: __api_trivago_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/TrivagoHotelsSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TrivagoSearchHotel'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TrivagoHotelsSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        locale:
          type: string
          default: en-US
        currency:
          type: string
          default: USD
        destination:
          type: string
          minLength: 1
        count:
          type: integer
          minimum: 1
        arrival:
          anyOf:
            - type: string
            - type: 'null'
        departure:
          anyOf:
            - type: string
            - type: 'null'
        adults:
          type: integer
          maximum: 10
          minimum: 1
          default: 2
        children:
          items:
            type: integer
          type: array
          default: []
        rooms:
          type: integer
          maximum: 8
          minimum: 1
          default: 1
        sort:
          $ref: '#/components/schemas/TrivagoSort'
          default: featured
        min_price:
          type: integer
          minimum: 0
          default: 0
        max_price:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
        star_ratings:
          items:
            type: integer
          type: array
          default: []
        property_types:
          items:
            $ref: '#/components/schemas/TrivagoPropertyType'
          type: array
          default: []
        amenities:
          items:
            $ref: '#/components/schemas/TrivagoAmenity'
          type: array
          default: []
        meal:
          items:
            $ref: '#/components/schemas/TrivagoMeal'
          type: array
          default: []
        payment:
          items:
            $ref: '#/components/schemas/TrivagoPayment'
          type: array
          default: []
        styles:
          items:
            $ref: '#/components/schemas/TrivagoStyle'
          type: array
          default: []
        popular_with:
          items:
            $ref: '#/components/schemas/TrivagoPopularWith'
          type: array
          default: []
        guest_rating:
          anyOf:
            - $ref: '#/components/schemas/TrivagoGuestRating'
            - type: 'null'
      type: object
      required:
        - destination
        - count
    TrivagoSearchHotel:
      properties:
        '@type':
          type: string
          default: TrivagoSearchHotel
        id:
          type: integer
        name:
          type: string
        accommodation_type:
          anyOf:
            - type: string
            - type: 'null'
        category:
          anyOf:
            - type: string
            - type: 'null'
        star_rating:
          anyOf:
            - type: integer
            - type: 'null'
        is_superior:
          anyOf:
            - type: boolean
            - type: 'null'
        rating:
          anyOf:
            - type: number
            - type: 'null'
        review_count:
          anyOf:
            - type: integer
            - type: 'null'
        aspects:
          items:
            type: string
          type: array
          default: []
        highlights:
          items:
            type: string
          type: array
          default: []
        is_popular:
          anyOf:
            - type: boolean
            - type: 'null'
        is_sponsored:
          anyOf:
            - type: boolean
            - type: 'null'
        from_price:
          anyOf:
            - type: number
            - type: 'null'
        from_price_month:
          anyOf:
            - type: string
            - type: 'null'
        partner_count:
          anyOf:
            - type: integer
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
        country:
          anyOf:
            - type: string
            - type: 'null'
        locality:
          anyOf:
            - type: string
            - type: 'null'
        locality_id:
          anyOf:
            - type: integer
            - type: 'null'
        distance_label:
          anyOf:
            - type: string
            - type: 'null'
        construction_year:
          anyOf:
            - type: integer
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        image_count:
          anyOf:
            - type: integer
            - type: 'null'
        alias:
          anyOf:
            - type: string
            - type: 'null'
        units:
          items:
            $ref: '#/components/schemas/TrivagoUnit'
          type: array
          default: []
      type: object
      required:
        - id
        - name
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    TrivagoSort:
      type: string
      enum:
        - featured
        - rating
        - price
        - distance
        - top_rated
        - price_ascending
        - price_descending
        - distance_from_center
    TrivagoPropertyType:
      type: string
      enum:
        - hotel
        - bed_and_breakfast
        - guesthouse
        - motel
        - serviced_apartment
        - aparthotel
        - apartment
        - hostel
        - camping
        - hostal
        - countryside_stay
        - resort
        - pousada
        - ryokan
    TrivagoAmenity:
      type: string
      enum:
        - parking
        - pool
        - wifi
        - pet_friendly
        - spa
        - hot_tub
        - air_conditioning
        - kitchen
        - restaurant
        - gym
        - reception_24h
        - airport_shuttle
        - ev_charger
        - sauna
        - indoor_pool
        - sun_umbrellas
        - adults_only
        - fridge
        - bar
        - non_smoking_rooms
        - balcony_terrace
        - smoking_rooms
        - wheelchair_accessible
        - in_room_accessibility
        - accessible_parking
        - crib
        - childcare
        - playground
        - kids_pool
        - arcade
        - hiking_trail
        - horse_riding
        - golf_course
        - yoga
    TrivagoMeal:
      type: string
      enum:
        - breakfast_not_included
        - breakfast_included
        - half_board
        - full_board
        - all_inclusive
    TrivagoPayment:
      type: string
      enum:
        - free_cancellation
        - non_refundable
        - pay_at_property
        - pay_in_installments
    TrivagoStyle:
      type: string
      enum:
        - budget
        - local
        - modern
        - luxury
    TrivagoPopularWith:
      type: string
      enum:
        - couples
        - families
    TrivagoGuestRating:
      type: string
      enum:
        - '8.5'
        - '8.0'
        - '7.5'
        - '7.0'
    TrivagoUnit:
      properties:
        '@type':
          type: string
          default: TrivagoUnit
        adult_capacity:
          anyOf:
            - type: integer
            - type: 'null'
        children_capacity:
          anyOf:
            - type: integer
            - type: 'null'
        bedroom_count:
          anyOf:
            - type: integer
            - type: 'null'
        bathroom_count:
          anyOf:
            - type: integer
            - type: 'null'
        size_value:
          anyOf:
            - type: number
            - type: 'null'
        size_unit:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    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

````