Free tier available

QR Code API

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.

How It Works

1

Make a GET request

Pass your data as a query parameter — a URL, text, or any string up to 4,296 characters.

2

Customize output

Choose PNG or SVG, set a size (up to 1000px), and pick custom foreground/background colors.

3

Get your QR code

The API returns the image directly. Save it, serve it, or embed it inline — no extra steps.

Parameters

ParamRequiredDescription
dataRequiredText or URL to encode in the QR code
sizeOptionalWidth in pixels, max 1000 (default 300)
formatOptional"png" or "svg" (default "png")
darkOptionalForeground color hex, e.g. 6366f1 (default 000000)
lightOptionalBackground color hex (default ffffff)

Code Examples

cURL

curl "https://api-snap.com/api/qr?data=https://example.com&size=400" \
  -H "Authorization: Bearer snp_your_key" -o qr.png

JavaScript (fetch)

const 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();

Python

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)

Common Use Cases

Payment & receipts

Embed QR codes in invoices and receipts for quick mobile payments

Event tickets

Generate scannable ticket codes for events, boarding passes, or check-ins

Marketing materials

Add QR codes to flyers, posters, and print ads linking to your site

App deep links

Encode deep links or universal links for mobile app onboarding

Wi-Fi sharing

Generate WIFI:T:WPA;S:MyNetwork;P:password;; QR codes for easy network sharing

Product packaging

Link physical products to digital content, manuals, or warranty registration

Pricing

The QR Code API is included in every API Snap plan along with all other endpoints.

Free

$0

100/mo

Hobby

$9/mo

5,000/mo

Pro

$29/mo

50,000/mo

Business

$99/mo

500,000/mo

Start Generating QR Codes

Get your API key in 30 seconds. 100 free calls every month.

Get Your Free API Key