{"uid":"cap_Q6CmZPCTFsvEfoND2f3mw","slug":"food-barcode-facts-68d4c43b","name":"Food Barcode Facts","description":"Packaged food profile by barcode: name, brand, Nutri-Score, NOVA processing group, nutrition per 100 g and data quality.","url":"https://food-barcode.x402tookit.com/food-product?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"],"type":"string"},"queryParams":{"type":"object","required":["barcode"],"properties":{"barcode":{"type":"string","description":"UPC or EAN barcode, 8 to 14 digits"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"name":{"type":["null","string"]},"brands":{"type":["null","string"]},"labels":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"barcode":{"type":["null","string"]},"per100g":{"type":["null","object"],"properties":{"fatG":{"type":["null","number"]},"saltG":{"type":["null","number"]},"fiberG":{"type":["null","number"]},"sugarsG":{"type":["null","number"]},"sodiumMg":{"type":["null","number"]},"proteinsG":{"type":["null","number"]},"energyKcal":{"type":["null","number"]},"saturatedFatG":{"type":["null","number"]},"carbohydratesG":{"type":["null","number"]}}},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"ecoScore":{},"quantity":{"type":["null","string"]},"novaGroup":{"type":["null","number"]},"sourceUrl":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"nutriScore":{"type":["null","string"]},"attribution":{"type":["null","string"]},"dataQuality":{"type":["null","object"],"properties":{"completeness":{"type":["null","number"]},"lastModified":{"type":["null","string"]},"hasIngredients":{"type":["boolean","null"]}}},"ingredients":{"type":["null","string"]},"novaMeaning":{"type":["null","string"]},"servingSize":{},"countriesSold":{"type":["array","null"],"items":{"type":"string"}}}}}}}},"responseSchema":null,"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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IT8SkihdPWdEzPYKYpnUe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a packaged food product's name, brand, Nutri-Score, NOVA processing group, per-100g nutrition, and data quality by barcode.","exampleAgentPrompt":"Can you look up the full nutrition profile and Nutri-Score for barcode 3017620422003 — I want to see what's in it per 100g and how processed it is?","exampleUseCases":[{"title":"Grocery cart nutrition check","prompt":"I just scanned barcode 0049000028911 at the store — can you pull up its Nutri-Score, NOVA group, and key nutrition numbers per 100g so I can decide whether to buy it?"},{"title":"Diet tracking app enrichment","prompt":"I need the full nutrition facts and brand info for barcode 5449000000996 — calories, fat, sugars, protein, and carbs per 100g please."},{"title":"Ultra-processed food screening","prompt":"Can you check barcode 0038000845031 and tell me its NOVA processing group and what that means — I'm trying to avoid ultra-processed foods?"}],"resultDescription":"Returns a JSON object with the product name, brand, quantity, Nutri-Score letter grade, NOVA processing group and its meaning, per-100g macros and micronutrients (energy, fat, saturated fat, carbohydrates, sugars, fiber, protein, salt, sodium), ingredient list, eco-score, labels, countries sold, a summary verdict with reasons, data quality metadata (completeness, last modified, has ingredients), source URL, attribution, and any data degradation flags.","failureModes":["Barcode not found in database — returns null or empty fields","Invalid barcode format (not 8–14 digits) — input validation error","Product exists but has incomplete nutrition data — partial results with degraded flag set to true","Network or upstream Open Food Facts API unavailability — service error","Payment not processed — x402 payment required error"],"whenToPreferThis":"Use this endpoint when you need a comprehensive single-call food profile for a packaged product by barcode, including Nutri-Score, NOVA processing classification, and per-100g nutrition. Prefer this over sibling endpoints when you want the full product overview in one call rather than specific sub-queries for allergens, additives, or diet compatibility.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T06:59:37.252Z","isFirstParty":false,"canonicalSlug":"food-barcode-facts-68d4c43b"}