# Bulk Barcode & QR Code Generator — EAN, UPC, Code 128, SVG (`nezucloud/bulk-barcode-qr-generator`) Actor

Generate barcodes and QR codes in bulk as SVG or PNG: EAN-13, UPC-A, EAN-8, ITF-14, Code 128, Code 39 and QR. Invalid GS1 codes are never drawn. $2 per 1,000 images.

- **URL**: https://apify.com/nezucloud/bulk-barcode-qr-generator.md
- **Developed by:** [NEZU SAS](https://apify.com/nezucloud) (community)
- **Categories:** Developer tools, E-commerce, Integrations
- **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 generateds

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

## Bulk Barcode & QR Code Generator — EAN, UPC, Code 128, SVG

**Turn a list into print-ready barcodes and QR codes.** Paste your codes (or point to a CSV) and get one clean **SVG or PNG** per row, plus a ZIP and a manifest. Product codes are **checked before they are drawn**: a code with a wrong check digit is never printed — you get a clear message instead, or an automatic fix only when it is certain (a lost leading zero). Swapped digits or a wrong check digit are never guessed: the row is marked as an error and the possible fix is shown in the message for you to check.

![Barcodes and QR codes generated by the Actor, with an invalid code that is not drawn](https://api.apify.com/v2/key-value-stores/E38MAT6DtK9ddzgPL/records/barcode-grid.png)

| You give | You get |
|---|---|
| `4006381333931` | EAN-13 barcode ✅ |
| `36000291452` (lost leading zero) | UPC-A barcode of `036000291452` ✅ fixed, with a note saying why |
| `https://example.com/product/42` | QR code ✅ |
| `ABC-123` | Code 128 barcode ✅ |
| `4006381333392` (typo) | ❌ nothing drawn · "expected check digit 9" |

### Why you'll like it

- 🛡️ **Never prints a bad product code:** EAN-13, UPC-A, EAN-8 and ITF-14 are validated (check digit, length) before drawing.
- 🧠 **Auto-detects the type** for each value: numeric product codes → EAN/UPC/ITF-14, URLs and long text → QR, other text → Code 128.
- 🧾 **Print-ready:** vector SVG by default (sharp at any size) or PNG; set the bar height and QR size and error correction.
- 📦 **Everything in one place:** each image in the run's key-value store, a single `images.zip` and a `manifest.csv` that links every row to its file.
- ⚡ **Fast and offline:** no external services. A typical list finishes in a few seconds.
- 🔒 **Private by design:** values are processed inside the run. The only network access is downloading your CSV if you give a `fileUrl`.

### Supported types

QR code · EAN-13 (also ISBN-13) · UPC-A · EAN-8 · ITF-14 (GTIN-14) · Code 128 · Code 39.

### Input

| Field | What it is |
|---|---|
| `items` | List of values to encode, one per line. |
| `type` | `auto` (default) or a fixed type for every value. |
| `format` | `svg` (default) or `png`. |
| `fileUrl` / `column` | Optional public https CSV and the column to use (detected automatically from names like barcode, code, ean, upc, gtin, isbn, sku, url). |
| `qrErrorCorrection` | QR level `L`, `M` (default), `Q` or `H`. |
| `qrScale` | Pixels per QR module (1–20, default 4). |
| `barcodeHeight` | Bar height in millimetres for linear barcodes (5–60, default 15). |
| `showText` | Print the number under linear barcodes (default on). |
| `makeZip` | Also create `images.zip` (default on). |
| `maxItems` | Safety limit (default 1,000, up to 20,000). |

Example:

```json
{ "items": ["4006381333931", "36000291452", "https://example.com"], "type": "auto", "format": "svg" }
```

### Output

One dataset row per value: `row`, `input`, `type`, `status` (`ok`, `fixed` or `error`), `data` (what was encoded), `note`, `error`, `fileKey` and `fileUrl`. In the key-value store: the images, `images.zip`, `manifest.csv` and `SUMMARY`.

```json
{
  "row": 3,
  "input": "36000291452",
  "type": "upca",
  "status": "fixed",
  "data": "036000291452",
  "note": "lost_leading_zero: Added 1 leading zero(s) (spreadsheets often drop them).",
  "fileKey": "00003-036000291452.svg"
}
```

### Use it from code

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("nezucloud/bulk-barcode-qr-generator").call(
    run_input={"items": ["4006381333931", "https://example.com"], "format": "png"}
)
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["input"], row["status"], row["fileKey"])
```

Every field is documented in the Actor's output schema, so AI agents (through the Apify API or MCP server) can use the results without guessing.

### Pricing

**Pay per event: $2.00 per 1,000 images generated** ($0.002 per image), plus a tiny start fee of $0.00005 per run (Apify covers the compute of the first 5 seconds).

- Values that are not drawn (invalid codes, empty rows) are free. The small start fee applies to every run.
- 1,000 images = $2. 100 images = $0.20.
- You can set a maximum cost per run; the Actor stops cleanly when it is reached and marks the result as `partial`. Only what was charged is delivered: images, ZIP, manifest and summary match. If your list is longer than `maxItems`, the summary reports the real count and `partial`.

### FAQ

**Will my barcodes scan?** They are generated with widely used open-source libraries following the standard bar patterns. As with any print job, test-scan a printed sample before a large run, and keep the quiet zone (the blank margin) around each code.

**Why was my code not generated?** Product codes are validated first. If the check digit is wrong, nothing is drawn and the `error` column says what the check digit should be.

**Can it fix a code with a missing leading zero?** Yes: a safe correction (for example a UPC-A that lost its leading zero) is applied automatically, and the row is marked `fixed` with a note.

**Which format should I use for printing?** SVG: it stays sharp at any size.

**Is my data stored or sent anywhere?** Values are processed inside the run. The only network access is downloading your CSV when you set `fileUrl`.

### Limits

QR data is limited to 2,000 characters per value. Code 39 supports digits, uppercase letters and `- . space $ / + %`; Code 128 supports ASCII characters. GS1 is a trademark of GS1 AISBL; this Actor is not affiliated with it.

### Support

Found a bug or need another symbology? Open an issue on the Actor page: reports are answered quickly.

# Actor input Schema

## `items` (type: `array`):

One value per line: product codes (EAN, UPC, ITF-14), any text for Code 128, or URLs and long text for QR.

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

auto picks the right type for each value: numeric GS1 length → EAN/UPC/ITF-14, URL or long text → QR, other text → Code 128.

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

SVG is vector (best for printing); PNG is a bitmap.

## `fileUrl` (type: `string`):

Public https URL of a CSV. The value column is detected automatically (barcode, code, ean, upc, gtin, isbn, sku, text, url) or set it below.

## `column` (type: `string`):

Exact header of the column with the values. Leave empty to auto-detect.

## `qrErrorCorrection` (type: `string`):

Higher levels survive more damage but make a denser code.

## `qrScale` (type: `integer`):

Pixels per QR module. Bigger means a larger image.

## `barcodeHeight` (type: `integer`):

Bar height in millimetres for linear barcodes.

## `showText` (type: `boolean`):

Print the code number under linear barcodes.

## `makeZip` (type: `boolean`):

Bundle all images and a manifest in one ZIP file in the key-value store.

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

Safety limit on how many images are generated in one run.

## Actor input object example

```json
{
  "items": [
    "4006381333931",
    "036000291452",
    "36000291452",
    "https://nezuecuador.com",
    "ABC-123",
    "4006381333392"
  ],
  "type": "auto",
  "format": "svg",
  "qrErrorCorrection": "M",
  "qrScale": 4,
  "barcodeHeight": 15,
  "showText": true,
  "makeZip": true,
  "maxItems": 1000
}
```

# Actor output Schema

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

One row per value: status, type, encoded data and the image file key.

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

All generated images in the key-value store.

## `zip` (type: `string`):

All images plus manifest.csv in one ZIP.

## `summary` (type: `string`):

Counts by status and code type.

# 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 = {
    "items": [
        "4006381333931",
        "036000291452",
        "36000291452",
        "https://nezuecuador.com",
        "ABC-123",
        "4006381333392"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nezucloud/bulk-barcode-qr-generator").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 = { "items": [
        "4006381333931",
        "036000291452",
        "36000291452",
        "https://nezuecuador.com",
        "ABC-123",
        "4006381333392",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("nezucloud/bulk-barcode-qr-generator").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 '{
  "items": [
    "4006381333931",
    "036000291452",
    "36000291452",
    "https://nezuecuador.com",
    "ABC-123",
    "4006381333392"
  ]
}' |
apify call nezucloud/bulk-barcode-qr-generator --silent --output-dataset

```

## MCP server setup

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

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/SWM7vfw5jgmya1Int/builds/9diZmQFIgUUA8kzDC/openapi.json
