{"uid":"cap_jDt0X6Qycxz85C7Yew34e","slug":"relay402-product-barcode-lookup-ff5ce0be","name":"relay402 Product Barcode Lookup","description":"Resolves an EAN/UPC/GTIN barcode (8-14 digits) to product data: name, brands, quantity, categories, Nutri-Score and image, from the Open Food Facts database (3M+ products, ODbL). For commerce, inventory and shopping agents scanning or comparing physical products.","url":"https://relay402.georgespring.workers.dev/api/product-barcode","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","$schema":"https://json-schema.org/draft/2020-12/schema","required":["barcode"],"properties":{"barcode":{"type":"string","pattern":"^\\d{8,14}$"}},"additionalProperties":false}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EEi2NJ9FIcqUM-lHO10pQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up product information by UPC/EAN/GTIN barcode, returning product details for a given barcode number, with payment via x402 USDC on Base.","exampleAgentPrompt":"Can you look up what product this barcode is — 012345678905?","exampleUseCases":[{"title":"Identify unknown grocery item","prompt":"I scanned a barcode at the store — 00041196020018 — can you tell me what product that is?"},{"title":"Enrich inventory with product names","prompt":"I have a list of UPC codes from our warehouse, starting with 045496590406 — can you look up the product name and brand for each one?"},{"title":"Verify product before purchase","prompt":"Before I buy this item, can you look up barcode 194252339992 and tell me what product it actually is and what brand makes it?"}],"resultDescription":"Returns structured product information associated with the given barcode, which may include product name, brand, category, description, and other metadata linked to the UPC/EAN/GTIN code. The response is delivered after micropayment of $0.008 USDC on Base via the x402 protocol — no API key required.","failureModes":["Barcode not found in product database — unknown or obscure products may return no results","Invalid barcode format (must be 8–14 digits) returns a validation error","Payment failure or insufficient USDC balance causes request rejection","Network or worker downtime at the Cloudflare edge may cause transient failures","Barcode exists but product record is incomplete or missing key fields"],"whenToPreferThis":"Use this endpoint when an agent needs to identify or enrich product data from a barcode (UPC-A, EAN-8, EAN-13, GTIN-14) without requiring API key registration or a subscription. Ideal for lightweight, pay-per-use scenarios where you only need occasional barcode lookups and want to avoid upfront commitment. The x402 micropayment model at $0.008/call makes it cost-effective for low-volume or sporadic lookups. Prefer alternatives if you need bulk barcode resolution, guaranteed database coverage, or richer product catalogs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T12:34:37.200Z","isFirstParty":false}