Generate customized, production-ready QR codes dynamically using simple HTTP GET requests.
Hosted directly on Cloudflare edge nodes for speedy response times.
All API requests are optimized for edge caching, returning full
Cache-Control: public, max-age=31536000, immutable headers. This guarantees instant
load speeds when embedded directly in HTML tags or Markdown files.
Base Endpoint
GEThttps://qrmaker.ryanmarch.me/api/qr
Test in Postman or Bruno
Download our API request collection to test, preview, and run requests instantly. Supported by both Postman and Bruno.
Query Parameters
Customize your generated QR codes by appending the following parameters to the URL query string.
Parameter
Type
Required
Default
Description
content
String
Yes
—
The URL or text content to encode. Must be properly URL-encoded.
format
String
No
png
Output format: png (raw binary file), svg (vector
graphic), or base64 (JSON wrapping Data URI).
size
Number
No
1024
Width and height in pixels (for png and base64). Min:
64, Max: 4096.
fgColor
String
No
000000
Hex color code for the foreground/pixels. Do not include a leading
#.
bgColor
String
No
ffffff
Hex color code for background. Ignored if transparent=true. Do
not include #.
transparent
Boolean
No
false
Set to true or 1 for a transparent background.
margin
Number
No
2
Quiet-zone border size in modules. Min: 0, Max: 10.
ecl
String
No
M
Error Correction Level: L (Low), M (Medium),
Q (Quartile), H (High).
Construct your API request parameters below and preview the generated QR code instantly.
Code Integration
Easy-to-use snippets to programmatically fetch, generate, or embed QR codes in your application
workflows.
<!-- Embed custom PNG directly in your page -->
<img src="https://qrmaker.ryanmarch.me/api/qr?content=https%3A%2F%2Fqrmaker.ryanmarch.me&size=512&fgColor=327DFF" alt="QR Code" />
# Download a high-res custom SVG QR code
curl -o qr.svg "https://qrmaker.ryanmarch.me/api/qr?content=https%3A%2F%2Fqrmaker.ryanmarch.me&format=svg&fgColor=327DFF"
// Fetch Base64 data from the API
fetch("https://qrmaker.ryanmarch.me/api/qr?content=https%3A%2F%2Fqrmaker.ryanmarch.me&format=base64")
.then(res => res.json())
.then(json => {
console.log("Base64 Data URI:", json.data);
// document.getElementById('my-img').src = json.data;
});