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

# /dnsshop/products/price-history

> Return the recorded price history of one DNS (dns-shop.ru) product for a named Russian city: every price point DNS has kept with its date label and month, the lowest and highest price over the recorded period, and the period summary DNS renders under the chart. Accepts a product URL, 16-hex url id, guid or numeric product code.

**Price:** 1 credit

**⚠️ Common errors:** 412: No DNS product resolves from this identifier, DNS keeps no price history for it, or DNS did not serve the history for this session, 422: The city is not in the DNS city catalogue, or product is empty



## OpenAPI

````yaml /openapi/e-commerce-marketplaces.json post /api/dnsshop/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/dnsshop/products/price-history:
    post:
      tags:
        - /dnsshop
      summary: /dnsshop/products/price-history
      description: >-
        Return the recorded price history of one DNS (dns-shop.ru) product for a
        named Russian city: every price point DNS has kept with its date label
        and month, the lowest and highest price over the recorded period, and
        the period summary DNS renders under the chart. Accepts a product URL,
        16-hex url id, guid or numeric product code.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: No DNS product resolves from this identifier,
        DNS keeps no price history for it, or DNS did not serve the history for
        this session, 422: The city is not in the DNS city catalogue, or product
        is empty
      operationId: __api_dnsshop_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/DnsshopProductsPriceHistoryPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DnsshopPriceHistory'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DnsshopProductsPriceHistoryPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        product:
          type: string
          minLength: 1
        city:
          type: string
          minLength: 1
          default: Москва
      type: object
      required:
        - product
    DnsshopPriceHistory:
      properties:
        '@type':
          type: string
          default: DnsshopPriceHistory
        guid:
          type: string
        points:
          items:
            $ref: '#/components/schemas/DnsshopPricePoint'
          type: array
          default: []
        price_range:
          anyOf:
            - type: string
            - type: 'null'
        min_price:
          anyOf:
            - type: integer
            - type: 'null'
        max_price:
          anyOf:
            - type: integer
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        city_id:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - guid
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    DnsshopPricePoint:
      properties:
        '@type':
          type: string
          default: DnsshopPricePoint
        month:
          anyOf:
            - type: string
            - type: 'null'
        label:
          anyOf:
            - type: string
            - type: 'null'
        price:
          anyOf:
            - type: integer
            - type: 'null'
        price_label:
          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

````