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.
|
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 = blackapi.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 = blackapi.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
|