Generate a QR code (query params)

Returns a QR code as SVG or PNG. Encode any text or URL via the data parameter.

get/v1/qr

Query parameters

datastring required

Text or URL to encode.

format'svg' | 'png'
sizeinteger

Pixel size (PNG) or viewBox (SVG).

margininteger
darkstring

Foreground colour as a hex code, e.g. 232E3A.

lightstring

Background colour as a hex code, e.g. FFFFFF.

themestring

A saved theme id or name. Applies the theme's colours/margin. Explicit dark/light/margin override it.

Response

The rendered QR code.

Changes

Changed in 1 of the 5 revisions of this API.1

    • for the query request parameter size, the min was increased from 64.00 to 96.00

      request-parameter-min-increased