{"uid":"cap_DKtPsFeYwEWlH7TnJSo42","slug":"grundpreis-unit-price-calculator-d75cad6b","name":"Grundpreis Unit Price Calculator","description":"Calculate price per kg or litre from your price and quantity or an available EAN pack size. Example: price_eur 1.29, quantity 4x125g. This is a calculation, not an observed store quote.","url":"https://grundpreis.halowerk.com/v1/unit-price?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ean":{"type":"string","maxLength":14,"minLength":8,"description":"Alternative to quantity: pack size from Open Food Facts."},"quantity":{"type":"string","maxLength":40,"minLength":1,"description":"Pack quantity text, e.g. \"500 g\", \"6 x 0,33 l\"."},"price_eur":{"type":"number","maximum":100000,"exclusiveMinimum":0}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fyyn0XfA9Ci0ufNmmKSBm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the price per kilogram or litre from a given price and pack quantity (or EAN barcode), enabling unit price comparison across differently sized products.","exampleAgentPrompt":"What's the price per kg for a product that costs €1.29 and has a pack size of 4x125g?","exampleUseCases":[{"title":"Grocery unit price check","prompt":"I'm looking at two yoghurts in the supermarket — one is €1.29 for 4 packs of 125g each. What's the price per kilogram?"},{"title":"Barcode-based unit price lookup","prompt":"I scanned a product with EAN 4008400401621 and it costs €3.49. Can you work out the price per kg or litre for me?"},{"title":"Multi-pack beverage price normalisation","prompt":"This juice costs €2.99 for 6 x 0.33 litre cans — what's the price per litre so I can compare it to a 1.5L bottle?"}],"resultDescription":"Returns the calculated unit price (price per kilogram or per litre) derived from the supplied price in EUR and pack quantity or EAN-resolved pack size. This is a computed value, not a live store quote.","failureModes":["Invalid or unparseable quantity string returns an error (e.g. ambiguous units)","EAN not found in Open Food Facts means pack size cannot be resolved","Price or quantity outside allowed range triggers validation error","Missing both 'ean' and 'quantity' fields causes a bad request","Non-food EAN with no mass/volume data cannot be normalised"],"whenToPreferThis":"Use this endpoint when you need to calculate or normalise a product's price on a per-kg or per-litre basis from a known price and pack size, especially when comparing differently sized grocery or beverage products. Prefer it over manual calculation or general LLM reasoning when you need reliable, rule-based unit price arithmetic, or when you have an EAN and want the pack size resolved automatically from Open Food Facts. Do not use it to look up live store prices — it only performs computation on supplied inputs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:19:26.403Z","isFirstParty":false,"canonicalSlug":"grundpreis-unit-price-calculator-d75cad6b"}