Decode and generate QRCodes and BarCodes.
If you have found this API useful but feel that a feature is missing, please share your suggestions with us via email.
curl -H 'Accept:image/png' 'https://qrbar-code.intami.pl/generate/qr/text' --output qrCode.png --data '{"text":"your text here", "withBorder":true, "foregroundColor":"#ff0000", "backgroundColor":"#00fafa", "errorRecovery":"high"}'
Field | Description | Hints |
---|---|---|
text | Text to be encoded into the QRCode | Required |
withBorder | If QRCode should have a border in a "backgroundColor" color. | Default: false |
backgroundColor | QRCode background color. | Format: #RRGGBBAA or #RRGGBB - Red,Green,Blue,Alpha, Default: #FFFFFFFF (white) |
foregroundColor | QRCode foreground color. | Format: #RRGGBBAA or #RRGGBB - Red,Green,Blue,Alpha, Default: #000000FF (black) |
errorRecovery | Error correction information. | Possible values: low, medium, high, highest, Default: medium |
curl -H 'Accept:image/png' 'https://qrbar-code.intami.pl/generate/qr/text' --output qrCode.png --data '{"text":"your text here", "withBorder":true, "foregroundColor":"#ff0000", "backgroundColor":"#00fafa", "errorRecovery":"high"}'
For all generations you can specify requested output format. The default one is image/png. All supported output formats.
curl -H 'Accept:image/png' "https://qrbar-code.intami.pl/generate/bar/_TYPE_" --output barCode.png --data '{"data":"123456789012", "width":350, "height":100 }'
Field / URL parameter | Description | Hints |
_TYPE_ | One of supported bar code types | Required. One of supported bar code types: code39, code93, code128, twooffive, ean, aztec, pdf417, codabar, datamatrix |
width | Width of the BarCode in pixels | Default: 300 |
height | Height of the BarCode in pixels | Default: 100 |
You can read more about different BarCode types.
curl -H 'Accept:image/png' "https://qrbar-code.intami.pl/generate/bar/ean" --output barCode.png --data '{"data":"123456789012", "width":350, "height":100 }'
For all generations you can specify requested output format. The default one is image/png. All supported output formats.
curl -H 'Accept:application/json' -H 'Content-Type:application/pdf' 'https://qrbar-code.intami.pl/decode' --data-binary @your-document.pdf
curl -H 'Accept:application/json' -H 'Content-Type:image/png' 'https://qrbar-code.intami.pl/decode' --data-binary @your-image.png
It is important to set proper Content-Type header that corresponds to your input. All supported input formats.