# Synapse Barcode Generator

> Synapse Barcode Generator is a paid API for AI agents from anibalb.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Generates a barcode (e.g. EAN-13) as an SVG given a value, returning the rendered image and validation status

## Facts

- Endpoint: GET https://anibalb.duckdns.org/x402/barcode?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/synapse-barcode-generator-59ac36c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EAoAQzp2JVx8isJiRuSzP

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability synapse-barcode-generator-59ac36c7
```

Example prompt: Can you generate an EAN-13 barcode for the product number 4006381333931 and give me the SVG so I can embed it on the packaging page?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call barcode generator with no account setup, returning ready-to-use SVG output. Ideal for one-off or low-volume barcode generation in automated pipelines, product catalog tooling, or packaging workflows where EAN-13 (and similar) SVG barcodes are needed instantly without managing API keys.

## Known failure modes

- Invalid or malformed barcode value (wrong digit count, failed checksum) — returns valid: false or error response
- Missing required query parameter for the barcode value — likely 400 Bad Request
- Payment failure via x402 protocol — 402 Payment Required before barcode is returned
- Unsupported barcode type requested — may return an error or fall back to a default type

## How this service works

Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.

## Output

Returns a JSON object containing: an SVG string of the rendered barcode image, the detected or specified barcode type (e.g. 'ean13'), a boolean 'valid' field indicating whether the input value passes checksum/format validation, and the encoded value string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "svg": "<svg ...>...</svg>",
  "type": "ean13",
  "valid": true,
  "value": "4006381333931"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/synapse-barcode-generator-59ac36c7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anibalb.duckdns.org](https://www.zero.xyz/host/anibalb.duckdns.org/llms.txt)
