API QR Code
QR Code Generator REST API: Batch and Analytics
Create, update, list, and analyze QR codes from your own code: REST API with bearer-token auth, 100 RPM per key, batch endpoint for 100 codes per call, and full scan analytics.
Quick answer
The EZQR REST API generates QR codes programmatically instead of one at a time in the dashboard, for cases like minting a unique code per order or per asset from your own system. It is available on the Max plan at $20/mo, rated at 100 requests per minute, and accepts batches of up to 100 codes per call. If you need a few hundred codes once rather than codes on demand, bulk CSV import does the same job without writing any code.
Max plan, $20/mo
The REST API ships with the Max plan
Bearer-token auth, 100 RPM per key, batch endpoint up to 100 codes per call, full scan analytics. Generate a key from Settings → API Keys after upgrading.
About API QR Codes
The dashboard is the right tool for printing 50 codes for a trade show. The REST API is the right tool when QR codes are part of your product. When every new customer record needs a vCard QR, every shipment needs a tracking QR, every order confirmation email needs a personalized payment QR. Anything that scales past "I open the dashboard once a week" belongs in the API, not the form.
The surface is small and predictable. POST /api/v1/qr-codes with { name, content_type, content, target_url? } creates a code and returns the QR record with its ID, short link, and the URL to fetch the PNG/SVG/PDF. GET /api/v1/qr-codes lists your codes with cursor pagination and filters. PATCH /api/v1/qr-codes/{id} updates the destination for dynamic codes, repoint without reprinting. GET /api/v1/qr-codes/{id}/scans pulls scan analytics broken down by date, country, device, and referrer. POST /api/v1/qr-codes/batch creates up to 100 codes per call, chain calls for the same workflows you'd otherwise run via bulk CSV import.
Auth is bearer token: Authorization: Bearer ezqr_your_key in every request. Rate limit is 100 requests per minute per API key; rate-limit headers (X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset) come back on every response so retry logic is straightforward. The API is on the Max plan ($20/mo) alongside bulk CSV import; the two pair: bulk for one-shot operations, API for anything continuous. Static codes you create via the API survive cancellation. The destination is encoded into the pattern; dynamic codes route through EZQR's redirect, which keeps resolving after a lapse, what the subscription buys is repointing them and pulling new scan data.
The API creates dynamic QR codes the same way the dashboard does, and returns the same scan analytics. For a spreadsheet of codes with no code to write, bulk import is on the same plan.
Before you reach for an API, check whether you need one
Most developers who search for a QR code API want a local library instead, and will be better served by one. Generating a static QR is pure computation (there is no state, no account and nothing to look up) so a library does it in-process with no network call, no rate limit, no per-code cost and nothing that can go down or be discontinued. These are the maintained options by language, all implementing ISO/IEC 18004, so their output is interchangeable with ours and with each other.
| Language | Library | Notes |
|---|---|---|
| Reference, many languages | nayuki/QR-Code-generator | The clearest reference implementation, ported to Java, JavaScript, Python, Rust and more |
| JavaScript and Node | qrcode (soldair/node-qrcode) | The common default. It is what this site uses for the module-count measurements on these pages |
| Python | qrcode | Straightforward, with Pillow-based image output |
| PHP | endroid/qr-code | Widely used in Laravel and Symfony projects |
| Java and Android | ZXing | Long-standing encoder and decoder for the JVM, and a barcode reader as well |
Package names and registries verified against npm, PyPI, Packagist and GitHub on 8 November 2026. We have no affiliation with any of them.
- For static codes a library is the right answer and this API is not. Nothing hosted encodes a better QR, because the specification fixes the output.
- An API earns its place when the code has to change after it ships. Repointing a printed code, or collecting scan analytics, needs a server by definition. That is the line, not image quality.
- You can also mix the two: generate static codes locally with a library for anything permanent, and use dynamic codes only where you actually need to repoint or measure.
Walkthrough
How to Create an API QR Code
Generate an API key
Sign up, upgrade to the Max plan ($20/mo), and create an API key from Settings → API Keys. Keys are scoped to your account and revocable at any time. Name each key by environment (
prod,staging,dev-tasnim) so audit logs are useful.Make your first request
POST /api/v1/qr-codeswith{ "name": "Customer 4471", "content_type": "url", "content": "https://app.example.com/c/4471", "target_url": "https://ez-qr.com/r/abc123" }and anAuthorization: Bearer ezqr_...header. Response: the QR record withid,short_code, and asset URLs for PNG/SVG/PDF.Batch-create where the workflow allows
POST /api/v1/qr-codes/batchtakes an array of up to 100 code definitions in one call. Single-call overhead per code drops to milliseconds, and you stay well under the 100 RPM rate limit. Chain calls if you need more than 100 codes; pair with the bulk CSV import for one-shot operations larger than that.Repoint dynamic codes after printing
PATCH /api/v1/qr-codes/{id}with{ "target_url": "https://new-destination.com" }updates the redirect for a dynamic code. The printed QR stays the same; the destination changes server-side. Useful when campaigns end, product pages move, or experimental landing pages get rotated.Pull analytics for attribution and dashboards
GET /api/v1/qr-codes/{id}/scans?from=2026-01-01&to=2026-01-31returns aggregated scan counts by date, country, device, and referrer. Pipe into your warehouse, attribution platform, or internal dashboard. Every printed-campaign scan is now structured data your team can query.
API QR Code FAQ
Common questions about generating, printing, and deploying these codes.
Which QR code generator has an API, and what does it cost?
EZQR's REST API is on the Max plan at $20/mo, billed monthly, rated at 100 requests per minute with batches of up to 100 codes per call. For comparison on the published ladders: QR Tiger gates its API behind Premium at $37/mo and Uniqode behind Core at $49/mo, both of which push annual billing. If you need a few hundred codes once rather than codes generated on demand, bulk CSV import is on the same Max plan and needs no integration work. Reach for the API when codes have to be minted by your own system, one per order, per asset or per user.
How much does the API cost?
API access is on the Max plan at $20/mo. No per-request fees, no per-code fees. Rate limit is 100 requests per minute per API key, with batch creation up to 100 codes per call, so the effective ceiling is ~10,000 new codes per minute per key. If your workflow needs more, contact us and we'll talk about a custom rate-limit tier.
What can I do with the API?
Full CRUD on QR codes plus analytics: create (single or batch up to 100), read (list with cursor pagination, get individual), update (repoint dynamic codes, rename, toggle active), delete (soft delete with 30-day undo), and scan analytics broken down by date, country, device, and referrer. Plus API-key management endpoints for rotation.
What authentication does the API use?
Bearer token auth. Include Authorization: Bearer ezqr_your_key in every request. Keys are generated from your dashboard at Settings → API Keys and are scoped to a single EZQR account. Per-environment scopes let you restrict a staging key to staging codes; production keys can be flagged as read-only or write-only.
Does the API return QR images directly?
The create endpoint returns the QR record with asset URLs for the rendered PNG, SVG, and PDF: fetch the image at the URL when you need it, or pre-cache the URL string in your database. The API itself doesn't stream binary images on the create call; this keeps the response payload small and lets you cache images at your CDN edge instead of EZQR's.
Will codes created via the API survive cancellation?
Static codes (created without a target_url) survive forever. The content is encoded into the QR pattern, no server dependency. Dynamic codes (created with a target_url) route through EZQR's redirect, which keeps resolving after a lapse. Nothing is switched off. What needs an active subscription is repointing them and pulling new scan data. Pick the right tool: static for permanent destinations (asset tags, packaging), dynamic for anything you might need to repoint.
Written by Tasnim Ahmed, Founder · Last updated
Related Articles
Related Industries
Logistics QR Codes for Freight & Warehouses
Create QR codes for digital bills of lading, proof of delivery, and warehouse receiving. Real-time shipment tracking with dynamic codes.
Free Event QR Codes: Tickets, Check-in & Schedules
Free QR codes for event management: tickets, attendee check-in, live schedules, WiFi, session feedback. Cut check-in lines and handle last-minute changes.
Related Tools
Bulk QR Code Generator
Generate hundreds of unique QR codes from a CSV.
Dynamic QR Code Generator
Editable destination: change the URL without reprinting.
vCard QR Code Generator
Contact card QR for business cards and signatures.
URL QR Code Generator
Generate a QR code for any web link, free with no signup.
barcode QR Code Generator
Free QR code generator on EZQR.
analytics QR Code Generator
Free QR code generator on EZQR.
Make an API QR code
Static codes are free and carry no watermark. Dynamic codes, which you can repoint after printing, start at $5 a month.