{"uid":"cap_1C3zEKIfOLDuXj3ENPtK5","slug":"saylor-innovations-food-barcode-f09d014d","name":"Saylor Innovations Food Barcode","description":"Packaged food lookup by UPC or EAN barcode - name, brand, ingredients, allergens, Nutri-Score and nutrition facts","url":"https://saylorinnovations.com/api/food/barcode/:upc?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","pathParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object","required":["upc"],"properties":{"upc":{"type":"string","description":"UPC/EAN barcode number (path)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["found"],"properties":{"upc":{"type":["string","null"]},"name":{"type":["string","null"],"description":"Name"},"found":{"type":"boolean","description":"True when the lookup matched a record"},"image":{"type":["string","null"],"description":"Image URL"},"brands":{"type":["string","null"],"description":"Brands"},"source":{"type":["string","null"],"description":"Data source the values come from"},"quantity":{"type":["string","null"],"description":"Quantity"},"allergens":{"type":["array","null"]},"categories":{"type":["array","null"],"description":"Categories"},"nova_group":{"type":["number","null"],"description":"Nova group"},"ingredients":{"type":["string","null"]},"ecoscore_grade":{"type":["string","null"],"description":"Ecoscore grade"},"nutriscore_grade":{"type":["string","null"],"description":"Nutriscore grade"},"nutrition_per_100g":{"type":"object","description":"Nutrition per 100g"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FHTv6M__88ZiMqJuKo7yO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up packaged food product details by UPC or EAN barcode, returning name, brand, ingredients, allergens, Nutri-Score, Nova group, Ecoscore, and full nutrition facts per 100g","exampleAgentPrompt":"Can you look up the barcode 016000275782 and tell me the product name, brand, ingredients, allergens, and Nutri-Score?","exampleUseCases":[{"title":"Allergy check while grocery shopping","prompt":"I'm at the store and I scanned barcode 070038637035 — can you check if this product contains any common allergens like nuts, dairy, or gluten?"},{"title":"Nutrition label breakdown for diet tracking","prompt":"Look up the nutrition facts for the product with UPC 038000138416 — I need calories, fat, sugar, and protein per 100g for my diet tracker."},{"title":"Food quality rating for a meal prep app","prompt":"What's the Nutri-Score and Nova group for the packaged food with barcode 3017620422003? I want to know how processed and healthy it is."}],"resultDescription":"A JSON object with a `found` boolean indicating whether the barcode matched a record. If found, returns the product name, brand(s), quantity, image URL, ingredients text, allergen list, product categories, Nova processing group (1-4), Nutri-Score grade (a-e), Ecoscore grade, full nutrition facts per 100g (calories, fat, carbs, sugar, protein, salt, fiber, etc.), and the data source used.","failureModes":["Barcode not found in database — returns {found: false} with null fields","Malformed or non-numeric UPC/EAN string may result in error or not-found response","Partial data — some fields (allergens, Ecoscore, Nova group) may be null if not in the source database","Payment failure due to x402 protocol issues","Rate limiting or upstream data source unavailability"],"whenToPreferThis":"Use this endpoint when you need to resolve a specific UPC or EAN barcode into packaged food metadata including nutritional information, allergens, Nutri-Score, Nova group, and Ecoscore. It is well-suited for grocery shopping assistants, diet-tracking agents, allergen-checking workflows, or any use case where a physical product barcode needs to be decoded into structured food data. Prefer this over scraping retailer pages when you need standardized nutrition fields in a machine-readable format.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:41:30.558Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-food-barcode-f09d014d"}