{"uid":"cap_AAH_mdqoJwvIAo-EQTxfY","slug":"food-barcode-facts-diet-compatibility-check-b083cbdc","name":"Food Barcode Facts – Diet Compatibility Check","description":"Does a packaged food fit a vegan, vegetarian, palm-oil-free or gluten-free diet, per its ingredient analysis and labels.","url":"https://food-barcode.x402tookit.com/food-diet-check?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","diet"],"properties":{"diet":{"type":"string","description":"vegan, vegetarian, palm-oil-free or gluten-free"},"barcode":{"type":"string","description":"UPC or EAN barcode"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"diet":{"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"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"quantity":{"type":["null","string"]},"sourceUrl":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"attribution":{"type":["null","string"]},"dataQuality":{"type":["null","object"],"properties":{"completeness":{"type":["null","number"]},"lastModified":{"type":["null","string"]},"hasIngredients":{"type":["boolean","null"]}}},"analysisTags":{"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_TlGOwVyCrGsTSVBA8bT2i","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":"Checks whether a packaged food (identified by UPC/EAN barcode) is compatible with a specified diet (vegan, vegetarian, palm-oil-free, or gluten-free) based on ingredient analysis and product labels.","exampleAgentPrompt":"Can you check if the product with barcode 012345678901 is vegan? I want to know whether its ingredients are compatible with a vegan diet.","exampleUseCases":[{"title":"Grocery shelf scanning for vegans","prompt":"I'm at the store and just scanned barcode 737628064502 — can you tell me if this product is vegan based on its ingredients and labels?"},{"title":"Gluten-free meal prep verification","prompt":"Before I buy this pasta sauce, can you check if barcode 041196898628 is gluten-free? I need to know which ingredients might be an issue."},{"title":"Palm-oil-free product screening","prompt":"I'm trying to avoid palm oil — can you look up barcode 8712566312207 and tell me if it's palm-oil-free, and why or why not?"}],"resultDescription":"Returns a verdict (e.g. 'yes', 'no', 'unknown') on whether the product meets the requested diet, along with the product name, brand, a human-readable summary, a list of reasons supporting the verdict, applicable product labels, analysis tags, data quality indicators (completeness, last modified, has ingredients), and a disclaimer about data reliability.","failureModes":["Barcode not found in database — verdict and name may be null","Unknown or ambiguous ingredients — degraded flag set to true with reduced confidence","Diet type not supported — request rejected or empty response","Incomplete ingredient data — notChecked array lists unverified ingredients","Stale product data — dataQuality.lastModified may be outdated"],"whenToPreferThis":"Use this endpoint when you need a quick, structured diet-compatibility verdict for a specific packaged food identified by its UPC or EAN barcode. It is purpose-built for the four diets (vegan, vegetarian, palm-oil-free, gluten-free) and returns interpretable reasons, not just a boolean. Prefer it over a general product lookup endpoint when the user's goal is specifically dietary compliance rather than nutritional analysis or allergen checking.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:12:39.057Z","isFirstParty":false,"canonicalSlug":"food-barcode-facts-diet-compatibility-check-b083cbdc"}