Back to Tool
▣
QR Code Generator API
Generate QR codes as images via API
Endpoint
POST
/api/v1/qr-code-generatorAuthentication
Include your API key in the request header:
X-API-Key: your_api_key_hereGet your API key from the Dashboard
Request Body
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
| data | string | Yes | Data to encode in QR code (max 2000 characters) |
| size | number | No | QR code size in pixels (64-1024, default: 256) |
| format | string | No | Output format: "svg" or "base64" (default: svg) |
Response
| Field | Type | Description |
|---|---|---|
| success | boolean | Whether the operation was successful |
| qrCode | string | SVG string or base64 data URL |
| format | string | Output format used |
| size | number | QR code size in pixels |
Code Examples
curl -X POST https://tools.shubhambadgujar.com/api/v1/qr-code-generator \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{"data": "https://example.com", "size": 300, "format": "base64"}'Rate Limits
- • 100 requests per minute
- • 10,000 requests per day
- • Max request size: 10MB
Need Help?
Contact us at support@shubhambadgujar.com