Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/gtin-hierarchy

Takes up to 100 GTINs and, for an agent reconciling a product feed or order lines, validates each check digit, converts it to the 14-digit form, reads the indicator digit and GS1 Prefix (restricted-circulation, ISBN/ISSN range, coupon), and, when a parent GTIN is given, checks the two share one base item (the packaging-level link). It does not look up the brand owner, the product or the country of

BaseAnswering
POSThttps://agents.writerslogic.com/api/v1/gtin-hierarchy

Uptime100% 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://agents.writerslogic.com/api/v1/gtin-hierarchy", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"items":[{"gtin":"6291041500213"},{"gtin":"16291041500210","parent":"6291041500213"},{"gtin":"6291041500214"}]}),
});
console.log(await res.json());

Example input

{
  "items": [
    {
      "gtin": "6291041500213"
    },
    {
      "gtin": "16291041500210",
      "parent": "6291041500213"
    },
    {
      "gtin": "6291041500214"
    }
  ]
}