Skip to content
Browse all functions

Generate Barcode – EAN, Code 128, DataMatrix, PDF417

images/generatebarcode

generatebarcode (Generate Barcode – EAN, Code 128, DataMatrix, PDF417) is a 1001fx API function in the group Images: POST https://api.1001fx.com/images/generatebarcode, 3 credits per call. It works as a ready-made module in Make or as a plain HTTP call.

3 credits per callHTTP APIMake

Creates a barcode image (PNG or SVG): EAN-13/8, UPC-A/E, Code 128/39/93, ITF-14, ISBN, GS1-128, DataMatrix, PDF417 and Aztec. For QR codes use images/generateqrcode.

Endpoint

POSThttps://api.1001fx.com/images/generatebarcode
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
application/json

Parameters

  • textstringrequired

    Value to encode, e.g. 4006381333931 for EAN-13.

    Example:
    4006381333931
  • typeenumrequired

    code128 (default for text), EAN/UPC, Code 39/93, ITF-14, DataMatrix, PDF417, Aztec, GS1-128.

    Values:
    code128
    ean13
    ean8
    upca
    upce
    code39
    code93
    itf14
    interleaved2of5
    isbn
    datamatrix
    pdf417
    azteccode
    gs1-128
    Example:
    ean13
  • formatenumoptional

    png (default) or svg.

    Values:
    png
    svg
    Default:
    png
  • scalenumberoptional

    Size factor 1 to 10, default 3.

    Default:
    3
    Min:
    1
    Max:
    10
  • heightnumberoptional

    For linear barcodes, default 15.

    Default:
    15
    Min:
    2
    Max:
    100
  • includeTextbooleanoptional

    Human-readable text below the bars (default true).

    Default:
    true

Examples

Generate Barcode – EAN, Code 128, DataMatrix, PDF417

Generate Barcode – EAN, Code 128, DataMatrix, PDF417

Input

Expects a json body
{
  "text": "4006381333931",
  "type": "ean13"
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/images/generatebarcode' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"text":"4006381333931","type":"ean13"}'

Try generatebarcode now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.001.11.2026created