# CodePulse Barcode Reader

> CodePulse Barcode Reader is a paid API for AI agents from codepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Reads and decodes a barcode from an image URL, returning the barcode format and value with confidence scoring

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/media/barcode-read
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-barcode-reader-132ec505
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NI1ZvF_bvgiRQ9rhSGsmR

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 codepulse-barcode-reader-132ec505 -d '<json body>'
```

Example prompt: Can you read the barcode in this image and tell me what the value and format are? Here's the image URL: https://example.com/product-barcode.jpg

## When to prefer this

Use this endpoint when you have an image URL containing a barcode and need to extract the encoded value and format without maintaining your own barcode-scanning infrastructure. It handles multiple barcode standards (EAN, UPC, QR, etc.) and returns confidence scoring. At $0.02 per call with no API key required, it is ideal for on-demand or low-volume barcode reading tasks in agent workflows.

## Known failure modes

- Image URL is inaccessible or returns a non-image — no barcode found result
- Image contains no detectable barcode — returns found: false
- Barcode is too blurry or partially obscured — low confidence or not found
- Unsupported barcode format — supported: false in response
- Invalid or malformed image URL — request error

## How this service works

Decodes EAN, UPC, or ISBN barcode values from an image URL.

## Output

Returns a JSON object with: 'found' (boolean indicating if a barcode was detected), 'format' (barcode standard such as EAN_13, UPC_A, QR_CODE, etc.), 'barcode' (the decoded string value), 'confidence' (high/medium/low quality indicator), 'warnings' (any issues encountered), 'supported' (whether the format is supported), and a disclaimer about informational use only.

## 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_url"
     ],
     "properties": {
      "image_url": {
       "type": "string",
       "description": "URL of the target barcode image"
      }
     }
    },
    "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "found": true,
   "format": "EAN_13",
   "barcode": "9780140449136"
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codepulse-barcode-reader-132ec505/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from codepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/codepulse-api.hahavoid0.workers.dev/llms.txt)
