Design & Assets

Barcode generator for product, shipping, and inventory labels

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.

Price: $0.01 per call, paid in USDC via the x402 protocol (see the x402 security scheme).

get/api/barcode

Request

  • Base URL: https://api.webbersites.com
  • URL: https://api.webbersites.com/api/barcode
  • Auth: API key in header X-PAYMENT

Query parameters

datastring required

Value to encode (required, up to 500 chars; digits-only types validate length + check digit)

typestring

Symbology: code128 (default), ean13, ean8, upca, upce, code39, itf14, gs1-128, codabar, datamatrix, pdf417, aztec

scalenumber

Module width multiplier for the PNG (1-8, default 3)

heightnumber

Bar height for 1D types (4-60, default 12)

text_linestring

Set to 'false' to omit the human-readable text under the bars

darkstring

Hex color of the bars (default #000000)

lightstring

Hex background color (default #ffffff)

Response

Success

datastring
typestring
svgstring
png_base64string
data_uristring

Changes

No recorded changes to this operation across all 1 revision of this API.