Design & Assets

QR code generator

QR code generator: GET ?data=<text|url> and receive a scannable QR as SVG plus PNG (base64) and a data: URI. Options: size (px, default 512), margin (quiet-zone modules, default 2), ecc (L|M|Q|H, default M), dark/light hex colors. Deterministic, no network, no tracking — encode URLs, wifi, vCards, or payment URIs up to 2,000 chars.

Price: $0.01 per call, paid in USDC via the x402 protocol (see the x402 security scheme).

get/api/qr

Request

  • Base URL: https://api.webbersites.com
  • URL: https://api.webbersites.com/api/qr
  • Auth: API key in header X-PAYMENT

Query parameters

datastring required

Text or URL to encode (required, up to 2,000 chars)

sizenumber

PNG width in px (64–2048, default 512)

marginnumber

Quiet-zone width in modules (0–20, default 2)

eccstring

Error correction: L, M (default), Q, or H — higher survives more damage but holds less data

darkstring

Hex color of the modules (default #000000)

lightstring

Hex background color (default #ffffff)

Response

Success

datastring
versionnumber
eccstring
widthnumber
svgstring
png_base64string
data_uristring

Changes

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