# QR & Barcode Decoder

> QR & Barcode Decoder is a paid API for AI agents from qr.openverbs.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Decodes the text payload from a QR code or barcode in a PNG or JPEG image, supporting QR, DataMatrix, PDF417, Aztec, and common 1D symbologies.

## Facts

- Endpoint: POST https://qr.openverbs.com/v1/decode
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/qr-barcode-decoder-ef2ef505
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VeJTAdKtbVIptf9lWX68D

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 qr-barcode-decoder-ef2ef505 -d '<json body>'
```

Example prompt: Can you read the QR code in this image and tell me what it says? Here's the base64-encoded PNG.

## When to prefer this

Choose this endpoint when you need to programmatically extract the text or data payload from any common barcode or QR code format in a PNG or JPEG image. It auto-detects across QR, DataMatrix, PDF417, Aztec, and all major 1D symbologies without requiring the caller to specify the format. Prefer it over manual OCR pipelines or vision models when you specifically need barcode/QR decoding with reliable symbology auto-detection and a clean structured response.

## Known failure modes

- Image contains no detectable barcode or QR code — returns { found: false }
- Payload is not a valid PNG or JPEG image — returns HTTP 400
- Image is too blurry or low-resolution for the code to be decoded
- Base64 string is malformed or truncated — returns 400
- Image exceeds 12MB base64 size limit

## How this service works

Read the text out of a QR code or barcode in a PNG or JPEG image. Auto-detects QR, DataMatrix, PDF417, Aztec and 1D symbologies (Code128/39/93, EAN-13/8, UPC-A/E, ITF, Codabar). A valid image with no code returns { found: false }; a payload that is not a parseable image is a 400.

## Output

Returns a JSON object with a `found` boolean. If a code is detected, includes the decoded text payload and the detected symbology type. If no code is found in a valid image, returns `{ found: false }`. A non-parseable image payload returns a 400 error.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "image"
     ],
     "properties": {
      "image": {
       "type": "string",
       "maxLength": 12000000,
       "minLength": 1,
       "description": "The image containing the code — a PNG or JPEG, as a base64 string or a data: URL."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/qr-barcode-decoder-ef2ef505/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from qr.openverbs.com](https://www.zero.xyz/host/qr.openverbs.com/llms.txt)
