Barcode REST API

 API Key

Parameters for the ActiveBarcode API

The ActiveBarcode API generates barcodes as SVG or PNG images, enabling compatibility with diverse applications. Use SVG for scalable, high-quality barcodes ideal for web and print applications requiring resizing without loss of clarity. Use PNG for fixed-size, raster-based images suitable for applications where broad compatibility with various platforms and software, including older systems, is needed.

SVG
https://api.activebarcode.net/v2/svg
PNG
https://api.activebarcode.net/v2/png

access=


You can evaluate the REST API by omitting the API key. The barcode is watermarked and intended for evaluation purposes only. Use the API key included in your order confirmation instead of the placeholder. Your API key will remain active until you cancel your subscription.
api.activebarcode.net/v2/svg?access=YOUR-KEY-HERE

text=


Sets the text that you want to display as a barcode. This may be an article number or a text message like "Hello World!".
Make sure this parameter is URL-Encoded.
You can enter control codes in human readable form like this: <CR>, <LF>, ...
api.activebarcode.net/v2/svg?text=ActiveBarcode
api.activebarcode.net/v2/svg?text=Hello%20World!
api.activebarcode.net/v2/svg?text=Hello<CR>World!
api.activebarcode.net/v2/svg?text=Hello<TAB>World!
api.activebarcode.net/v2/svg?text=(10)451214<FNC1>(37)20&typeno=108

typeno=


Barcode type as number that you want to use for encoding i.e.: 14 (=CODE128)
api.activebarcode.net/v2/svg?typeno=14

code=


