Developer API

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/qr

Global UI Parameters

These parameters can be appended to ANY type of QR code to customize its appearance:

ParameterTypeDefaultDescription
colorstring (hex)#000000Color of the dark blocks. E.g., %23ff0000
bgstring (hex)#ffffffBackground color of the QR code.
marginnumber2White 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.

Example Request (URL)
https://airqr.vercel.app/api/qr?data=https://github.com/muzammil-shayk

2. Wi-Fi Auto-Connect

Creates a QR code that prompts devices to connect to a Wi-Fi network instantly.

Example Request (Wi-Fi)
https://airqr.vercel.app/api/qr?type=wifi&ssid=MyNetwork&password=SuperSecret123&encryption=WPA
Parameters: type=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.

Example Request (Email)
https://airqr.vercel.app/api/qr?type=email&email=contact@example.com&subject=Hello%20There&body=I%20have%20an%20inquiry...
Parameters: type=email, email (Required), subject, body.

4. SMS Text Message

Opens the SMS/Messages app to a specific number with a pre-filled draft.

Example Request (SMS)
https://airqr.vercel.app/api/qr?type=sms&phone=+1234567890&message=RSVP%20Yes!
Parameters: type=sms, phone (Required), message.

5. Queue Phone Call

Queues up the dialpad with the specified phone number.

Example Request (Phone)
https://airqr.vercel.app/api/qr?type=phone&phone=+1234567890
Parameters: type=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.

Test via AirQR Generator Interface