Developers

Barcode & QR Code API

The same barcode engine that powers this site is available as a simple HTTP API. Generate any supported symbology as PNG, SVG, PDF or EPS from your own application.

Overview

Barcody is built on the plusecode barcode API. It renders every symbology the Barcode Studio and the GS1 QR converter support. You can call it directly from your own backend with an API key.

Endpoint
POST https://api.barzig.com/api/v1/barcode/generate

Send your key in the X-API-Key header. Parameters may be sent as a JSON body or query string. The response is the rendered barcode in the requested image format.

Parameters
FieldTypeDescription
barcodestringThe data to encode (e.g. a GTIN, URL or GS1 element string).
barcodeTypestringSymbology: upca, ean13, ean8, code128, code39, itf14, qrcode, pdf417, aztec, gs1-128, gs1-datamatrix, gs1-qr and more.
imageFormatstringOutput format: png, svg, pdf, eps or jpeg.
humanReadablebooleanPrint the human-readable text under the bars (where applicable).
dpinumberRaster resolution for png/jpeg output.
quietZonenumberQuiet-zone (clear margin) size in modules.
colorstringForeground colour as a hex value.
Example request
curl -X POST "https://api.barzig.com/api/v1/barcode/generate" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "barcode": "00012345678905",
    "barcodeType": "gs1-qr",
    "imageFormat": "svg",
    "humanReadable": true
  }' --output barcode.svg

Getting a key

The API requires a key. To request one, email plusecodeteam@barzig.com with a short description of your use case. Rate limits apply per key. Note: the API key used by this website is injected server-side and is not usable outside the site — you will receive your own key for direct integration.