Generate up to 20 QR codes in one call; returns a per-item record with QR metadata and the
Generate up to 20 QR codes in one call; returns a per-item record with QR metadata and the base64 PNG, or an error per item.
1000 (raw units)
price
2
calls / 30d
1
unique payers
2026-08-28
updated
Provider
qr-api-production-1836.up.railway.app · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xFFc458dB291b4ABcE020fE3de4f91F2770E537b1",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"items": [
{
"data": "https://payapi.market",
"label": "home"
},
{
"data": "https://payapi.market/docs",
"label": "docs"
}
]
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"count": 2,
"results": [
{
"back_color": "#ffffff",
"border": 4,
"box_size": 10,
"data": "https://payapi.market",
"error_correction": "M",
"fill_color": "#000000",
"format": "png",
"height": 330,
"image_base64": "iVBORw0KGgoAAAANSUhEUgAAASIAAAEiCAYAAABdvt+2AAAABmJLR0QA/wD/AP+gvaeTAAAF...",
"index": 0,
"label": "home",
"modules": 25,
"size_bytes": 512,
"version": 2,
"width": 330
},
{
"back_color": "#ffffff",
"border": 4,
"box_size": 10,
"data": "https://payapi.market/docs",
"error_correction": "M",
"fill_color": "#000000",
"format": "png",
"height": 330,
"image_base64": "iVBORw0KGgoAAAANSUhEUgAAASIAAAEiCAYAAABdvt+2AAAABmJLR0QA/wD/AP+gvaeTAAAF...",
"index": 1,
"label": "docs",
"modules": 25,
"size_bytes": 548,
"version": 2,
"width": 330
}
]
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"items": {
"description": "Up to 20 items, each with 'data' (text/URL to encode) and an optional 'label'.",
"items": {
"properties": {
"data": {
"type": "string"
},
"label": {
"type": "string"
}
},
"required": [
"data"
],
"type": "object"
},
"maxItems": 20,
"type": "array"
}
},
"required": [
"items"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"count": {
"description": "Number of items processed.",
"type": "integer"
},
"results": {
"description": "Per-item records; each carries index, label, data, QR meta, and image_base64 (or an error field).",
"type": "array"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://qr-api-production-1836.up.railway.app/generate/batch" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://qr-api-production-1836.up.railway.app/generate/batch");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://qr-api-production-1836.up.railway.app/generate/batch")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/12907.json, and this resource appears in /discovery/resources and /discovery/search.