OCR Active

Code Reader API

Read and decode barcodes and QR codes from images. Supports all major 1D and 2D barcode formats including QR Code, Data Matrix, EAN, UPC, Code 128, and more.

https://code-reader.localapi.ro
< 500ms Response Time
1/sec Rate Limit
None Auth Required
Free Pricing

Quick Start

Request
curl -X POST "https://code-reader.localapi.ro/read" \
  -F "[email protected]"
Request
import requests

with open("barcode.png", "rb") as image:
    response = requests.post(
        "https://code-reader.localapi.ro/read",
        files={"image": image}
    )

data = response.json()
for code in data["codes"]:
    print(f"Type: {code['type']}, Data: {code['data']}")
Request
const formData = new FormData();
formData.append("image", imageFile);

const response = await fetch("https://code-reader.localapi.ro/read", {
  method: "POST",
  body: formData
});

const data = await response.json();
data.codes.forEach(code => {
  console.log(`Type: ${code.type}, Data: ${code.data}`);
});

Response

200 OK application/json
{
  "codes": [
    { "type": "QR_CODE", "data": "https://localapi.ro" }
  ]
}

Available Endpoints

POST /read

Read barcodes and QR codes from an uploaded image.

Parameters

Parameter Type Required Description
image file Yes Image file (PNG, JPEG, etc.)
GET /health

Check service health and availability status.

Error Codes

Code Description
400 Invalid request - missing image
415 Unsupported media type
422 No barcode found in image
429 Rate limit exceeded
500 Internal server error