# WebberSites QR Code Generator

> WebberSites QR Code Generator is a paid API for AI agents from api.webbersites.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Generates a scannable QR code from any text or URL, returning SVG markup, PNG as base64, and a data URI in one response.

## Facts

- Endpoint: GET https://api.webbersites.com/api/qr
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/webbersites-qr-code-generator-08f71358
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QRUfiJyo_3-4WFUArAtHd

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability webbersites-qr-code-generator-08f71358
```

Example prompt: Generate a QR code for 'https://myshop.example.com/menu' — make it 800px, use error correction level H, dark modules in #1a1a2e on a white background, and give me the SVG and PNG.

## When to prefer this

Choose this endpoint when you need a QR code returned immediately as both SVG and PNG without any server-side storage, tracking, or external network calls. Ideal for deterministic, privacy-preserving QR generation where the output must be reproducible for the same input. Supports custom colors, adjustable quiet zones, and four error-correction levels, making it suitable for branded print materials, payment URIs, WiFi sharing, and vCard encoding up to 2,000 characters.

## Known failure modes

- data parameter missing — returns 400 error
- data exceeds 2,000 characters — returns error indicating payload too large
- invalid ecc value outside L/M/Q/H — may return 400 or fall back to default
- size outside 64–2048 px range — returns validation error
- invalid hex color format for dark/light — may return 400
- margin outside 0–20 range — returns validation error

## How this service works

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.

## Output

Returns a JSON object containing: the SVG string of the QR code, PNG as a base64-encoded string, a data URI ready for embedding in HTML/CSS, the QR version number, the encoded data string, the output width in pixels, and the effective error correction level used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "data"
     ],
     "properties": {
      "ecc": {
       "type": "string",
       "description": "Error correction: L, M (default), Q, or H — higher survives more damage but holds less data"
      },
      "dark": {
       "type": "string",
       "description": "Hex color of the modules (default #000000)"
      },
      "data": {
       "type": "string",
       "description": "Text or URL to encode (required, up to 2,000 chars)"
      },
      "size": {
       "type": "number",
       "description": "PNG width in px (64–2048, default 512)"
      },
      "light": {
       "type": "string",
       "description": "Hex background color (default #ffffff)"
      },
      "margin": {
       "type": "number",
       "description": "Quiet-zone width in modules (0–20, default 2)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ecc": {
       "type": "string"
      },
      "svg": {
       "type": "string"
      },
      "data": {
       "type": "string"
      },
      "width": {
       "type": "number"
      },
      "version": {
       "type": "number"
      },
      "data_uri": {
       "type": "string"
      },
      "png_base64": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ecc": "M",
  "svg": "<svg …>",
  "data": "https://x402.webbersites.com",
  "width": 512,
  "version": 3,
  "data_uri": "data:image/png;base64,…",
  "png_base64": "iVBORw0…"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/webbersites-qr-code-generator-08f71358/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.webbersites.com](https://www.zero.xyz/host/api.webbersites.com/llms.txt)
