> ## 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/deals/search

> Get Trivago top-value hotel deals. Returns the best current deal per accommodation with the quoting partner, nightly price, original price, savings amount and percentage, deal attributes and the stay period the price applies to.

**Price:** 1 credit per 10 results

**⚠️ Common errors:** 412: No deals available for the given filters



## OpenAPI

````yaml /openapi/travel-hospitality.json post /api/trivago/deals/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/deals/search:
    post:
      tags:
        - /trivago
      summary: /trivago/deals/search
      description: >-
        Get Trivago top-value hotel deals. Returns the best current deal per
        accommodation with the quoting partner, nightly price, original price,
        savings amount and percentage, deal attributes and the stay period the
        price applies to.


        **Price:** 1 credit per 10 results


        **⚠️ Common errors:** 412: No deals available for the given filters
      operationId: __api_trivago_deals_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TrivagoDealsSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TrivagoDeal'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TrivagoDealsSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        locale:
          type: string
          default: en-US
        currency:
          type: string
          default: USD
        count:
          type: integer
          minimum: 1
        deal_types:
          items:
            $ref: '#/components/schemas/TrivagoDealType'
          type: array
          default:
            - SSD
            - DP
            - BARGAIN
            - BETTER_THAN_BRAND
      type: object
      required:
        - count
    TrivagoDeal:
      properties:
        '@type':
          type: string
          default: TrivagoDeal
        accommodation_id:
          type: integer
        advertiser:
          anyOf:
            - type: string
            - type: 'null'
        advertiser_id:
          anyOf:
            - type: integer
            - type: 'null'
        price_per_night:
          anyOf:
            - type: number
            - type: 'null'
        original_price_per_night:
          anyOf:
            - type: number
            - type: 'null'
        savings_percentage:
          anyOf:
            - type: integer
            - type: 'null'
        absolute_savings_per_night:
          anyOf:
            - type: number
            - type: 'null'
        attributes:
          items:
            type: string
          type: array
          default: []
        arrival:
          anyOf:
            - type: string
            - type: 'null'
        departure:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - accommodation_id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    TrivagoDealType:
      type: string
      enum:
        - SSD
        - DP
        - BARGAIN
        - BETTER_THAN_BRAND
    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

````