# QR Code Generator (Bulk, Logo, SVG & PNG) (`toowl/qr-code-generator`) Actor

Generate QR codes in bulk from a list of URLs or texts: PNG or SVG, any size, custom colours, transparent background, rounded or dot style, your logo in the middle, all in one ZIP. Wi-Fi, vCard and WhatsApp formats work too. Pay per QR code.

- **URL**: https://apify.com/toowl/qr-code-generator.md
- **Developed by:** [Chalid Ade](https://apify.com/toowl) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 qr codes 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 — bulk, with logo, SVG & PNG

Turn a list of URLs or texts into **ready-to-print QR codes** in one run: PNG or SVG, any size, your colours, rounded or dot styles, your **logo in the middle**, and everything bundled in **one ZIP**.

Made for product labels, event badges, restaurant tables, packaging, flyers, asset tags and anything else where you need 10 (or 10,000) codes and don't feel like clicking a website 10,000 times.

### What you get

- **Bulk**: one QR code per line, as many lines as you like
- **PNG** (64–4096 px) and/or **SVG** (vector, perfect for print and Figma/Illustrator)
- **Custom colours** and **transparent background**
- **Styles**: classic squares, rounded, or dots. Finder squares stay solid so every phone camera still reads them
- **Logo in the middle**: give an image URL, error correction switches to H and small codes are bumped up a size so they keep scanning
- **One ZIP** with all files, plus a dataset row per code with direct links
- Works for **URLs, plain text, Wi-Fi logins, vCards, WhatsApp links, emails, phone numbers** (anything phone cameras understand)

Every code is checked to scan in our own tests with the [QR & Barcode Reader](https://apify.com/toowl/qr-barcode-reader?fpr=toowl) engine.

### Input

```json
{
  "items": [
    "https://example.com/menu",
    "https://example.com/table/12",
    "WIFI:T:WPA;S:Cafe Guest;P:coffee123;;"
  ],
  "format": "both",
  "size": 1024,
  "style": "rounded",
  "foreground": "#111827",
  "background": "#ffffff",
  "logoUrl": "https://example.com/logo.png"
}
```

Via the API you can also name each file: `{ "text": "https://example.com/p/42", "name": "product-42" }`.

#### Handy formats

| What | Text to put in the item |
| --- | --- |
| Wi-Fi | `WIFI:T:WPA;S:NetworkName;P:password;;` |
| WhatsApp chat | `https://wa.me/6281234567890?text=Hello` |
| Email | `mailto:hi@example.com?subject=Hello` |
| Phone call | `tel:+6281234567890` |
| Contact card | `BEGIN:VCARD\nVERSION:3.0\nFN:Jane Doe\nTEL:+123456\nEND:VCARD` |

### Output

One dataset row per code:

```json
{
  "text": "https://example.com/menu",
  "name": "example.com-menu",
  "version": 5,
  "modules": 37,
  "errorCorrection": "H",
  "pngUrl": "https://api.apify.com/v2/key-value-stores/…/records/0001-example.com-menu.png",
  "svgUrl": "https://api.apify.com/v2/key-value-stores/…/records/0001-example.com-menu.svg"
}
```

Plus `qr-codes.zip` (all files) and a `SUMMARY` record in the run's key-value store.

### Pricing

Pay per event: one `qr-generated` per QR code. Items that fail (for example too much text for one code) are free. Cap spending with "Max cost per run".

### Free browser version

Need just one or two? [toowl.my.id/en/qr-generator](https://toowl.my.id/en/qr-generator/) makes them in your browser for free. Same drawing engine.

### Call it from your code

```bash
curl -X POST "https://api.apify.com/v2/acts/toowl~qr-code-generator/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"items":["https://example.com/menu","https://example.com/table/12"],"format":"png"}'
```

The same call works from Python (`apify-client`), JavaScript, Make, Zapier and n8n (Apify app/node or a plain HTTP request).

### Use it from AI agents (MCP)

Add this Actor as a tool to Claude, Cursor, VS Code or any MCP client through Apify's MCP server:

```
https://mcp.apify.com/?actors=toowl/qr-code-generator
```

The agent can then pass file URLs and read the results itself.

### More toowl file APIs

Speech to text & subtitles, AI vocal remover, text to speech, AI object remover, PDF to Markdown, PDF to Word & Excel, HTML/URL to PDF, OCR, Office to PDF, PDF compressor, PDF merge/split, PDF password protect, PDF to image, image to PDF, bulk watermark, image converter and compressor, background remover, AI upscaler, image to SVG, QR code and barcode generators, QR/barcode reader, favicon generator, video compressor, frame extractor and audio converter. All pay per file, all batch-friendly: [toowl.my.id/en/api](https://toowl.my.id/en/api/).

Questions or a format that fails? Open an issue on the Actor's **Issues** tab.

# Actor input Schema

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

One QR code per line: a URL, any text, or a special format such as WIFI:T:WPA;S:MyNetwork;P:secret;; or a vCard. Via the API you can also pass objects {"text": "…", "name": "file-name"}.

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

PNG for web and documents, SVG for print and design tools.

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

Width and height of each PNG, quiet zone included.

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

Shape of the modules. Finder squares stay solid so every scanner reads them.

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

Hex colour of the code, e.g. #000000. Keep it darker than the background.

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

Hex colour behind the code, e.g. #ffffff.

## `transparent` (type: `boolean`):

No background at all (PNG with alpha, SVG without a rect). Overrides the background colour.

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

Optional image (PNG, JPG, SVG, WebP) placed in the middle of every code. Error correction switches to H automatically.

## `margin` (type: `integer`):

Empty border around the code. 4 is the standard; less can fail on some scanners.

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

How much damage the code survives. Higher means denser codes.

## `zip` (type: `boolean`):

Also save every file in qr-codes.zip (when there is more than one item).

## Actor input object example

```json
{
  "items": [
    "https://toowl.my.id",
    "https://apify.com/toowl",
    "WIFI:T:WPA;S:Cafe Guest;P:coffee123;;"
  ],
  "format": "png",
  "size": 1024,
  "style": "square",
  "foreground": "#000000",
  "background": "#ffffff",
  "transparent": false,
  "margin": 4,
  "errorCorrection": "auto",
  "zip": true
}
```

# Actor output Schema

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

One row per item with links to the PNG and/or SVG.

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

Every generated file in one ZIP (when more than one item).

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

Counts of codes generated and failed, plus the ZIP link.

# 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": [
        "https://toowl.my.id",
        "https://apify.com/toowl",
        "WIFI:T:WPA;S:Cafe Guest;P:coffee123;;"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("toowl/qr-code-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": [
        "https://toowl.my.id",
        "https://apify.com/toowl",
        "WIFI:T:WPA;S:Cafe Guest;P:coffee123;;",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("toowl/qr-code-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": [
    "https://toowl.my.id",
    "https://apify.com/toowl",
    "WIFI:T:WPA;S:Cafe Guest;P:coffee123;;"
  ]
}' |
apify call toowl/qr-code-generator --silent --output-dataset

```

## MCP server setup

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