{"uid":"cap_xQ0ujMF91jneCLmQTA6e2","slug":"bizintel-api-open-food-facts-barcode-lookup-a72cae5a","name":"BizIntel API – Open Food Facts Barcode Lookup","description":"Extracts macronutrients, calories, and additives for a food barcode.","url":"https://bizintel-api.hahavoid0.workers.dev/product/open-food-facts","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["barcode"],"properties":{"barcode":{"type":"string","description":"Food EAN/UPC barcode"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{"sugar":56.3,"calories":539},"warnings":[],"supported":true,"confidence":"high","data_as_of":"2026-06","disclaimer":"Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LJSBVXW6_VD1Pg5Yyr-sX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up nutritional information (calories, sugar, etc.) for a food product by its EAN/UPC barcode via Open Food Facts data.","exampleAgentPrompt":"What are the calories and sugar content for the food product with barcode 3017620422003? I scanned it at the grocery store and want to know its nutritional info.","exampleUseCases":[{"title":"Grocery nutrition check while shopping","prompt":"I just scanned a product at the supermarket with barcode 8076809513456 — can you tell me how many calories it has and how much sugar is in it?"},{"title":"Diet tracking app barcode scan","prompt":"A user scanned barcode 0016000275287 in my diet app. Fetch the calorie and sugar data for that food so I can log it to their daily intake."},{"title":"Food allergy and nutrition research","prompt":"I'm researching packaged foods and need the nutritional data for the product with EAN barcode 5000112637922 — specifically calories and sugar content."}],"resultDescription":"Returns a JSON object with nutritional fields including calories and sugar (e.g. calories: 539, sugar: 56.3), a 'supported' flag indicating if the barcode is in the database, a confidence level (e.g. 'high'), a data_as_of freshness date, any warnings, and a disclaimer about informational use only.","failureModes":["Barcode not found in Open Food Facts database (supported: false returned)","Invalid or malformed barcode string causes validation error","Low confidence result if product data is incomplete in source database","Stale data if Open Food Facts has not been updated recently for the product","Network timeout or upstream Open Food Facts service unavailability","Payment failure if insufficient USDC balance for x402 micropayment"],"whenToPreferThis":"Choose this endpoint when you need fast, pay-per-call nutritional lookup for packaged food products by EAN/UPC barcode without requiring an API key or subscription. It is ideal for diet tracking agents, grocery shopping assistants, and food logging workflows. Prefer this over direct Open Food Facts API calls when you need a managed, x402 USDC micropayment-compatible wrapper with structured confidence scoring.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:40:40.774Z","isFirstParty":false}