Pricing Agent
Estimates

Estimates

Description

This API endpoint retrieves price estimates for a given brand and category.

Endpoint

POST https://pricing.bencha.io/price

Parameters

NameTypeRequiredDefaultDescription
brandstringyesBrand identifier
categorystringyesCategory identifier
windowstringno90dFetched window
trimfloatno0.05Trimming removes percentiles from upper and lower bounds

Example request

curl -XPOST \
  -H "Content-type: application/json" \
  -H "Authorization: Token ${TOKEN}" \
  -d '{
    "brand": "brand_01J4KG9B4Y7N0V1P9YA99ZPA1R",
    "category": "category_01J4KJSWEHV0WJQWG0M4943DE6"
  }' \
  https://pricing.bencha.io/price

Example response

[
  {
    "count": 6463,
    "mean": 656.92,
    "span": [95, 1218.84],
    "currency": "EUR",
    "name": "vestiaire_collective",
    "periods": [
      {
        "count": 2712,
        "mean": 648.15,
        "span": [96.3, 1200],
        "period": 1706745600
      },
      {
        "count": 3336,
        "mean": 636.65,
        "span": [96.3, 1177],
        "period": 1709251200
      },
      {
        "count": 415,
        "mean": 656.92,
        "span": [95, 1218.84],
        "period": 1711929600
      }
    ]
  }
]