v1qrcode
Generate customizable QR codes in multiple formats (PNG, JPG, SVG, EPS) with configurable colors and sizes for encoding data.
Instructions
API Ninjas QR Code API endpoint. Returns a QRCode image binary specified by input parameters.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | data to encode in the QR code. | |
| format | Yes | image format to return. Must be one of the following: png, jpg, jpeg, eps, svg. | |
| size | No | size of the QR code image to generate. The output will be a square image with (size x size) dimensions. | 0 |
| fg_color | No | foreground color of the QR code. Must be a 6-digit hex color (e.g. 00ff00 for green). Default is 000000 (black) | |
| bg_color | No | background color of the QR code. Must be a 6-digit hex color (e.g. 00ff00 for green). Default is ffffff (white) |