Dokaz API › Docs › QR Code API
QR code API: SVG and PNG in one request
A QR code is a URL away. Put the text in the data parameter and get back an SVG (crisp at any size) or a PNG. Error-correction level, foreground and background colours, margin and rounded modules are all query parameters.
Responses are immutable and cached for a year, so you can hot-link the URL from an <img> tag and forget about it.
Request
curl "https://api.dokaz.net/v1/qr?data=https%3A%2F%2Fdokazindustries.com&format=svg&size=256&ec=M"
Add format=png for a PNG, or POST with format: "json" to get the raw module matrix and render it yourself.
Pricing
100 calls a day are free with no key. Need more? Starter is $9/month for 10,000 calls across every product, key issued instantly.
Questions
What is the maximum length?
2,953 bytes at error-correction level L (the QR version 40 limit). Higher correction levels hold less; the API tells you when the data does not fit.
Does it support Wi-Fi and contact cards?
Yes: /v1/qr/wifi builds the standard Wi-Fi join payload and /v1/qr/vcard builds a vCard, then renders either one.