{"uid":"cap_uedmFbffdgAcj98X17NNt","slug":"open-food-facts-barcode-nutrition-lookup-584b344b","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://api.agentstools.dev/nutrition/barcode?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":"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":{"p10Cents":"0.3000","medianCents":"0.3000","p90Cents":"0.3000","minCents":"0.3000","maxCents":"0.3000","p95Cents":"0.3000","sampleCount":1,"varies":false,"failureChargeRate":1},"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_iVUIDyKTAKmUp2jq6niUD","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 look up the nutrition info, allergens, and Nutri-Score for the product with barcode 3017620422003?","exampleUseCases":[{"title":"Grocery shopping allergen screening","prompt":"I'm at the store with my kid who has a peanut allergy. Can you check this barcode to see if it contains nuts or tree nuts?"},{"title":"Diet compatibility verification","prompt":"Before I buy this product, can you scan the barcode and tell me if it's vegan and what its Nutri-Score is?"},{"title":"Meal planning with food processing data","prompt":"I'm trying to avoid ultra-processed foods. Can you look up this barcode and show me its NOVA classification along with the full nutrition facts?"}],"resultDescription":"Returns a normalized nutrition profile (calories, macros, micronutrients), list of allergens, dietary compatibility flags (vegan, vegetarian, gluten-free, etc.), Nutri-Score letter grade (A–E), and NOVA food processing classification (1–4) for the matched product from the Open Food Facts global database.","failureModes":["Barcode not found in Open Food Facts database — product may be too regional or not yet crowd-sourced","Invalid barcode format (not 8–14 digits) — returns validation error","Product exists in database but nutrition data is incomplete — partial fields returned","Network timeout or upstream Open Food Facts API unavailability — returns 5xx error","Barcode digit check failure — malformed GTIN rejected before lookup"],"whenToPreferThis":"Use this endpoint when you need to look up packaged food product details (nutrition, allergens, diet flags, Nutri-Score, NOVA) by scanning or providing a GTIN/barcode. It leverages the global Open Food Facts crowd-sourced database and is ideal for consumer food apps, diet tracking, grocery comparison, or allergen screening. Prefer this over manual nutrition search endpoints when you have the exact barcode, as it returns richer structured data including processing classification (NOVA) and health scores (Nutri-Score).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:40:36.696Z","isFirstParty":false,"canonicalSlug":"open-food-facts-barcode-nutrition-lookup-584b344b"}