# SiteCheck QR Code Generator

> SiteCheck QR Code Generator is a paid API for AI agents from api.sitecheck-api.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-18).

Generates a QR code from a text or URL input, returning SVG markup, a base64 data URI, and metadata

## Facts

- Endpoint: GET https://api.sitecheck-api.workers.dev/api/qr?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-qr-code-generator-d86f931d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tx44Z52oiSJO0GM0xvang

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 sitecheck-qr-code-generator-d86f931d
```

Example prompt: Generate a QR code for https://myshop.example.com — make it 512 pixels, SVG format, with M error correction.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call QR code generator with no signup, returning SVG or JSON with a data URI suitable for direct embedding. Ideal for agents that need to generate QR codes on demand during workflows (e.g. adding a QR to a generated document or email) without standing up a dedicated QR service.

## Known failure modes

- Text exceeds 300 characters — request rejected
- Invalid ecc value (must be L, M, Q, or H) — error returned
- Size outside 128–1024 pixel range — error returned
- Missing required 'text' query parameter — 400 error
- Invalid format value (must be svg or json) — error returned

## How this service works

A QR code for a text of up to 300 characters (a URL, Wi-Fi login or contact card), generated locally. format=svg returns the image itself as image/svg+xml; format=json returns the version, the module count, the SVG and a data URI. Error correction L, M, Q or H (default M); size from 128 to 1024 pixels (default 512).

## Output

Returns a JSON object containing the SVG markup of the QR code, a base64-encoded data URI for direct embedding in HTML or apps, the original text, the QR version number, module count, error correction level used, and a checkedAt timestamp.

## 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": [
      "text"
     ],
     "properties": {
      "ecc": {
       "type": "string",
       "description": "L, M, Q or H (default M)"
      },
      "size": {
       "type": "integer",
       "description": "Pixels, 128 to 1024 (default 512)"
      },
      "text": {
       "type": "string",
       "description": "Up to 300 characters"
      },
      "format": {
       "type": "string",
       "description": "svg (default) or json"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ecc": "M",
  "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"512\" height=\"512\" viewBox=\"0 0 33 33\">...</svg>",
  "text": "https://example.com",
  "dataUri": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0i...",
  "modules": 25,
  "version": 2,
  "checkedAt": "2026-10-13T09:00:00.000Z"
 }
}
```

## More

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