{
  "openapi": "3.0.1",
  "info": {
    "title": "QR Code & Barcode Reader and Generator - Bulk, From Image Links",
    "description": "Read QR codes and barcodes (EAN, UPC, Code128, DataMatrix, PDF417) from image links or a scraper's dataset in bulk, or generate QR codes and barcodes as PNG or SVG files with public links. For n8n, Make and AI agents.",
    "version": "0.1",
    "x-build-id": "aRyBQbGtGkx6bYfzZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/northbell~qr-barcode/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-northbell-qr-barcode",
        "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/northbell~qr-barcode/runs": {
      "post": {
        "operationId": "runs-sync-northbell-qr-barcode",
        "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/northbell~qr-barcode/run-sync": {
      "post": {
        "operationId": "run-sync-northbell-qr-barcode",
        "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": {
          "operation": {
            "title": "Operation",
            "enum": [
              "generate",
              "read"
            ],
            "type": "string",
            "description": "generate makes code files from the texts below. read finds the codes in the images below. Only the fields of the chosen operation are used.",
            "default": "generate"
          },
          "texts": {
            "title": "Texts or URLs (generate)",
            "type": "array",
            "description": "One code per line. A QR code can hold a web link, plain text, a Wi-Fi login or a vCard. EAN-13 needs 12 or 13 digits (the check digit is added or checked). Code128 takes ASCII text.",
            "items": {
              "type": "string"
            }
          },
          "imageUrls": {
            "title": "Image links (read)",
            "type": "array",
            "description": "Direct links to images (PNG, JPG, WebP, GIF, TIFF, AVIF). Or leave empty and give a Dataset ID.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Dataset ID (read)",
            "type": "string",
            "description": "Read image links from this Apify dataset, for example the dataset of a product scraper run. Use {{resource.defaultDatasetId}} when you connect this Actor as an integration after another Actor."
          },
          "urlField": {
            "title": "Image field in the dataset (read)",
            "type": "string",
            "description": "Name of the field that holds the image link. A dotted path works (media.images). The field may hold one link or a list of links.",
            "default": "url"
          },
          "formats": {
            "title": "Only these code types (read)",
            "type": "array",
            "description": "Optional filter, for example qr, ean13, code128. Empty means all of: qr, ean13, ean8, upca, upce, code128, code39, itf, datamatrix, pdf417. Also available: aztec, codabar, code93, databar, microqr.",
            "items": {
              "type": "string"
            }
          },
          "codeType": {
            "title": "Code type (generate)",
            "enum": [
              "qr",
              "ean13",
              "code128",
              "datamatrix"
            ],
            "type": "string",
            "description": "The kind of code to make for every text.",
            "default": "qr"
          },
          "fileType": {
            "title": "File type (generate)",
            "enum": [
              "png",
              "svg"
            ],
            "type": "string",
            "description": "Each code is stored as a file with a public link.",
            "default": "png"
          },
          "size": {
            "title": "Size in pixels (generate)",
            "minimum": 64,
            "maximum": 4000,
            "type": "integer",
            "description": "Target width. The real width is the largest whole number of pixels per module that fits (so modules stay sharp), and is returned in the row.",
            "default": 512
          },
          "margin": {
            "title": "Margin in modules (generate)",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Empty border around the code, counted in code modules. 4 is the standard for QR; scanners need it.",
            "default": 4
          },
          "errorCorrection": {
            "title": "Error correction (generate, QR)",
            "enum": [
              "L",
              "M",
              "Q",
              "H"
            ],
            "type": "string",
            "description": "Higher levels survive more damage but make a denser code.",
            "default": "M"
          },
          "foreground": {
            "title": "Dark colour (generate)",
            "type": "string",
            "description": "Hex colour of the dark modules, for example #000000. Keep strong contrast with the background or scanners fail.",
            "default": "#000000"
          },
          "background": {
            "title": "Light colour (generate)",
            "type": "string",
            "description": "Hex colour of the background, for example #ffffff.",
            "default": "#ffffff"
          },
          "onlyNew": {
            "title": "Only new images (read)",
            "type": "boolean",
            "description": "Skip images that an earlier run already read. The Actor remembers the links in the key-value store qr-barcode-seen. Useful after a scraper that runs every day.",
            "default": false
          },
          "maxFileMb": {
            "title": "Max image size (MB)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Larger images come back as errors, free. Hard cap 100.",
            "default": 20
          },
          "maxItems": {
            "title": "Max items per run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap on images or texts per run. Items over the cap are left for the next run.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}