# QR Code Decoder via Image URL

> QR Code Decoder via Image URL is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Decodes QR codes from a public image URL and returns the embedded text strings

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/qr-code-decode
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-3778ce34
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SuoRPmadtG-S87YjY9XQH

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 x402-deployer-x402-deployer-workers-dev-3778ce34 -d '<json body>'
```

Example prompt: Can you read the QR code in this image and tell me what it says? The image is at https://example.com/promo-flyer.png

## When to prefer this

Use this endpoint when you have a public image URL containing a QR code and need to programmatically extract the encoded text or URL without requiring a mobile device or client-side canvas. Ideal for automation pipelines that receive flyer images, event tickets, or product photos and need to extract embedded QR data. Handles multiple QR codes in a single image gracefully.

## Known failure modes

- Image URL is not publicly accessible — returns empty codes array with a note
- No QR code present in the image — returns empty codes array
- Unsupported image format — fetch or decode fails with a note
- Network timeout fetching the remote image — returns empty codes array
- Image exists but QR is too blurry or damaged to decode — returns empty codes array

## How this service works

QR decoder / QR reader / scan QR from URL / QR code OCR / barcode reader / link extraction from QR. Reads QR codes out of any public image URL (PNG / JPG / GIF / BMP) and returns the decoded text strings. Multiple QR codes in a single image are returned as separate entries. Wraps qrserver.com's free public read-qr-code API (true DIY decode requires canvas, which Workers don't have natively). Returns an empty `codes` array plus a descriptive `note` if the image can't be fetched or no QR is found.

## Output

Returns a JSON object with a `codes` array where each entry contains the decoded text string from a QR code found in the image. Multiple QR codes in the same image yield multiple entries. If no QR code is found or the image cannot be fetched, returns an empty `codes` array along with a descriptive `note` explaining what happened.

## Example request

```json
{
 "input": {
  "body": {
   "image_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/d0/QR_code.svg/220px-QR_code.svg.png"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## 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": {
     "required": [
      "image_url"
     ],
     "properties": {
      "image_url": {
       "type": "string",
       "description": "Public http(s) URL of an image containing one or more QR codes. Must be directly fetchable."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "codes": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "text": {
          "type": "string"
         },
         "symbol_index": {
          "type": "integer"
         }
        }
       }
      },
      "source": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-3778ce34/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
