QR

Generate a QR code (PNG, SVG, or data URI)

Encodes text or a URL into a QR code. format=png returns an image/png, format=svg returns image/svg+xml, format=datauri returns JSON with a base64 data URI you can drop into an <img> src.

get/qr/generate

Request

  • Base URL: https://abundanceapis.com
  • URL: https://abundanceapis.com/qr/generate
  • Auth: none declared

Query parameters

datastring required

Text or URL to encode

format'png' | 'svg' | 'datauri'

Output format

sizeinteger

Image width in px

margininteger

Quiet-zone modules

ecc'L' | 'M' | 'Q' | 'H'

Error-correction level

darkstring

Foreground hex color

lightstring

Background hex color

Changes

No recorded changes to this operation across all 1 revision of this API.