# QR Code Generator & Reader - Bulk QR Codes & Barcodes (`helenisapi/qr-code-generator-reader`) Actor

QR code generator and reader in bulk: texts, links, Wi-Fi, vCard or SEPA payloads in, PNG or SVG QR codes and barcodes out, each scan-tested. Or decode codes from images.

- **URL**: https://apify.com/helenisapi/qr-code-generator-reader.md
- **Developed by:** [Helenis API](https://apify.com/helenisapi) (community)
- **Categories:** Developer tools, Automation, E-commerce
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.50 / 1,000 code generated

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/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

## 🔳 QR Code Generator & Reader - Bulk QR Codes & Barcodes

**Paste a list, get a folder of codes that scan.** Every line becomes a **QR code** or a **barcode**, as **PNG or SVG**, saved in the run's key-value store with a **public link** in the dataset. Structured codes too: **Wi-Fi logins**, **vCards**, **SEPA payments** (IBAN checked), **emails, SMS, WhatsApp, map locations, calendar events**. Your **colours** and **logo** if you want them. **Each code is decoded back before it is saved**, so a code that would not scan never reaches your print run.

Switch to **Read** mode to do the opposite: give image links (or another actor's dataset) and get **every QR code and barcode** in each image, with its content **parsed** (Wi-Fi fields, contact, GS1 batch and expiry dates, EAN/UPC with check digit, payment details).

No API key, no design tool: add lines and hit **Run**.

***

### ⚡ Why this actor?

- ✅ **Scan-tested codes:** each image is decoded back and compared with what you asked for before it is stored.
- 🧩 **Every payload phones act on:** links, text, Wi-Fi, vCard and MeCard contacts, email, SMS, WhatsApp, phone calls, geo locations, calendar events.
- 💶 **SEPA payment codes (EPC / GiroCode):** IBAN length and checksum verified, so a typo never reaches an invoice.
- 📊 **16 barcode types:** EAN-13, EAN-8, UPC-A, UPC-E, ISBN, ITF-14 (check digits computed), Code 128, GS1-128, Code 39, Code 93, ITF, Codabar, Data Matrix, GS1 DataMatrix, PDF417, Aztec.
- 🎨 **Brand-ready:** dark and light colours with a contrast check, transparent background, logo in the centre, PNG or SVG.
- 📷 **A reader in the same actor:** several codes per image, rotated, inverted or low contrast, with parsed fields.
- 💸 **Pay per code or per image:** failed items cost nothing.

***

### 🏆 How it compares

| Feature | This actor | Typical QR actor | Barcode lookup actor |
|---|:---:|:---:|:---:|
| 🔳 QR codes in bulk | ✅ | ✅ | ❌ |
| ✅ Every code scanned back | ✅ | ❌ | — |
| 💶 SEPA payment with IBAN check | ✅ | ⚠️ Rare | ❌ |
| 📊 EAN/UPC with check digit, GS1-128, DataMatrix | ✅ | ⚠️ Some | ❌ |
| 🖼️ Logo and colours, PNG and SVG | ✅ | ⚠️ Varies | ❌ |
| 📷 Reads codes from photos, parsed | ✅ | ⚠️ Text only | ❌ |
| 🛒 Product name from a barcode | ❌ | ❌ | ✅ |

***

### 📊 What data do you get?

**Generate mode:** one row per code.

| Field | Description | Example |
|---|---|---|
| `imageUrl` | Public link of the PNG or SVG in the key-value store | `https://api.apify.com/v2/key-value-stores/abc123/records/code-00004.png` |
| `key` | Its key in the store | `code-00004.png` |
| `input` | The line or payload you gave | `https://apify.com` |
| `success` / `error` | `true`, or the reason it failed (not charged) | `true` |
| `symbology` | `qr_code`, `micro_qr_code`, `ean_13`, `code_128`... | `qr_code` |
| `content` | The exact text inside the code | `WIFI:T:WPA;S:Cafe Lumiere;P:croissant42;;` |
| `version` / `errorCorrection` | QR version and level | `3` / `M` |
| `checkDigit` | EAN/UPC/ISBN/ITF-14 check digit | `1` |
| `verified` | Decoded back and identical | `true` |
| `width` / `height` | Pixels | `400` / `400` |

**Read mode:** one row per image.

| Field | Description | Example |
|---|---|---|
| `imageUrl` | The image you sent | `https://upload.wikimedia.org/.../Binas-ISBN.jpg` |
| `count` | Codes found | `4` |
| `format` / `kind` / `text` | First code: symbology, kind of content, text | `ean_13` / `product` / `9789001893729` |
| `texts` | Text of every code, top to bottom, left to right | `["9789001893729", "..."]` |
| `codes` | Every code with position, error correction and parsed fields | `[...]` |
| `note` | Advice when nothing was found | — |

***

### 🚀 How to use it

1. **Generate:** type one text or link per line, or paste JSON payloads (Wi-Fi, vCard, payment...). Pick **QR code** or a barcode type, PNG or SVG, colours, an optional logo.
2. **Read:** switch **Mode** to *Read codes from images* and add image links, or the **dataset ID** of another actor.
3. Click **Run**: images land in the key-value store, rows in the dataset (CSV, Excel, JSON).

#### Input example

```json
{
  "mode": "generate",
  "texts": ["https://apify.com", "https://helenis-api.com", "Hello from Apify"],
  "payloads": [
    {"type": "wifi", "wifi": {"ssid": "Cafe Lumiere", "password": "croissant42"}},
    {"type": "epc", "epc": {"name": "Red Cross Belgium", "iban": "BE72000000001616", "amount": 25, "text": "Donation"}}
  ],
  "codeType": "qrcode",
  "format": "png",
  "dark": "#1A3D7C"
}
```

Payload types: `text`, `url` (`data`), `wifi` (`ssid`, `password`, `security`, `hidden`), `vcard` and `mecard` (`contact`: `first_name`, `last_name`, `organization`, `title`, `phones`, `emails`, `website`, `address`, `birthday`, `note`), `email` (`to`, `subject`, `body`), `sms` and `whatsapp` (`message`: `number`, `message`), `phone`, `geo` (`latitude`, `longitude`, `query`), `event` (`title`, `start`, `end`, `location`, `description`), `epc` (`name`, `iban`, `bic`, `amount`, `reference` or `text`, `purpose`).

#### Output example (generate)

```json
{
  "input": "{\"type\": \"wifi\", \"wifi\": {\"ssid\": \"Cafe Lumiere\", \"password\": \"croissant42\"}}",
  "codeType": "qrcode",
  "success": true,
  "error": null,
  "imageUrl": "https://api.apify.com/v2/key-value-stores/abc123/records/code-00004.png",
  "key": "code-00004.png",
  "symbology": "qr_code",
  "format": "png",
  "width": 400,
  "height": 400,
  "content": "WIFI:T:WPA;S:Cafe Lumiere;P:croissant42;;",
  "version": "3",
  "errorCorrection": "M",
  "checkDigit": null,
  "verified": true,
  "warnings": []
}
```

#### Output example (read)

```json
{
  "imageUrl": "https://upload.wikimedia.org/wikipedia/commons/b/be/Binas-ISBN.jpg",
  "success": true,
  "count": 4,
  "format": "ean_13",
  "text": "9789001893729",
  "kind": "product",
  "texts": ["9789001893729", "9789001893774", "9789001893804", "9789001817497"],
  "codes": ["..."],
  "image": {"width": 3616, "height": 852, "mime_type": "image/jpeg"}
}
```

*Rows built by the actor from real responses of the API behind it; `abc123` stands for your run's store, `codes` is shortened.*

***

### 💰 Pricing

Pay only for what worked:

| Event | When |
|---|---|
| 🔳 Code generated | Each code generated, scanned back and stored |
| 📷 Image read | Each image read, codes found or not |

Items that fail (invalid IBAN, unreadable file, broken link) are listed with their error and **not charged**. Set a maximum cost per run in the run options and the actor stops cleanly when it is reached.

> 🆓 On the Apify **free plan**, each run generates the first 50 codes or reads the first 20 images.

***

### 💡 Use cases

- 🍽️ **Restaurants and hotels:** a menu link and a Wi-Fi code for every table, in brand colours.
- 🧾 **Invoices and donations:** SEPA payment codes for a whole batch of invoices, IBANs checked.
- 🏷️ **Retail and warehouses:** EAN/UPC and GS1-128 labels from a product list, check digits right.
- 🎟️ **Events and ticketing:** one QR or Aztec code per ticket ID.
- 📇 **Badges and business cards:** vCard codes for a team.
- 🔎 **Audits:** read the codes of thousands of product photos from another actor's dataset.

***

### ❓ FAQ

**Will the codes scan?**
Each one is decoded back before it is saved; contrast between your colours is checked. Print at a reasonable size (2 mm per module or more) and keep the white margin.

**Where are the images?**
In the run's key-value store; each row's `imageUrl` is a direct public link to its PNG or SVG.

**Can I add my logo?**
Yes, with **Logo link**: error correction is raised to H and each code is still scanned back. A logo too big for a code fails that row, at no charge.

**Can I make barcodes from structured payloads?**
Payloads make QR codes; barcodes take one text line each (digits for EAN/UPC, AIs in brackets for GS1-128).

**Which images can it read?**
PNG, JPEG, WEBP, GIF, BMP, TIFF and single-image HEIC, up to 20 MB. Sharp, close pictures work best; tiled iPhone HEIC photos are not supported (send JPEG).

**Dynamic QR codes with statistics?**
No: codes are static, and they work forever without any server.

***

### 🔌 Integrations

- 📗 **Google Sheets**: generate codes from a column and keep the image links
- 🪝 **Webhooks**: trigger a print or upload job when a run completes
- ⚡ **Zapier / Make**: add codes to emails, invoices or labels
- 🛠️ **API**: start runs and fetch results from any language
- 🤖 **AI agents**: call it from Claude, Cursor or any MCP client through Apify's MCP server

***

### 🤖 Use it from an AI agent

Add this actor to **Claude, ChatGPT, Cursor, VS Code** or any MCP client with one URL (sign in with your Apify account):

```
https://mcp.apify.com?tools=helenisapi/qr-code-generator-reader
```

Your agent then calls it as a tool, with the input described above, and pays per event like a normal run. In code: `ApifyActorsTool("helenisapi/qr-code-generator-reader")` in LangChain or CrewAI; in **n8n**, **Make** or **Zapier**, use the Apify app and pick this actor.

***

### 🌐 Also available as an API

The same engine is sold as a REST API on RapidAPI as **QR Code Generator & Reader - Barcodes, Logo, SVG** by **Helenis API**, returning PNG or SVG directly for an `img` tag.

***

### 🔒 Privacy

Texts, payloads and images are processed in memory and discarded by our backend: nothing is stored or logged there. The generated images live only in your run's key-value store. Only process images you have the right to process.

# Actor input Schema

## `mode` (type: `string`):

generate (default): turn texts, links or JSON payloads into QR codes or barcodes, saved as images in the run's key-value store with a public link in each dataset row. read: decode every QR code and barcode in images given by link or dataset, one row per image with each code's text and parsed content.

## `texts` (type: `array`):

Texts or links to encode (generate mode), one code per item, e.g. \["https://apify.com", "Hello", "400638133393"]. Links get https:// when it is missing; duplicates are removed. With a barcode codeType each item must fit that symbology (e.g. 12 or 13 digits for EAN-13). In generate mode, required unless `payloads` is set.

## `payloads` (type: `array`):

Structured QR codes that phones act on (generate mode, QR codes only), one JSON object each, e.g. \[{"type": "wifi", "wifi": {"ssid": "Cafe", "password": "secret123"}}]. Types: wifi, vcard and mecard (contact), email, sms, whatsapp, phone, geo, event, epc (SEPA payment, IBAN checked); field names as in the README. In generate mode, required unless `texts` is set.

## `codeType` (type: `string`):

Symbology made in generate mode. qrcode (default): QR codes. Or a barcode for the texts: ean13, ean8, upca, upce and isbn (check digit computed when left out), itf14, code128, gs1_128, code39, code93, itf, codabar, datamatrix, gs1_datamatrix, pdf417, aztec. Payloads only work with qrcode.

## `format` (type: `string`):

Image format of generated codes: png (default) for screens, or svg (vector) for print.

## `size` (type: `integer`):

Width and height of each QR code in pixels, 32-2000. Leave empty for the default of 400 px; use more for long content. QR codes only (barcodes use scale).

## `scale` (type: `integer`):

Pixels per module (the thinnest bar or smallest square) of barcodes, 1-20. Leave empty for the default: 3 for linear barcodes, 8 for 2D codes (Data Matrix, PDF417, Aztec). Barcodes only (QR codes use size).

## `dark` (type: `string`):

Hex colour of the code's bars or squares, e.g. #000000 or #1A3D7C. Must contrast with the light colour (3:1 at least). Leave empty for black.

## `light` (type: `string`):

Hex background colour, e.g. #FFFFFF, or the word transparent. Leave empty for white.

## `ecc` (type: `string`):

QR error correction level, how much damage a code survives: L 7 %, M 15 % (used when empty), Q 25 %, H 30 %. H is forced when a logo is set. QR codes only.

## `logoUrl` (type: `string`):

Public link to a PNG, JPEG, WEBP or GIF logo placed in the centre of every QR code, 5 MB max, e.g. https://example.com/logo.png. Leave empty for no logo. Each code is still scanned back before it is saved.

## `humanReadable` (type: `boolean`):

Print the human-readable digits under linear barcodes (EAN, UPC, Code 128...). On by default; no effect on QR and 2D codes.

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

Images to decode (read mode), one direct public link per item, e.g. \["https://example.com/label.jpg"]. PNG, JPEG, WEBP, HEIC, GIF, BMP or TIFF, up to 20 MB each. In read mode, required unless `datasetId` is set. Each image returns one row with every code found, its text and parsed content.

## `datasetId` (type: `string`):

ID of an existing Apify dataset whose rows hold image links to decode (read mode), e.g. the output of a product scraper; the link field is set by datasetUrlField. In read mode, required unless `imageUrls` is set.

## `datasetUrlField` (type: `string`):

Name of the dataset field holding the image link, e.g. photoUrl. Leave empty to try imageUrl, image, photoUrl, displayUrl, thumbnailUrl, fileUrl and url, in that order. Only used with datasetId.

## `formats` (type: `string`):

Read mode only: comma-separated symbologies to look for, e.g. qr_code, ean_13, code_128, data_matrix. Leave empty to detect every supported type.

## `maxItems` (type: `integer`):

Maximum codes to generate or images to read in this run, 0 or more. 0 (default) means no limit other than the cap of 10,000 per run.

## `maxConcurrency` (type: `integer`):

How many codes or images are processed at the same time, 1-20 (default 8).

## Actor input object example

```json
{
  "mode": "generate",
  "texts": [
    "https://apify.com",
    "https://helenis-api.com",
    "Hello from Apify"
  ],
  "payloads": [
    {
      "type": "wifi",
      "wifi": {
        "ssid": "Cafe Lumiere",
        "password": "croissant42"
      }
    }
  ],
  "codeType": "qrcode",
  "format": "png",
  "humanReadable": true,
  "maxItems": 0,
  "maxConcurrency": 8
}
```

# Actor output Schema

## `codes` (type: `string`):

No description

## `reads` (type: `string`):

No description

## `images` (type: `string`):

No description

# 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 = {
    "texts": [
        "https://apify.com",
        "https://helenis-api.com",
        "Hello from Apify"
    ],
    "payloads": [
        {
            "type": "wifi",
            "wifi": {
                "ssid": "Cafe Lumiere",
                "password": "croissant42"
            }
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("helenisapi/qr-code-generator-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 = {
    "texts": [
        "https://apify.com",
        "https://helenis-api.com",
        "Hello from Apify",
    ],
    "payloads": [{
            "type": "wifi",
            "wifi": {
                "ssid": "Cafe Lumiere",
                "password": "croissant42",
            },
        }],
}

# Run the Actor and wait for it to finish
run = client.actor("helenisapi/qr-code-generator-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 '{
  "texts": [
    "https://apify.com",
    "https://helenis-api.com",
    "Hello from Apify"
  ],
  "payloads": [
    {
      "type": "wifi",
      "wifi": {
        "ssid": "Cafe Lumiere",
        "password": "croissant42"
      }
    }
  ]
}' |
apify call helenisapi/qr-code-generator-reader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,helenisapi/qr-code-generator-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/GDWJeElOq9WmtALyX/builds/hyzJyWVSe3pTGClry/openapi.json
