{
  "openapi": "3.0.1",
  "info": {
    "title": "QR Code Generator & Reader - Bulk QR Codes & Barcodes",
    "description": "QR code generator and reader in bulk: texts, links, Wi-Fi, vCard or SEPA payloads in, PNG or SVG QR codes and barcodes out, each scan-tested. Or decode codes from images.",
    "version": "1.0",
    "x-build-id": "hyzJyWVSe3pTGClry"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/helenisapi~qr-code-generator-reader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-helenisapi-qr-code-generator-reader",
        "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/helenisapi~qr-code-generator-reader/runs": {
      "post": {
        "operationId": "runs-sync-helenisapi-qr-code-generator-reader",
        "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/helenisapi~qr-code-generator-reader/run-sync": {
      "post": {
        "operationId": "run-sync-helenisapi-qr-code-generator-reader",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "generate",
              "read"
            ],
            "type": "string",
            "description": "generate (default): turn texts, links or JSON payloads into QR codes or barcodes, saved as images in the run's key-value store with a public link in each dataset row. read: decode every QR code and barcode in images given by link or dataset, one row per image with each code's text and parsed content.",
            "default": "generate"
          },
          "texts": {
            "title": "Texts or links",
            "type": "array",
            "description": "Texts or links to encode (generate mode), one code per item, e.g. [\"https://apify.com\", \"Hello\", \"400638133393\"]. Links get https:// when it is missing; duplicates are removed. With a barcode codeType each item must fit that symbology (e.g. 12 or 13 digits for EAN-13). In generate mode, required unless `payloads` is set.",
            "items": {
              "type": "string"
            }
          },
          "payloads": {
            "title": "Structured QR payloads (JSON)",
            "type": "array",
            "description": "Structured QR codes that phones act on (generate mode, QR codes only), one JSON object each, e.g. [{\"type\": \"wifi\", \"wifi\": {\"ssid\": \"Cafe\", \"password\": \"secret123\"}}]. Types: wifi, vcard and mecard (contact), email, sms, whatsapp, phone, geo, event, epc (SEPA payment, IBAN checked); field names as in the README. In generate mode, required unless `texts` is set."
          },
          "codeType": {
            "title": "Code type",
            "enum": [
              "qrcode",
              "ean13",
              "ean8",
              "upca",
              "upce",
              "isbn",
              "itf14",
              "code128",
              "gs1_128",
              "code39",
              "code93",
              "itf",
              "codabar",
              "datamatrix",
              "gs1_datamatrix",
              "pdf417",
              "aztec"
            ],
            "type": "string",
            "description": "Symbology made in generate mode. qrcode (default): QR codes. Or a barcode for the texts: ean13, ean8, upca, upce and isbn (check digit computed when left out), itf14, code128, gs1_128, code39, code93, itf, codabar, datamatrix, gs1_datamatrix, pdf417, aztec. Payloads only work with qrcode.",
            "default": "qrcode"
          },
          "format": {
            "title": "Image format",
            "enum": [
              "png",
              "svg"
            ],
            "type": "string",
            "description": "Image format of generated codes: png (default) for screens, or svg (vector) for print.",
            "default": "png"
          },
          "size": {
            "title": "QR size (px)",
            "minimum": 32,
            "maximum": 2000,
            "type": "integer",
            "description": "Width and height of each QR code in pixels, 32-2000. Leave empty for the default of 400 px; use more for long content. QR codes only (barcodes use scale)."
          },
          "scale": {
            "title": "Barcode scale",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Pixels per module (the thinnest bar or smallest square) of barcodes, 1-20. Leave empty for the default: 3 for linear barcodes, 8 for 2D codes (Data Matrix, PDF417, Aztec). Barcodes only (QR codes use size)."
          },
          "dark": {
            "title": "Dark colour",
            "type": "string",
            "description": "Hex colour of the code's bars or squares, e.g. #000000 or #1A3D7C. Must contrast with the light colour (3:1 at least). Leave empty for black."
          },
          "light": {
            "title": "Light colour",
            "type": "string",
            "description": "Hex background colour, e.g. #FFFFFF, or the word transparent. Leave empty for white."
          },
          "ecc": {
            "title": "QR error correction",
            "enum": [
              "L",
              "M",
              "Q",
              "H"
            ],
            "type": "string",
            "description": "QR error correction level, how much damage a code survives: L 7 %, M 15 % (used when empty), Q 25 %, H 30 %. H is forced when a logo is set. QR codes only."
          },
          "logoUrl": {
            "title": "Logo link (QR only)",
            "type": "string",
            "description": "Public link to a PNG, JPEG, WEBP or GIF logo placed in the centre of every QR code, 5 MB max, e.g. https://example.com/logo.png. Leave empty for no logo. Each code is still scanned back before it is saved."
          },
          "humanReadable": {
            "title": "Text under barcodes",
            "type": "boolean",
            "description": "Print the human-readable digits under linear barcodes (EAN, UPC, Code 128...). On by default; no effect on QR and 2D codes.",
            "default": true
          },
          "imageUrls": {
            "title": "Image links",
            "type": "array",
            "description": "Images to decode (read mode), one direct public link per item, e.g. [\"https://example.com/label.jpg\"]. PNG, JPEG, WEBP, HEIC, GIF, BMP or TIFF, up to 20 MB each. In read mode, required unless `datasetId` is set. Each image returns one row with every code found, its text and parsed content.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Dataset ID (optional)",
            "type": "string",
            "description": "ID of an existing Apify dataset whose rows hold image links to decode (read mode), e.g. the output of a product scraper; the link field is set by datasetUrlField. In read mode, required unless `imageUrls` is set."
          },
          "datasetUrlField": {
            "title": "Image link field in the dataset",
            "type": "string",
            "description": "Name of the dataset field holding the image link, e.g. photoUrl. Leave empty to try imageUrl, image, photoUrl, displayUrl, thumbnailUrl, fileUrl and url, in that order. Only used with datasetId."
          },
          "formats": {
            "title": "Only these symbologies",
            "type": "string",
            "description": "Read mode only: comma-separated symbologies to look for, e.g. qr_code, ean_13, code_128, data_matrix. Leave empty to detect every supported type."
          },
          "maxItems": {
            "title": "Maximum codes or images",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum codes to generate or images to read in this run, 0 or more. 0 (default) means no limit other than the cap of 10,000 per run.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many codes or images are processed at the same time, 1-20 (default 8).",
            "default": 8
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}