Error:
Programmatically generate QR codes using our REST API. This is useful for integrating QR generation into your applications or scripts.
GET http://pramari.de/qrcode/api/
Optional. This API endpoint supports both anonymous and authenticated users with different rate limits:
For Token Authentication, include an Authorization
header: Authorization: Token your_api_token_here
.
data
(string, required): The text, URL, or any data you want to encode into the QR code.Example: http://pramari.de/qrcode/api/?data=Hello+World
The API implements tiered rate limiting:
1 request/day
per IP address100 requests/day
per userOn success, the API returns the QR code directly as a PNG image.
Content-Type: image/png
400 Bad Request
: If the data
parameter is missing or invalid. {"error": "The 'data' query parameter is required."}
429 Too Many Requests
: If the user/IP exceeds the defined rate limits.500 Internal Server Error
: If an unexpected error occurs on the server. {"error": "An error occurred..."}