UnifyAPI
← Back to catalog

qrserver.generate

mock data$0.001 / call

QR Code Generate

Generate a QR code image URL from text or URL — customizable size, color, background, format (PNG/SVG), error correction level. Returns direct image URL (goqr.me)

Developer Toolsprovider: Qrserver#qrserver#developer

Input schema

ecc

Error correction level: L (7%), M (15%), Q (25%), H (30%) — higher allows more damage tolerance (default: "L")

string
datarequired

Text or URL to encode into a QR code (required)

string
size

Image size in WxH pixels, e.g. "200x200", "400x400" (default: "200x200")

string
color

Foreground color as 6-digit hex without #, e.g. "000000" for black (default: "000000")

string
format

Image format: "png" or "svg" (default: "png")

string
margin

Quiet zone margin in modules around the QR code (default: 1)

integer
bgcolor

Background color as 6-digit hex without #, e.g. "ffffff" for white (default: "ffffff")

string

Call via REST

curl -X POST https://unifyapi.pro/api/call/qrserver.generate \
  -H "Authorization: Bearer uak_live_..." \
  -H "Content-Type: application/json" \
  -d '{"ecc":"<ecc>","data":"<data>","size":"<size>","color":"<color>","format":"<format>","margin":0,"bgcolor":"<bgcolor>"}'

Try it

Paste a UnifyAPI key (create one in the dashboard) and run a real call.