apyhub
E-COMMERCE QUICK TOOLS · IMAGE PROCESSING

Generate Simple Barcode API

What it does

Barcode Generator turns a text value into a barcode PNG. Send data and choose a format of code128, ean13, ean8, isbn13, or upca; the response is the rendered image as binary output.

Use it when you need barcodes for product labels, shipping workflows, inventory systems, or printable asset tags. Because the endpoint returns a PNG, you can store it, stream it to a browser, or place it directly into a document or label template.

Barcode Generator is a good fit when your application already knows the code value and just needs a clean, machine-readable image. It supports a default code128 format for general-purpose encoding, plus common retail and publishing formats for UPC and ISBN use cases.

Keep the payload simple: pass the barcode content in data, select the symbology that matches your workflow, and use the returned PNG wherever the barcode needs to appear.

GET
Render data as a barcode PNG in Code128, EAN-13, EAN-8, ISBN-13, or UPC-A format
http://localhost:8080/dosvak/barcode
QUICKSTARTGUIDE

Quickstart

Generate a barcode image by sending the required data value as a query parameter.

curl -X GET "http://localhost:8080/dosvak/barcode?data=123456789012&format=code128" \
  -H "apy-token: $APY_TOKEN"

What you'll get back

Returns a binary file response (string with format: binary), which is the generated barcode image.

(binary image data)
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.

About this endpoint

What it does

Renders the supplied data value as a barcode PNG image. You can choose the barcode format from code128, ean13, ean8, isbn13, or upca.

Query Parameter(s)

AttributeTypeMandatoryDescription
dataStringYesThe content to encode as a barcode.
formatENUMNoBarcode format.<br>Allowed values: code128, ean13, ean8, isbn13, upca.<br>Default: code128.

Response

Returns a binary string response containing the generated barcode PNG image.

ParameterTypeMandatoryDescription
binaryStringYesPNG image data returned as a binary payload.

Query parameters

Name
Type
Description
dataREQUIRED
string
formatOPTIONAL
string
code128 · ean13 · ean8 · isbn13 · upca
DEFAULT code128
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.