# Product Barcode Generator

**Use case:** 

Generate EAN-13, UPC-A, and Code128 product barcode images as PNG or SVG files for catalogs, labels, and inventory tools.

## Input

```json
{
  "barcodes": [
    {
      "data": "012345678901",
      "format": "EAN13",
      "outputFormat": "PNG",
      "label": "retail-ean13"
    },
    {
      "data": "036000291452",
      "format": "UPC",
      "outputFormat": "PNG",
      "label": "retail-upc"
    },
    {
      "data": "SKU-2026-0001",
      "format": "CODE128",
      "outputFormat": "PNG",
      "label": "internal-sku"
    }
  ],
  "outputFormat": "PNG",
  "width": 320,
  "height": 160,
  "lineColor": "#000000",
  "background": "#ffffff",
  "includeText": true,
  "fontSize": 18,
  "margin": 10,
  "qrErrorCorrection": "M"
}
```

## Output

```json
{
  "label": {
    "label": "Label",
    "format": "text"
  },
  "data": {
    "label": "Data",
    "format": "text"
  },
  "format": {
    "label": "Format",
    "format": "text"
  },
  "outputFormat": {
    "label": "Output Format",
    "format": "text"
  },
  "width": {
    "label": "Width",
    "format": "number"
  },
  "height": {
    "label": "Height",
    "format": "number"
  },
  "kvKey": {
    "label": "KV Store Key",
    "format": "text"
  },
  "kvKeyPng": {
    "label": "PNG Key",
    "format": "text"
  },
  "kvKeySvg": {
    "label": "SVG Key",
    "format": "text"
  },
  "success": {
    "label": "Success",
    "format": "boolean"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Barcode Generator](https://apify.com/automation-lab/barcode-generator) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/barcode-generator) to learn more, explore other use cases, and run it yourself.