Validate a product barcode number's GS1 check digit
Validate a product barcode number's GS1 check digit: GTIN-8 (EAN-8), GTIN-12 (UPC-A), GTIN-13 (EAN-13, including ISBN-13 and ISSN prefixes) or GTIN-14, with the expected check digit and the 14-digit form. Spaces and hyphens ignored. Pairs with /api/barcode-lookup.
Answeringour last check, 2026-11-26
7 of 7checks answered this week
359 msmedian answer time
$0.001listed price per call
$0.001price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://agent402.tools/api/gtin-validate
| Category | Commerce and shopping |
|---|---|
| Provider host | agent402.tools |
| Networks | algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k, eip155:10, eip155:1329, eip155:137, eip155:143, eip155:42161, eip155:42220, eip155:43114, eip155:4663, eip155:5042, eip155:57073, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp, stellar:pubnet |
| Payment schemes | exact, upto |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-26 | valid payment request | 402 | $0.001 | 354 ms |
| 2026-11-25 | valid payment request | 402 | $0.001 | 719 ms |
| 2026-11-24 | valid payment request | 402 | $0.001 | 359 ms |
| 2026-11-23 | valid payment request | 402 | $0.001 | 324 ms |
| 2026-11-22 | valid payment request | 402 | $0.001 | 324 ms |
| 2026-11-21 | valid payment request | 402 | $0.001 | 602 ms |
| 2026-11-20 | valid payment request | 402 | $0.001 | 469 ms |
Example input (from the provider)
{
"body": {
"code": "4006381333931"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"code": {
"description": "8, 12, 13 or 14 digits",
"type": "string"
}
},
"required": [
"code"
]
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"alias": {
"type": "string"
},
"checkDigit": {
"type": "number"
},
"expectedCheckDigit": {
"type": "number"
},
"format": {
"type": "string"
},
"gtin14": {
"type": "string"
},
"prefix": {},
"valid": {
"type": "boolean"
}
},
"required": [
"valid",
"format",
"alias",
"checkDigit",
"expectedCheckDigit",
"gtin14"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}