> ## Documentation Index
> Fetch the complete documentation index at: https://crushrewards.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get price history for a product over time

> Get historical price observations for a product within a date range. Returns current price, period low/high/avg, trend (rising/falling/stable), good-deal flag, and an observation time-series for charting.



## OpenAPI

````yaml https://api.syntalic.com/openapi.json get /v1/shopper/price-history
openapi: 3.1.0
info:
  title: Syntalic — Pricing Intelligence API
  version: 1.0.0
  description: >-
    Real-time competitive pricing data across US and Canadian e-commerce
    retailers (Amazon, Walmart, Best Buy, Target, etc.). Serves price
    comparisons, deal alerts, brand tracking, promotional intelligence, and
    market analytics to AI agents via x402 and MPP micropayments.
  x-guidance: >-
    This API has three endpoint groups organized by use case:


    **Shopper endpoints** ($0.01/query): Use these for price comparisons and
    deal hunting. Start with /v1/shopper/best-price?q=<product> to find the
    cheapest option across retailers. Use
    /v1/shopper/deal-finder?category=<category> to find discounted products. Use
    /v1/shopper/price-drop-alert?q=<product> to check for recent price drops.


    **Marketing endpoints** ($0.01/query): Use these for competitive analysis.
    /v1/marketing/competitive-landscape?category=<category> shows all products
    in a category with pricing. /v1/marketing/brand-tracker?brand=<brand> tracks
    a brand's pricing over time.
    /v1/marketing/share-of-shelf?category=<category> shows brand market share.


    **Analyst endpoints** ($0.02/query): Use these for market-level insights.
    /v1/analyst/inflation?category=<category> shows price trends over time.
    /v1/analyst/price-dispersion?category=<category> shows price spread across
    retailers.


    All endpoints accept an optional 'country' parameter (us or ca, defaults to
    us). Query parameters use 'q' for free-text search and 'category' for
    category-level queries.
servers:
  - url: https://api.syntalic.com
security: []
paths:
  /v1/shopper/price-history:
    get:
      tags:
        - Shopper
      summary: Get price history for a product over time
      description: >-
        Get historical price observations for a product within a date range.
        Returns current price, period low/high/avg, trend
        (rising/falling/stable), good-deal flag, and an observation time-series
        for charting.
      operationId: getPriceHistory
      parameters:
        - name: q
          in: query
          required: true
          schema:
            type: string
            minLength: 1
          description: Search query (product name, keyword, or category term)
          example: airpods
        - name: country
          in: query
          required: false
          schema:
            type: string
            enum:
              - us
              - ca
            default: us
          description: Country (us or ca)
          example: us
        - name: retailer
          in: query
          required: false
          schema:
            type: string
            enum:
              - amazon
              - walmart
              - costco
              - homedepot
              - nordstrom
              - ikea
          description: Filter to a specific retailer
          example: amazon
        - name: from
          in: query
          required: false
          schema:
            type: string
            format: date
          description: Start date (ISO 8601, defaults to 30 days ago)
          example: '2026-04-01'
        - name: to
          in: query
          required: false
          schema:
            type: string
            format: date
          description: End date (ISO 8601, defaults to now)
          example: '2026-05-01'
      requestBody:
        required: false
        description: >-
          Query parameters as JSON (alternative to URL query string for agents
          that prefer body-based invocation).
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - q
              properties:
                q:
                  type: string
                  minLength: 1
                  description: Search query (product name, keyword, or category term)
                  example: airpods
                country:
                  type: string
                  enum:
                    - us
                    - ca
                  default: us
                  description: Country (us or ca)
                  example: us
                retailer:
                  type: string
                  enum:
                    - amazon
                    - walmart
                    - costco
                    - homedepot
                    - nordstrom
                    - ikea
                  description: Filter to a specific retailer
                  example: amazon
                from:
                  type: string
                  format: date
                  description: Start date (ISO 8601, defaults to 30 days ago)
                  example: '2026-04-01'
                to:
                  type: string
                  format: date
                  description: End date (ISO 8601, defaults to now)
                  example: '2026-05-01'
      responses:
        '200':
          description: Price history
          content:
            application/json:
              schema:
                type: object
                properties:
                  query:
                    type: string
                  history:
                    type: array
                    items:
                      type: object
        '402':
          description: Payment Required

````