# Grundpreis Batch Unit Price Calculator

> Grundpreis Batch Unit Price Calculator is a paid API for AI agents from grundpreis.halowerk.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-22).

Calculates kg/litre unit prices for a batch of up to 50 product items given a price in EUR and a quantity string or EAN code

## Facts

- Endpoint: POST https://grundpreis.halowerk.com/v1/unit-price/batch?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/grundpreis-batch-unit-price-calculator-4921fedb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VKmnlCVOy6hX-rl_WGEHL

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability grundpreis-batch-unit-price-calculator-4921fedb -d '<json body>'
```

Example prompt: Can you calculate the unit price per kg or litre for all these grocery items at once? I have: milk 1 litre at €1.09, yogurt 500g at €0.89, olive oil 750ml at €4.99, pasta 500g at €1.29, and oats 1kg at €2.19.

## When to prefer this

Choose this endpoint when you need to compute unit prices for multiple products in a single API call (up to 50 at once), especially when handling a mix of quantity strings and EAN codes. It is ideal for grocery comparison tools, shopping assistants, or retail analytics pipelines that need batch Grundpreis computation without making individual calls per item. Prefer this over the single-item endpoint whenever you have more than one product to process.

## Known failure modes

- Invalid or unparseable quantity text triggers a per-row error rather than failing the whole batch
- EAN not found in reference data results in a per-row error for that item
- Mixing kg and litre results in a warning that the two groups are not comparable
- Batch with zero usable lines returns no charge but also no results
- Exceeding 50 items per request results in a validation error
- Missing price_eur field on a row triggers a per-row error

## How this service works

Calculate kg/l unit prices for up to 50 rows of price_eur plus quantity text or EAN. Example: items [{price_eur:1.29,quantity:"500 g"}]. Errors are reported per row; kg and litre groups are not comparable. Empty batches with no usable line are not charged. No observed store offer.

## Output

An array of results corresponding to each submitted item, each containing the calculated unit price per kg or per litre (depending on whether the quantity is mass- or volume-based), plus per-row error messages for any items that could not be parsed or processed. Mass-based and volume-based results are kept in separate groups and are not cross-comparable.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {},
   "maxItems": 50,
   "minItems": 1,
   "description": "Up to 50 positions: price_eur plus quantity text or EAN string; invalid rows are reported individually. Example: [{\"price_eur\":1.29,\"quantity\":\"500 g\"}]."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/grundpreis-batch-unit-price-calculator-4921fedb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from grundpreis.halowerk.com](https://www.zero.xyz/host/grundpreis.halowerk.com/llms.txt)
