API Navigation
Barcode Recognition API
Extract barcodes and QR codes from images and PDFs
Endpoint
POST https://api.leepow.com/barcodeRequest Body
Method 1: multipart/form-data
{
"File": "binary (image or PDF file)",
"BarcodeFormats": "string[] (optional)"
}Method 2: application/json
{
"FileBase64": "Base64 encoded file content",
"BarcodeFormats": [
"QR_CODE",
"CODE_128"
]
}File / FileBase64: PNG, JPG/JPEG, WebP, GIF, BMP, or PDF file
BarcodeFormats: QR_CODE, CODE_128, CODE_39, CODE_93, EAN_13, EAN_8, UPC_A, UPC_E, ITF, CODABAR, DATA_MATRIX, AZTEC, PDF_417, MAXICODE (optional, empty = all types)
Code Examples
curl --location 'https://api.leepow.com/barcode' \
--form 'File=@"/path/to/image.png"'Response
Returns an array of recognized barcodes with type, value and position
{
"code": 0,
"data": [
{
"type": "QRCode",
"value": "https://example.com",
"page": 1,
"x": 100,
"y": 200,
"width": 150,
"height": 150
}
]
}