{"uid":"cap_YBqJKYsZxCsDSuAQL2jT2","slug":"2s-gtin-barcode-product-lookup-851c738e","name":"2s GTIN/Barcode Product Lookup","description":"Decode and validate a product barcode (GTIN / UPC-A / EAN-13 / EAN-8 / GTIN-14 / ISBN-13 / ISSN). Returns the GS1 mod-10 check-digit validation (valid flag + expected digit — an LLM can't reliably compute this), the symbology, the zero-padded GTIN-14 canonical form, and the GS1 prefix decoded to the issuing GS1 member organisation and its country (NOTE: that's the country of the org that issued the prefix, not necessarily where the item was made). Flags restricted-distribution (in-store/variable-measure) prefixes and Bookland (ISBN) / serial (ISSN) ranges. Also attempts a FRESH best-effort product-identity lookup (name, brand, category, image) across the open Open Food/Beauty/Products/Pet Food Facts federation (ODbL) — reliable for food, beverage, and beauty items, sparse for general retail (electronics/apparel), and may be null. Always live (no caching). Set identity=false to skip the lookup and decode only.","url":"https://2s.io/api/product/gtin","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"required":["gtin"],"properties":{"gtin":{"type":"string","description":"Barcode digits — UPC-A (12), EAN-13 (13), EAN-8 (8), GTIN-14 (14), or ISBN-13. Spaces/hyphens are stripped."},"identity":{"type":"boolean","description":"Look up live product identity in the open federation (default true). false = decode only."}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0036","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.0036/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0036","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0036","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Cf10ipc9xiihwAMezzRaV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0036","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes a barcode (UPC, EAN, ISBN, GTIN) and looks up live product identity data from the open federation","exampleAgentPrompt":"What product is barcode 012000161155? Look up its full identity from the open federation.","exampleUseCases":null,"resultDescription":"Returns decoded barcode metadata (barcode type, digits) plus live product identity data from the open federation — typically including product name, brand, and manufacturer details.","failureModes":["Invalid or malformed barcode digits returns an error","Barcode not found in the open federation returns no identity data (decode-only result)","Unsupported barcode format (e.g. QR code, non-numeric) returns a validation error","Network or payment failure returns a 402 or 5xx error"],"whenToPreferThis":"Use this endpoint when you need to identify a physical product from its barcode number (UPC, EAN, GTIN, or ISBN) without an API key or subscription — ideal for ad-hoc agent lookups, inventory checks, or product enrichment pipelines that pay per call via USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:54:01.830Z","isFirstParty":false}