QR Code Generator
Generate high-quality QR codes for any text, URL, or contact information. Perfect for sharing links, WiFi credentials, or vCard data.
No AuthenticationUp to 1000pxPNG Output
API Endpoint
GET
https://cdn.bizkithub.com/qrParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Required | The text or URL to encode in the QR code |
size | integer | Optional | Output size in pixels (default: 200, max: 1000) |
Examples
Basic QR Code
Generate a 200x200px QR code containing "Hello World"
GET https://cdn.bizkithub.com/qr?text=Hello%20WorldCustom Size
Generate a 400x400px QR code for a URL
GET https://cdn.bizkithub.com/qr?text=https://bizkithub.com&size=400vCard Contact
Generate a QR code containing contact information
GET https://cdn.bizkithub.com/qr?text=BEGIN:VCARD%0AVERSION:3.0%0AFN:John%20Doe%0AORG:BizKitHub%0ATEL:+1234567890%0AEND:VCARD&size=300JavaScript Integration
function generateQRCode(text, size = 200) {
const baseUrl = 'https://cdn.bizkithub.com/qr';
const params = new URLSearchParams({
text: text,
size: size.toString()
});
return `${baseUrl}?${params}`;
}
// Usage examples
const qrUrl = generateQRCode('Hello World');
const largeQR = generateQRCode('https://bizkithub.com', 400);
// Display in HTML
document.getElementById('qr-image').src = qrUrl;
// Download QR code
async function downloadQR(text, filename = 'qrcode.png') {
const url = generateQRCode(text, 400);
const response = await fetch(url);
const blob = await response.blob();
const link = document.createElement('a');
link.href = URL.createObjectURL(blob);
link.download = filename;
link.click();
}Response
Success Response
Returns a PNG image with the appropriate Content-Type header. The image can be directly embedded in HTML or downloaded.
Content-Type: image/png
Content-Length: [size in bytes]
[PNG image data]Rate Limits
1,000 requests/hour per IP address
Maximum size: 1000x1000 pixels
Max text length: 2,000 characters
Error Handling
400Bad Request
Missing or invalid parameters (e.g., missing text parameter)
429Too Many Requests
Rate limit exceeded, please try again later