---
title: "Get item price analysis with similar items"
method: GET
path: "/analytics/items/price-analysis"
tags: ["analytics"]
---

# Get item price analysis with similar items

`GET /analytics/items/price-analysis`

Returns price ranges (min/max) and inventory stock for items
that have similarity relationships above the given threshold, aggregated from ERP data.

## Query parameters

- `threshold` number

## Response `200`

OK

- ModelsItemPriceAnalysisResponse
  - `items` ModelsItemPriceEntry[]
    - `main_item` ModelsItemPriceDetail
      - `category` string
      - `id` string
      - `max_price` number
      - `min_price` number
      - `similarity_score` number
      - `total_stock` number
    - `max_price` number
    - `min_price` number
    - `similar_items` ModelsItemPriceDetail[]
      - `category` string
      - `id` string
      - `max_price` number
      - `min_price` number
      - `similarity_score` number
      - `total_stock` number
    - `total_stock` number
  - `x_axis_label` string
  - `y_axis_label` string

## Other responses

- `401` — Unauthorized
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/resourcly/apis/resourcly-api.md) · [All operations](https://skmtc.net/resourcly/apis/resourcly-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/resourcly/resourcly-api/revisions/7f97d8cd0f1e/schema)
