Generate QR codes with a single GET request. PNG or SVG output, custom colors, sizes up to 1000px. No libraries, no SDKs — just an HTTP call.
Pass your data as a query parameter — a URL, text, or any string up to 4,296 characters.
Choose PNG or SVG, set a size (up to 1000px), and pick custom foreground/background colors.
The API returns the image directly. Save it, serve it, or embed it inline — no extra steps.
| Param | Required | Description |
|---|---|---|
data | Required | Text or URL to encode in the QR code |
size | Optional | Width in pixels, max 1000 (default 300) |
format | Optional | "png" or "svg" (default "png") |
dark | Optional | Foreground color hex, e.g. 6366f1 (default 000000) |
light | Optional | Background color hex (default ffffff) |
curl "https://api-snap.com/api/qr?data=https://example.com&size=400" \
-H "Authorization: Bearer snp_your_key" -o qr.pngconst res = await fetch(
"https://api-snap.com/api/qr?data=https://example.com&size=400&format=svg",
{ headers: { Authorization: "Bearer snp_your_key" } }
);
const blob = await res.blob();import requests
r = requests.get(
"https://api-snap.com/api/qr",
params={"data": "https://example.com", "size": 400},
headers={"Authorization": "Bearer snp_your_key"},
)
with open("qr.png", "wb") as f:
f.write(r.content)Embed QR codes in invoices and receipts for quick mobile payments
Generate scannable ticket codes for events, boarding passes, or check-ins
Add QR codes to flyers, posters, and print ads linking to your site
Encode deep links or universal links for mobile app onboarding
Generate WIFI:T:WPA;S:MyNetwork;P:password;; QR codes for easy network sharing
Link physical products to digital content, manuals, or warranty registration
The QR Code API is included in every API Snap plan along with all other endpoints.
$0
100/mo
$9/mo
5,000/mo
$29/mo
50,000/mo
$99/mo
500,000/mo
Get your API key in 30 seconds. 100 free calls every month.
Get Your Free API Key