{"uid":"cap_iPJ2lkU3q5S3coJwobOvF","slug":"api-strale-io-7aed2dfb","name":"Barcode Lookup (UPC/EAN) via Open Food Facts & UPC ItemDB","description":"Look up product information by UPC/EAN barcode. Uses Open Food Facts and UPC ItemDB. Returns product name, brand, nutrition, images.","url":"https://api.strale.io/x402/barcode-lookup","method":"GET","headers":{},"bodySchema":{"type":"object","required":["barcode"],"properties":{"barcode":{"type":"string"}}},"responseSchema":{"brand":{"type":"string"},"found":{"type":"boolean"},"barcode":{"type":"string"},"nutrition":{"type":"object"},"product_name":{"type":"string"}},"example":{"request":{"barcode":"049000028911"},"response":{"_meta":{"payment":{"method":"x402","price_usd":0.054000000000000006,"settlement_id":"0x68a108b81468e8cd577acaacbaff8fafaa52ecbfb546ecacea57e4ca8d83d484"},"capability":"barcode-lookup","latency_ms":398,"provenance":{"source":"world.openfoodfacts.org","fetched_at":"2026-06-16T01:20:28.661Z"}},"brand":"Coke","found":true,"source":"open_food_facts","barcode":"049000028911","quantity":"144 fl oz","allergens":"","countries":"United States","image_url":"https://images.openfoodfacts.org/images/products/004/900/002/8911/front_en.24.400.jpg","nutrition":{"fat_g":0,"salt_g":0.0282502113271344,"carbs_g":0,"sugar_g":null,"protein_g":0,"energy_kcal":0},"categories":"Sodas, Diet beverages","nova_group":4,"ingredients":"CARBONATED WATER, CARAMEL COLOR, ASPARTAME acts PHOSPHORIC ACID, POTASSIUM BENZOATE (TO PROTECT TASTE), NATURAL FLAVORS, CITRIC ACID, CAFFEINE","product_name":"Diet Coke Soft Drink","ecoscore_grade":"not-applicable","nutriscore_grade":"b"}},"exampleRequest":{"barcode":"049000028911"},"tags":["x402"],"displayCostAmount":"0.054001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.054001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JKSu_X5P6zF0RawXrvh2I","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.054","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Look up product information by UPC or EAN barcode, returning product name, brand, nutrition facts, and images.","exampleAgentPrompt":"Can you look up the product info for barcode 049000028911 — I want to know the name, brand, and nutrition facts?","exampleUseCases":null,"resultDescription":"Returns product name, brand name, nutritional information, and product images sourced from Open Food Facts and UPC ItemDB for the queried barcode.","failureModes":["Barcode not found in either database — returns empty or null product data","Invalid barcode format — schema requires a barcode string query parameter","Payment not completed (x402 protocol) — returns 402 status before data is delivered","Upstream Open Food Facts or UPC ItemDB unavailable — may return partial or error response"],"whenToPreferThis":"Use this endpoint when you need to identify a physical product by its UPC or EAN barcode, especially for food and grocery items where nutrition data is valuable. Prefer this over manual product databases when you need aggregated data from both Open Food Facts and UPC ItemDB in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:57:45.104Z","isFirstParty":false}