{
  "openapi": "3.0.1",
  "info": {
    "title": "Qr Code Generator",
    "description": "Generate your Custom QR Code From 1$/1000. PNG & SVG output, 9 style presets (rounded, dots, neon, elegant…), custom label & logo overlay, Wi-Fi/vCard/URL payloads. Batch mode, ZIP download, REST API & Standby. No watermark.",
    "version": "1.0",
    "x-build-id": "99FpG5Atctu2VEdnA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/leadsbrary~qr-code-studio/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-leadsbrary-qr-code-studio",
        "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/leadsbrary~qr-code-studio/runs": {
      "post": {
        "operationId": "runs-sync-leadsbrary-qr-code-studio",
        "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/leadsbrary~qr-code-studio/run-sync": {
      "post": {
        "operationId": "run-sync-leadsbrary-qr-code-studio",
        "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": {
          "content": {
            "title": "Content",
            "type": "string",
            "description": "Text or URL to encode. Leave empty when using batch requests below."
          },
          "stylePreset": {
            "title": "Style preset",
            "enum": [
              "classic",
              "rounded",
              "dots",
              "elegant",
              "neon",
              "soft",
              "inverted",
              "terminal",
              "brand"
            ],
            "type": "string",
            "description": "Visual design of the QR code.",
            "default": "rounded"
          },
          "format": {
            "title": "Format",
            "enum": [
              "png",
              "svg",
              "both"
            ],
            "type": "string",
            "description": "Output file format.",
            "default": "png"
          },
          "size": {
            "title": "Size (px)",
            "minimum": 64,
            "maximum": 4096,
            "type": "integer",
            "description": "Output image size in pixels.",
            "default": 512
          },
          "requests": {
            "title": "Batch requests",
            "type": "array",
            "description": "Generate multiple QR codes in one run. Each item can override content, style, format, payload, logo, and label.",
            "items": {
              "type": "object",
              "additionalProperties": true,
              "properties": {
                "name": {
                  "title": "Name",
                  "type": "string",
                  "description": "Used for file names and dataset row ID.",
                  "editor": "textfield"
                },
                "content": {
                  "title": "Content",
                  "type": "string",
                  "description": "Text or URL to encode.",
                  "editor": "textarea"
                },
                "payloadType": {
                  "title": "Payload type",
                  "type": "string",
                  "description": "Payload type for this item.",
                  "editor": "select",
                  "default": "raw",
                  "enum": [
                    "raw",
                    "url",
                    "wifi",
                    "vcard",
                    "email",
                    "sms",
                    "phone",
                    "geo",
                    "event"
                  ],
                  "enumTitles": [
                    "Raw text",
                    "URL",
                    "WiFi",
                    "vCard",
                    "Email",
                    "SMS",
                    "Phone",
                    "Geo location",
                    "Calendar event"
                  ]
                },
                "payload": {
                  "title": "Structured payload",
                  "type": "object",
                  "description": "JSON data for the payload type. Example for WiFi: {\"ssid\":\"Guest\",\"password\":\"secret\",\"encryption\":\"WPA\"}.",
                  "editor": "json"
                },
                "stylePreset": {
                  "title": "Style preset",
                  "type": "string",
                  "description": "Visual design for this QR code.",
                  "editor": "select",
                  "default": "rounded",
                  "enum": [
                    "classic",
                    "rounded",
                    "dots",
                    "elegant",
                    "neon",
                    "soft",
                    "inverted",
                    "terminal",
                    "brand"
                  ]
                },
                "format": {
                  "title": "Format",
                  "type": "string",
                  "description": "Output format for this QR code.",
                  "editor": "select",
                  "default": "png",
                  "enum": [
                    "png",
                    "svg",
                    "both",
                    "dataUrl",
                    "json"
                  ],
                  "enumTitles": [
                    "PNG",
                    "SVG",
                    "PNG + SVG",
                    "PNG data URL",
                    "JSON + data URL"
                  ]
                },
                "size": {
                  "title": "Size (px)",
                  "type": "integer",
                  "description": "Output image size in pixels.",
                  "editor": "number",
                  "minimum": 64,
                  "maximum": 4096
                },
                "logoUrl": {
                  "title": "Logo URL",
                  "type": "string",
                  "description": "Public image URL to embed in the center.",
                  "editor": "textfield"
                },
                "label": {
                  "title": "Label",
                  "type": "string",
                  "description": "Short text printed below the QR code.",
                  "editor": "textfield"
                }
              }
            }
          },
          "payloadType": {
            "title": "Payload type",
            "enum": [
              "raw",
              "url",
              "wifi",
              "vcard",
              "email",
              "sms",
              "phone",
              "geo",
              "event"
            ],
            "type": "string",
            "description": "Choose a structured type to encode WiFi, contacts, emails, etc. Use the Payload field below for the details.",
            "default": "raw"
          },
          "payload": {
            "title": "Structured payload",
            "type": "object",
            "description": "JSON data for the selected payload type. WiFi example: {\"ssid\":\"Guest WiFi\",\"password\":\"secret\",\"encryption\":\"WPA\"}. vCard example: {\"fullName\":\"Jane Doe\",\"email\":\"jane@example.com\",\"phone\":\"+33123456789\"}."
          },
          "logoUrl": {
            "title": "Logo URL",
            "type": "string",
            "description": "Public image URL to embed in the center of the QR code."
          },
          "label": {
            "title": "Label text",
            "type": "string",
            "description": "Short text printed below (or above) the QR code."
          },
          "labelPosition": {
            "title": "Label position",
            "enum": [
              "top",
              "bottom"
            ],
            "type": "string",
            "description": "Where to place the label relative to the QR code.",
            "default": "bottom"
          },
          "zipOutput": {
            "title": "Create ZIP archive",
            "type": "boolean",
            "description": "Bundle all generated files into a single downloadable ZIP.",
            "default": true
          },
          "errorCorrectionLevel": {
            "title": "Error correction level",
            "enum": [
              "L",
              "M",
              "Q",
              "H"
            ],
            "type": "string",
            "description": "H is recommended when using a logo. L is the most compact.",
            "default": "H"
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}