16trust / 100

Barcode Generate

by Vextorium in Developer tools

x402 APIFailing, checked 4 h ago

Generate a barcode as SVG (EAN-13, EAN-8, UPC-A, ISBN, ISSN, Code 128, Code 39, ITF, GS1-128...) for labels and products, computing the check digit when missing.

POST https://api.vextorium.com/v1/barcode-generate

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
0.0%
Response time
- typical, - slowest 5%
Last check
4 h ago: Amount "0.003" is not in atomic token units
Next check
any minute now

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://api.vextorium.com/v1/barcode-generate' \
  -H 'content-type: application/json' \
  --data-raw '{"code":"841007647234","type":"ean13"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.vextorium.com%2Fv1%2Fbarcode-generate
const res = await pay("https://api.vextorium.com/v1/barcode-generate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"code\":\"841007647234\",\"type\":\"ean13\"}",
});
console.log(await res.json());

Example input

{
  "code": "841007647234",
  "type": "ean13"
}

Example output

{
  "base64": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZwogIFBVQkxJQyAnLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4nCiAgJ2h0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCc+CjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0NC4zNTBtbSIgaGVpZ2h0PSIyMy43…",
  "bytes": 3350,
  "data_uri": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZwogIFBVQkxJQyAnLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4nCiAgJ2h0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCc+CjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0NC…",
  "format": "svg",
  "full_code": "8410076472342",
  "type": "ean13"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoAmount "0.003" is not in atomic token units402221 ms$0.003
9 h agoAmount "0.003" is not in atomic token units40277 ms$0.003
13 h agoAmount "0.003" is not in atomic token units402101 ms$0.003
17 h agoAmount "0.003" is not in atomic token units40290 ms$0.003
21 h agoAmount "0.003" is not in atomic token units40298 ms$0.003
26 h agoAmount "0.003" is not in atomic token units40293 ms$0.003
30 h agoAmount "0.003" is not in atomic token units40273 ms$0.003
34 h agoAmount "0.003" is not in atomic token units40272 ms$0.003
38 h agoAmount "0.003" is not in atomic token units40285 ms$0.003
41 h agoAmount "0.003" is not in atomic token units402136 ms$0.003
46 h agoAmount "0.003" is not in atomic token units40275 ms$0.003
2 days agoAmount "0.003" is not in atomic token units40282 ms$0.003
2 days agoAmount "0.003" is not in atomic token units402216 ms$0.003
2 days agoAmount "0.003" is not in atomic token units40278 ms$0.003
3 days agoAmount "0.003" is not in atomic token units40277 ms$0.003