Set barcode type as a human readable name that you want to use for encoding i.e.: CODE128
api.activebarcode.net/v2/svg?code=CODE128
Select the barcode by typeno or code. The typeno parameter takes precedence and is shorter, but less memorable.
typeno=code=Description
0ISBNISBN-10
1EAN13EAN 13
2EAN8EAN 8
3EAN5EAN 5
4EAN2EAN 2
5UPCAUPC A
6CODE39Code 39
7CODE25ICode 25 Interleaved
8CODABARCodabar
9CODE25Code 25 Industrial
10CODE39ECode 39 Extended
11CODE128ACode 128A
12CODE128BCode 128B
13CODE128CCode 128C
14CODE128Code 128
15EAN128EAN/UCC 128
16EAN99EAN 99
17UPCEUPC E
18POSTNETPostNet
19ROYALMAILRoyal Mail
20MSIMSI
21CODE93Code 93
22CODE93ECode 93 Extended
23PZN7PZN7
24IDENTCODEIdentcode
25LEITCODELeitcode
26CODE39CHECKSUMCode 39 Checksum
27CODE39ECHECKSUMCode 39 Extended Checksum
28EAN128AIEAN/UCC 128 AI
29EAN14EAN 14
30ITF14ITF-14
31EAN18EAN-18/NVE
32SSCC18SSCC-18
33CODABARCHECKSUMCodabar Checksum
34CODE25ICHECKSUMCode 25 Interleaved Checksum
35CODE25CHECKSUMCode 25 Industrial Checksum
36PDF417PDF417
37DATAMATRIXDataMatrix
38ISBN13ISBN-13
39ISBN13DUALISBN-13 Dual
40ISSNISSN
41ISMNISMN
42DATAMATRIXSQUAREDataMatrix Square
43DATAMATRIXRECTANGULARDataMatrix Rectangular
44DATAMATRIX10X10DataMatrix 10x10
45DATAMATRIX12X12DataMatrix 12x12
46DATAMATRIX8X18DataMatrix 8x18
47DATAMATRIX14X14DataMatrix 14x14
48DATAMATRIX8X32DataMatrix 8x32
49DATAMATRIX16X16DataMatrix 16x16
50DATAMATRIX12X26DataMatrix 12x26
51DATAMATRIX18X18DataMatrix 18x18
52DATAMATRIX20X20DataMatrix 20x20
53DATAMATRIX12X36DataMatrix 12x36
54DATAMATRIX22X22DataMatrix 22x22
55DATAMATRIX16X36DataMatrix 16x36
56DATAMATRIX24X24DataMatrix 24x24
57DATAMATRIX26X26DataMatrix 26x26
58DATAMATRIX16X48DataMatrix 16x48
59DATAMATRIX32X32DataMatrix 32x32
60DATAMATRIX36X36DataMatrix 36x36
61DATAMATRIX40X40DataMatrix 40x40
62DATAMATRIX44X44DataMatrix 44x44
63DATAMATRIX48X48DataMatrix 48x48
64DATAMATRIX52X52DataMatrix 52x52
65DATAMATRIX64X64DataMatrix 64x64
66DATAMATRIX72X72DataMatrix 72x72
67DATAMATRIX80X80DataMatrix 80x80
68DATAMATRIX88X88DataMatrix 88x88
69DATAMATRIX96X96DataMatrix 96x96
70DATAMATRIX104X104DataMatrix 104x104
71DATAMATRIX120X120DataMatrix 120x120
72DATAMATRIX132X132DataMatrix 132x132
73DATAMATRIX144X144DataMatrix 144x144
74GS1DATAMATRIXGS1-Data Matrix
75GS1DATAMATRIXSQUAREGS1-Data Matrix Square
76GS1DATAMATRIXRECTANGULARGS1-Data Matrix Rectangular
77GS1DATAMATRIX10X10GS1-Data Matrix 10x10
78GS1DATAMATRIX12X12GS1-Data Matrix 12x12
79GS1DATAMATRIX8X18GS1-Data Matrix 8x18
80GS1DATAMATRIX14X14GS1-Data Matrix 14x14
81GS1DATAMATRIX8X32GS1-Data Matrix 8x32
82GS1DATAMATRIX16X16GS1-Data Matrix 16x16
83GS1DATAMATRIX12X26GS1-Data Matrix 12x26
84GS1DATAMATRIX18X18GS1-Data Matrix 18x18
85GS1DATAMATRIX20X20GS1-Data Matrix 20x20
86GS1DATAMATRIX12X36GS1-Data Matrix 12x36
87GS1DATAMATRIX22X22GS1-Data Matrix 22x22
88GS1DATAMATRIX16X36GS1-Data Matrix 16x36
89GS1DATAMATRIX24X24GS1-Data Matrix 24x24
90GS1DATAMATRIX26X26GS1-Data Matrix 26x26
91GS1DATAMATRIX16X48GS1-Data Matrix 16x48
92GS1DATAMATRIX32X32GS1-Data Matrix 32x32
93GS1DATAMATRIX36X36GS1-Data Matrix 36x36
94GS1DATAMATRIX40X40GS1-Data Matrix 40x40
95GS1DATAMATRIX44X44GS1-Data Matrix 44x44
96GS1DATAMATRIX48X48GS1-Data Matrix 48x48
97GS1DATAMATRIX52X52GS1-Data Matrix 52x52
98GS1DATAMATRIX64X64GS1-Data Matrix 64x64
99NONENone
100GS1DATAMATRIX72X72GS1-Data Matrix 72x72
101GS1DATAMATRIX80X80GS1-Data Matrix 80x80
102GS1DATAMATRIX88X88GS1-Data Matrix 88x88
103GS1DATAMATRIX96X96GS1-Data Matrix 96x96
104GS1DATAMATRIX104X104GS1-Data Matrix 104x104
105GS1DATAMATRIX120X120GS1-Data Matrix 120x120
106GS1DATAMATRIX132X132GS1-Data Matrix 132x132
107GS1DATAMATRIX144X144GS1-Data Matrix 144x144
108GS1128GS1-128
109GTIN8GTIN-8
110GTIN12GTIN-12
111GTIN13GTIN-13
112GTIN14GTIN-14
113QRCODEQR Code
114QRCODEECCLEVELLQR Code ECC Level L
115QRCODEECCLEVELMQR Code ECC Level M
116QRCODEECCLEVELQQR Code ECC Level Q
117QRCODEECCLEVELHQR Code ECC Level H
118QRCODE21X21QR Code 21x21
119QRCODE25X25QR Code 25x25
120QRCODE29X29QR Code 29x29
121QRCODE33X33QR Code 33x33
122QRCODE37X37QR Code 37x37
123QRCODE41X41QR Code 41x41
124QRCODE45X45QR Code 45x45
125QRCODE49X49QR Code 49x49
126QRCODE53X53QR Code 53x53
127QRCODE57X57QR Code 57x57
128QRCODE61X61QR Code 61x61
129QRCODE65X65QR Code 65x65
130QRCODE69X69QR Code 69x69
131QRCODE73X73QR Code 73x73
132QRCODE77X77QR Code 77x77
133QRCODE81X81QR Code 81x81
134QRCODE85X85QR Code 85x85
135QRCODE89X89QR Code 89x89
136QRCODE93X93QR Code 93x93
137QRCODE97X97QR Code 97x97
138QRCODE101X101QR Code 101x101
139QRCODE105X105QR Code 105x105
140QRCODE109X109QR Code 109x109
141QRCODE113X113QR Code 113x113
142QRCODE117X117QR Code 117x117
143QRCODE121X121QR Code 121x121
144QRCODE125X125QR Code 125x125
145QRCODE129X129QR Code 129x129
146QRCODE133X133QR Code 133x133
147QRCODE137X137QR Code 137x137
148QRCODE141X141QR Code 141x141
149QRCODE145X145QR Code 145x145
150QRCODE149X149QR Code 149x149
151QRCODE153X153QR Code 153x153
152QRCODE157X157QR Code 157x157
153QRCODE161X161QR Code 161x161
154QRCODE165X165QR Code 165x165
155QRCODE169X169QR Code 169x169
156QRCODE173X173QR Code 173x173
157QRCODE177X177QR Code 177x177
158CODEPZN8PZN8

