No Separate Download EndpointQR code images are included directly in the response from:
- Generate QR Code - Returns
qr_code_dataanddataURLfields - List QR Codes - Returns
dataURLfor each QR code
Understanding the Data URL Format
The API returns QR codes as data URLs in this format:- MIME type:
image/png - Encoding:
base64 - Image data: The actual PNG image bytes
Download Examples
- JavaScript (Browser)
- Node.js
- Python
- PHP
- Go
- Java
Converting to Different Formats
Since the API returns PNG format, you may want to convert to other formats client-side:Convert to SVG (Client-side)
Convert to SVG (Client-side)
For true vector SVG, you would need to regenerate the QR code client-side. However, you can embed the PNG in an SVG container:
Convert to JPEG (Python)
Convert to JPEG (Python)
Resize QR Code
Resize QR Code
Best Practices
Choose the Right Size
Request a larger size in
visual_settings.size (e.g., 500-1000px) to avoid quality loss when resizing.Use High Error Correction
Set
errorCorrectionLevel: 'H' if adding logos or printing at small sizes.PNG for Digital Use
PNG format preserves sharp edges, ideal for screens and digital displays.
Consider JPEG for Print
Convert to JPEG with high quality (90%+) for print materials to reduce file size.