QR Code Generator & API

Anonymous User 1 request/day
💡 Tip: Sign up for a free account to get 100 QR code generations per day instead of just 1!

Generate QR Code via Form

Your QR Code:

Generated QR Code
Encoding:

How to Use the API

Programmatically generate QR codes using our REST API. This is useful for integrating QR generation into your applications or scripts.

Endpoint:

GET http://pramari.de/qrcode/api/

Authentication:

Optional. This API endpoint supports both anonymous and authenticated users with different rate limits:

  • Anonymous users: 1 request per day
  • Authenticated users: 100 requests per day

For Token Authentication, include an Authorization header: Authorization: Token your_api_token_here.

Query Parameters:

  • 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

Rate Limiting:

The API implements tiered rate limiting:

  • Anonymous users: 1 request/day per IP address
  • Authenticated users: 100 requests/day per user

Successful Response (Status 200 OK):

On success, the API returns the QR code directly as a PNG image.

Content-Type: image/png

Error Responses (JSON):

  • 400 Bad Request: If the data parameter is missing or invalid.
    Payload: {"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.
    Payload: {"error": "An error occurred..."}