Sign In
Products
ZPL PreviewBarcode GeneratorImage → ZPLZPL cheat sheetLabel DesignerTemplate Gallery
Developers
API QuickstartAPI ReferenceMCP ServerBulk GenerationWebhooksSDKs & ExamplesLimitsOn-Premise
Solutions
Logistics & ShippingE-CommerceERP & WMSManufacturingRetailHealthcare & LaboratoryAll solutions
Tools
ZPL Diagnostics HubZPL DebuggerSize & DPI AnalyzerDPI ConverterBarcode fit calculatorShipping Label AnalyzerFont InspectorOrientation DebuggerCalibration AssistantPrinter Compatibility CheckerBarcode Readability CheckerPrinter Language DetectorThermal Printer Test PackZPL ToolsEPL ToolsTSPL ToolsCPCL ToolsAll ToolsGuidesPricing
Language
EnglishTürkçeDeutsch
HomeDocumentationBarcode API

Barcode API

Produce 14 barcode types as PNG/SVG/PDF with GET /v1/barcodes. Parameters, colour, rotation and no-code usage.

GET /v1/barcodes produces a single barcode as an image. Because it works with a single endpoint and query parameters, it can be embedded in an <img src> tag; it also works in code-free environments such as Excel or Google Sheets.

Parameters

ParameterDescriptionDefault
typeBarcode type (code)code128
dataData to encodethe type's sample
xdimModule width (1-10)3
heightHeight (linear barcodes)automatic
ecError correction (2D: L/M/Q/H)automatic
quietQuiet zone (module)per type
hrtHuman-readable text (below/none)below
fgForeground colour (RRGGBB)000000
bgBackground (RRGGBB or transparent)FFFFFF
rotRotation (0/90/180/270)0
formatOutput (png/svg/pdf)png
keyAPI key (raises the limits)none

Supported types

QR Kod, EAN-13, Code 128, Data Matrix, EAN-8, UPC-A, UPC-E, Code 39, ITF-14, PDF417, Aztec, Codabar, Code 93, MSI

Example

cURL
curl "https://api.labelixa.com/v1/barcodes?type=datamatrix&data=DM-4821&xdim=5&fg=2563eb" > code.png

Sample QR barcode

Error handling

When invalid data or type is given, the API returns the error as an image with HTTP 200 and explains it in the X-Warnings header. This way an <img> always shows a visible result.