Decode barcodes from an image
document-formats_barcode-decodeRead-onlyIdempotent
Decode 1D/2D barcodes (QR, Data Matrix, PDF417, Code 128, EAN, …) from a PNG/JPEG/WebP/GIF. Price $0.03 USDC. POST /api/v1/document-formats/barcode-decode. An unpaid call returns the x402 payment terms and does not run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"imageBase64": "<imageBase64>"
},
"name": "document-formats_barcode-decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| formats | No | formats, array. Optional. | |
| tryHarder | No | tryHarder, boolean. Required. | |
| maxResults | No | maxResults, integer, from 1 to 20. Required. | |
| imageBase64 | Yes | imageBase64, string, length 16 to 13981077. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | count. Number. | |
| results | No | results. Array. | |
| sources | No | sources. Array. | |
| limitations | No | limitations. Array. |