showtext=


Select whether the human readable line is visible or not. (1=visible, 0=invisible).
api.activebarcode.net/v2/svg?showtext=1
api.activebarcode.net/v2/svg?showtext=0

width=


Sets the width of the resulting image file.
api.activebarcode.net/v2/svg?width=250&backcolor=eeeeee
api.activebarcode.net/v2/svg?width=600&backcolor=eeeeee

height=


Sets the height of the resulting image file.
api.activebarcode.net/v2/svg?height=100&backcolor=eeeeee
api.activebarcode.net/v2/svg?height=200&backcolor=eeeeee

rotate=


Orientation (rotation) in degrees. Possible values: 0, 90, 180, 270
api.activebarcode.net/v2/svg?rotate=0
api.activebarcode.net/v2/svg?rotate=90&height=200&width=150
api.activebarcode.net/v2/svg?rotate=180
api.activebarcode.net/v2/svg?rotate=270&height=200&width=150

BorderWidth=


Border left and right. (free space)
api.activebarcode.net/v2/svg?BorderWidth=0&width=360&backcolor=eeeeee
api.activebarcode.net/v2/svg?BorderWidth=50&width=460&backcolor=eeeeee

BorderHeight=


Border top and bottom. (free space)
api.activebarcode.net/v2/svg?BorderHeight=0&backcolor=eeeeee
api.activebarcode.net/v2/svg?BorderHeight=25&backcolor=eeeeee

alignment=


Alignment of the barcode within the area to be displayed:
alignment=left, alignment=center, alignment=right.
If the parameter is not specified, the barcode is centered.
Alternatively, numerical values can be used:
alignment=0 (left), alignment=1 (center), alignment=2 (right).
api.activebarcode.net/v2/svg?alignment=left&backcolor=eeeeee
api.activebarcode.net/v2/svg?alignment=center&backcolor=eeeeee
api.activebarcode.net/v2/svg?alignment=right&backcolor=eeeeee

backcolor=


Background color as HTML color.
E.g. ffffff = white, 000000 = black
api.activebarcode.net/v2/svg?backcolor=ff0000
api.activebarcode.net/v2/svg?backcolor=00ff00
api.activebarcode.net/v2/svg?backcolor=0000ff

forecolor=


Foreground color as HTML color.
E.g. ffffff = white, 000000 = black
api.activebarcode.net/v2/svg?forecolor=ff0000
api.activebarcode.net/v2/svg?forecolor=00ff00
api.activebarcode.net/v2/svg?forecolor=0000ff

NotchHeightInPercent=


Height of the notches (EAN-13, UPC-A/E and others) in percent.
api.activebarcode.net/v2/svg?NotchHeightInPercent=50&code=CODEEAN13&text=123456789012
api.activebarcode.net/v2/svg?NotchHeightInPercent=100&code=CODEEAN13&text=123456789012

fontsize=


Font size of the barcode clear text line.
api.activebarcode.net/v2/svg?fontsize=8
api.activebarcode.net/v2/svg?fontsize=28

HTTP status response codes:

ActiveBarcode: Info
  • 200 OK Success: Indicates that the request has succeeded.
  • 403 Forbidden: Indicates that the request was understood but authorization was denied because the API key was incorrect.
  • 404 Resource Not Found: Indicates an incorrect URL, meaning that the requested URL could not be found.
  • 429 Too Many Requests: Indicates that the correct API key was provided, but the remaining requests for that API key have been exhausted.
  • 500 Internal Error: Indicates an unexpected condition that prevented fulfilling the request.
Response Header