QR Code API
SVG or PNG QR codes from a GET — pure TypeScript (uqr), no browser needed.
Encode any payload up to 4KB into a scannable QR. Tune ECC, border, size, and colors via query params. Pair with the on-site QR Code Generator when you want a UI; use this host when you need images in email, PDFs, or CI.
Endpoint
All requests should be made to the following host:
GET https://qr.tools.town/?data=… Authentication
All Endpoints
Every route available on qr.tools.town.
| Method | Path | Description |
|---|---|---|
| GET | /?data=… | Return SVG (default) or PNG QR for the payload. |
| GET | /validate?data=… | Validate payload size / encoding without rendering. |
| GET | /meta | Service metadata (limits, defaults). |
| GET | /embed | HTML demo widget. |
Example Request
curl -L -o qr.svg "https://qr.tools.town/?data=https%3A%2F%2Ftools.town&format=svg&size=400" Error Codes
| Code | Meaning |
|---|---|
| 400 | Bad Request — missing or invalid parameter |
| 404 | Not Found — unknown route on this host |
| 405 | Method Not Allowed — check the method in the table above |
| 500 | Internal Server Error — try again or contact support |