QR Code & Barcode API: Generate PNG/SVG and Decode Images
Pricing
$2.00 / 1,000 qr/barcode jobs
QR Code & Barcode API: Generate PNG/SVG and Decode Images
Generate QR codes (URLs, text, Wi-Fi logins) and barcodes (EAN-13, UPC, Code 128, ISBN...) as PNG or SVG with a shareable link, or read QR codes and barcodes from an image URL.
Pricing
$2.00 / 1,000 qr/barcode jobs
Rating
0.0
(0)
Developer
Tudor Lane
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
12 hours ago
Last modified
Categories
Features
Share
Use when: a menu, ticket, invoice, label or Wi-Fi agent needs a QR code or barcode as PNG/SVG with a shareable link, or a vision/agent workflow must read codes from a photo URL.
Try this input (also the default, just click Start)
{"requests": [{"action": "generate", "data": "https://apify.com/tudorlane"}, {"action": "generate", "type": "ean13", "data": "501234567890", "format": "svg"}, {"action": "decode", "image_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/QR_Code_Example.svg/330px-QR_Code_Example.svg.png"}]}
Sample output (real run, 9 Nov 2026, trimmed)
{"action": "generate", "type": "qr", "format": "png", "data": "https://apify.com/tudorlane", "bytes": 492, "file_key": "qr-8d0fa0884b321ae6.png", "url": "https://api.apify.com/v2/key-value-stores/.../records/qr-8d0fa0884b321ae6.png?signature=...", "version": "3-Q", "error": null}{"action": "generate", "type": "ean13", "format": "svg", "data": "501234567890", "bytes": 3350, "full_code": "5012345678900", "url": "https://api.apify.com/v2/key-value-stores/.../ean13-....svg?signature=...", "data_uri": "data:image/svg+xml;base64,...", "error": null}{"action": "decode", "image_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/QR_Code_Example.svg/330px-QR_Code_Example.svg.png", "found": 1, "codes": [{"text": "'Twas brillig", "format": "QR Code", "content_type": "Text", "valid": true}], "error": null}
Options
- Generate QR (including Micro QR and Wi-Fi logins via
wifi: {ssid, password}) or linear barcodes: EAN-13, EAN-8, UPC-A, Code 128, Code 39, ISBN, ITF, GS1-128 and more. - PNG or SVG; files land in the run key-value store with a shareable
url. Small SVGs also return an inlinedata_uri. - Decode QR, Data Matrix, Aztec, PDF417 and 1D barcodes from
image_urlorimage_base64. - Colours, scale, border and error-correction level supported for QR. Up to 1000 items per run. No API key needed.
Pricing: pay per event, $0.002 per QR/barcode job (one code generated or one image decoded). Errors are not charged. No subscription.
Limits & failure modes
- Generated files live in the run's key-value store and expire with Apify retention; download them if you need them long-term.
- Decode needs a readable raster image (PNG/JPEG/GIF/BMP/WebP); SVG sources should be rendered first. Images over 15 MB return an uncharged error.
- Bad or empty
data, unsupportedtype/format, or an image URL that 404s returns an uncharged error row. - Libraries: segno (BSD), python-barcode (MIT), zxing-cpp (Apache 2.0), Pillow (MIT-CMU).
Last tested: 9 Nov 2026.
Use from AI agents (MCP)
- Apify MCP server: add
https://mcp.apify.com/?tools=tudorlane/qr-barcode-toolsto Claude, Cursor, ChatGPT, VS Code or any MCP client. - REST:
POST https://api.apify.com/v2/acts/tudorlane~qr-barcode-tools/run-sync-get-dataset-items?token=YOUR_TOKENwith the input JSON.