๐Ÿš€ QR Code API Documentation

Use this API to generate QR codes programmatically.

๐Ÿ“ก Endpoint:
POST https://freeqrcodes.in/api.php
๐Ÿ›  Required Parameters:
  • text โ€“ Text or URL to encode in the QR code
๐ŸŽจ Optional Parameters:
  • foreground โ€“ 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)
๐Ÿ’ป Example cURL:
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"
  }'
๐Ÿ“ฆ Example Response:
{
  "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"
}
๐Ÿงช Example Usage:
  • Basic QR: {"text": "https://example.com"}
  • With Colors: {"text": "https://example.com", "foreground": "#FF0000", "background": "#000000"}
  • Styled QR: {"text": "https://example.com", "style": "dots"}
  • SVG Format: {"text": "https://example.com", "format": "svg"}