xtract.bot

Image detect barcode

Try it interactively →
POST /api/image-detect-barcode

Detect and decode 1D barcodes in an image. Supports EAN-13, UPC, Code 128, Code 39, ITF, and Codabar. Returns each code's text plus its bounding rectangle.

Detects and decodes 1D barcodes in an image. Supports the common retail formats: EAN-13, EAN-8, UPC-A, UPC-E, plus industrial Code 128, Code 39, ITF, Codabar. Returns each code's text, format name, and bounding rectangle. Multi-symbol detection is on by default — you can scan a whole shelf in one shot.

Inputs

NameTypeDefaultDescription
image*fileJPEG, PNG, WebP, or BMP image bytes.
multibooleantrueDetect every barcode in the image (true) or stop at the first one found (false).

Response

Modes: json. Cache: yes (24h TTL).