{
  "openapi": "3.0.1",
  "info": {
    "title": "Barcode Generator: EAN, UPC, Code 128 and more to PNG and SVG",
    "description": "Generates EAN-13, EAN-8, UPC-A, ISBN, ITF, ITF-14, Code 128, Code 39, Data Matrix and PDF417 barcodes as PNG and SVG in bulk. Computes or validates check digits, prints retail style digits, and scans every image back to prove it reads.",
    "version": "0.1",
    "x-build-id": "bhurD7Yp8EMoQgFy9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/examsens.ai~barcode-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-examsens.ai-barcode-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/examsens.ai~barcode-generator/runs": {
      "post": {
        "operationId": "runs-sync-examsens.ai-barcode-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/examsens.ai~barcode-generator/run-sync": {
      "post": {
        "operationId": "run-sync-examsens.ai-barcode-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "values": {
            "title": "Values",
            "type": "array",
            "description": "One barcode per value, all of the type below. EAN, UPC, ITF-14 and ISBN values work with or without the check digit.",
            "items": {
              "type": "string"
            }
          },
          "type": {
            "title": "Barcode type",
            "enum": [
              "code128",
              "ean13",
              "ean8",
              "upca",
              "isbn",
              "itf",
              "itf14",
              "code39",
              "datamatrix",
              "pdf417"
            ],
            "type": "string",
            "description": "Type for the values above, and for items that do not name one.",
            "default": "ean13"
          },
          "items": {
            "title": "Mixed items",
            "type": "array",
            "description": "Barcodes of different types in one run: objects with \"value\", and optional \"type\", \"fileName\" and \"text\" (the line printed under the bars)."
          },
          "outputFormats": {
            "title": "Image files",
            "type": "array",
            "description": "PNG, SVG or both.",
            "items": {
              "type": "string",
              "enum": [
                "png",
                "svg"
              ],
              "enumTitles": [
                "PNG",
                "SVG"
              ]
            },
            "default": [
              "png",
              "svg"
            ]
          },
          "moduleWidth": {
            "title": "Module width (pixels)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Width of the narrowest bar, or the side of one 2D module.",
            "default": 3
          },
          "barHeight": {
            "title": "Bar height (pixels)",
            "minimum": 10,
            "maximum": 2000,
            "type": "integer",
            "description": "Height of the bars of linear barcodes. Leave empty for 50 module widths."
          },
          "quietZone": {
            "title": "Quiet zone (modules)",
            "minimum": 0,
            "maximum": 40,
            "type": "integer",
            "description": "Blank margin around the code, in module widths. Leave empty for 10 on linear codes (at least 9 on EAN-13 and UPC-A, to fit the outside digit), 2 on Data Matrix and PDF417."
          },
          "showText": {
            "title": "Print the value under the bars",
            "type": "boolean",
            "description": "Human readable text under linear barcodes. EAN and UPC digits are grouped the retail way.",
            "default": true
          },
          "foreground": {
            "title": "Bar color",
            "type": "string",
            "description": "Hex color of the bars and text.",
            "default": "#000000"
          },
          "background": {
            "title": "Background color",
            "type": "string",
            "description": "Hex color of the background, or transparent.",
            "default": "#FFFFFF"
          },
          "dpi": {
            "title": "PNG resolution (DPI)",
            "minimum": 72,
            "maximum": 1200,
            "type": "integer",
            "description": "Resolution stored in the PNG file, used by print software to size the image.",
            "default": 300
          },
          "code39Uppercase": {
            "title": "Code 39: make letters capital",
            "type": "boolean",
            "description": "Code 39 holds capital letters only. When on, small letters are turned to capitals; when off, they are an error.",
            "default": true
          },
          "code39CheckDigit": {
            "title": "Code 39: add mod 43 check character",
            "type": "boolean",
            "description": "Append the optional modulo 43 check character.",
            "default": false
          },
          "dataMatrixShape": {
            "title": "Data Matrix shape",
            "enum": [
              "square",
              "any"
            ],
            "type": "string",
            "description": "Square symbols, or let short values use a smaller rectangular symbol.",
            "default": "square"
          },
          "pdf417EcLevel": {
            "title": "PDF417 error correction level",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8"
            ],
            "type": "string",
            "description": "0 to 8. Higher levels survive more damage and make a larger symbol. Leave empty for the default."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}