# readbarcode: Read Barcode – Decode Barcodes from Images

> readbarcode (Read Barcode – Decode Barcodes from Images) is a 1001fx API function in the group Images: POST https://api.1001fx.com/images/readbarcode, 3 credits per call. It works as a ready-made module in Make or as a plain HTTP call.

Reads the barcode in an image (photo, scan, screenshot): EAN, UPC, Code 128/39/93, ITF, Codabar, DataMatrix, PDF417, Aztec and QR codes. Returns the content and the barcode type.

- Group: Images
- Endpoint: `POST https://api.1001fx.com/images/readbarcode`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: multipart/form-data
- Credits: 3 credits per call
- Ready-made in: Make
- Docs: https://1001fx.com/functions/readbarcode

## Parameters

- `file` (file, optional) – File: The image (PNG, JPEG, BMP, TIFF, GIF). Either file or fileUrl.
- `fileUrl` (string, optional) – File URL: Public URL of the image. Either file or fileUrl.

## Example: Read Barcode – Decode Barcodes from Images

```bash
curl -X POST 'https://api.1001fx.com/images/readbarcode' \
  -H 'X-API-KEY: YOURSECRETAPIKEY'
```
