How to Generate Thousands of QR Codes with a Single API Call
Generate up to 100 unique QR codes per request with ScanStack's bulk API. Perfect for events, inventory tracking, packaging, and print campaigns.
Generating QR codes one at a time works for prototyping. For real campaigns you need bulk generation.
How Bulk Generation Works
ScanStack's /v2/bulk endpoint accepts up to 100 QR code specifications in a single request.
curl -X POST https://api.scanstack.dev/v2/bulk \
-H "x-api-key: qr_your_key" \
-d '{
"items": [
{ "type": "dynamic", "target_url": "https://event.com/ticket/001", "label": "Ticket 001" },
{ "type": "dynamic", "target_url": "https://event.com/ticket/002", "label": "Ticket 002" },
{ "type": "dynamic", "target_url": "https://event.com/ticket/003", "label": "Ticket 003" }
]
}'
Use Cases
Event Tickets: Generate a unique QR for each attendee. After the event, bulk-update all codes to redirect to a feedback survey.
Product Packaging: Each unit gets a unique QR linking to warranty registration, then later to a review page. All without reprinting. See our e-commerce packaging guide.
Asset & Inventory Tracking: Label every asset in a warehouse with a unique QR code linked to inventory records.
Print Campaigns: Generate unique codes for flyers in different neighborhoods. Track which neighborhoods have higher scan rates with scan analytics.
Scaling Beyond 100
// Generate 1,000 codes in 10 batches
for (let batch = 0; batch < 10; batch++) {
const items = generateBatch(batch * 100, 100);
await api.post('/v2/bulk', { items });
}
Organizing with Campaigns
Use ScanStack campaigns to group related QR codes. This makes it easy to track aggregate analytics and manage codes at scale.