Utilities Active

QR Code API

Generate high-quality QR codes with customization options for colors, size, and error correction. Perfect for URLs, text, vCards, WiFi credentials, and more.

https://qr-code.localapi.ro
< 200ms Response Time
1/sec Rate Limit
None Auth Required
Free Pricing

Quick Start

Request
curl -X POST "https://qr-code.localapi.ro/generate" \
  -H "Content-Type: application/json" \
  -d '{"data": "https://localapi.ro", "size": 300}' \
  --output qrcode.png
Request
import requests

response = requests.post(
    "https://qr-code.localapi.ro/generate",
    json={
        "data": "https://localapi.ro",
        "size": 300,
        "format": "png"
    }
)

with open("qrcode.png", "wb") as f:
    f.write(response.content)
print("QR code saved!")
Request
const response = await fetch("https://qr-code.localapi.ro/generate", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    data: "https://localapi.ro",
    size: 300,
    format: "png"
  })
});

const blob = await response.blob();
const url = URL.createObjectURL(blob);
// Display the QR code image

Response

200 OK image/png
Binary image data (PNG/SVG/JPEG)

Available Endpoints

POST /generate

Generate a QR code image with customizable options.

Parameters

Parameter Type Required Description
data string Yes Content to encode (URL, text, etc.)
size integer No Image size in pixels (default: 200)
format string No Output format: png, svg, jpeg (default: png)
color string No QR code color in hex (default: #000000)
background string No Background color in hex (default: #ffffff)
GET /health

Check service health and availability status.

Error Codes

Code Description
400 Invalid request - missing data or invalid parameters
422 Validation error - data too long or invalid format
429 Rate limit exceeded
500 Internal server error