Api Endpoint

WebLens

Generate a QR code from any text, URL, Wi-Fi string or payment link. Returns SVG markup or a base64 PNG, with size (64-2048 px) and error correction level (L/M/Q/H).

Open interactive test console

Offering

Provider
x402-weblens-api-production.up.railway.app
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402-weblens-api-production.up.railway.app/v1/qr
MIME type
application/json
First seen
2026-11-16T17:20:04.680Z
Last seen
Tags
qr-code, image, generator, url, Utility

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.002 USDC
Atomic price: 2000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2000",
    "payTo": "0x02DDECd0378e8d08f4f5D019AB27f752B2b2dD6a"
  }
]

Observed health

Status
Healthy
Latest latency
41 ms
Average latency
52 ms
HTTP status
402
Last checked
Reachability
100% over 5 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "maxLength": 2000,
          "description": "Text or URL to encode"
        },
        "format": {
          "type": "string",
          "enum": [
            "svg",
            "png"
          ],
          "default": "svg",
          "description": "Output format"
        },
        "size": {
          "type": "integer",
          "minimum": 64,
          "maximum": 2048,
          "default": 512,
          "description": "Width in pixels"
        },
        "ecc": {
          "type": "string",
          "enum": [
            "L",
            "M",
            "Q",
            "H"
          ],
          "default": "M",
          "description": "Error correction level"
        }
      },
      "required": [
        "text"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "format": {
          "type": "string"
        },
        "mimeType": {
          "type": "string"
        },
        "size": {
          "type": "integer"
        },
        "version": {
          "type": "integer"
        },
        "svg": {
          "type": "string"
        },
        "pngBase64": {
          "type": "string"
        },
        "dataUrl": {
          "type": "string"
        }
      },
      "required": [
        "format",
        "mimeType"
      ]
    }
  },
  "required": [
    "type"
  ]
}