Use this API to generate QR codes programmatically.
POST https://freeqrcodes.in/api.php
text
โ Text or URL to encode in the QR codeforeground
โ Foreground color in hex (default: #000000)background
โ Background color in hex (default: #FFFFFF)style
โ Style (default: squares
; options: squares
, dots
, rounded
, classy
, circles
)format
โ Output format (default: png
; options: png
, svg
)curl -X POST "https://freeqrcodes.in/api.php" \
-H "Content-Type: application/json" \
-d '{
"text": "https://example.com",
"foreground": "#000000",
"background": "#FFFFFF",
"style": "squares",
"format": "png"
}'
{
"success": true,
"filename": "qr-2024-03-21-10-30-45.png",
"path": "uploads/qr-2024-03-21-10-30-45.png",
"download_url": "https://freeqrcodes.in/uploads/qr-2024-03-21-10-30-45.png"
}
{"text": "https://example.com"}
{"text": "https://example.com", "foreground": "#FF0000", "background": "#000000"}
{"text": "https://example.com", "style": "dots"}
{"text": "https://example.com", "format": "svg"}