TidyData APIsAll APIsPricing

Barcode Generator API - Code 128 & EAN-13

Generate scannable Code 128 and EAN-13 barcodes as crisp SVG, with automatic check digit, custom height and bar width.

Authentication & base URL

Subscribe through one of our marketplace listings; your marketplace API key and base URL are shown there. All endpoints return JSON over HTTPS, served from a global edge network (typically 20–150 ms).

Subscribe on RapidAPI

Endpoints

GET /v1/barcode

Generate barcode

ParameterInDescriptionExample
data *queryText or digits to encodeABC-12345
typequerycode128 or ean13code128
heightqueryBar height px100
modulequeryNarrow bar width px2
textqueryShow human-readable text (true/false)true
outputquerysvg or jsonsvg

Example

GET /v1/barcode?data=ABC-12345&type=code128&height=100&module=2&text=true&output=json

{
  "data": "ABC-12345",
  "type": "code128",
  "text": "ABC-12345",
  "width": 308,
  "height": 118,
  "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"308\" height=\"118\" viewBox=\"0 0 308 118\"><rect width=\"100%\" height=\"100%\" fill=\"#fff\"/><g fill=\"#000\"><rect x=\"20\" y=\"0\" width=\"4\" height=\"100\"/><rect x=\"26\" y=\"0\" width=\"2\" height=\"100\"/><rect x=\"32\" y=\"0\" width=\"2\" height=\"100\"/><rect x=\"42\" y=\"0\" width=\"2\" height=\"100\"/><rect x=\"46\" y=\"0\" width=\"2\" height=\"100\"/><rect x=\"54\" y=\"0\" width=\"4\" height=\"100\"/><rect x=\"64\" y=\"0\" width=\"2\" height=\"100\"/><rect x=\"72\" y=\"0\" width=\"2\" height=\"100\"/><rect x=\"76\" y=\"0\" width=\"4\" height=\"100\"/><rect x=\"86\" y=\"0\" width=\"2\" height=\"100\"/><rect x=\"94\" y=\"0\" width=\"2\" height=\"100\"/><rect x=\"102\" y=\"0\" width=\"4\" height=\"100\"/><rect x=\"108\" y=\"0\" width=\"2\" height=\"100\"/><rect x=\"114\" y=\"0\" width=\"4\" height=\"100\"/><rect x=\"120\" y=\"0\" width=\"6\" height=\"100\"/><rect x=\"130\" y=\"0\" width=\"2\" height=\"100\"/><rect x=\"136\" y=\"0\" width=\"6\" height=\"100\"/><rect x=\"146\" y=\"0\" width=\"4\" height=\"100\"/><rect x=\"152\" y=\"0\" width=\"4\" height=\"100\"/><rect x=\"160\" y=\"0\" width=\"6\" height=\"100\"/><rect x=\"170\" y=\"0\" width=\"2\" height=\"100\"/><rect x=\"174\" y=\"0\" width=\"4\" height=\"100\"/><rect x=\"182\" y=\"0\" width=\"2\" height=\"100\"/><rect x=\"186\" y=\"0\" width=\"6\" height=\"100\"/><rect x=\"196\" y=\"0\" width=\"4\" height=\"100\"/><rect x=\"204\" y=\"0\" width=\"2\" height=\"100\"/><rect x=\"210\" y=\"0\" width=\"6\" height=\"100\"/><rect x=\"218\" y=\"0\" width=\"4\" height=\"100\"/><rect x=\"224\" y=\"0\" width=\"6\" height=\"100\"/><rect x=\"234\" y=\"0\" width=\"2\" height=\"100\"/><rect x=\"240\" y=\"0\" width=\"2\" height=\"100\"/><rect x=\"246\" y=\"0\" width=\"4\" height=\"100\"/><rect x=\"256\" y=\"0\" width=\"2\" height=\"100\"/><rect x=\"262\" y=\"0\" width=\"4\" height=\"100\"/><rect x=\"272\" y=\"0\" width=\"6\" height=\"100\"/><rect x=\"280\" y=\"0\" width=\"2\" height=\"100\"/><rect x=\"284\" y=\"0\" width=\"4\" height=\"100\"/></g><text x=\"154\" y=\"114\" font-family=\"monospace\" font-size=\"14\" text-anchor=\"middle\">ABC-12345</text></svg>"
}

Generate scannable Code 128 and EAN-13 barcodes as crisp SVG, with automatic check digit, custom height and bar width.

Use cases

Inventory labels, shipping, retail products (EAN-13), warehouse apps, printable documents.

Why this API

Pricing

Free plan with 500 calls per month, then Pro (25,000 calls for $4.99/month) and Ultra (150,000 calls for $14.99/month). See all plans.