AirQR Public API
A free, lightning fast, and edge-ready API to generate extremely crisp SVG QR codes instantly. No authentication required. No rate limits (subject to fair use). Full CORS support.
Base Endpoint
Base URL for all requests:
GET https://airqr.vercel.app/api/qrGlobal UI Parameters
These parameters can be appended to ANY type of QR code to customize its appearance:
| Parameter | Type | Default | Description |
|---|---|---|---|
| color | string (hex) | #000000 | Color of the dark blocks. E.g., %23ff0000 |
| bg | string (hex) | #ffffff | Background color of the QR code. |
| margin | number | 2 | White space padding around the QR code border. |
Generating Specific Types
AirQR automatically formats raw text into standardized QR schemes for you. Just pass the `type` parameter alongside the necessary info.
1. Standard URL or Text (Default)
Pass your URL directly or plain text to the data parameter.
https://airqr.vercel.app/api/qr?data=https://github.com/muzammil-shayk2. Wi-Fi Auto-Connect
Creates a QR code that prompts devices to connect to a Wi-Fi network instantly.
https://airqr.vercel.app/api/qr?type=wifi&ssid=MyNetwork&password=SuperSecret123&encryption=WPAtype=wifi, ssid (Required), password, encryption (WPA, WEP, or nopass. Default is WPA).3. Email Draft
Opens the default mail app with a pre-filled recipient and subject line.
https://airqr.vercel.app/api/qr?type=email&email=contact@example.com&subject=Hello%20There&body=I%20have%20an%20inquiry...type=email, email (Required), subject, body.4. SMS Text Message
Opens the SMS/Messages app to a specific number with a pre-filled draft.
https://airqr.vercel.app/api/qr?type=sms&phone=+1234567890&message=RSVP%20Yes!type=sms, phone (Required), message.5. Queue Phone Call
Queues up the dialpad with the specified phone number.
https://airqr.vercel.app/api/qr?type=phone&phone=+1234567890type=phone, phone (Required).Ready to Integrate?
Because the API returns native SVG with proper CORS headers, you can drop these API endpoints directly into your <img src="..." /> tags without worrying about blocking.