# Open prices price statistics

Count, minimum, maximum and average of the crowdsourced Open Prices observations for one product barcode or one category, optionally restricted to a currency. Takes product code, category tag, currency and more, all optional.

Count, minimum, maximum and average of the crowdsourced Open Prices observations for one product barcode or one category, optionally restricted to a currency, a date range or one shop. Pass product_code or category_tag; always pass currency, or prices in different currencies are mixed. Useful for price benchmarks and inflation checks; the sample is small, so read price__count before trusting the average.

- Tool ID: `open-prices/price-stats`
- Name in the catalog: Open Prices price statistics
- Provider: [Open Prices](/providers/open-prices.md)
- Capability: [Product catalogs & food data](/tools/ecommerce/product-catalogs.md)
- Price: no charge per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

No charge per call. A workspace is still needed so your agent can call it.


```json
{
  "model": "per_call",
  "amountUsd": 0
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "product_code": {
      "type": "string",
      "pattern": "^[0-9]{8,14}$",
      "description": "Product barcode, e.g. '3017620422003'"
    },
    "category_tag": {
      "type": "string",
      "pattern": "^([a-z]{2}:)?[a-z0-9][a-z0-9-]{0,99}$",
      "description": "Category tag, e.g. 'en:bananas'"
    },
    "currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "ISO 4217 currency, e.g. 'EUR'"
    },
    "date_from": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
      "description": "Earliest price date, e.g. '2026-01-01'"
    },
    "date_to": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
      "description": "Latest price date, e.g. '2026-12-31'"
    },
    "location_id": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000000,
      "description": "Open Prices location id, e.g. 7521"
    }
  },
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "open-prices/price-stats",
  "input": {
    "category_tag": "en:bananas",
    "currency": "EUR",
    "date_from": "2026-01-01"
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

Licence: ODbL 1.0.

Attribution: Prices from Open Prices by Open Food Facts contributors (prices.openfoodfacts.org), ODbL.

[Provider documentation](https://prices.openfoodfacts.org/api/docs)

[REST inspection](https://api.agentik.cc/v1/tools/open-prices/price-stats) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/open-prices/price-stats) · [Agent index](/llms.txt)
