{"uid":"cap_VKmnlCVOy6hX-rl_WGEHL","slug":"grundpreis-batch-unit-price-calculator-4921fedb","name":"Grundpreis Batch Unit Price Calculator","description":"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.","url":"https://grundpreis.halowerk.com/v1/unit-price/batch?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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\"}]."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BUcB5rY-9y2nMECiFfyxa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Grocery basket unit price normalization","prompt":"I've got a list of 10 items from my weekly shop — can you work out the price per kg or per litre for each one? Cheese 400g at €3.49, orange juice 1.5l at €2.19, butter 250g at €1.79, rice 1kg at €1.99, shampoo 400ml at €3.29, cornflakes 375g at €2.69, sparkling water 1l at €0.59, tomato sauce 500g at €1.39, coffee 250g at €4.99, and lentils 500g at €1.19."},{"title":"EAN-based Grundpreis batch lookup","prompt":"I have a list of product EAN codes with their store prices — can you calculate the unit price per kg or litre for each? EAN 4008400401621 at €1.29, EAN 4000521002367 at €2.49, EAN 4001686304037 at €3.99."},{"title":"Bulk price-check for price comparison app","prompt":"I'm building a price comparison tool and need the Grundpreis for these 20 products — can you batch-process all of them and flag any rows where the quantity couldn't be parsed? Here's the list: [sparkling water 0.5l €0.45, whole milk 1l €1.09, mozzarella 125g €0.99, sunflower oil 1l €1.89, rolled oats 500g €1.49, bread 750g €2.29, tomatoes 400g €0.89, chicken breast 600g €4.49, Greek yogurt 150g €0.79, cheddar 200g €2.49, pasta 500g €1.19, lentils 500g €1.09, rice 1kg €2.29, cornflakes 500g €2.99, orange juice 1l €1.99, butter 250g €1.69, cream cheese 200g €1.39, coffee beans 250g €5.49, tea bags 100g €2.99, honey 500g €3.79]."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:30:27.261Z","isFirstParty":false,"canonicalSlug":"grundpreis-batch-unit-price-calculator-4921fedb"}