{"uid":"cap_SMLoS5XD6Hd6dofCcJavS","slug":"open-food-facts-barcode-nutrition-lookup-43da4c5e","name":"Open Food Facts Barcode Nutrition Lookup","description":"Look up a packaged product by GTIN/barcode via Open Food Facts (global). Returns the normalized nutrition profile plus allergens, diet flags, Nutri-Score and NOVA.","url":"https://payai.agentstools.dev/nutrition/barcode","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":"GTIN/barcode, 8-14 digits (EAN-8/UPC-A/EAN-13/GTIN-14)"}}}},"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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LgWB7ZB6yAKZCUJ5WZgGN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Look up a packaged food product by GTIN/barcode and return its normalized nutrition profile, allergens, diet flags, Nutri-Score, and NOVA classification via Open Food Facts.","exampleAgentPrompt":"Can you pull up the nutrition info, allergens, Nutri-Score, and NOVA rating for the product with barcode 5449000000996?","exampleUseCases":[{"title":"Check allergens for customer safety","prompt":"I just grabbed a snack from the shelf—barcode is 737628064502. Can you tell me what allergens are in it? My customer has a peanut allergy and I want to make sure it's safe."},{"title":"Verify vegan product claims","prompt":"This product says it's vegan on the label, but I want to double-check. Can you scan barcode 5449000051128 and confirm whether it's actually vegan or if there are any hidden animal-derived ingredients?"},{"title":"Compare Nutri-Score across variants","prompt":"I'm trying to pick the healthier cereal for my kids. Can you look up the Nutri-Score and nutrition facts for barcode 8711000702123 and tell me if it's a good choice compared to typical breakfast cereals?"}],"resultDescription":"Returns a normalized nutrition profile (macronutrients, energy, etc.), allergen list, dietary flags (vegan, vegetarian, gluten-free, etc.), Nutri-Score letter grade, and NOVA food processing classification for the matched packaged product.","failureModes":["Barcode not found in Open Food Facts database — returns empty or 404-like response","Invalid barcode format (fewer than 8 or more than 14 digits) — returns validation error","Product exists but has incomplete data — partial nutrition profile returned","Upstream Open Food Facts API unavailable — returns service error","Barcode resolves to non-food product with no nutrition data"],"whenToPreferThis":"Use this endpoint when you have a physical product barcode (EAN/UPC/GTIN) and need structured nutrition data, allergen information, or dietary classification (Nutri-Score, NOVA) for a globally sold packaged food. Prefer this over manual ingredient lookup when a barcode is available and you need standardized, machine-readable output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:59:30.468Z","isFirstParty":false}