{"slug":"agent402-tools-api-barcode-decode-453e87","title":"Decode a barcode or QR code from an image","host":"agent402.tools","method":"POST","resource":"https://agent402.tools/api/barcode-decode","category":"image","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.","price_listed":0.001,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":5,"reported_payers_30d":1,"networks":["algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=","eip155:10","eip155:1329","eip155:137","eip155:143","eip155:42161","eip155:42220","eip155:43114","eip155:4663","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","stellar:pubnet"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"image":"iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAAAklEQVR4AewaftIAAALNSURBVO3BW2rgUAwFwT7C+99yTz4vImDjvNCgqviBNUaxRinWKMUapVijXHwiCX9N5bskoVO5k4S/pnIq1ijFGqVYoxRrlIuHVH5KEp5IwknlrSScVJ5Q+SlJuFOsUYo1SrFGKdYoF1+QhDdU3lC5k4TflIQ3VN4o1ijFGqVYo1wMloRO5YkkTFSsUYo1SrFGKdYoF4Mk4aTyRBL+F8UapVijFGuUYo1y8QUqv0nlThKeUPkOKr+pWKMUa5RijXLxUBL+WhJOKk+odEk4qTyRhL9UrFGKNUqxRinWKPED/5EkdCr/i2KNUqxRijVKsUa5+EQSOpUuCSeVLgmdyikJncqdJLyVhJPKG0noVO4koVO5U6xRijVKsUaJH3gpCXdU/loSOpVTEjqVLgknlTeS8ITKqVijFGuUYo1SrFEuPpGEJ1S+QxI6lS4JJ5UuCd8lCW8k4Y5Kl4Q7xRqlWKMUa5RijRI/0CThCZVTEjqVLgknlTeS8JNUuiS8ofIdijVKsUYp1ijFGiV+oElCp9Il4aTSJeENlS4JJ5UnktCpnJLwhkqXhDdU7hRrlGKNUqxR4geGSMIbKm8k4Y5Kl4Q7Km8Ua5RijVKsUYo1ysUnkvDXVDqVUxLeSsJJpVO5k4QnVO4koVM5FWuUYo1SrFGKNcrFQyo/JQlvqHRJeELlThLuqLyRhE7lTrFGKdYoxRrl4guS8IbKG0k4qXQqTyThpPKEyikJnUqXhDtJ6FROxRqlWKMUa5RijXIxiMopCZ1Kl4RO5ZSETuWOyhMqpyR0KneKNUqxRinWKMUa5WKQJJxUflISOpVTEp5QOal0SehUTsUapVijFGuUiy9Q+U0qpyR0Kk8k4Y5Kl4STyhtJeKNYoxRrlGKNUqxRLh5Kwl9LwndROSWhS0KnckpCp9Il4aTSJeFOsUYp1ijFGqVYo8QPrDGKNUqxRinWKP8AIFwq4iXMWtcAAAAASUVORK5CYII="},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"image":{"description":"base64-encoded PNG or JPEG, optionally a data: URL","type":"string"}},"required":["image"]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"decoder":{"type":"string"},"format":{"type":"string"},"found":{"type":"boolean"},"text":{"type":"string"}},"required":["found","format","text","decoder"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"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.","last_updated":"2026-09-21T11:08:54.67Z","schemes":["exact","upto"]}