{"uid":"cap_u9HkQj0q0v9pUo9v_tsCj","slug":"qr-openverbs-com-barcode-renderer-add2f8ce","name":"qr.openverbs.com Barcode Renderer","description":"Render a barcode (Code128, Code39, EAN-13/8, UPC-A/E, ITF-14, DataMatrix, PDF417) as SVG or PNG data URL.","url":"https://qr.openverbs.com/v1/barcode","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":{"type":"object","required":["text","type"],"properties":{"text":{"type":"string","maxLength":512,"minLength":1,"description":"Value to encode (numeric symbologies require digits)."},"type":{"enum":["code128","code39","ean13","ean8","upca","upce","itf14","datamatrix","pdf417"],"type":"string","description":"Barcode symbology."},"scale":{"type":"integer","maximum":10,"minimum":1,"description":"Module scale. Defaults to 3."},"format":{"enum":["svg","png"],"type":"string","description":"Output format. Defaults to svg."},"height":{"type":"integer","maximum":100,"minimum":1,"description":"Bar height in mm (linear types). Defaults to 10."},"includeText":{"type":"boolean","description":"Print the human-readable value. Defaults to true."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pF9Pmjm7OC82-1ArDZ2Ja","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Renders a barcode (Code128, Code39, EAN-13/8, UPC-A/E, ITF-14, DataMatrix, PDF417) as an SVG or PNG data URL","exampleAgentPrompt":"Generate a Code128 barcode for the value 'ABC-123456' as an SVG, with human-readable text shown underneath.","exampleUseCases":[{"title":"Retail product label generation","prompt":"Create an EAN-13 barcode for '5901234123457' as a PNG at scale 4 — I need it for a product label with the number printed below the bars."},{"title":"Shipping carton ITF-14 barcode","prompt":"Render an ITF-14 barcode for '12345678901234' as an SVG with a bar height of 15mm — this is for a shipping carton label."},{"title":"Inventory Code39 barcode","prompt":"Generate a Code39 barcode for 'WAREHOUSE-99B' as a PNG, scale 3, with the text included, so I can print it on an inventory sticker."}],"resultDescription":"Returns a barcode image either as an inline SVG string or a PNG data URL, encoding the provided value in the specified symbology. The image respects the requested scale (module size), bar height, and whether human-readable text is printed below the bars.","failureModes":["Invalid or unsupported barcode value for the chosen symbology (e.g. non-numeric input for EAN-13) — returns validation error","Text value exceeds 512-character maximum — returns schema validation error","Unsupported symbology type string — returns enum validation error","Scale or height out of allowed range (scale 1–10, height 1–100) — returns validation error","Payment failure via x402 protocol — returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need to programmatically generate a standard 1D or 2D barcode (not a QR code) in SVG or PNG format. It covers the most common retail and logistics symbologies (Code128, EAN-13, UPC-A, ITF-14, etc.) in a single API call. Prefer it over generic image generation services when you need a standards-compliant, scannable barcode rather than a decorative graphic. For QR codes specifically, use the sibling QR endpoint on the same provider.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:35:03.918Z","isFirstParty":false}