Generate a barcode
generate_barcodeRender barcodes in Code 128, EAN-13, UPC-A, and other formats. Returns a 24-hour link, dimensions, and the image.
Instructions
Renders a barcode: Code 128, Code 39, Code 93, EAN-13, EAN-8, UPC-A, UPC-E, ITF-14 or Codabar. Returns a link valid for 24 hours, the dimensions and the image itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | `code128` (printable ASCII, up to 80 characters), `code39` (digits, capitals and `- . $ / + %`), `code93`, `ean13` (12 digits, or 13 with the check digit), `ean8` (7 or 8 digits), `upca` (11 or 12 digits), `upce` (6 to 8 digits), `itf14` (13 or 14 digits), `codabar` (a start and stop letter A to D around digits). | code128 |
| color | No | Bar colour as six hex digits. | 000000 |
| scale | No | Width of the narrowest bar in pixels, 1 to 10. | |
| format | No | `png` (default), `svg` or `jpg`. | png |
| height | No | Bar height in pixels, 20 to 300. | |
| bgcolor | No | Background colour as six hex digits. | ffffff |
| content | Yes | The value to encode. Each symbology has its own alphabet and length, listed under the `type` parameter. |