Coming Soon

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

GET https://api.qrcodegenerator.club/v1/create?data={content}&size={pixels}&format={format}

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

https://api.qrcodegenerator.club/v1/create?data=hello&size=300&format=png

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.

cURL
# Download a QR code as a PNG file curl -o qrcode.png "https://api.qrcodegenerator.club/v1/create?data=https://example.com&size=300&format=png" # Generate an SVG QR code curl -o qrcode.svg "https://api.qrcodegenerator.club/v1/create?data=hello+world&size=400&format=svg" # Custom colors (blue on white) curl -o qrcode.png "https://api.qrcodegenerator.club/v1/create?data=hello&color=1a73e8&bg=ffffff&size=300"
JavaScript (Fetch API)
// Generate a QR code and display it in the browser const generateQR = async (text, size = 300) => { const params = new URLSearchParams({ data: text, size: size.toString(), format: 'png' }); const url = `https://api.qrcodegenerator.club/v1/create?${params}`; const response = await fetch(url); const blob = await response.blob(); // Create an image element const img = document.createElement('img'); img.src = URL.createObjectURL(blob); img.alt = `QR code for: ${text}`; document.body.appendChild(img); }; generateQR('https://example.com', 400); // Or simply embed in an img tag (no JavaScript needed!): // <img src="https://api.qrcodegenerator.club/v1/create?data=hello&size=200" alt="QR Code">
Python (requests)
import requests def generate_qr(data, size=300, fmt="png", output_file="qrcode.png"): """Generate a QR code using the QR Code Generator API.""" url = "https://api.qrcodegenerator.club/v1/create" params = { "data": data, "size": size, "format": fmt, } response = requests.get(url, params=params) response.raise_for_status() with open(output_file, "wb") as f: f.write(response.content) print(f"QR code saved to {output_file}") # Generate a QR code for a URL generate_qr("https://example.com", size=400) # Generate a WiFi QR code wifi_data = "WIFI:T:WPA;S:MyNetwork;P:MyPassword;;" generate_qr(wifi_data, size=300, output_file="wifi_qr.png")

Popular Use Cases

Developers use the QR Code API across a wide range of applications. Here are some of the most common integration scenarios:

Pricing

Start generating QR codes for free. Upgrade when you need higher limits or premium features.

Free

$0/month
  • 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

Response Format

Successful requests return the QR code image directly with appropriate headers:

HTTP/1.1 200 OK Content-Type: image/png Content-Length: 4521 Cache-Control: public, max-age=86400 [binary image data]

Error responses return JSON with a descriptive message:

{ "error": "missing_parameter", "message": "The 'data' parameter is required.", "status": 400 }

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