# Barcode Reader API: Scan EAN, UPC, Code 128 from Images (`eliai/barcode-reader`) Actor

Read barcodes from product photos and other images. Give image URLs or data URIs, get each barcode's number, format (EAN-13, UPC-A, Code 128, Code 39, ITF, DataMatrix, PDF417, QR) and position. For e-commerce catalogs, inventory and AI agents. One row per image; no barcode found, no charge.

- **URL**: https://apify.com/eliai/barcode-reader.md
- **Developed by:** [Broke to Built](https://apify.com/eliai) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 image with barcode reads

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Barcode Reader API: Scan EAN, UPC, Code 128 from Images

**Give image URLs or data URIs. Get every barcode in each image: its number or text, its format and where it sits. One JSON row per image.**

| You give it | You get back | You pay (Free plan) |
|---|---|---|
| Image URLs (PNG, JPG, WebP, GIF, AVIF, TIFF) or `data:` URIs | Every barcode found: text, format (EAN-13, EAN-8, UPC-A, UPC-E, Code 128, Code 39, Code 93, ITF, Codabar, DataMatrix, PDF417, Aztec, QR), position | **$0.002 per image read** |

Images with no readable barcode are written to the dataset with the reason and are never charged.

#### Try it in one click

The input form is pre-filled with a sample EAN-13 barcode. Press **Start**.

```json
{}
```

Real output from that input (run locally on 2026-11-11, position shortened):

```json
[
  {
    "ok": true,
    "count": 1,
    "text": "5901234123457",
    "format": "EAN13",
    "barcodes": [{ "text": "5901234123457", "format": "EAN13", "symbology": "]E0" }]
  }
]
```

### Who this is for

- **AI agents** handed a photo of a product, shelf label or parcel that need the barcode number to look up price or stock (most models cannot read barcodes reliably).
- **E-commerce and inventory teams** turning product photos into GTIN/EAN/UPC lists in bulk.
- **Logistics and back-office automations** reading Code 128, ITF and PDF417 off shipping labels, tickets and documents.

### Input

| Field | What it does |
|---|---|
| `image` | One image URL or data URI. |
| `imageUrls` | Many image URLs at once. |
| `maxFileSizeMb` | Skip images larger than this. |

Each image is read as-is, then upscaled, with rotated and inverted codes also tried. Up to 50 barcodes per image, 200 images per run.

### Output

`ok: true` rows give `count`, the first code's `text` and `format`, and the full `barcodes` list. `ok: false` rows carry an `error` and are not charged.

### Pricing

Pay per event: **$0.002 per image with at least one barcode read** plus a tiny $0.00005 start fee. No subscription.

Built by [Broke to Built](https://broke2builtai.com). Questions: eli@broke2builtai.com.

# Actor input Schema

## `image` (type: `string`):

One image URL (PNG, JPEG, WebP, GIF, AVIF, TIFF or SVG) or a data:image/...;base64 URI of a product label, shipping label, ticket or document. The default is a sample EAN-13 barcode.

## `imageUrls` (type: `array`):

Many image URLs or data: URIs, one result row each.

## `maxFileSizeMb` (type: `integer`):

Larger downloads are skipped, recorded and never charged.

## Actor input object example

```json
{
  "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAT8AAACDCAYAAAD72RwRAAAAHnRFWHRTb2Z0d2FyZQ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iSd27avV8Pvggw/qPy6//PIwIW3BiNqO5uLtDjnkkOqzzz6r/245xYW2j51epHDOOed0FdWOKn/44Yf67x999FGnmPE+X3vttUa53nLLLdUMM8xQfy/+9USa75lnnqm/Z0PZBPz+++9Xf/31V+fvduR62WWXdU7Xw3azzTZbhw8Gdqq40UYb1fucfvrpq1dffRXah8UZGnjWWWetvv/++0bfUwy/wn97/mPkmhUBa665Zu2/93JFq+H38ssv13+0I59Roa2o33nnnWqmmWaqt7nuuusG+jj11FO7xPrTTz/13e7PP//sXEsYRGwMu84Ttht2RGlHqHaEGOe0xBJLVM8991yr5jM89dRT1e23395piEEwYdspf/Bx9tlnQz5iWGPHR9nWQPfeey+8n3333bfeh10Tawpm+BX+/4+2/MfINSsMN954Y1cv//LLL11/bzX8Hn/88fqPdqNgVGgr6pNOOqn++3bbbZf0YcJZYYUV6u0feeSRvtvZdZywzbBrIUZ6ELb9qqeuJ9qF9Tgf27cdHfz888+tm68p7OZM8LHTTju12ofltttuu9X7sdMOO4pCYUfl4dqsHbXYtbemYIZf4f9fMPzHyDUrvvzyy87AC77t6LoXrYbf3XffXf9xhx128M4DDrYXW2+99dBhFsPuOIXtzz///L7b2C9z2MbuZg3D9ttvX2//+uuvD9zO7mSF7Q466KD69GgUzRefotlpWBtYzGEfdv3z6quvbrUfu0EU9mNHIAiY4Vf4/xcM/zFyzAq7yRKf8tsNKjtT60Wr4WcXXOOEbMqOAm1FbReWw9+//fbboX5uvvnmevs999yz7zb2yxy2sVOiYTj99NPr7a+99tqB29kRpS2ZufXWW7vso2g+uyAcfOy4447w94877riuWtjF6TawIy1bBjI24U75e++9B32fGX6Ff57/GDlmRXzZwo5e7cZVP7QafpdccknXBvYxsuyCph1l2d2qpktFELQVdXx7vMnhe3ytYJ999um7zTrrrFNv88UXXwzdpw28sH2bu2bezWe/lvGPhN28QRDf/LGPXTtti/jIu83pHzP8BqHw3w6jnhUPPfRQ15Ki1NKhVsPPzp97E+r9rLLKKq0XRbLB9sJ+ccLfh93BrXquEV500UV9t4kHqgl3GO644456e7vTjMKz+eyUwI40wv5t4bctUWgKE1xcA1sXZhfc7SJ7E25i/Pjjj11Lj+yCOYpJbfhNbvzHGOWssCPWBRZYoN7vsGUzrYafnTrajYNlllmmWnXVVTurv/utlbMJ3HY1PBNsL84888z677Yy/o8//hjow0Qe3/Cw06B+COv47IJyE9jQDfu0C9IovJrPLmzH10fsc9VVV0H7uPzyywcKe7HFFutcy2qKuFabb775uL/b8othg2FSGn6TI/8xRjkrtt12264+T91dr9TP9hopd955Z4fw8GW7u8k+3oUG2wtbRhAvS7HHi/o96mND0f4W789+TfrB8hqbcE2kCeyXLeyzzamER/NZrexRvDjfNteJLDa73mRPHtgvb++TDLaQ98orrxy6n19//bWzeDd878knn+z6u/0Q2Y+NrTn76quvBu5nUhl+kyv/TaCeFTfddFO9H1uTaU+mDIN0+AUYifEUtl82BRhRW+HCYzpjE647WFx2aGyLm+1or/ext1TcYelK0+Fnz/6G/Q5bbtMPyuaz06x4WcXYhEWsw54saAqrv90lj9dW2lqz3mcre2GXGML2dk21F8ccc0z9994bEjEm9uE3ufOPxqqYFfEjf01WX1Seb3Wxw/lAvhXW4wYICruLO/fccw88Rej9PP300wP3ZTmNTbi+0gTxkZ9dj0Ghaj674RPfrBmbsPj07bffbr3PQbBTpPjJhbXWWmvgtr2Lxvstyj366KPrv7dZu8ag8O/HPzsr7G50ONq1I0n1rGn1DqB4GqtOfVnY4bpdcxs2BIf9AsULKMNasBTsekbYvs0yBkXz2ZMG9t349MCOENCL4gjuv//+Ll4HPbRu69HCNnYU3g+T+vAr/A8GMyviJULo8/NN0Gr47b777nVQdrdzYoMtUbE7Zffdd9+4i8apoz7DkksuWW9rd8iGwW65h+332GMPOFa2+Wx9ld1FDPuwi8/22J83rLHjI4pHH32073a29CFsY9e9Pv3003GfeAGvndqYzU6bRoHCvy//bWeFHeXZq7DCdz04pY/87FdvYoXd/IhvkR9wwAFDv2N3rcL2L7zwwtDtTznllHr73rdLNA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mssezbJrT3Y5If6nUB6wplM2NIrCP8b/KGaFVy8HlH9xX1BQ8J/E/wBXaSHw6NsSMQAAAABJRU5ErkJggg==",
  "imageUrls": [],
  "maxFileSizeMb": 15
}
```

# Actor output Schema

## `results` (type: `string`):

One row per input. Export as JSON, CSV or Excel from the dataset view.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("eliai/barcode-reader").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("eliai/barcode-reader").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call eliai/barcode-reader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,eliai/barcode-reader"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/MQRctMlrMD3NaDtfM/builds/pitLPxVcfEcQKe6m1/openapi.json
