# WebberSites Barcode Generator API

> WebberSites Barcode Generator API is a paid API for AI agents from api.webbersites.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Generates print-ready barcodes in SVG and PNG formats for a wide range of 1D and 2D symbologies including Code 128, EAN-13, UPC-A, QR, ITF-14, and more

## Facts

- Endpoint: GET https://api.webbersites.com/api/barcode
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/webbersites-barcode-generator-api-85203b10
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rojMKsxoEjUiwjgBSb0ky

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 webbersites-barcode-generator-api-85203b10
```

Example prompt: Generate an EAN-13 barcode for the product number 5901234123457 — I need it as SVG and PNG, with the human-readable digits shown underneath.

## When to prefer this

Use this endpoint when you need server-side, deterministic barcode generation with no external dependencies — ideal for generating print-ready labels (product, shipping, inventory) in SVG+PNG without any client-side library. Supports the widest range of retail and logistics symbologies (EAN-13, UPC-A, ITF-14, GS1-128, Code 128, DataMatrix, PDF417, Aztec, Codabar). For QR codes specifically, use the sibling /api/qr endpoint.

## Known failure modes

- 400 error when data is invalid for the chosen symbology (e.g. wrong digit count for EAN-13 or UPC-A, bad check digit)
- 400 error when required 'data' query parameter is missing
- 400 error when an unsupported symbology type is specified
- Overly long data strings (>500 chars) may be rejected
- Malformed hex color values for dark/light params may produce unexpected results

## How this service works

Barcode generator for product, shipping, and inventory labels: GET ?data=&type= and receive a print-ready SVG plus PNG (base64) and a data: URI. Types: code128 (default), ean13, ean8, upca, upce, code39, itf14, gs1-128, codabar, datamatrix, pdf417, aztec. Check digits, quiet zones, and the human-readable line are handled per spec; invalid input for a symbology returns a clear 400. Deterministic, no network. QR codes live at /api/qr.

## Output

Returns a JSON object containing: an SVG string of the barcode, a base64-encoded PNG, and a data: URI — all print-ready with check digits, quiet zones, and a human-readable text line handled automatically per the chosen symbology's spec.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "data"
     ],
     "properties": {
      "dark": {
       "type": "string",
       "description": "Hex color of the bars (default #000000)"
      },
      "data": {
       "type": "string",
       "description": "Value to encode (required, up to 500 chars; digits-only types validate length + check digit)"
      },
      "type": {
       "type": "string",
       "description": "Symbology: code128 (default), ean13, ean8, upca, upce, code39, itf14, gs1-128, codabar, datamatrix, pdf417, aztec"
      },
      "light": {
       "type": "string",
       "description": "Hex background color (default #ffffff)"
      },
      "scale": {
       "type": "number",
       "description": "Module width multiplier for the PNG (1-8, default 3)"
      },
      "height": {
       "type": "number",
       "description": "Bar height for 1D types (4-60, default 12)"
      },
      "text_line": {
       "type": "string",
       "description": "Set to 'false' to omit the human-readable text under the bars"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "svg": {
       "type": "string"
      },
      "data": {
       "type": "string"
      },
      "type": {
       "type": "string"
      },
      "data_uri": {
       "type": "string"
      },
      "png_base64": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "svg": "<svg …>",
  "data": "012345678905",
  "type": "upca",
  "data_uri": "data:image/png;base64,…",
  "png_base64": "iVBORw0…"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/webbersites-barcode-generator-api-85203b10/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.webbersites.com](https://www.zero.xyz/host/api.webbersites.com/llms.txt)
