{"uid":"cap_FaN1ZwIzp6H9mWxF6e1-C","slug":"upc-ean-barcode-lookup-2c939188","name":"UPC / EAN Barcode Lookup","description":"Validate UPC/EAN/GTIN checksum offline, then look up the barcode on Open Food Facts when it is a food/consumer item. Non-food codes often checksum-ok with no product match.","url":"https://402.com.tr/api/x402/upc-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"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["code"],"properties":{"code":{"type":"string","description":"Barcode digits"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_uLma7fz3pxY5uoChOMMRH","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":"Validates a UPC/EAN/GTIN barcode checksum offline and looks up product details on Open Food Facts for food and consumer items.","exampleAgentPrompt":"Can you look up the barcode 3017620422003 and tell me what product it is and whether the checksum is valid?","exampleUseCases":[{"title":"Grocery item identification from scan","prompt":"I scanned the barcode 0737628064502 from a item in my pantry — can you tell me what product this is and confirm the barcode is valid?"},{"title":"E-commerce listing validation","prompt":"I have a list of UPC codes for products I'm listing online — can you check if 012000030888 is a valid barcode and what product it corresponds to?"},{"title":"Food label verification","prompt":"Can you verify that the EAN code 4006381333931 has a valid checksum and look up whether there's a matching food product in the database?"}],"resultDescription":"Returns whether the barcode checksum is valid (offline check), and if the code matches a food/consumer item, returns product details from Open Food Facts such as product name, category, and other available metadata. Non-food barcodes may pass checksum validation but return no product match.","failureModes":["Valid checksum but no product found (common for non-food/industrial barcodes)","Invalid barcode digits fail checksum validation immediately","Malformed or non-numeric input rejected","Product exists but Open Food Facts has no data for it","Network timeout on Open Food Facts lookup"],"whenToPreferThis":"Use this endpoint when you need to identify a consumer product from its UPC, EAN, or GTIN barcode — especially for food items where Open Food Facts coverage is strong. It is a cost-effective single-call solution combining offline checksum validation with a live product lookup, making it ideal for lightweight product identification without needing a paid barcode database subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:51:29.384Z","isFirstParty":false}