{
  "openapi": "3.0.1",
  "info": {
    "title": "Playwright Browser Automation Runner | No-Code JSON Workflows",
    "description": "Run deterministic Playwright browser workflows from JSON: navigate, click, fill, extract, assert, wait, and screenshot without deploying a Playwright script.",
    "version": "0.1",
    "x-build-id": "WWHW4bbisyAgqe8fw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/produkdigitalali~playwright-browser-automation-runner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-produkdigitalali-playwright-browser-automation-runner",
        "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/produkdigitalali~playwright-browser-automation-runner/runs": {
      "post": {
        "operationId": "runs-sync-produkdigitalali-playwright-browser-automation-runner",
        "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/produkdigitalali~playwright-browser-automation-runner/run-sync": {
      "post": {
        "operationId": "run-sync-produkdigitalali-playwright-browser-automation-runner",
        "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",
        "required": [
          "startUrl",
          "actions"
        ],
        "properties": {
          "startUrl": {
            "title": "Start URL",
            "maxLength": 2048,
            "type": "string",
            "description": "The public page to open before the first action, for example https://quotes.toscrape.com/js/. Must be http:// or https://. Private, localhost, and URLs with embedded credentials are rejected. Opening this URL is not billed."
          },
          "actions": {
            "title": "Workflow actions",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Ordered list of steps to run, 1–100 items. Each item is an object with a \"type\" plus the fields that type needs. Types: goto (url), waitForSelector (locator), click (locator), fill (locator, value), press (locator, key), selectOption (locator, value or values), extractText (locator), extractAttribute (locator, attribute), textContains (locator, expected), urlContains (expected), screenshot (optional name, fullPage), wait (durationMs). A locator looks like {\"by\": \"css\", \"value\": \"h1\"}; by can be css, text, role, label, placeholder, or testId. Example: [{\"type\": \"extractText\", \"locator\": {\"by\": \"css\", \"value\": \"h1\"}}].",
            "items": {
              "type": "object",
              "required": [
                "type"
              ],
              "additionalProperties": false,
              "properties": {
                "type": {
                  "title": "Action type",
                  "description": "Which browser operation to perform. See the Workflow actions description for the fields each type requires.",
                  "type": "string",
                  "enum": [
                    "goto",
                    "waitForSelector",
                    "click",
                    "fill",
                    "press",
                    "selectOption",
                    "extractText",
                    "extractAttribute",
                    "textContains",
                    "urlContains",
                    "screenshot",
                    "wait"
                  ]
                },
                "url": {
                  "title": "URL",
                  "description": "Required for goto. Public http(s) URL to navigate to, for example https://example.com/pricing.",
                  "type": "string",
                  "maxLength": 2048
                },
                "locator": {
                  "title": "Locator",
                  "description": "Required for waitForSelector, click, fill, press, selectOption, extractText, extractAttribute, and textContains. Object with by and value, for example {\"by\": \"role\", \"value\": \"button\", \"name\": \"Submit\"} or {\"by\": \"css\", \"value\": \".price\", \"index\": 0}.",
                  "type": "object",
                  "editor": "json",
                  "additionalProperties": false,
                  "properties": {
                    "by": {
                      "title": "Locator strategy",
                      "description": "How to find the element: css (CSS selector), text (visible text), role (ARIA role such as button or link), label (form label text), placeholder (input placeholder), or testId (data-testid attribute).",
                      "type": "string",
                      "enum": [
                        "css",
                        "text",
                        "role",
                        "label",
                        "placeholder",
                        "testId"
                      ]
                    },
                    "value": {
                      "title": "Locator value",
                      "description": "The selector or text matching the strategy, for example \"h1\" for css, \"Sign up\" for text, \"button\" for role, or \"Email\" for label.",
                      "type": "string",
                      "maxLength": 4096
                    },
                    "name": {
                      "title": "Accessible name",
                      "description": "Only for by=role. The element's accessible name, for example \"Submit\" to match the Submit button.",
                      "type": "string",
                      "maxLength": 1024
                    },
                    "exact": {
                      "title": "Exact match",
                      "description": "If true, text and accessible name must match exactly instead of as a case-insensitive substring.",
                      "type": "boolean"
                    },
                    "index": {
                      "title": "Match index",
                      "description": "Zero-based index to pick one element when the locator matches several, for example 0 for the first match.",
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 999
                    }
                  },
                  "required": [
                    "by",
                    "value"
                  ]
                },
                "value": {
                  "title": "Value",
                  "description": "For fill: the text to type. For selectOption: one option value. Do not put passwords, tokens, or cookies here — input is stored with the run.",
                  "type": "string",
                  "maxLength": 200000
                },
                "values": {
                  "title": "Values",
                  "description": "For selectOption on a multi-select: list of option values to select.",
                  "type": "array",
                  "editor": "stringList",
                  "maxItems": 100,
                  "items": {
                    "type": "string",
                    "maxLength": 4096
                  }
                },
                "key": {
                  "title": "Key",
                  "description": "Required for press. Key or chord to press, for example Enter, Tab, or Control+A.",
                  "type": "string",
                  "maxLength": 128
                },
                "attribute": {
                  "title": "Attribute",
                  "description": "Required for extractAttribute. HTML attribute to read, for example href, src, or content.",
                  "type": "string",
                  "maxLength": 256
                },
                "expected": {
                  "title": "Expected text",
                  "description": "Required for textContains and urlContains. The step passes only if the element text or current URL contains this substring.",
                  "type": "string",
                  "maxLength": 200000
                },
                "state": {
                  "title": "Wait state",
                  "description": "For waitForSelector: wait until the element is visible (default), hidden, attached to the DOM, or detached.",
                  "type": "string",
                  "enum": [
                    "attached",
                    "detached",
                    "visible",
                    "hidden"
                  ]
                },
                "waitUntil": {
                  "title": "Navigation wait condition",
                  "description": "For goto: when navigation counts as finished — load, domcontentloaded, networkidle, or commit.",
                  "type": "string",
                  "enum": [
                    "load",
                    "domcontentloaded",
                    "networkidle",
                    "commit"
                  ]
                },
                "timeoutMs": {
                  "title": "Action timeout",
                  "description": "Optional timeout for this one action in milliseconds (100–60000). Overrides the default action timeout.",
                  "type": "integer",
                  "minimum": 100,
                  "maximum": 60000
                },
                "durationMs": {
                  "title": "Wait duration",
                  "description": "Required for wait. Milliseconds to pause (0–30000). Prefer waitForSelector when you are waiting for content.",
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 30000
                },
                "fullPage": {
                  "title": "Full-page screenshot",
                  "description": "For screenshot: true captures the whole scrollable page, false captures only the visible viewport.",
                  "type": "boolean"
                },
                "name": {
                  "title": "Artifact name",
                  "description": "For screenshot: optional file name for the PNG in the key-value store, for example homepage-proof.",
                  "type": "string",
                  "maxLength": 80
                }
              }
            }
          },
          "stopOnError": {
            "title": "Stop on error",
            "type": "boolean",
            "description": "If true, stop at the first failed action. Set to false to keep going and record every step — useful when a screenshot follows an assertion so you still get evidence on failure.",
            "default": true
          },
          "actionTimeoutMs": {
            "title": "Default action timeout",
            "minimum": 1000,
            "maximum": 60000,
            "type": "integer",
            "description": "How long each action may wait for its element, in milliseconds (1000–60000).",
            "default": 15000
          },
          "navigationTimeoutMs": {
            "title": "Navigation timeout",
            "minimum": 1000,
            "maximum": 60000,
            "type": "integer",
            "description": "How long opening startUrl or a goto URL may take, in milliseconds (1000–60000).",
            "default": 30000
          },
          "maxRunSeconds": {
            "title": "Maximum workflow runtime",
            "minimum": 10,
            "maximum": 180,
            "type": "integer",
            "description": "Hard time budget for the whole workflow in seconds (10–180), not counting a few seconds of Actor startup.",
            "default": 120
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Use Apify Proxy or your own HTTP(S) proxy if the target site blocks datacenter traffic. Destination safety checks still apply."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}