utilpeek: make a 1-D barcode image (SVG or PNG)
make_barcodeutilpeek: make a 1-D barcode image. For QR codes use make_qr_code; to find the product behind a number use lookup_barcode_product. Returns svg (text, with width_mm/height_mm) or data_base64 (PNG, with width_px/height_px; output "url": a 24 h link), plus encoded and bytes. A supplied check digit (ean13, ean8, upca, isbn13) must be right: a wrong one is a 422 invalid_checksum (not charged) rather than silently encoding a different number. Every output is decoded again with an independent reader (ZXing-C++): the answer carries verified: true and decoded_text, and a symbol that does not decode to the requested value is a 500 verify_failed (not charged). Encoded locally; typically under 0.1 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/barcode-generator-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Value to encode (see the type rules). | |
| text | No | Print the human-readable line (default true). | |
| type | No | Symbology (default code128). | code128 |
| format | No | svg (text) or png (base64). | svg |
| output | No | base64 (default): inline. url: stored for 24 hours; link, metadata. | base64 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | No | ||
| text | No | ||
| type | No | ||
| bytes | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| format | No | ||
| source | No | ||
| encoded | No | ||
| verified | No | ||
| width_mm | No | ||
| width_px | No | ||
| height_mm | No | ||
| height_px | No | ||
| data_base64 | No | ||
| verified_by | No | ||
| verify_note | No | ||
| content_type | No | ||
| decoded_text | No |