{"uid":"cap_xNTvQGi8CGPr4c5WzLbK2","slug":"agent402-tools-barcode-qr-code-decoder-0bdeb643","name":"agent402.tools Barcode & QR Code Decoder","description":"Decode a barcode or QR code from an image. Send a base64 PNG or JPEG (or a data: URL); returns the decoded text and the symbology. Reads QR, DataMatrix, and 1D barcodes (EAN/UPC/Code39/Code128/ITF/Codabar). Deterministic, no network, no model.","url":"https://agent402.tools/api/barcode-decode","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"image":{"type":"string","description":"base64-encoded PNG or JPEG, optionally a data: URL"}}},"responseSchema":{"type":"json","example":{"text":"AGENT402","found":true,"format":"QR_CODE","decoder":"zxing"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TJvHtANc8EeA373rMSTWy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes a barcode or QR code from a base64-encoded image, returning the decoded text and symbology type","exampleAgentPrompt":"Can you decode this barcode image for me? Here it is as a base64 PNG: <base64string> — I need to know what the barcode says and what type it is.","exampleUseCases":null,"resultDescription":"Returns the decoded text content of the barcode or QR code, along with the symbology (e.g. QR, DataMatrix, EAN-13, UPC-A, Code128, Code39, ITF, Codabar) detected in the image.","failureModes":["No barcode found in image — returns error or empty result","Unsupported image format — only PNG and JPEG accepted","Malformed base64 input — decoding fails with parse error","Image too blurry or low-resolution for reliable decoding","Multiple barcodes in image — may return only one or ambiguous result"],"whenToPreferThis":"Use this endpoint when you need to deterministically decode a barcode or QR code from a base64 image without calling an external model or network service. Ideal for agentic pipelines that need fast, offline-style barcode reading with no AI inference cost. Supports a broad range of symbologies including QR, DataMatrix, EAN, UPC, Code39, Code128, ITF, and Codabar.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:03:49.434Z","isFirstParty":false}