# 47620 QR Code Generator API

> 47620 QR Code Generator API is a paid API for AI agents from 47620.xyz, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-29).

Generates a QR code for any text or URL and returns it as an inline SVG and base64 data URI, processed entirely on-server with no external dependencies.

## Facts

- Endpoint: GET https://47620.xyz/x/util/qr?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/47620-qr-code-generator-api-e868a889
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_In-dPVSeLWJJ_vCiy-U_U

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 47620-qr-code-generator-api-e868a889
```

Example prompt: Generate a QR code for https://mystore.com/promo with a module size of 8 pixels and a margin of 2 modules, and give me the SVG I can embed directly in my webpage.

## When to prefer this

Choose this endpoint when you need server-side, dependency-free QR code generation with no calls to external image services (Google Charts, QR.io, etc.), and when you need the output as a portable inline SVG or base64 data URI that can be embedded directly in HTML or used as an image source without hosting a file. Ideal for agents automating document generation, email campaigns, or product labeling where privacy and self-containment matter.

## Known failure modes

- Missing required 'text' query parameter returns an error response
- Extremely long text strings may produce very large QR codes or exceed encoding capacity
- Invalid or non-integer values for 'size' or 'margin' parameters may return errors or fall back to defaults
- Payment of 0.002 USDC via x402 required; missing or invalid payment header returns 402 Payment Required

## How this service works

Generate a QR code for any text/URL and return it as an inline SVG (and a base64 data URI). Query: ?text=<content> (required), size=<px per module, default 6> and margin=<modules, default 4>. Pure CPU, no external service.

## Output

Returns a JSON object containing an inline SVG string of the QR code and a base64-encoded data URI, both representing the QR code for the provided text or URL. The SVG can be embedded directly in HTML and the data URI can be used as an image src attribute.

## 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",
     "properties": {
      "fields": {
       "type": "string",
       "description": "Optional comma-separated top-level response keys to keep (e.g. \"health,slot,solUsd\"). Omit for the full payload."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "endpoint"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "endpoint": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

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