{"slug":"api-ishob-com-v1-barcode-e25256","title":"Generate a barcode or QR code as SVG or PNG","host":"api.ishob.com","method":"POST","resource":"https://api.ishob.com/v1/barcode","category":"code","description":"Generate a barcode or QR code as SVG or PNG: QR, DataMatrix, PDF417, Code 128, Code 39, EAN-13, EAN-8, UPC-A, ISBN-13, ITF and GS1-128. EAN/UPC/ISBN check digits are computed (or verified, never silently replaced). QR and DataMatrix support colours, square/rounded/dot styles and (QR) a centre logo f","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":590,"reported_calls_30d":2,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"format":"svg","text":"https://ishob.com","type":"qrcode"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"background":{"default":"#FFFFFF","description":"Background colour #RRGGBB","pattern":"^#[0-9a-fA-F]{6}$","type":"string"},"color":{"default":"#000000","description":"Foreground colour #RRGGBB","pattern":"^#[0-9a-fA-F]{6}$","type":"string"},"ec":{"default":"M","description":"QR error correction level (H when a logo is used)","enum":["L","M","Q","H"],"type":"string"},"format":{"default":"svg","description":"Output image format","enum":["svg","png"],"type":"string"},"height_mm":{"default":15,"description":"Bar height for linear barcodes, in mm","maximum":100,"minimum":5,"type":"number"},"include_text":{"default":true,"description":"Print the human-readable text under linear barcodes","type":"boolean"},"logo_url":{"description":"QR only: https URL of a PNG/JPEG/WebP logo (max 200 KB) placed in the centre","format":"uri","type":"string"},"scale":{"description":"Size: pixels per module (2D) or bar-width step (1D); default 4 (SVG) / 8 (PNG)","maximum":20,"minimum":1,"type":"integer"},"style":{"default":"square","description":"Module style (qrcode, datamatrix)","enum":["square","rounded","dots"],"type":"string"},"text":{"description":"Data to encode (URL, text, digits for EAN/UPC/ISBN...)","maxLength":2000,"minLength":1,"type":"string"},"type":{"default":"qrcode","description":"Barcode format","enum":["qrcode","datamatrix","pdf417","code128","code39","ean13","ean8","upca","isbn13","itf","gs1_128"],"type":"string"}},"required":["text"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":590,"error":null}],"description_full":"Generate a barcode or QR code as SVG or PNG: QR, DataMatrix, PDF417, Code 128, Code 39, EAN-13, EAN-8, UPC-A, ISBN-13, ITF and GS1-128. EAN/UPC/ISBN check digits are computed (or verified, never silently replaced). QR and DataMatrix support colours, square/rounded/dot styles and (QR) a centre logo from an https URL. Every format is verified scannable. Returns SVG text or base64 PNG plus a data URI ready to embed in HTML, PDF or labels.","last_updated":"2026-10-14T16:34:17.315Z","schemes":["exact"]}