EAN-13 / UPC Barcode Checker
Validate product barcodes (EAN-8, EAN-13, UPC-A, GTIN-14, ISBN-10/13, ISSN), compute check digits and find the GS1 prefix organisation, e.g. 893 = GS1 Vietnam.
Result
Press “Run” to see the result.
The barcode check API validates the numbers printed under product barcodes. It recognises EAN-8, UPC-A (12 digits), EAN-13 and GTIN-14 / ITF-14, verifies the GS1 mod-10 check digit and returns the normalised 14-digit GTIN used in GS1 data exchange. With compute=true it calculates the missing check digit of a number you are creating.
The first three digits are looked up in the GS1 prefix table: 893 is GS1 Vietnam, 690–699 China, 885 Thailand, 450–459 and 490–499 Japan, 978–979 books (ISBN), 977 magazines (ISSN), 200–299 in-store numbers. Note that the prefix tells which GS1 member organisation licensed the company number, not the country where the product was made. Books also get their ISBN-10 / ISBN-13 forms and periodicals their ISSN; ISBN-10 numbers (with X) are accepted directly.
The prefix table comes from GS1’s official list and is refreshed automatically every week.
Use this in your code
curl "https://apibox.io.vn/v1/gtin-check?code=8934588012228" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch('https://apibox.io.vn/v1/gtin-check?code=8934588012228', {
method: 'GET',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
},
});
const data = await res.json();
console.log(data);import requests
res = requests.get(
"https://apibox.io.vn/v1/gtin-check?code=8934588012228",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/gtin-check?code=8934588012228');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY'],
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
Does 893 mean “made in Vietnam”?
Not necessarily. 893 means the company number was issued by GS1 Vietnam; the product can be made elsewhere, and Vietnamese products can carry other prefixes.
How is the check digit computed?
Digits are weighted 3 and 1 alternately from the right; the check digit brings the sum to a multiple of 10.
Can it tell me the product name?
No, it validates the number and its prefix only. Product data lives in GS1 registries and retailer databases.