QR Code API
Generate QR codes programmatically with a simple REST API. Integrate QR code generation into your apps, workflows, and automation pipelines in seconds.
What is the QR Code API?
The QR Code Generator API is a RESTful web service that allows developers to create QR codes on the fly using simple HTTP GET requests. Whether you're building a mobile application, automating marketing campaigns, generating printable labels, or adding QR functionality to your SaaS product, our API provides a fast and reliable way to generate high-quality QR codes without installing any libraries or managing rendering logic on your own servers.
Unlike client-side JavaScript QR code generators, a server-side API ensures consistent output across all platforms, delivers production-ready image files (PNG or SVG), and offloads the rendering workload from your users' devices. The API supports customizable sizes, multiple output formats, and configurable error correction levels — everything you need for both digital displays and physical print media.
Our goal is to provide the simplest possible developer experience: one URL, a few query parameters, and you have a QR code. No SDKs to install, no authentication tokens for the free tier, and no complex request bodies. Just build a URL and embed it directly in an <img> tag, download it with curl, or fetch it from any programming language.
API Endpoint
Simply construct a URL with your desired parameters and make a GET request. The API returns the QR code image directly in the response body with the appropriate Content-Type header.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
data |
string | Required | The content to encode in the QR code (URL, text, vCard, WiFi config, etc.). URL-encode special characters. |
size |
integer | Optional | Width and height in pixels (default: 200, max: 1000). The QR code is always square. |
format |
string | Optional | Output format: png (default) or svg. |
ecc |
string | Optional | Error correction level: L (7%), M (15%, default), Q (25%), H (30%). |
color |
string | Optional | Foreground color as hex (without #). Example: 000000 (default). |
bg |
string | Optional | Background color as hex (without #). Example: ffffff (default). |
Example Request
This generates a 300×300 pixel PNG QR code encoding the text "hello".
Code Examples
Integrating the QR Code API into your project takes just a few lines of code. Below are examples in popular languages to get you started quickly.
cURLPopular Use Cases
Developers use the QR Code API across a wide range of applications. Here are some of the most common integration scenarios:
- E-commerce: Generate QR codes for product pages, order tracking links, or digital receipts at checkout.
- Event Management: Create unique QR codes for tickets, badges, and check-in systems.
- Marketing Automation: Embed dynamic QR codes in email campaigns, flyers, and social media posts that link to personalized landing pages.
- Restaurant Menus: Generate table-specific QR codes linking to digital menus or ordering systems.
- Authentication: Create QR codes for two-factor authentication (2FA) setup with TOTP URIs.
- Logistics: Label packages with QR codes for tracking, delivery confirmation, and inventory management.
- Education: Link worksheets and posters to supplementary digital content via QR codes.
Pricing
Start generating QR codes for free. Upgrade when you need higher limits or premium features.
Free
- 100 requests per day
- PNG and SVG output
- Sizes up to 500×500 px
- Standard error correction
- No API key required
- Rate limited by IP
Pro
- Unlimited requests
- PNG and SVG output
- Sizes up to 1000×1000 px
- All error correction levels
- Custom colors & branding
- Dedicated API key
- Priority support
- 99.9% uptime SLA
Response Format
Successful requests return the QR code image directly with appropriate headers:
Error responses return JSON with a descriptive message:
Frequently Asked Questions
When will the API be available?
The QR Code API is currently in development and will launch soon. Sign up for notifications on our homepage to be the first to know when it goes live.
Do I need an API key for the free tier?
No. The free tier is accessible without an API key. Requests are rate-limited by IP address to 100 per day. The Pro plan provides a dedicated API key for higher limits and tracking.
What content can I encode in a QR code?
You can encode any text-based content: URLs, plain text, email addresses, phone numbers, WiFi credentials (WIFI:T:WPA;S:SSID;P:password;;), vCards, calendar events, and more. The maximum data length depends on the error correction level chosen.
What is error correction and which level should I use?
Error correction allows QR codes to remain scannable even when partially damaged or obscured. Level L recovers 7% of data, M recovers 15%, Q recovers 25%, and H recovers 30%. Higher levels produce denser codes. Use M (default) for digital use and H for print materials that may be damaged.
Can I use the API in production applications?
Yes. The Pro plan is designed for production use with unlimited requests, a 99.9% uptime SLA, and priority support. The free tier is suitable for prototyping, personal projects, and low-traffic applications.
Is there a maximum size for QR codes?
The free tier supports sizes up to 500×500 pixels. The Pro tier supports up to 1000×1000 pixels. For print use, we recommend generating SVG format which scales to any resolution without quality loss.
Are generated QR codes cached?
Yes. Identical requests are cached for 24 hours to ensure fast response times. The Cache-Control header is set to allow client-side caching as well.
Can I customize the appearance of my QR codes?
The API supports custom foreground and background colors via the color and bg parameters. The Pro plan will include additional styling options like rounded corners, embedded logos, and gradient fills.
Related Tools
Explore more free QR code tools from our collection:
Ready to Integrate?
The QR Code API is coming soon. Start planning your integration today with the documentation above.
Back to QR Code Generator