Barcode Decode
by bild.halowerk.com in Developer tools
Read every barcode in an image: EAN/UPC, Code 128, Code 39, ITF, DataBar, QR, Micro QR, DataMatrix, PDF417, Aztec, MaxiCode, with corners, rotation, EC level and GS1 decoding. Decodes all symbols in a raster image with ZXing-C++ (zxing-wasm 3.1.6, WebAssembly, local binary) in an isolated child process: try-harder, 90° rotations, inverted codes and downscaling are enabled; an additional rotation sweep (15° steps) finds linear barcodes printed at arbitrary angles.
https://bild.halowerk.com/v1/barcode-decode- Price
- $0.003
- per call in USDC
- Uptime
- 96.0%
- last 30 days
- Response time
- 42 ms
- 150 ms slowest 5%
- Last check
- Passed
- 9 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://bild.halowerk.com/v1/barcode-decode
Each call costs $0.003 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://bild.halowerk.com/v1/barcode-decode
content-type: application/json
{
"image_base64": "iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAAAAADE0BX0AAAAwklEQVR42u2WwQ6DMAxD8/8/zQ4ccB2HtZE7aYhKgCB5yKQObRztES/6B2gM47yvYk4UpASm55gXxVQUx7F96FWgX6L52IWKCejM6xLKRmSxCx6eRkVTUepCv06jZ0qWdl1HczpRtl4uVSm4hWJwFIe2KCanjaI4lK8s6ENZItoeS3jzrS1U27CW7EBV0/FzKpsFrRYOXTofykbEs1g6N6FZ7o2HLWhu/y9N10b5F5cXjylLLKFq8xOhX+dC303to9APDkdrFCFH68sAAAAASUVORK5CYII="
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
formats | array of string | No | |
image_base64 | string | No | |
image_url | string (uri) | No | |
max_symbols | integer | No | Default: 32. |
rotation_sweep | boolean | No | Default: true. |
Example response
The provider's example. We can't check it without paying.
Example response, 91 lines
{
"limitations": [
"Decoding success depends on resolution, focus and contrast; a code that is not found may still be readable by a dedicated scanner.",
"Positions refer to the image after EXIF orientation; images above 16 megapixels are decoded downscaled and positions are scaled back.",
"GS1 Company Prefix allocation is not checked against a registry."
],
"result": {
"barcodes": [
{
"bounding_box": {
"height": 42,
"width": 42,
"x": 8,
"y": 8
},
"byte_length": 8,
"bytes_hex": "48414c4f5745524b",
"content_type": "Text",
"ec_level": "M",
"format": "QRCode",
"found_in": "direct",
"has_eci": false,
"is_inverted": false,
"is_mirrored": false,
"orientation_degrees": 0,
"position": {
"bottom_left": {
"x": 8,
"y": 50
},
"bottom_right": {
"x": 50,
"y": 50
},
"top_left": {
"x": 8,
"y": 8
},
"top_right": {
"x": 50,
"y": 8
}
},
"structured_append": null,
"symbology": "QRCode",
"symbology_identifier": "]Q1",
"text": "HALOWERK",
"version": "1"
}
],
"count": 1,
"image": {
"bytes": 251,
"decoded_scale": 1,
"exif_orientation": 1,
"format": "png",
"height": 58,
"sha256": "0ba20ae8d164dcfbdd0b632145e61fc8b3169c11350f6063bbf594bce71e8b99",
"source": "base64",
"width": 58
},
"passes": [
{
"angle": 0,
"found": 1
},
{
"angle": 15,
"found": 0
},
{
"angle": 30,
"found": 0
},
{
"angle": 45,
"found": 0
},
{
"angle": 60,
"found": 0
},
{
"angle": 75,
"found": 0
}
]
},
"service": "barcode-decode",
"status": "success"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.003.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://bild.halowerk.com/v1/barcode-decode' \
-H 'content-type: application/json' \
--data-raw '{"image_base64":"iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAAAAADE0BX0AAAAwklEQVR42u2WwQ6DMAxD8/8/zQ4ccB2HtZE7aYhKgCB5yKQObRztES/6B2gM47yvYk4UpASm55gXxVQUx7F96FWgX6L52IWKCejM6xLKRmSxCx6eRkVTUepCv06jZ0qWdl1HczpRtl4uVSm4hWJwFIe2KCanjaI4lK8s6ENZItoeS3jzrS1U27CW7EBV0/FzKpsFrRYOXTofykbEs1g6N6FZ7o2HLWhu/y9N10b5F5cXjylLLKFq8xOhX+dC303to9APDkdrFCFH68sAAAAASUVORK5CYII="}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://bild.halowerk.com/v1/barcode-decode' \
-H 'content-type: application/json' \
--data-raw '{"image_base64":"iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAAAAADE0BX0AAAAwklEQVR42u2WwQ6DMAxD8/8/zQ4ccB2HtZE7aYhKgCB5yKQObRztES/6B2gM47yvYk4UpASm55gXxVQUx7F96FWgX6L52IWKCejM6xLKRmSxCx6eRkVTUepCv06jZ0qWdl1HczpRtl4uVSm4hWJwFIe2KCanjaI4lK8s6ENZItoeS3jzrS1U27CW7EBV0/FzKpsFrRYOXTofykbEs1g6N6FZ7o2HLWhu/y9N10b5F5cXjylLLKFq8xOhX+dC303to9APDkdrFCFH68sAAAAASUVORK5CYII="}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.003 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.003" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.003 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fbild.halowerk.com%2Fv1%2Fbarcode-decode&method=POST
const res = await pay("https://bild.halowerk.com/v1/barcode-decode", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"image_base64": "iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAAAAADE0BX0AAAAwklEQVR42u2WwQ6DMAxD8/8/zQ4ccB2HtZE7aYhKgCB5yKQObRztES/6B2gM47yvYk4UpASm55gXxVQUx7F96FWgX6L52IWKCejM6xLKRmSxCx6eRkVTUepCv06jZ0qWdl1HczpRtl4uVSm4hWJwFIe2KCanjaI4lK8s6ENZItoeS3jzrS1U27CW7EBV0/FzKpsFrRYOXTofykbEs1g6N6FZ7o2HLWhu/y9N10b5F5cXjylLLKFq8xOhX+dC303to9APDkdrFCFH68sAAAAASUVORK5CYII="
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.003 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.003"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://bild.halowerk.com/v1/barcode-decode",
json={
"image_base64": "iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAAAAADE0BX0AAAAwklEQVR42u2WwQ6DMAxD8/8/zQ4ccB2HtZE7aYhKgCB5yKQObRztES/6B2gM47yvYk4UpASm55gXxVQUx7F96FWgX6L52IWKCejM6xLKRmSxCx6eRkVTUepCv06jZ0qWdl1HczpRtl4uVSm4hWJwFIe2KCanjaI4lK8s6ENZItoeS3jzrS1U27CW7EBV0/FzKpsFrRYOXTofykbEs1g6N6FZ7o2HLWhu/y9N10b5F5cXjylLLKFq8xOhX+dC303to9APDkdrFCFH68sAAAAASUVORK5CYII=",
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 9 h ago | Passed | 402 | 40 ms | $0.003 |
| 2 days ago | Timed out | - | - | - |
| 4 days ago | Passed | 402 | 38 ms | $0.003 |
| 4 days ago | Passed | 402 | 42 ms | $0.003 |
| 4 days ago | Passed | 402 | 40 ms | $0.003 |
Show 10 older checks
| 5 days ago | Passed | 402 | 40 ms | $0.003 |
| 5 days ago | Passed | 402 | 120 ms | $0.003 |
| 6 days ago | Passed | 402 | 141 ms | $0.003 |
| 6 days ago | Passed | 402 | 43 ms | $0.003 |
| 6 days ago | Passed | 402 | 150 ms | $0.003 |
| 7 days ago | Passed | 402 | 38 ms | $0.003 |
| 7 days ago | Passed | 402 | 42 ms | $0.003 |
| 7 days ago | Passed | 402 | 52 ms | $0.003 |
| 7 days ago | Passed | 402 | 39 ms | $0.003 |
| 8 days ago | Passed | 402 | 239 ms | $0.003 |