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

# /idealo/products/price-history

> Get the price history of an Idealo product by product id (or product URL) over a chosen time window: the daily lowest price time-series plus price statistics (average, lowest and highest price and how many days the product spent at each).

**Price:** 1 credit

**⚠️ Common errors:** 412: Product not found (well-formed but nonexistent id, or no price history available)



## OpenAPI

````yaml /openapi/price-comparison.json post /api/idealo/products/price-history
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/idealo/products/price-history:
    post:
      tags:
        - /idealo
      summary: /idealo/products/price-history
      description: >-
        Get the price history of an Idealo product by product id (or product
        URL) over a chosen time window: the daily lowest price time-series plus
        price statistics (average, lowest and highest price and how many days
        the product spent at each).


        **Price:** 1 credit


        **⚠️ Common errors:** 412: Product not found (well-formed but
        nonexistent id, or no price history available)
      operationId: __api_idealo_products_price_history_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IdealoProductsPriceHistoryPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/IdealoPriceHistory'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    IdealoProductsPriceHistoryPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        product:
          type: string
          minLength: 1
        period:
          $ref: '#/components/schemas/IdealoPricePeriod'
          default: 3M
      type: object
      required:
        - product
    IdealoPriceHistory:
      properties:
        '@type':
          type: string
          default: IdealoPriceHistory
        id:
          type: string
        period:
          type: string
        currency:
          type: string
          default: EUR
        start_date:
          anyOf:
            - type: string
            - type: 'null'
        avg_price:
          anyOf:
            - type: number
            - type: 'null'
        lowest_price:
          anyOf:
            - type: number
            - type: 'null'
        lowest_price_days:
          anyOf:
            - type: integer
            - type: 'null'
        highest_price:
          anyOf:
            - type: number
            - type: 'null'
        highest_price_days:
          anyOf:
            - type: integer
            - type: 'null'
        points:
          items:
            $ref: '#/components/schemas/IdealoPriceHistoryPoint'
          type: array
          default: []
      type: object
      required:
        - id
        - period
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    IdealoPricePeriod:
      type: string
      enum:
        - 3M
        - 6M
        - 1Y
    IdealoPriceHistoryPoint:
      properties:
        '@type':
          type: string
          default: IdealoPriceHistoryPoint
        date:
          type: string
        price:
          anyOf:
            - type: number
            - type: 'null'
      type: object
      required:
        - date
    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

````