{"uid":"cap_rojMKsxoEjUiwjgBSb0ky","slug":"webbersites-barcode-generator-api-85203b10","name":"WebberSites Barcode Generator API","description":"Barcode generator for product, shipping, and inventory labels: GET ?data=&type= and receive a print-ready SVG plus PNG (base64) and a data: URI. Types: code128 (default), ean13, ean8, upca, upce, code39, itf14, gs1-128, codabar, datamatrix, pdf417, aztec. Check digits, quiet zones, and the human-readable line are handled per spec; invalid input for a symbology returns a clear 400. Deterministic, no network. QR codes live at /api/qr.","url":"https://api.webbersites.com/api/barcode","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["data"],"properties":{"dark":{"type":"string","description":"Hex color of the bars (default #000000)"},"data":{"type":"string","description":"Value to encode (required, up to 500 chars; digits-only types validate length + check digit)"},"type":{"type":"string","description":"Symbology: code128 (default), ean13, ean8, upca, upce, code39, itf14, gs1-128, codabar, datamatrix, pdf417, aztec"},"light":{"type":"string","description":"Hex background color (default #ffffff)"},"scale":{"type":"number","description":"Module width multiplier for the PNG (1-8, default 3)"},"height":{"type":"number","description":"Bar height for 1D types (4-60, default 12)"},"text_line":{"type":"string","description":"Set to 'false' to omit the human-readable text under the bars"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"svg":{"type":"string"},"data":{"type":"string"},"type":{"type":"string"},"data_uri":{"type":"string"},"png_base64":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"svg":"<svg …>","data":"012345678905","type":"upca","data_uri":"data:image/png;base64,…","png_base64":"iVBORw0…"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_E2YbsJ1xuQnOnLgQZpNG-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates print-ready barcodes in SVG and PNG formats for a wide range of 1D and 2D symbologies including Code 128, EAN-13, UPC-A, QR, ITF-14, and more","exampleAgentPrompt":"Generate an EAN-13 barcode for the product number 5901234123457 — I need it as SVG and PNG, with the human-readable digits shown underneath.","exampleUseCases":[{"title":"Shipping label barcode generation","prompt":"Create a Code 128 barcode for tracking number 1Z9999W99999999999 — I need it print-ready as both SVG and PNG so I can drop it straight onto a shipping label."},{"title":"Retail carton ITF-14 barcode","prompt":"Generate an ITF-14 barcode for the GTIN 10012345678902 for our retail carton — make sure the check digit and quiet zones are handled automatically and give me the SVG and PNG versions."},{"title":"Small part DataMatrix barcode","prompt":"I need a DataMatrix barcode encoding the serial number SN-78342-XQ for a tiny electronic component — the label space is very tight, so give me the SVG and base64 PNG I can use for printing."}],"resultDescription":"Returns a JSON object containing: an SVG string of the barcode, a base64-encoded PNG, and a data: URI — all print-ready with check digits, quiet zones, and a human-readable text line handled automatically per the chosen symbology's spec.","failureModes":["400 error when data is invalid for the chosen symbology (e.g. wrong digit count for EAN-13 or UPC-A, bad check digit)","400 error when required 'data' query parameter is missing","400 error when an unsupported symbology type is specified","Overly long data strings (>500 chars) may be rejected","Malformed hex color values for dark/light params may produce unexpected results"],"whenToPreferThis":"Use this endpoint when you need server-side, deterministic barcode generation with no external dependencies — ideal for generating print-ready labels (product, shipping, inventory) in SVG+PNG without any client-side library. Supports the widest range of retail and logistics symbologies (EAN-13, UPC-A, ITF-14, GS1-128, Code 128, DataMatrix, PDF417, Aztec, Codabar). For QR codes specifically, use the sibling /api/qr endpoint.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:51:48.659Z","isFirstParty":false}