{"uid":"cap_Uas5oyDsd1TJYjNCjNGn_","slug":"qr-code-decode-api-c6a40c6c","name":"QR Code Decode API","description":"Generate and decode QR codes with x402 payments and an MCP server.","url":"https://qr.payapi.market/decode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"image_base64":{"type":"string","description":"Base64-encoded image (PNG/JPEG/GIF) containing one or more QR codes. A data: URI prefix is allowed."}}},"responseSchema":{"type":"json","example":{"count":1,"results":[{"data":"https://payapi.market","rect":{"top":40,"left":40,"width":250,"height":250},"type":"QRCODE","polygon":[{"x":40,"y":40},{"x":40,"y":290},{"x":290,"y":290},{"x":290,"y":40}]}],"image_size":{"width":330,"height":330}}},"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_rRz3nn5LUWRCBpQ9VnQ0Q","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 one or more QR codes from a base64-encoded image, returning the embedded data, position, and type for each detected code","exampleAgentPrompt":"Can you decode this QR code for me? Here's the image as a base64 string: [base64data] — I need to know what URL or text is stored in it.","exampleUseCases":[{"title":"Extract URL from QR code screenshot","prompt":"I have a screenshot of a QR code saved as a PNG — can you decode it and tell me what URL or text it contains? I'll give you the base64-encoded image."},{"title":"Automated invoice QR code reading","prompt":"I'm processing a batch of invoice images and need to extract the payment reference encoded in the QR code on each one — can you read the QR code from this base64-encoded invoice image?"},{"title":"Verify QR code placement in document","prompt":"I need to check the position and content of the QR code in this document image — can you decode the QR code and tell me exactly where it appears on the page and what data it contains?"}],"resultDescription":"Returns a JSON object with the count of detected QR codes, an array of results each containing the decoded data string, bounding rectangle (top/left/width/height), code type (e.g. QRCODE), and polygon corner coordinates, plus the overall image dimensions.","failureModes":["No QR code detected in image — returns empty results array","Invalid or corrupt base64 string — returns error","Image format not supported (non-PNG/JPEG/GIF) — returns error","QR code too blurry or low resolution to decode — returns empty results","Payment failure (insufficient USDC balance) — returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need to programmatically decode QR codes from images in any agent workflow, especially when you want pay-per-use microtransaction pricing via x402/USDC rather than maintaining a subscription. It supports multiple QR codes per image and returns precise position data, making it ideal for document processing pipelines or verification tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:31:31.039Z","isFirstParty":false,"canonicalSlug":"qr-code-decode-api-c6a40c6c"}