Quick Start
Last updated:
Generate your first QR code in 3 steps. Takes about 30 seconds.
1. Get your API key
Sign up at qr-maker.io and go to Settings → API Keys. Click "Create Key" and copy it.
Your key looks like: qk_live_x7X46HlaI4o6_...
2. Generate a QR code
curl
curl -X POST https://api.qr-maker.io/v2/qr/generate \
-H "x-api-key: qk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "https://yourwebsite.com",
"style": {
"dotsOptions": { "color": "#6366f1", "type": "rounded" },
"backgroundOptions": { "color": "#ffffff" }
}
}'JavaScript (fetch)
const res = await fetch('https://api.qr-maker.io/v2/qr/generate', {
method: 'POST',
headers: {
'x-api-key': 'qk_live_YOUR_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
content: 'https://yourwebsite.com',
style: {
dotsOptions: { color: '#6366f1', type: 'rounded' },
backgroundOptions: { color: '#ffffff' },
},
}),
});
const { data } = await res.json();
console.log(data.url); // Public URL of the QR imagePython (requests)
import requests
res = requests.post(
'https://api.qr-maker.io/v2/qr/generate',
headers={'x-api-key': 'qk_live_YOUR_KEY'},
json={
'content': 'https://yourwebsite.com',
'style': {
'dotsOptions': {'color': '#6366f1', 'type': 'rounded'},
'backgroundOptions': {'color': '#ffffff'},
},
},
)
data = res.json()['data']
print(data['url']) # Public URL of the QR image3. Use the result
The response includes:
url— Public URL you can embed directly in HTML, emails, or sharealt— Alt text for the QR imageshort_link— Tracked short URL (when content is a URL)
<img src="{data.url}" alt="{data.alt}" />