Bulk QR Code Generator API
Generate up to 100 QR codes in a single API request. Perfect for product labels, event tickets, marketing campaigns, and inventory management.
Batch Generation Endpoint
POST /api/batch
{
"items": [
{ "data": "https://example.com/product/1" },
{ "data": "https://example.com/product/2", "size": 400 },
{ "data": "https://example.com/product/3", "color": "FF0000" },
... up to 100 items
],
"output": "json" // or "zip" for ZIP download
}
Example: Generate Product QR Codes
# Generate QR codes for 5 products
curl -X POST "https://qrcodeapi.io/api/batch" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"items": [
{"data": "https://store.com/p/SKU001", "size": 300},
{"data": "https://store.com/p/SKU002", "size": 300},
{"data": "https://store.com/p/SKU003", "size": 300},
{"data": "https://store.com/p/SKU004", "size": 300},
{"data": "https://store.com/p/SKU005", "size": 300}
],
"output": "json"
}'
Response Format (JSON)
{
"total": 5,
"success": 5,
"errors": 0,
"results": [
{
"index": 0,
"data": "https://store.com/p/SKU001",
"format": "png",
"image": "data:image/png;base64,iVBORw0KGgo..."
},
...
]
}
ZIP Download
For easier handling of many QR codes, request a ZIP file:
curl -X POST "https://qrcodeapi.io/api/batch" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"items": [...], "output": "zip"}' \
-o qrcodes.zip
The ZIP contains individual PNG/SVG files plus a manifest.json mapping files to their data.
Key Features
100 QR Codes Per Request
Generate up to 100 QR codes in a single API call.
Individual Customization
Each QR code can have its own size, color, and format.
ZIP or JSON Output
Get base64 images in JSON or download as ZIP file.
Error Handling
Failed items are reported; successful ones still returned.
Use Cases
- E-commerce: Generate QR codes for entire product catalog
- Events: Create unique QR codes for hundreds of tickets
- Inventory: Label warehouse items with tracking QR codes
- Marketing: Generate campaign-specific QR codes in bulk
- Restaurants: Create table-specific menu QR codes
Python Example
import requests
import base64
import os
def generate_bulk_qr(urls):
items = [{"data": url} for url in urls]
response = requests.post(
"https://qrcodeapi.io/api/batch",
json={"items": items, "output": "json"},
headers={"Authorization": f"Bearer {os.environ['QR_API_KEY']}"}
)
results = response.json()
for result in results["results"]:
if "image" in result:
# Save each QR code
img_data = result["image"].split(",")[1]
with open(f"qr_{result['index']}.png", "wb") as f:
f.write(base64.b64decode(img_data))
# Generate QR codes for 50 products
urls = [f"https://store.com/product/{i}" for i in range(50)]
generate_bulk_qr(urls)
Start Generating QR Codes in Bulk
Free tier includes batch generation. Get started now.
Get Free API Key