barfly API

GET Request Format

http[s]://domain.name
/bctype/data.ext

Supported bctype (barcode type):

  • code39: Code39
  • code128: Code128
  • qrcode: QR Code
  • dmtx: Data Matrix
  • isis: i1 iSis

Supported ext (filetype extension):

  • svg: Scalable Vector Graphics
  • png: Portable Network Graphics
  • jpg: JPEG (Joint Photographic Experts Group)
  • gif: Graphics Interchange Format
  • bmp: Bitmap
  • tif: TIFF (Tagged Image File Format)

cURL Example:

$ curl -Ls 
http[s]://domain.name
/qrcode/barcodedata.png

cURL Example With Query String:

$ curl -Ls '
http[s]://domain.name
/select?bctype=qrcode&bcdata=barcodedata&ftype=png'

POST Request Format

http[s]://domain.name
/select

Required form data:

  • bctype: barcode type
  • bcdata: barcode data to be encoded
  • ftype: filetype extension

cURL Example:

$ curl -Ls 
http[s]://domain.name
/select \ -X POST \ -H 'Content-Type:application/x-www-form-urlencoded' \ --data 'bctype=qrcode&bcdata=barcodedata&ftype=png'