{
  "openapi": "3.0.1",
  "info": {
    "title": "QR Code & Barcode Generator + Reader (Bulk, PNG/SVG, Logo)",
    "description": "Bulk-generate QR codes, EAN-13, EAN-8, UPC-A, Code 128, Code 39 and Data Matrix as PNG or SVG (colors, logo, caption, error correction), or read/decode all QR codes and barcodes from image URLs. No API key. $0.50 per 1,000 codes.",
    "version": "1.0",
    "x-build-id": "1FfYPVG6JWTPjF4BE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fast_data_asap~qr-barcode-generator-reader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fast_data_asap-qr-barcode-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/fast_data_asap~qr-barcode-generator-reader/runs": {
      "post": {
        "operationId": "runs-sync-fast_data_asap-qr-barcode-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/fast_data_asap~qr-barcode-generator-reader/run-sync": {
      "post": {
        "operationId": "run-sync-fast_data_asap-qr-barcode-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 = create QR codes / barcodes as PNG or SVG files. read = decode all QR codes and barcodes found in images.",
            "default": "generate"
          },
          "items": {
            "title": "Codes to generate",
            "type": "array",
            "description": "Generate mode. List of objects: {\"data\": \"...\", \"name\": \"optional-file-name\", \"type\": \"optional per-item type\", \"caption\": \"optional caption\"}. Per-item type overrides the global code type.",
            "default": [
              {
                "data": "https://apify.com",
                "name": "website-qr"
              },
              {
                "data": "4006381333931",
                "name": "ean13-product",
                "type": "ean13"
              },
              {
                "data": "ORDER-2026-000123",
                "name": "code128-order",
                "type": "code128"
              }
            ]
          },
          "texts": {
            "title": "Codes to generate (simple text list)",
            "type": "array",
            "description": "Generate mode. One value per line (URL, text, product number ...). Uses the global code type. Added to 'Codes to generate'.",
            "items": {
              "type": "string"
            }
          },
          "type": {
            "title": "Code type",
            "enum": [
              "qr",
              "ean13",
              "ean8",
              "upca",
              "code128",
              "code39",
              "datamatrix"
            ],
            "type": "string",
            "description": "Default code type for generated codes. EAN-13, EAN-8 and UPC-A check digits are validated (or added when you leave them out).",
            "default": "qr"
          },
          "format": {
            "title": "File format",
            "enum": [
              "png",
              "svg"
            ],
            "type": "string",
            "description": "PNG (raster) or SVG (vector, ideal for print).",
            "default": "png"
          },
          "scale": {
            "title": "Scale (pixels per module)",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Size of one QR / Data Matrix module or one barcode bar unit in pixels. 0 = automatic (10 for QR / Data Matrix, 3 for barcodes).",
            "default": 0
          },
          "size": {
            "title": "Target width in pixels (optional)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Optional. Picks the largest whole-module scale so the code is at most this wide (sharp edges, no blurry resizing). Overrides scale."
          },
          "barHeight": {
            "title": "Barcode bar height (px)",
            "minimum": 20,
            "maximum": 1000,
            "type": "integer",
            "description": "Height of the bars for 1D barcodes (EAN, UPC, Code 128, Code 39).",
            "default": 120
          },
          "errorCorrection": {
            "title": "QR error correction",
            "enum": [
              "L",
              "M",
              "Q",
              "H"
            ],
            "type": "string",
            "description": "L = 7 %, M = 15 %, Q = 25 %, H = 30 % damage tolerance. Automatically H when a logo is added.",
            "default": "M"
          },
          "foregroundColor": {
            "title": "Foreground color",
            "type": "string",
            "description": "Hex color of the code, e.g. #000000.",
            "default": "#000000"
          },
          "backgroundColor": {
            "title": "Background color",
            "type": "string",
            "description": "Hex color of the background, e.g. #FFFFFF, or 'transparent'.",
            "default": "#FFFFFF"
          },
          "logoUrl": {
            "title": "Logo URL (QR only)",
            "type": "string",
            "description": "Optional. Direct link to a PNG/JPG/WebP logo placed in the center of every QR code. Error correction is switched to H automatically."
          },
          "logoSizePercent": {
            "title": "Logo size (% of QR width)",
            "minimum": 5,
            "maximum": 30,
            "type": "integer",
            "description": "Width of the centered logo relative to the QR code. Keep it at 25 or below for reliable scanning.",
            "default": 22
          },
          "quietZone": {
            "title": "Quiet zone (modules)",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "White margin around the code in modules. Scanners need at least 4 for QR, 10 for barcodes (applied automatically as minimum for EAN/UPC).",
            "default": 4
          },
          "showText": {
            "title": "Show human-readable digits under barcodes",
            "type": "boolean",
            "description": "Prints the encoded value under 1D barcodes.",
            "default": true
          },
          "caption": {
            "title": "Caption text",
            "type": "string",
            "description": "Optional text printed under every generated code (per-item 'caption' overrides it)."
          },
          "imageUrls": {
            "title": "Image URLs to read",
            "type": "array",
            "description": "Read mode. Direct links to images (PNG, JPG, WebP, GIF, BMP, TIFF). Every QR code and barcode in each image is decoded.",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "How many images are downloaded in parallel in read mode.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}