# QR Code Generator — Bulk PNG & SVG, Wi-Fi, vCard, Verified (`alauddinburki/qr-codes`) Actor

Generate QR codes in bulk for URLs, text, Wi-Fi logins, vCards, e-mail, phone, SMS and map locations: PNG and SVG files with links and one ZIP. Every code is decoded back before delivery. $0.50 per 1,000 codes.

- **URL**: https://apify.com/alauddinburki/qr-codes.md
- **Developed by:** [Alauddin burki](https://apify.com/alauddinburki) (community)
- **Categories:** Developer tools, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 results

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

## QR Code Generator — Bulk PNG & SVG, Wi-Fi, vCard, Verified

Generate QR codes in bulk — **links, text, Wi-Fi logins, contact cards (vCard), e-mail, phone, SMS and map
locations** — as **PNG and SVG** files with direct links, plus one ZIP of everything. **Every code is decoded back
before it is delivered**: if a code does not scan to exactly its content (too little contrast, bad colours), it is
reported and not charged.

### Use it for

- **Print and packaging:** a code per product URL, as crisp SVG for the printer.
- **Events and offices:** Wi-Fi login codes guests can scan.
- **Sales and HR:** contact cards for a whole team.

### Input

| Field | Example |
|---|---|
| `contents` | simple list — a URL becomes a link code, anything else text |
| `items` | `{"type": "wifi", "ssid": "Office Guest", "password": "…"}`, `{"type": "vcard", "name": "Ada Lovelace", "email": "…"}` … |
| `size`, `margin`, `errorCorrection` | 512 px · 4 · M (H for codes with a logo or rough print) |
| `foreground`, `background` | brand colours, e.g. `#1d2329` on `#f4f4f1` |
| `makeZip` | one ZIP of all PNGs |

Types: `url`, `text`, `wifi` (WPA, WEP, nopass, hidden), `vcard`, `email` (subject, body), `phone`, `sms`, `geo`.
Special characters in Wi-Fi names and passwords and in vCard fields are escaped as the formats require.

### Output

| Field | Example |
|---|---|
| `type`, `content` | wifi · `WIFI:T:WPA;S:Office Guest;P:pw\;1;;` |
| `pngUrl`, `svgUrl` | links to the files |
| `qrVersion`, `modules`, `errorCorrection`, `sizePx` | 3 · 29 · M · 512 |
| `verifiedByDecoding`, `contrastRatio` | true · 15.4 |

### Pricing

Pay per result: **$0.0005 per row**. Plus a start fee of $0.0001 per GB of allocated memory (minimum one event).
One row is one verified QR code; codes that fail the decode check are not rows and are not charged.

### Verification status (2026-11-11, local)

- ✅ 4 unit tests: all 9 types generated and **decoded back** exactly (Unicode, emoji, Wi-Fi and vCard special
  characters included), escaping, refusals, colour options and contrast.
- ✅ Live: 2 contents + Wi-Fi + vCard → 4 verified codes, PNG + SVG + ZIP, an invalid location reported, 0 schema
  mismatches. With grey-on-grey colours (1.48:1) no code passed the decode check, and the run said why.

# Actor input Schema

## `contents` (type: `array`):

One per line: a URL becomes a link code, anything else a text code.

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

Objects with a type: url {data}, text {data}, wifi {ssid, password, encryption: WPA|WEP|nopass, hidden}, vcard {name, organization, title, phone, email, website, address}, email {email, subject, body}, phone {phone}, sms {phone, message}, geo {latitude, longitude}. Optional fileName.

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

PNG width and height.

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

White border; 4 is the standard.

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

Higher survives more damage but makes denser codes.

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

\#rrggbb

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

\#rrggbb or #rrggbbaa for transparency.

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

One download for all codes.

## Actor input object example

```json
{
  "contents": [
    "https://apify.com",
    "Hello from the QR Code Generator"
  ],
  "items": [
    {
      "type": "wifi",
      "ssid": "Office Guest",
      "password": "change-me",
      "encryption": "WPA"
    }
  ],
  "size": 512,
  "margin": 4,
  "errorCorrection": "M",
  "foreground": "#000000",
  "background": "#ffffff",
  "makeZip": true
}
```

# Actor output Schema

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

Every row of the run, in the dataset (fields as listed under Output in the README).

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

Counts, items not found and other notes for the run.

# 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 = {
    "contents": [
        "https://apify.com",
        "Hello from the QR Code Generator"
    ],
    "items": [
        {
            "type": "wifi",
            "ssid": "Office Guest",
            "password": "change-me",
            "encryption": "WPA"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("alauddinburki/qr-codes").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 = {
    "contents": [
        "https://apify.com",
        "Hello from the QR Code Generator",
    ],
    "items": [{
            "type": "wifi",
            "ssid": "Office Guest",
            "password": "change-me",
            "encryption": "WPA",
        }],
}

# Run the Actor and wait for it to finish
run = client.actor("alauddinburki/qr-codes").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 '{
  "contents": [
    "https://apify.com",
    "Hello from the QR Code Generator"
  ],
  "items": [
    {
      "type": "wifi",
      "ssid": "Office Guest",
      "password": "change-me",
      "encryption": "WPA"
    }
  ]
}' |
apify call alauddinburki/qr-codes --silent --output-dataset

```

## MCP server setup

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

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/qcwdpNRc8mKl4bmEa/builds/Q8hSGmM8ndEGVqPnd/openapi.json
