{"uid":"cap_ZCsXOc-YKOxUtLiELfQNb","slug":"qr-barcode-decoder-api-110473bd","name":"QR/Barcode Decoder API","description":"Decode QR/barcodes from a base64-encoded image; returns each detected code's type, decoded text, bounding rect, and polygon.","url":"https://qr-api-production-1836.up.railway.app/decode","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":null,"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_Yi3khoDBa4QlB7aN4k98Y","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 or barcodes from a base64-encoded image, returning each code's type, decoded text, bounding rectangle, and polygon coordinates.","exampleAgentPrompt":"Can you decode this QR code image for me and tell me what text or URL it contains? Here's the base64-encoded PNG: iVBORw0KGgo...","exampleUseCases":[{"title":"Extract URL from scanned QR code","prompt":"I snapped a photo of a QR code on a flyer and converted it to base64 — can you decode it and tell me what URL or text it's hiding?"},{"title":"Verify product barcode in inventory check","prompt":"I have a base64 JPEG of a product label with a barcode on it. Can you scan it and tell me the barcode type and the encoded product number?"},{"title":"Detect multiple QR codes in a single image","prompt":"This base64-encoded PNG has several QR codes scattered across it. Can you decode all of them and give me the text from each one along with where they appear in the image?"}],"resultDescription":"An array of detected code objects, each containing the barcode/QR type (e.g. QRCODE, EAN13), the decoded text or URL, a bounding rectangle (x, y, width, height), and a polygon outline of the code's position within the image.","failureModes":["No codes detected in image — returns empty array","Invalid base64 string causes a 400 error","Unsupported image format returns an error","Blurry or low-resolution image may result in failed detection","Truncated or malformed base64 payload causes decode failure","Payment not provided or insufficient — returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to programmatically read QR codes or barcodes embedded in images, especially when you have the image as a base64 string or data URI. It returns structured spatial data (bounding boxes, polygons) in addition to decoded text, making it suitable for both simple text extraction and layout-aware document processing. Prefer this over manual scanning or OCR-only tools when the input is specifically a QR or barcode image.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:32:25.657Z","isFirstParty":false}