Read barcodes and 2D codes (EAN, UPC, Code 128, QR, DataMatrix, PDF417) from a photo or PDF: type, content, position; GS1 labels split into GTIN, batch, dates, SSCC.
export KEY=bigapi_… # your key, once per terminal
curl -X POST https://api.bigapi.dev/v1/barcode/read -H "Authorization: Bearer $KEY" -F 'file=@label.jpg'
New keys come with 100 free operations, no signup: curl -X POST https://api.bigapi.dev/v1/keys. Failed calls cost nothing.
| Name | Meaning |
|---|---|
file required | Photo or scan (PNG, JPEG, WebP, TIFF) or a PDF of up to 20 pages, e.g. a shipping label, delivery note or product packaging. |
first | PDF only: first page to read. Default: page 1 |
last | PDF only: last page to read (at most 20 pages per call). Default: last page of the PDF (up to 20 pages from first) |
Returns application/json. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).
Connect BiGapi as an MCP server: https://api.bigapi.dev/mcp (hosted) or npx -y @bigapi/mcp (local). Then ask in plain words; the agent finds barcode_read on its own.