QRCode, BarCode API

Decode and generate QRCodes and BarCodes.

  • Generate QRCodes
    • Raw text QRCode
    • URL QRCode
    • vCARD QRCode
    • WiFi QRCode
    • Phone / Tel QRCode
  • Generate BarCodes
    • Type code39
    • Type code93
    • Type code128
    • Type ean / ean13
    • Type Two of Five
  • Decode QRCodes form an image or pdf

If you have found this API useful but feel that a feature is missing, please share your suggestions with us via email.


Generate raw text QRCode

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"}'
FieldDescriptionHints
textText to be encoded into the QRCodeRequired
withBorderIf QRCode should have a border in a "backgroundColor" color.Default: false
backgroundColorQRCode background color.Format: #RRGGBBAA or #RRGGBB - Red,Green,Blue,Alpha, Default: #FFFFFFFF (white)
foregroundColorQRCode foreground color.Format: #RRGGBBAA or #RRGGBB - Red,Green,Blue,Alpha, Default: #000000FF (black)
errorRecoveryError correction information.Possible values: low, medium, high, highest, Default: medium

Example:

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.


Generate BarCode

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 parameterDescriptionHints
_TYPE_One of supported bar code typesRequired. One of supported bar code types: code39, code93, code128, twooffive, ean, aztec, pdf417, codabar, datamatrix
widthWidth of the BarCode in pixelsDefault: 300
heightHeight of the BarCode in pixelsDefault: 100

You can read more about different BarCode types.

Example (EAN type):

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.


Decode QRCodes from an image or PDF

Decode PDF example:

curl -H 'Accept:application/json' -H 'Content-Type:application/pdf' 'https://qrbar-code.intami.pl/decode' --data-binary @your-document.pdf

PNG image example:

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.


Supported output formats:

  • image/png
  • image/gif
  • image/webp
  • image/jpeg
  • image/tiff
  • image/bmp
  • application/pdf

Supported input formats:

  • image/png
  • image/gif
  • image/webp
  • image/jpeg
  • image/tiff
  • image/bmp
  • application/pdf

API Limits

This API has a free limit of 20 API requests per day. If you need more subscribe to one of our paid plans.
Paid plans are provided by RapidAPI.


Explore the API