{"uid":"cap_56RarMH7yLbtEl7cNEYsi","slug":"food-product-by-barcode-f62ff284","name":"Food Product by Barcode","description":"Food product details from its EAN/UPC barcode: name, brand, quantity, ingredients, allergens, Nutri-Score, NOVA processing group, Eco-Score and nutrients per 100 g, from Open Food Facts. Use for nutrition apps, shopping assistants or allergy checks.","url":"https://bess-x402.onrender.com/v1/lookup/food?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["barcode"],"properties":{"barcode":{"type":"string","description":"EAN-13, EAN-8 or UPC barcode"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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_CXRR499xfnS-lslAquZXo","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":"Looks up detailed food product information (name, brand, ingredients, allergens, Nutri-Score, NOVA group, Eco-Score, nutrients) from an EAN/UPC barcode via Open Food Facts","exampleAgentPrompt":"Can you look up the food product with barcode 3017620422003 and tell me its ingredients, allergens, and Nutri-Score?","exampleUseCases":[{"title":"Allergy check while grocery shopping","prompt":"I just scanned barcode 5000159484695 on a snack at the store — can you check if it contains any nuts or gluten?"},{"title":"Nutrition tracking for a diet app","prompt":"Look up the nutritional info per 100g for the product with EAN barcode 8001505005592 so I can log it to my diet tracker."},{"title":"Eco-conscious product evaluation","prompt":"What's the Eco-Score and NOVA processing group for the food product with barcode 3228857000166? I'm trying to make more sustainable food choices."}],"resultDescription":"Returns structured food product data including product name, brand, quantity/serving size, full ingredients list, allergen flags, Nutri-Score letter grade, NOVA food processing group (1-4), Eco-Score environmental rating, and per-100g macro and micro nutrient values sourced from the Open Food Facts database.","failureModes":["Barcode not found in Open Food Facts database — product may be regional or unlisted","Invalid barcode format returns an error — must be EAN-13, EAN-8, or UPC","Incomplete product data if Open Food Facts entry is community-contributed and partially filled","Service downtime on the Render-hosted endpoint causing HTTP errors","Rate limits or payment failures returning 402 responses"],"whenToPreferThis":"Use this endpoint when you need structured food product data keyed by a physical barcode scan, particularly for nutrition apps, shopping assistants, or allergy screening tools. It's ideal when you have the barcode number and need rich data including Nutri-Score, NOVA group, Eco-Score, and allergens in a single call. Prefer this over manual web scraping or general search when you want machine-readable nutritional facts tied to a specific product SKU.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T06:46:10.077Z","isFirstParty":false,"canonicalSlug":"food-product-by-barcode-f62ff284"}