Make a barcode image (Code 128, EAN-13, UPC-A, ISBN, …)

Generates a barcode image (PNG or SVG). The check digit is added automatically where needed.

Request

GEThttps://barcode-generator.p.apihiver.com/v1/generate?data=9780141036144&type=ean13
*
String. The value to encode, e.g. 9780141036144.
String. One of: code128, code39, ean13, ean8, upca, isbn13, isbn10, issn, itf, pzn (default code128).
String. png or svg (default png).
Boolean. Print the value under the bars (default true).
Language
Client
1curl --request GET \
2  --url 'https://barcode-generator.p.apihiver.com/v1/generate?data=9780141036144&type=ean13&format=%7Bformat%7D&show_text=%7Bshow_text%7D' \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY'

Make a barcode image (Code 128, EAN-13, UPC-A, ISBN, …): Barcode Generator & Reader API reference

Generates a barcode image (PNG or SVG). The check digit is added automatically where needed. This endpoint is part of the Barcode Generator & Reader API: Generate EAN-13, UPC, Code 128, ISBN and other barcodes as PNG or SVG, read barcodes from images, and validate check digits.

Example response (200, image/png)

The barcode image (`image/svg+xml` when `format=svg`). Header `X-Barcode-Value` has the full value with check digit.

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "data: Field required"
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.