{"uid":"cap_SuoRPmadtG-S87YjY9XQH","slug":"x402-deployer-x402-deployer-workers-dev-3778ce34","name":"QR Code Decoder via Image URL","description":"QR decoder / QR reader / scan QR from URL / QR code OCR / barcode reader / link extraction from QR. Reads QR codes out of any public image URL (PNG / JPG / GIF / BMP) and returns the decoded text strings. Multiple QR codes in a single image are returned as separate entries. Wraps qrserver.com's free public read-qr-code API (true DIY decode requires canvas, which Workers don't have natively). Returns an empty `codes` array plus a descriptive `note` if the image can't be fetched or no QR is found.","url":"https://x402-deployer.x402-deployer.workers.dev/qr-code-decode","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["image_url"],"properties":{"image_url":{"type":"string","description":"Public http(s) URL of an image containing one or more QR codes. Must be directly fetchable."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"codes":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"symbol_index":{"type":"integer"}}}},"source":{"type":"string"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"body":{"image_url":"https://upload.wikimedia.org/wikipedia/commons/thumb/d/d0/QR_code.svg/220px-QR_code.svg.png"},"type":"http","method":"POST","bodyType":"json"}},"response":{"note":"No QR codes found. qrserver.com reported: download error (could not establish connection)","codes":[],"source":"https://api.qrserver.com"}},"exampleRequest":{"image_url":"https://upload.wikimedia.org/wikipedia/commons/thumb/d/d0/QR_code.svg/220px-QR_code.svg.png"},"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Dh8lPbW_JtWjlCUsuAvKv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes QR codes from a public image URL and returns the embedded text strings","exampleAgentPrompt":"Can you read the QR code in this image and tell me what it says? The image is at https://example.com/promo-flyer.png","exampleUseCases":null,"resultDescription":"Returns a JSON object with a `codes` array where each entry contains the decoded text string from a QR code found in the image. Multiple QR codes in the same image yield multiple entries. If no QR code is found or the image cannot be fetched, returns an empty `codes` array along with a descriptive `note` explaining what happened.","failureModes":["Image URL is not publicly accessible — returns empty codes array with a note","No QR code present in the image — returns empty codes array","Unsupported image format — fetch or decode fails with a note","Network timeout fetching the remote image — returns empty codes array","Image exists but QR is too blurry or damaged to decode — returns empty codes array"],"whenToPreferThis":"Use this endpoint when you have a public image URL containing a QR code and need to programmatically extract the encoded text or URL without requiring a mobile device or client-side canvas. Ideal for automation pipelines that receive flyer images, event tickets, or product photos and need to extract embedded QR data. Handles multiple QR codes in a single image gracefully.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:41:35.812Z","isFirstParty":false}