{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk QR & Barcode Generator - PNG, SVG, Label PDFs",
    "description": "Bulk QR codes and barcodes: QR (colours; logo in PNG only), Micro QR, EAN-13, EAN-8, UPC-A, UPC-E, ISBN, Code 128, GS1-128, Code 39, Code 93, ITF-14, Codabar as PNG and SVG, plus label PDFs and a ZIP. Check digits validated. $0.0005 per code.",
    "version": "1.0",
    "x-build-id": "4pSedaXS2UkCS2gcf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/digivibetech~bulk-qr-barcode-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-digivibetech-bulk-qr-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/digivibetech~bulk-qr-barcode-generator/runs": {
      "post": {
        "operationId": "runs-sync-digivibetech-bulk-qr-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/digivibetech~bulk-qr-barcode-generator/run-sync": {
      "post": {
        "operationId": "run-sync-digivibetech-bulk-qr-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": {
          "items": {
            "title": "Values",
            "type": "array",
            "description": "One value per line: a link, text, SKU, EAN or ticket number. Each becomes one code. Objects like {\"value\": \"...\", \"name\": \"...\"} also work through the API.",
            "items": {
              "type": "string"
            }
          },
          "csv": {
            "title": "Or paste CSV rows",
            "type": "string",
            "description": "CSV with a header row, for example value,name,price. Use 'Value column' to say which column to encode; the other columns can be printed on labels."
          },
          "valueField": {
            "title": "Value column (CSV/objects)",
            "type": "string",
            "description": "Which column or object field holds the value to encode.",
            "default": "value"
          },
          "size": {
            "title": "PNG width (pixels)",
            "minimum": 64,
            "maximum": 4000,
            "type": "integer",
            "description": "Approximate PNG width; modules stay sharp (whole pixels).",
            "default": 400
          },
          "errorCorrection": {
            "title": "QR error correction",
            "enum": [
              "L",
              "M",
              "Q",
              "H"
            ],
            "type": "string",
            "description": "L 7%, M 15%, Q 25%, H 30% of the code can be damaged and still read. With a logo, QR codes always use H, whatever level is chosen (Micro QR has no H level).",
            "default": "M"
          },
          "logoUrl": {
            "title": "Logo in the QR centre (image URL)",
            "type": "string",
            "description": "Optional PNG, JPEG, GIF or WebP image (max 2 MB), downloaded once per run and added to the middle of each QR code in the PNG files only; SVG files and the label PDF are without the logo. If the logo cannot be downloaded or used, the run stops before making any code and nothing is charged."
          },
          "foreground": {
            "title": "Code colour",
            "type": "string",
            "description": "Hex colour of bars and modules, such as #1A1A1A. Keep strong contrast with the background.",
            "default": "#000000"
          },
          "background": {
            "title": "Background colour",
            "type": "string",
            "description": "Hex background colour.",
            "default": "#FFFFFF"
          },
          "transparentBackground": {
            "title": "Transparent PNG background",
            "type": "boolean",
            "description": "Make the PNG background transparent.",
            "default": false
          },
          "showText": {
            "title": "Print the value under barcodes",
            "type": "boolean",
            "description": "Human-readable text under 1D barcodes.",
            "default": true
          },
          "prefix": {
            "title": "Add before each value",
            "type": "string",
            "description": "For example https://shop.test/p/ to turn product numbers into links."
          },
          "suffix": {
            "title": "Add after each value",
            "type": "string",
            "description": "Text added after each value, such as ?utm_source=label."
          },
          "fileNameField": {
            "title": "File names from column",
            "type": "string",
            "description": "CSV column or object field used for file names (default: the value)."
          },
          "labelTemplate": {
            "title": "Label sheet PDF",
            "enum": [
              "none",
              "L7160",
              "L7159",
              "L7163",
              "L7173",
              "L7651",
              "L7656",
              "5160",
              "5163",
              "5167",
              "22806",
              "custom"
            ],
            "type": "string",
            "description": "Also make a printable label sheet PDF (free). Print at 100%.",
            "default": "none"
          },
          "customLabel": {
            "title": "Custom label layout",
            "type": "object",
            "description": "For 'Custom size': {\"paper\": \"A4\", \"unit\": \"mm\", \"cols\": 3, \"rows\": 8, \"w\": 63.5, \"h\": 33.9, \"top\": 12.9, \"left\": 6.45, \"hp\": 66.04, \"vp\": 33.9}."
          },
          "labelTextFields": {
            "title": "Label text columns",
            "type": "array",
            "description": "CSV columns or object fields printed as text lines on each label, such as name and price.",
            "items": {
              "type": "string"
            }
          },
          "copiesField": {
            "title": "Copies per row from column",
            "type": "string",
            "description": "CSV column with the number of labels per row (empty = 1)."
          },
          "skipLabels": {
            "title": "Skip used labels",
            "minimum": 0,
            "type": "integer",
            "description": "Start after this many labels on the first sheet (for part-used sheets).",
            "default": 0
          },
          "labelBorder": {
            "title": "Print label outlines",
            "type": "boolean",
            "description": "Draw thin outlines, useful for a test print.",
            "default": false
          },
          "zip": {
            "title": "One ZIP with the run's files",
            "type": "boolean",
            "description": "Save CODES.zip with the PNG/SVG files of each code generated in this run (and the label PDF) in the key-value store (free).",
            "default": true
          },
          "maxCodes": {
            "title": "Max codes per run",
            "minimum": 1,
            "type": "integer",
            "description": "Most codes generated in this run. Each generated code is one charged event; invalid values are free.",
            "default": 10000
          },
          "format": {
            "title": "Format",
            "enum": [
              "auto",
              "QR",
              "MICRO_QR",
              "EAN13",
              "EAN8",
              "UPCA",
              "UPCE",
              "ISBN13",
              "CODE128",
              "GS1_128",
              "CODE39",
              "CODE93",
              "ITF14",
              "CODABAR"
            ],
            "type": "string",
            "description": "Code type for all values. A row can override it with its own 'format' field.",
            "default": "auto"
          },
          "outputFormats": {
            "title": "Files",
            "type": "array",
            "description": "PNG and/or SVG per code, saved in the run's key-value store with a file link in each result.",
            "items": {
              "type": "string",
              "enum": [
                "png",
                "svg"
              ]
            },
            "default": [
              "png",
              "svg"
            ]
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}