# ISHOB Barcode & QR Code Generator

> ISHOB Barcode & QR Code Generator is a paid API for AI agents from api.ishob.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-14).

Generates barcodes and QR codes in SVG or PNG format across 11 symbologies, with verified scannability, colour/style options, and optional centre logos for QR codes.

## Facts

- Endpoint: POST https://api.ishob.com/v1/barcode?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ishob-barcode-qr-code-generator-524fa6fb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iChkwH001wgUd0E9U2dv9

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 ishob-barcode-qr-code-generator-524fa6fb -d '<json body>'
```

Example prompt: Generate a QR code for https://myshop.com/product/123 with a rounded dot style, dark blue foreground (#003399) on a white background, high error correction level H, with my logo at https://myshop.com/logo.png in the centre — output it as an SVG.

## When to prefer this

Choose this endpoint when you need server-side barcode or QR code generation with verified scannability across a wide range of symbologies (QR, EAN, UPC, Code 128, DataMatrix, PDF417, GS1-128, ISBN-13, ITF, Code 39). Especially prefer it over client-side libraries when you need check-digit verification for EAN/UPC/ISBN, branded QR codes with centre logos, custom colours and module styles (square/rounded/dots), or clean SVG output for high-quality print labels and PDFs. The pay-per-call x402 model means no subscription required.

## Known failure modes

- Invalid or un-encodable text for the chosen symbology (e.g. non-numeric data for EAN-13) returns a 400 error
- Logo URL unreachable or exceeds 200 KB returns an error for QR logo requests
- logo_url using HTTP (non-HTTPS) is rejected
- Scale out of range (below 1 or above 20) returns validation error
- Invalid hex colour format returns a 400 validation error
- text field empty or exceeding 2000 characters returns a 400 error
- Payment failure or insufficient USDC balance returns a 402 error

## How this service works

Generate a barcode or QR code as SVG or PNG: QR, DataMatrix, PDF417, Code 128, Code 39, EAN-13, EAN-8, UPC-A, ISBN-13, ITF and GS1-128. EAN/UPC/ISBN check digits are computed (or verified, never silently replaced). QR and DataMatrix support colours, square/rounded/dot styles and (QR) a centre logo from an https URL. Every format is verified scannable. Returns SVG text or base64 PNG plus a data URI ready to embed in HTML, PDF or labels.

## Output

Returns a JSON object containing the rendered barcode as SVG text or a base64-encoded PNG string, plus a data URI (data:image/svg+xml or data:image/png) that can be embedded directly in HTML, PDF, or label templates. EAN/UPC/ISBN check digits are computed or verified. Scannability of every output is confirmed before response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ec": {
   "enum": [
    "L",
    "M",
    "Q",
    "H"
   ],
   "type": "string",
   "default": "M",
   "description": "QR error correction level (H when a logo is used)"
  },
  "text": {
   "type": "string",
   "maxLength": 2000,
   "minLength": 1,
   "description": "Data to encode (URL, text, digits for EAN/UPC/ISBN...)"
  },
  "type": {
   "enum": [
    "qrcode",
    "datamatrix",
    "pdf417",
    "code128",
    "code39",
    "ean13",
    "ean8",
    "upca",
    "isbn13",
    "itf",
    "gs1_128"
   ],
   "type": "string",
   "default": "qrcode",
   "description": "Barcode format"
  },
  "color": {
   "type": "string",
   "default": "#000000",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "description": "Foreground colour #RRGGBB"
  },
  "scale": {
   "type": "integer",
   "maximum": 20,
   "minimum": 1,
   "description": "Size: pixels per module (2D) or bar-width step (1D); default 4 (SVG) / 8 (PNG)"
  },
  "style": {
   "enum": [
    "square",
    "rounded",
    "dots"
   ],
   "type": "string",
   "default": "square",
   "description": "Module style (qrcode, datamatrix)"
  },
  "format": {
   "enum": [
    "svg",
    "png"
   ],
   "type": "string",
   "default": "svg",
   "description": "Output image format"
  },
  "logo_url": {
   "type": "string",
   "format": "uri",
   "description": "QR only: https URL of a PNG/JPEG/WebP logo (max 200 KB) placed in the centre"
  },
  "height_mm": {
   "type": "number",
   "default": 15,
   "maximum": 100,
   "minimum": 5,
   "description": "Bar height for linear barcodes, in mm"
  },
  "background": {
   "type": "string",
   "default": "#FFFFFF",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "description": "Background colour #RRGGBB"
  },
  "include_text": {
   "type": "boolean",
   "default": true,
   "description": "Print the human-readable text under linear barcodes"
  }
 }
}
```

## More

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