QR Code Generator
Generate QR codes for any text or URL with customizable size. Perfect for sharing links, contact information, or any text content.
API Endpoint
GET
https://cdn.bizkithub.com/qr
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
text | string | Required | The text or URL to encode in the QR code |
size | integer | Optional | Size in pixels (default: 200, max: 1000) |
Examples
Basic QR Code
GET https://cdn.bizkithub.com/qr?text=Hello%20World
Generates a 200x200px QR code containing "Hello World"
Custom Size QR Code
GET https://cdn.bizkithub.com/qr?text=https://bizkithub.com&size=400
Generates a 400x400px QR code for the BizKitHub website
Contact Information
GET https://cdn.bizkithub.com/qr?text=BEGIN:VCARD%0AVERSION:3.0%0AFN:John%20Doe%0AORG:BizKitHub%0ATEL:+1234567890%0AEMAIL:john@bizkithub.com%0AEND:VCARD&size=300
Generates a vCard QR code for contact information
JavaScript Integration
// Generate QR code URL
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 qrUrl1 = generateQRCode('Hello World');
const qrUrl2 = generateQRCode('https://bizkithub.com', 400);
// Display in HTML
document.getElementById('qr-image').src = qrUrl1;
Response
Response Format
The API 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
✅ No Authentication Required
This utility is free to use without authentication. Rate limits:
- • 1000 requests per hour per IP address
- • Maximum size: 1000x1000 pixels
- • Maximum text length: 2000 characters
Error Handling
400Bad Request
Missing or invalid parameters (e.g., missing text parameter)
429Too Many Requests
Rate limit exceeded, try again later