Computes the unit price (German Grundpreis) of a grocery pack
Computes the unit price (German Grundpreis) of a grocery pack. Pass the price in EUR and either a quantity text (e.g. "500 g", "1,5 l", "6 x 0,33 l", "4x125g") or an EAN; with an EAN the pack size is taken from Open Food Facts. Returns the parsed quantity, the normalised base quantity in kg or l, the price per kg or l and per 100 g or 100 ml, and where the quantity came from. If the quantity cannot be determined the unit price is null and the reason is given; nothing is estimated.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://grundpreis.halowerk.com/v1/unit-price
| Category | Market data |
|---|---|
| Provider host | grundpreis.halowerk.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-10-20 | valid payment request | 402 | $0.002 | 931 ms |
Example input (from the provider)
{
"body": {
"price_eur": 2.49,
"quantity": "6 x 0,33 l"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"ean": {
"description": "Alternative to quantity: pack size from Open Food Facts.",
"maxLength": 14,
"minLength": 8,
"type": "string"
},
"price_eur": {
"exclusiveMinimum": 0,
"maximum": 100000,
"type": "number"
},
"quantity": {
"description": "Pack quantity text, e.g. \"500 g\", \"6 x 0,33 l\".",
"maxLength": 40,
"minLength": 1,
"type": "string"
}
},
"required": [
"price_eur"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}