{"uid":"cap_vOitUrLOEvkClSjKNpnSR","slug":"gtin-ean-upc-barcode-check-digit-validator-061f0eed","name":"GTIN / EAN / UPC Barcode Check-Digit Validator","description":"GTIN / EAN / UPC barcode check-digit validation (GS1 mod-10) for GTIN-8/12/13/14 with type identification.","url":"https://api.aventtech.com/validate/gtin?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":["gtin"],"properties":{"gtin":{"type":"string","description":"8, 12, 13 or 14 digit barcode number"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"kind":"GTIN-13/EAN-13","valid":true}},"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":{"p10Cents":"1.0000","medianCents":"1.0000","p90Cents":"1.0000","minCents":"1.0000","maxCents":"1.0000","p95Cents":"1.0000","sampleCount":1,"varies":false,"failureChargeRate":1},"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_gwI1p3XIAGcIRkAwAPE72","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 GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13), and GTIN-14 barcodes using GS1 MOD-10 check-digit algorithm and identifies the barcode type.","exampleAgentPrompt":"Can you check if the barcode 5901234123457 is a valid GTIN and tell me what type it is?","exampleUseCases":[{"title":"Validate scanned product barcodes","prompt":"I just scanned a bunch of barcodes from products in our warehouse and I want to make sure they're all structurally valid before importing them into our inventory system. Can you check each one and flag any that fail GS1 validation?"},{"title":"Pre-screen barcodes before catalog listing","prompt":"Before I submit these product UPC codes to our e-commerce catalog, can you verify that each barcode is a valid GTIN and tell me what type they are so I can catch any typos or bad data upfront?"},{"title":"Identify unknown barcode format","prompt":"I have a product code that was entered manually and I'm not sure if it's a UPC-A, EAN-13, or some other GTIN format. Can you validate it and tell me exactly what type of barcode it is?"}],"resultDescription":"Returns whether the GTIN passes GS1 MOD-10 check-digit validation, the barcode type (GTIN-8, GTIN-12/UPC-A, GTIN-13/EAN-13, or GTIN-14), and likely whether the check digit itself is correct.","failureModes":["Non-numeric characters in the GTIN input cause a validation error","GTIN length not matching any of 8, 12, 13, or 14 digits returns an invalid format error","Empty or missing gtin query parameter returns a 400 bad request","Network timeout or service unavailability returns a 5xx error"],"whenToPreferThis":"Use this endpoint when you need lightweight, fast, purely structural GS1 MOD-10 check-digit validation of a barcode without needing product database lookup. It is ideal for input sanitization, data entry validation, or pre-processing barcodes before querying a product database. Prefer this over payment-card or IBAN validators — those are sibling endpoints on the same host for different number formats.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-09T18:42:39.521Z","isFirstParty":false,"canonicalSlug":"gtin-ean-upc-barcode-check-digit-validator-061f0eed"}