Render a QR code image
A QR code image as SVG (default), PNG, WebP or EPS, with no key.
No key or token needed, and it doesn't use your daily quota: put the URL straight into an <img> tag. The same query always returns the same bytes, so responses are cached for a year. Colors are hex without # (or with # encoded as %23). Limit: 300 requests a minute per IP address. More in the Image API guide.
The editor's styles. style takes the whole design as URL-encoded JSON, with the same fields as a saved theme: gradients (linear, radial), frames including custom frame specs, border templates, eye and dot colors, and a logo icon. It also takes the style value of a playground link. item renders a community frame or theme (/community/items); frame and frameText add a built-in frame. Flat parameters you set win over style, and style wins over item. With a frame, size is the code's width and the frame adds to it.
Logos. logoIcon draws one of the editor's quick icons, or a brand logo by its Simple Icons slug (spotify, paypal:white). logoFileId draws an image you uploaded, and needs Authorization: Bearer qrdx_… from the workspace that owns it; that response is private and counts toward the daily quota. QRdx never fetches a logo from an address you send. Logo QR and Image QR art aren't available here.
Caching. Renders with item are cached for 5 minutes (10 at the CDN), since an item can change; renders with logoFileId aren't cached.
WebP is lossless: the same pixels as the PNG in a smaller file, transparency included.
data*stringText or URL to encode
1 <= length <= 2048size?integerWidth and height in pixels (with a frame: the code's width; the frame adds to it)
64 <= value <= 2048512fg?stringForeground (module) color as hex
^#?(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"#000000"bg?stringBackground color as hex
^#?(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"#ffffff"eyeColor?stringColor of the three corner eyes (defaults to fg)
^#?(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$dotColor?stringColor of the dot inside each corner eye (defaults to fg)
^#?(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$body?stringShape of the data modules
"square""circle""circle-large""square""diamond""circle-mixed""pacman""rounded""small-square""vertical-line""horizontal-line""liquid""liquid-horizontal""liquid-vertical""classy""classy-rounded""leaf""plus""hexagon""star""heart""random-dots""mosaic""octagon"eye?stringShape of the corner eye frames
"square""square""rounded""gear""circle""diya""extra-rounded""message""pointy""leaf""drop""octagon""bevel""squircle""cushion""shield""petal""leaf-reverse"dot?stringShape of the dot inside each corner eye
"square""square""rounded""circle""message""message-reverse""diya""diya-reverse""rounded-triangle""leaf""drop""plus""cross-rounded""hexagon""octagon""flower""heart""squircle""dots""extra-rounded""leaf-reverse""drop-reverse"level?stringError correction level: L 7%, M 15%, Q 25%, H 30%
"Q""L""M""Q""H"margin?integerQuiet zone around the code, in modules
0 <= value <= 164template?stringDecorative frame template
"default""Arrow""StandardBox""SquareBorder""StrikedBox""Halloween"format?stringImage format
"svg""svg""png""webp""eps"style?stringThe editor's whole style: URL-encoded JSON with the same fields as a saved theme (gradients, frames including custom frame specs, border templates, eye and dot colors, logoIcon, logoFileId), or the style value of a playground link (1.…). Flat parameters you also set win over it.
length <= 8192item?stringA community theme or frame by id, such as frame:wifi-table-card (from /v1/community/items). style and flat parameters win over it.
length <= 100frame?stringA built-in call-to-action frame around the code
"banner-bottom""banner-top""border""rounded-border""speech-bubble""banner-top-bottom""speech-bubble-top""chat-bubble""circle""polaroid""phone""ticket""badge""envelope""tag""menu-card""sticker""gradient-border""focus"frameText?stringThe frame's label, up to 24 characters (default "Scan me"; empty hides it)
length <= 24logoIcon?stringA logo QRdx draws: a quick icon on a white tile (wifi, location, phone, email, link, file, calendar, whatsapp, instagram), or any brand from Simple Icons by its slug (spotify, paypal, googlemaps), drawn in its brand color. Add :black or :white for those colors (whatsapp:white). Brand logos have no tile; set logoOptions.plate for a plate behind one.
^[a-z0-9]{1,64}(?::(?:brand|black|white))?$logoFileId?stringA logo you uploaded (PNG or JPEG, up to 1 MB) by file id. Needs Authorization: Bearer qrdx_… from the workspace that owns the file; the response is then private and not cached.
^[a-z0-9]{20,40}$The image. Cache-Control: public, max-age=31536000, immutable; CORS is open to every origin.
response?stringcurl -X GET 'https://api.qrdx.dev/v1/qr?data=https%3A%2F%2Fqrdx.dev&format=svg'"<svg height=\"512\" viewBox=\"0 0 512 512\" width=\"512\" xmlns=\"http://www.w3.org/2000/svg\"><rect fill=\"#ffffff\" height=\"512\" width=\"512\" x=\"0\" y=\"0\"/><g fill=\"#000000\">…</g></svg>"Last updated on