{"uid":"cap_h-mf_Pqm5m0D9gl2jFm-6","slug":"pocket-network-barcode-tools-fb3e563b","name":"Pocket Network Barcode Tools","description":"Decode, generate or validate barcodes and QR codes. Decode reads up to 32 codes from a public HTTPS image (QR, Data Matrix, Aztec, PDF417, EAN, UPC, Code 128 and more); generate answers a temporary HTTPS URL to a PNG or SVG, kept one hour; validate checks a payload and its check digit. POST /v1/barcode with operation. Pay per request in USDC; no account, no API key.","url":"https://agent.pocket.network/v1/barcode-tools?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","description":"For decode, optional {formats, try_harder, max_results (1 to 32)}. For generate and validate, {format, text (up to 4096 characters)}, and for generate also width and height (1 to 4096, default 1024), margin, error_correction (L, M, Q, H) and output_format (png or svg)."},"image_url":{"type":"string","maxLength":2048,"description":"For decode, the public HTTPS image to read."},"operation":{"enum":["decode","generate","validate","formats"],"type":"string","description":"decode reads an image; generate draws a code; validate checks a payload against a format; formats lists what can be read and written."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oEFyXP0UOZp0GeAsHw7Zm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decode barcodes/QR codes from an image URL, generate a temporary PNG/SVG barcode image, or validate a barcode payload and check digit","exampleAgentPrompt":"Can you decode all the barcodes in this image — https://example.com/shelf-photo.jpg — and tell me what each one says? Try harder mode if needed.","exampleUseCases":[{"title":"Product label barcode reading","prompt":"I have a photo of a grocery shelf at https://store.example.com/shelf.png — can you read all the UPC and EAN barcodes in it and list every product code you find?"},{"title":"QR code generation for campaign link","prompt":"Generate a QR code PNG for the URL https://myshop.com/summer-sale, make it 512x512 pixels with high error correction so it still scans if partially damaged."},{"title":"EAN-13 check digit validation","prompt":"Can you validate whether 5901234123457 is a properly formatted EAN-13 barcode — does the check digit check out?"}],"resultDescription":"For decode: an array of up to 32 detected codes each with format, text value, and position. For generate: a temporary HTTPS URL to a PNG or SVG image valid for one hour. For validate: a boolean result indicating whether the payload and check digit are valid for the specified format. For formats: a list of readable and writable barcode formats.","failureModes":["Image URL not publicly accessible or not HTTPS — returns error","Unsupported image format or corrupt image for decode","No barcodes detected in image — returns empty results","Text payload exceeds 4096 character limit for generate","Invalid width/height values outside 1–4096 range","Unsupported format specified for generate or validate","Payment not received — request rejected with 402","Generated image URL expires after one hour — must regenerate"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-use, no-account barcode service that handles decode, generate, and validate in a single API with broad format support (QR, Data Matrix, Aztec, PDF417, EAN, UPC, Code 128). Prefer it over free tier services when you need multi-code detection (up to 32 per image), SVG output, or fine-grained error correction control without setting up an API key.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:31:04.270Z","isFirstParty":false,"canonicalSlug":"pocket-network-barcode-tools-fb3e563b"}