{"uid":"cap_RemjHrMBcyeRHz413NA8j","slug":"agent402-tools-barcode-lookup-upc-ean-product-info-63ea3660","name":"agent402.tools Barcode Lookup (UPC/EAN → Product Info)","description":"Look up a product by its UPC/EAN barcode number via Open Food Facts (open data): name, brand, category, quantity, and nutrition grade. Pairs with /api/barcode-decode (image → number → product). ?code=737628064502","url":"https://agent402.tools/api/barcode-lookup","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":["code"],"properties":{"code":{"type":"string","description":"UPC/EAN barcode digits (8-14)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["code","found","product"],"properties":{"code":{"type":"string"},"found":{"type":"boolean"},"product":{"type":"object","properties":{"name":{"type":"string"},"brands":{"type":"string"},"quantity":{"type":"string"},"countries":{"type":"string"},"categories":{"type":"string"},"nutritionGrade":{"type":"string"}}}}}}}}},"responseSchema":{"type":"json","example":{"code":"737628064502","found":true,"product":{"name":"Thai peanut noodle kit","brands":"Simply Asia","quantity":"155 g","countries":"United States","categories":"Meals","nutritionGrade":"d"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wSS7nLcA1UQUUWHZVjPPl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up a product by its UPC or EAN barcode number and returns name, brand, category, quantity, and nutrition grade from Open Food Facts.","exampleAgentPrompt":"What product has the barcode 737628064502? I want to know the brand, product name, category, and nutrition grade.","exampleUseCases":null,"resultDescription":"Returns structured product data including product name, brand, category, quantity/size, and nutrition grade (e.g. A–E scale from Open Food Facts) for the given UPC/EAN barcode number.","failureModes":["Barcode not found in Open Food Facts database — returns empty or 404-like response","Invalid barcode format (not 8–14 digits) — returns validation error","Product exists but has incomplete data — some fields may be null or missing","Payment failure — x402 payment of $0.005 USDC not processed"],"whenToPreferThis":"Use this endpoint when you have a numeric UPC or EAN barcode (8–14 digits) and need to identify the corresponding food product and its metadata. Pair with the sibling /api/barcode-decode endpoint when starting from a barcode image rather than a number. Prefer this over general web search when you need structured, machine-readable product data from an open, standardized database.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:06.458Z","isFirstParty":false}