Help & API Documentation
URL Parameters (Form Prepopulation)
You can prepopulate form fields by adding parameters to the URL. Perfect for bookmarking or sharing configurations.
| Parameter | Description | Example |
|---|---|---|
input | Text for QR codes (use || for multiple) | Hello||World |
fileType | svg or png | png |
width | Size in pixels (50-2000) | 300 |
margin | Margin (0-20) | 5 |
qrColor | QR color (hex) | %23ff0000 |
bgColor | Background color (hex) | %23ffffff |
backgroundType | transparent or color | color |
namingConvention | sequential, string, parameter, prefix | prefix |
filenamePrefix | Custom prefix for filenames | company |
Example URL:
http://localhost:3000/?input=Hello%20World||Welcome&fileType=png&margin=5Direct Download API
Generate and download QR codes directly without using the form interface.
Single QR Code (returns image file directly):
http://localhost:3000/api/generate-qr?input=Hello%20World&fileType=pngMultiple QR Codes (returns ZIP file):
http://localhost:3000/api/generate-qr?input=Hello||World||Test&fileType=pngNotes
- Use
||(double pipes) to separate multiple QR code entries - For parameter naming, use single
|to separate text from filename - URL-encode special characters (e.g.,
#ffffffbecomes%23ffffff) - Single QR codes return the image file directly, multiple return a ZIP