{"uid":"cap_XCd45_UiNb1Yy_Hs9rJEA","slug":"ean-barcode-checksum-gs1-country-prefix-validator-229eeadb","name":"EAN Barcode Checksum & GS1 Country Prefix Validator","description":"Call when an agent has an 8 or 13 digit barcode and needs the checksum result and the GS1 prefix country. Does not confirm the product or a price.","url":"https://agentshield.live/ean?utm_source=zero.xyz","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":"EAN-8 or EAN-13 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.002","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tPbEO1qlf1bJIj3mSVrsv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates the checksum of an EAN-8 or EAN-13 barcode and returns the GS1 country prefix associated with it.","exampleAgentPrompt":"Can you validate this EAN-13 barcode for me — 5901234123457 — and tell me if the checksum is correct and which GS1 country prefix it belongs to?","exampleUseCases":[{"title":"Barcode integrity check before catalog import","prompt":"I'm about to import a product catalog and one of the barcodes is 73513537. Can you check if the checksum on that EAN-8 is valid and what GS1 country it belongs to?"},{"title":"E-commerce listing country origin check","prompt":"We scanned a product barcode of 4006381333931 — can you verify the EAN-13 checksum is correct and tell me what country the GS1 prefix points to?"},{"title":"Inventory data quality audit","prompt":"Our warehouse system flagged barcode 0012345678905 as potentially invalid — can you check the checksum and let me know if it passes and what the GS1 country prefix is?"}],"resultDescription":"Returns whether the EAN-8 or EAN-13 checksum is valid and identifies the GS1 country associated with the barcode's prefix. Does not look up or confirm any specific product or price.","failureModes":["Missing or empty 'code' query parameter returns an error","Non-numeric characters in barcode cause validation failure","Barcode length other than 8 or 13 digits returns an error","Invalid or unrecognized GS1 prefix may return unknown country"],"whenToPreferThis":"Use this endpoint when you have a raw EAN-8 or EAN-13 barcode string and need to verify its check digit mathematically and identify the GS1 issuing country. It is not a product database lookup — prefer it for data validation, catalog hygiene, and supply chain integrity checks rather than price or product detail retrieval.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:35:42.871Z","isFirstParty":false,"canonicalSlug":"ean-barcode-checksum-gs1-country-prefix-validator-229eeadb"}