DocsOCR Barcode API
OCR Barcode API
Scan and decode 1D barcodes and 2D barcodes (such as QR codes) from image files instantly.
POST
http://178.105.157.85:3000/api/ocr?type=BARCODERequest Example
cURL
curl -X POST \
"http://178.105.157.85:3000/api/ocr?type=BARCODE" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: multipart/form-data" \
-F "image=@/path/to/document.jpg"Authentication Header
Authorization: Bearer YOUR_API_KEY
Generate an API key from your Dashboard → API Keys panel. For testing server/sandbox local environments, key verification is bypassed.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
image | File | Yes | Image containing one or multiple barcodes (JPG, PNG) |
detect_multiple | Boolean | No | Extract values from multiple detected barcodes |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | String | Yes | Bearer YOUR_API_KEY (Optional for local sandbox) |
Content-Type | String | Yes | multipart/form-data |
Response Example
JSON
{
"success": true,
"data": {
"barcode_type": "EAN-13",
"barcode_value": "8997009511014"
},
"confidence": 100,
"processing_time": 0.18
}Rate Limit
Depending on your plan. Check your dashboard for current limits.