Validate a product barcode number's GS1 check digit
agent402.tools/api/gtin-validate
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.
POST
https://agent402.tools/api/gtin-validateUptime100% of 4 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent402.tools/api/gtin-validate", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"code":"4006381333931"}),
});
console.log(await res.json());Example input
{
"code": "4006381333931"
}