QR codes and barcodes at the edge
Generate QR codes and 1D barcodes as clean SVG — no fonts, no raster images. Supports QR (all error correction levels), Code 128, EAN-13, UPC-A, and Code 39. Sub-5ms at the network edge.
Subscribe on RapidAPI| Format | Endpoint | Output | Notes |
|---|---|---|---|
QR Code | /v1/qr | SVG | EC levels L, M, Q, H — auto-selects version |
Code 128 | /v1/barcode | SVG | Full printable ASCII (Subset B) |
EAN-13 | /v1/barcode | SVG | 12 or 13 digits — check digit auto-computed |
UPC-A | /v1/barcode | SVG | 11 or 12 digits — encoded as EAN-13 with leading 0 |
Code 39 | /v1/barcode | SVG | Alphanumeric + symbols (auto-uppercased) |
/v1/qr Generate a QR code SVG (error correction L / M / Q / H)
{
"data": "https://example.com",
"size": 256,
"error_correction": "M"
} {
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" .../>",
"version": 3,
"error_correction": "M",
"modules": 29
} curl -X POST https://qr-codes-barcodes.p.rapidapi.com/v1/qr \
-H "Content-Type: application/json" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: qr-codes-barcodes.p.rapidapi.com" \
-d '{"data":"https://example.com","size":256,"error_correction":"M"}'
# Save SVG directly to a file:
curl -s -X POST https://qr-codes-barcodes.p.rapidapi.com/v1/qr \
-H "Content-Type: application/json" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: qr-codes-barcodes.p.rapidapi.com" \
-d '{"data":"https://example.com","size":256}' \
| python3 -c "import sys,json; print(json.load(sys.stdin)['svg'])" > qr.svg /v1/barcode Generate a 1D barcode SVG (EAN-13, UPC-A, Code 128, Code 39)
{
"data": "5901234123457",
"symbology": "ean13",
"height": 100,
"bar_width": 2
} {
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" .../>",
"symbology": "ean13",
"data": "5901234123457"
} curl -X POST https://qr-codes-barcodes.p.rapidapi.com/v1/barcode \
-H "Content-Type: application/json" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: qr-codes-barcodes.p.rapidapi.com" \
-d '{"data":"5901234123457","symbology":"ean13"}'
# Save SVG directly to a file:
curl -s -X POST https://qr-codes-barcodes.p.rapidapi.com/v1/barcode \
-H "Content-Type: application/json" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: qr-codes-barcodes.p.rapidapi.com" \
-d '{"data":"5901234123457","symbology":"ean13"}' \
| python3 -c "import sys,json; print(json.load(sys.stdin)['svg'])" > barcode.svg /v1/health No auth required Health check — no authentication required
{
"status": "ok"
} curl https://qr-codes-barcodes.p.rapidapi.com/v1/health All errors follow a flat JSON shape:
{ "error": "<message>", "code": <http_status> } | Status | Condition |
|---|---|
| 401 | Missing or invalid X-RapidAPI-Proxy-Secret header |
| 400 | Unsupported symbology, invalid data (e.g. non-numeric EAN-13), or bad EC level |
| 422 | Malformed JSON request body |
| 404 | Unknown route |
| 500 | Internal server error |
Sign up on RapidAPI to get your API key and start generating barcodes in minutes.