{"uid":"cap_QpVKJd3FQ87wQL_9dwj-N","slug":"agentsvc-io-barcode-generator-81998200","name":"agentsvc.io Barcode Generator","description":"86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.","url":"https://agentsvc.io/api/v1/proxy/barcode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":500,"description":"Data to encode"},"type":{"enum":["code128","ean13","ean8","upca","upce","code39","itf14","gs1_128","isbn","datamatrix","pdf417","aztec","qr"],"type":"string","default":"code128"},"scale":{"type":"integer","default":3,"maximum":8,"minimum":1},"include_text":{"type":"boolean","default":true}}},"responseSchema":{"type":"json","example":{"data":{"text":"4006381333931","type":"ean13","width":342,"format":"png","height":132,"size_bytes":1840,"image_base64":"iVBORw0KGgoAAAANSUhEUgAAAM..."},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3wyFtt2SkyiS8hWdofVOc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates barcode images in multiple formats (QR, EAN, UPC, PDF417, etc.) from text/data, returning a base64-encoded PNG.","exampleAgentPrompt":"Generate an EAN-13 barcode for the number 4006381333931 at scale 4, with the text shown below the bars, and give me the PNG image.","exampleUseCases":[{"title":"Product label barcode generation","prompt":"Create a UPC-A barcode for product number 012345678905 at scale 3 with the number printed underneath — I need the PNG image to put on our product label."},{"title":"QR code for URL sharing","prompt":"Generate a QR code encoding the URL https://mystore.com/promo2024 at scale 5, no text below it, so I can add it to our flyer."},{"title":"Shipping label Code 128 barcode","prompt":"Make a Code 128 barcode for the tracking number 1Z9999W99999999999 at scale 2 with the text displayed, I need to embed it in a shipping label PDF."}],"resultDescription":"Returns a JSON object containing the barcode image as a base64-encoded PNG string, along with metadata including the barcode type, image width and height in pixels, and file size in bytes. The base64 image can be decoded and embedded directly into documents, labels, or web pages.","failureModes":["Invalid barcode type enum value returns an error","Text data not compatible with chosen barcode format (e.g. non-numeric text for EAN-13) causes encoding failure","Text exceeding 500 characters is rejected","Scale value outside 1–8 range is rejected","Payment of $0.002 USDC on Base not received results in 402 response"],"whenToPreferThis":"Choose this endpoint when you need to programmatically generate a barcode image in any of 13 supported formats (including QR, EAN, UPC, Code 128, PDF417, DataMatrix, Aztec, GS1-128, ISBN) without needing an account or API key, paying only $0.002 USDC per call via x402 on Base. Ideal for AI agents that need on-demand barcode generation as part of a larger workflow such as label creation, inventory automation, or document generation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:38:57.992Z","isFirstParty":false,"canonicalSlug":"agentsvc-io-barcode-generator-81998200"}