# Pocket Network Barcode Tools

> Pocket Network Barcode Tools is a paid API for AI agents from agent.pocket.network, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-14).

Decode barcodes/QR codes from an image URL, generate a temporary PNG/SVG barcode image, or validate a barcode payload and check digit

## Facts

- Endpoint: POST https://agent.pocket.network/v1/barcode-tools?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pocket-network-barcode-tools-fb3e563b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h-mf_Pqm5m0D9gl2jFm-6

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 pocket-network-barcode-tools-fb3e563b -d '<json body>'
```

Example prompt: Can you decode all the barcodes in this image — https://example.com/shelf-photo.jpg — and tell me what each one says? Try harder mode if needed.

## When to prefer this

Choose this endpoint when you need a pay-per-use, no-account barcode service that handles decode, generate, and validate in a single API with broad format support (QR, Data Matrix, Aztec, PDF417, EAN, UPC, Code 128). Prefer it over free tier services when you need multi-code detection (up to 32 per image), SVG output, or fine-grained error correction control without setting up an API key.

## Known failure modes

- Image URL not publicly accessible or not HTTPS — returns error
- Unsupported image format or corrupt image for decode
- No barcodes detected in image — returns empty results
- Text payload exceeds 4096 character limit for generate
- Invalid width/height values outside 1–4096 range
- Unsupported format specified for generate or validate
- Payment not received — request rejected with 402
- Generated image URL expires after one hour — must regenerate

## How this service works

Decode, generate or validate barcodes and QR codes. Decode reads up to 32 codes from a public HTTPS image (QR, Data Matrix, Aztec, PDF417, EAN, UPC, Code 128 and more); generate answers a temporary HTTPS URL to a PNG or SVG, kept one hour; validate checks a payload and its check digit. POST /v1/barcode with operation. Pay per request in USDC; no account, no API key.

## Output

For decode: an array of up to 32 detected codes each with format, text value, and position. For generate: a temporary HTTPS URL to a PNG or SVG image valid for one hour. For validate: a boolean result indicating whether the payload and check digit are valid for the specified format. For formats: a list of readable and writable barcode formats.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "description": "For decode, optional {formats, try_harder, max_results (1 to 32)}. For generate and validate, {format, text (up to 4096 characters)}, and for generate also width and height (1 to 4096, default 1024), margin, error_correction (L, M, Q, H) and output_format (png or svg)."
  },
  "image_url": {
   "type": "string",
   "maxLength": 2048,
   "description": "For decode, the public HTTPS image to read."
  },
  "operation": {
   "enum": [
    "decode",
    "generate",
    "validate",
    "formats"
   ],
   "type": "string",
   "description": "decode reads an image; generate draws a code; validate checks a payload against a format; formats lists what can be read and written."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pocket-network-barcode-tools-fb3e563b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.pocket.network](https://www.zero.xyz/host/agent.pocket.network/llms.txt)
