QR Code
FreeGenerate QR codes for URLs, text, or any data. Supports PNG and SVG output formats with customizable colors, sizes, and error correction levels.
Generate a QR code
Generate a QR code for any text, URL, or data. Returns a JSON response with base64-encoded image data that can be embedded directly in applications.
GET
/
qr-code
/
generate
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| data | string | The text, URL, or data to encode in the QR code | Required |
| size | integer | The size of the QR code in pixels (32-1024) | Optional |
| output_format | string | Output format (png or svg) | Optional |
| error_correction | string | Error correction level (l=7%, m=15%, q=25%, h=30%) | Optional |
| foreground | string | Foreground color as hex code | Optional |
| background | string | Background color as hex code | Optional |
Response Schema
{
"type": "object",
"properties": {
"data": {
"type": "string",
"description": "The original data encoded in the QR code",
"example": "https://example.com"
},
"output_format": {
"type": "string",
"description": "The output format used",
"example": "png"
},
"size": {
"type": "integer",
"description": "The size of the QR code in pixels",
"example": 256
},
"error_correction": {
"type": "string",
"description": "The error correction level used",
"example": "m"
},
"image": {
"type": "string",
"description": "Base64-encoded image data (for PNG) or SVG markup (for SVG)",
"example": "iVBORw0KGgoAAAANSUhEUgAA..."
},
"content_type": {
"type": "string",
"description": "The MIME type of the image",
"example": "image/png"
}
},
"required": [
"data",
"output_format",
"size",
"error_correction",
"image",
"content_type"
]
}
curl --request GET \
--url "https://www.apikiss.com/api/v1/qr-code/generate?data=https%3A%2F%2Fexample.com&size=256&output_format=png&error_correction=m&foreground=%23ff0000&background=%23ffffff" \
--header 'Authorization: Bearer <token>'
{
"type": "object",
"properties": {
"data": {
"type": "string",
"description": "The original data encoded in the QR code",
"example": "https://example.com"
},
"output_format": {
"type": "string",
"description": "The output format used",
"example": "png"
},
"size": {
"type": "integer",
"description": "The size of the QR code in pixels",
"example": 256
},
"error_correction": {
"type": "string",
"description": "The error correction level used",
"example": "m"
},
"image": {
"type": "string",
"description": "Base64-encoded image data (for PNG) or SVG markup (for SVG)",
"example": "iVBORw0KGgoAAAANSUhEUgAA..."
},
"content_type": {
"type": "string",
"description": "The MIME type of the image",
"example": "image/png"
}
},
"required": [
"data",
"output_format",
"size",
"error_correction",
"image",
"content_type"
]
}
Response
Click "Send Request" to see the response...
Generate a QR code image (binary)
Generate a QR code and return it as a raw PNG or SVG image. Use this endpoint when you need to display or download the QR code image directly.
GET
/
qr-code
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| data | string | The text, URL, or data to encode in the QR code | Required |
| size | integer | The size of the QR code in pixels (32-1024) | Optional |
| output_format | string | Output format (png or svg) | Optional |
| error_correction | string | Error correction level (l=7%, m=15%, q=25%, h=30%) | Optional |
| foreground | string | Foreground color as hex code | Optional |
| background | string | Background color as hex code | Optional |
curl --request GET \
--url "https://www.apikiss.com/api/v1/qr-code?data=https%3A%2F%2Fexample.com&size=256&output_format=png&error_correction=m&foreground=%23ff0000&background=%23ffffff" \
--header 'Authorization: Bearer <token>'
{
"message": "Success"
}
Response
Click "Send Request" to see the response...
Authorizations
Authorization
header
required
Authentication token in the format "Bearer <token>"