Integrasikan QR Code Generator ke aplikasi Anda dengan REST API
X-API-Key.
Daftar akun untuk mendapatkan API Key secara gratis.
| Header | Nilai | Deskripsi |
|---|---|---|
X-API-Key | qr_xxxxxxxx... | API Key yang valid dan aktif |
Buat QR Code dari teks atau URL dengan berbagai opsi kustomisasi.
| Header | Wajib | Nilai |
|---|---|---|
Content-Type | Ya | application/json |
X-API-Key | Ya | API Key anda |
Accept | Tidak | application/json (default) atau image/png / image/jpeg / image/webp / image/svg+xml |
| Parameter | Type | Wajib | Default | Deskripsi |
|---|---|---|---|---|
text |
string | wajib | - | Teks atau URL yang akan diencode |
size |
number | opsional | 300 |
Ukuran dalam pixel (100–1024) |
fgcolor |
string | opsional | #059669 |
Warna foreground (hex, format #RRGGBB) |
format |
string | opsional | png |
Format output: png, jpg, webp, svg |
ecc |
string | opsional | H |
Error correction: L (7%), M (15%), Q (25%), H (30%) |
logo |
string | opsional | - | Base64 image untuk logo di tengah QR (hanya PNG/JPG/WEBP) |
Set header Accept: image/png untuk menerima binary image langsung.
| HTTP Code | Deskripsi |
|---|---|
400 | Bad Request — parameter tidak valid atau kurang |
401 | Unauthorized — header X-API-Key tidak disertakan |
403 | Forbidden — API Key tidak valid atau tidak aktif |
404 | Not Found — endpoint tidak dikenal |
405 | Method Not Allowed — gunakan method yang benar |
429 | Too Many Requests — rate limit terlampaui (60 req/menit) |
500 | Internal Server Error — hubungi admin |
Maksimal 60 request per menit per API Key.