{
  "openapi": "3.0.1",
  "info": {
    "title": "Scout Browser",
    "description": "Full browser automation and web crawling for AI agents, all through MCP tools. Run it anywhere, plug in any LLM.",
    "version": "0.0",
    "x-build-id": "adwYDgalM44e3Xbaa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ibnlanre~scout-browser/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ibnlanre-scout-browser",
        "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/ibnlanre~scout-browser/runs": {
      "post": {
        "operationId": "runs-sync-ibnlanre-scout-browser",
        "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/ibnlanre~scout-browser/run-sync": {
      "post": {
        "operationId": "run-sync-ibnlanre-scout-browser",
        "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": [
          "prompt",
          "apiKey"
        ],
        "properties": {
          "prompt": {
            "title": "Task",
            "type": "string",
            "description": "What the agent should find out or do in the browser."
          },
          "allowedDomains": {
            "title": "Allowed domains",
            "type": "array",
            "description": "The agent may only navigate to these domains and their subdomains. Leave empty to allow any public page. Images, scripts and frames that an allowed page loads are not restricted.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxSteps": {
            "title": "Max steps",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "The most turns the model takes before it must answer with what it has found. A turn can run several tools, and a task usually spends a few on each page it reads. Turns are not charged; each tool call is, and each turn spends more of your model tokens than the last.",
            "default": 25
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Whose key the run spends, then the model as they name it: anthropic/claude-sonnet-5-5 goes straight to Anthropic, and openrouter/anthropic/claude-sonnet-5.5 goes through OpenRouter. Pick one, or type any model your key can use. Providers: alibaba, anthropic, arcee, bytedance, cohere, deepseek, google, interfaze, mistral, moonshotai, openai, sakana, stepfun, tencent, xai, xiaomi, zai. Gateways: kilo, openrouter, trustedrouter, vercel. Any other OpenAI-compatible endpoint: custom/model-name, with a base URL below.",
            "default": "deepseek/deepseek-flash"
          },
          "apiKey": {
            "title": "API key",
            "type": "string",
            "description": "The key for the account the model starts with: an OpenRouter key for openrouter/…, an Anthropic key for anthropic/…. It is stored encrypted, used only to call that account, and never shown to the agent or written to the log."
          },
          "baseUrl": {
            "title": "Base URL (custom/… only)",
            "type": "string",
            "description": "Only for a model starting custom/: the https address of an OpenAI-compatible endpoint, without /chat/completions."
          },
          "tools": {
            "title": "Browser tools",
            "type": "array",
            "description": "What the agent may use. The usual set is already selected: it finds pages, reads them and moves around them. Add only what the task needs: each tool makes every model turn a little longer. Those marked Sensitive can change what a page does or reach beyond it, and a page the agent reads could try to steer it into using them. Clearing the list gives the usual set.",
            "items": {
              "type": "string",
              "enum": [
                "browser-open",
                "browser-navigate",
                "browser-search",
                "browser-snapshot",
                "browser-find",
                "browser-element",
                "browser-extract",
                "browser-interact",
                "browser-wait",
                "browser-tabs",
                "browser-close",
                "browser-frames",
                "browser-resize",
                "browser-history",
                "browser-scene",
                "browser-crawl",
                "browser-launch",
                "browser-disconnect",
                "browser-screenshot",
                "browser-pdf",
                "browser-screencast",
                "browser-still",
                "browser-transcribe",
                "browser-source",
                "browser-styles",
                "browser-image",
                "browser-media",
                "browser-pinch",
                "browser-dialog",
                "browser-notifications",
                "browser-console",
                "browser-exceptions",
                "browser-network",
                "browser-websocket",
                "browser-har",
                "browser-metrics",
                "browser-memory",
                "browser-heap",
                "browser-trace",
                "browser-probe",
                "browser-layout",
                "browser-highlight",
                "browser-animation",
                "browser-emulate",
                "browser-throttle",
                "browser-cpu",
                "browser-vision",
                "canvas-inspect",
                "canvas-interact",
                "canvas-diff",
                "extension-launch",
                "extension-open",
                "extension-reload",
                "browser-evaluate",
                "browser-inject",
                "browser-route",
                "browser-unroute",
                "browser-request",
                "browser-security",
                "browser-cookies",
                "browser-storage",
                "browser-clipboard",
                "browser-attach",
                "browser-download",
                "browser-file",
                "browser-pipe",
                "browser-connect",
                "browser-remote",
                "extension-background",
                "extension-storage"
              ],
              "enumTitles": [
                "Browse · Open a browser",
                "Browse · Go to a page, reload, back, forward",
                "Browse · Search the web",
                "Read · See a page's structure and text",
                "Read · Find text on a page",
                "Read · Inspect one element",
                "Read · Pull a page's text, markdown or values",
                "Act · Click, type, scroll, select",
                "Browse · Wait for a page, text or element",
                "Browse · Open and switch tabs",
                "Browse · Close the browser",
                "Browse · Move between iframes",
                "Browse · Resize the window",
                "Browse · Read or clear navigation history",
                "Browse · Save and restore a page's state",
                "Browse · Crawl many pages at once",
                "Browse · Start a browser with custom settings",
                "Browse · Let go of a browser session",
                "Capture · Screenshot, saved for you (the agent cannot see it)",
                "Capture · Save a page as a PDF",
                "Capture · Record frames or video of a page",
                "Capture · Take a still from a video",
                "Capture · Pull the audio from a video or audio element",
                "Read · Get a page's HTML, styles, scripts or images",
                "Read · Get an element's computed styles",
                "Read · Fetch an image found on a page",
                "Act · Play, pause, mute or seek media",
                "Act · Pinch to zoom",
                "Act · Accept or dismiss a dialog",
                "Read · Read browser notifications",
                "Debug · Read console logs",
                "Debug · Read uncaught page errors",
                "Debug · Read network requests",
                "Debug · Read WebSocket connections",
                "Debug · Record network traffic to a HAR file",
                "Debug · Read performance metrics",
                "Debug · Read memory use",
                "Debug · Capture heap information",
                "Debug · Record a performance trace",
                "Debug · Run a named experiment on a page",
                "Debug · Overlay layout measurements on an element",
                "Debug · Highlight and measure an element",
                "Debug · Pause or speed up animations",
                "Simulate · A device, locale or timezone",
                "Simulate · A slow or offline network",
                "Simulate · A slower processor",
                "Simulate · Vision deficiencies",
                "Canvas · Inspect a canvas",
                "Canvas · Click and type inside a canvas",
                "Canvas · Compare two images pixel by pixel",
                "Extension · Start a browser with an extension",
                "Extension · Open an extension's page",
                "Extension · Reload an extension",
                "Sensitive · Run script in a page",
                "Sensitive · Inject script or CSS into a page",
                "Sensitive · Intercept and rewrite requests",
                "Sensitive · Remove request interception",
                "Sensitive · Send a request from the browser session",
                "Sensitive · Change how certificate errors are handled",
                "Sensitive · Read and change cookies",
                "Sensitive · Read and change local or session storage",
                "Sensitive · Read and write the clipboard",
                "Sensitive · Upload files to a page",
                "Sensitive · Track downloaded files",
                "Sensitive · Inspect files tracked for upload",
                "Sensitive · Write a page's data to a file",
                "Sensitive · Connect to another running browser",
                "Sensitive · Connect to a remote browser server",
                "Sensitive · Run script in an extension's background",
                "Sensitive · Read and change an extension's storage"
              ]
            },
            "default": [
              "browser-open",
              "browser-navigate",
              "browser-search",
              "browser-snapshot",
              "browser-find",
              "browser-element",
              "browser-extract",
              "browser-interact",
              "browser-wait",
              "browser-tabs",
              "browser-close"
            ]
          },
          "cdpTimeout": {
            "title": "CDP Timeout",
            "minimum": 1000,
            "maximum": 120000,
            "type": "integer",
            "description": "Timeout in milliseconds for Chrome DevTools Protocol commands.",
            "default": 30000
          },
          "keepAliveInterval": {
            "title": "Keepalive Interval",
            "minimum": 5000,
            "maximum": 300000,
            "type": "integer",
            "description": "Interval in milliseconds for CDP keepalive pings.",
            "default": 30000
          },
          "maxMissedPongs": {
            "title": "Max Missed Pongs",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of missed keepalive pongs before a connection is considered dead.",
            "default": 3
          },
          "titleDeadline": {
            "title": "Title Read Deadline",
            "minimum": 100,
            "maximum": 30000,
            "type": "integer",
            "description": "Timeout in milliseconds for reading a page title from a new tab.",
            "default": 1500
          },
          "maxConsoleErrors": {
            "title": "Max Console Errors",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of console errors tracked per session.",
            "default": 5
          },
          "maxBodySize": {
            "title": "Max Body Size",
            "minimum": 100000,
            "maximum": 50000000,
            "type": "integer",
            "description": "Maximum body size in bytes for MCP session messages.",
            "default": 5000000
          },
          "maxMutations": {
            "title": "Max DOM Mutations",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of DOM mutations tracked per session for page-change detection.",
            "default": 10
          },
          "maxImageDimension": {
            "title": "Max Image Dimension",
            "minimum": 200,
            "maximum": 4096,
            "type": "integer",
            "description": "Maximum width or height in pixels for screenshots and extracted images. Larger images are scaled down to this limit.",
            "default": 1600
          },
          "maxUrlLength": {
            "title": "Max URL Length",
            "minimum": 50,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum URL length in characters before truncation in accessibility snapshots.",
            "default": 120
          },
          "proxyEnabled": {
            "title": "Enable Proxy",
            "type": "boolean",
            "description": "Route search engine requests through a proxy. Required for most search engines when running from a cloud environment.",
            "default": false
          },
          "proxyUrl": {
            "title": "Proxy URL",
            "maxLength": 500,
            "type": "string",
            "description": "Proxy URL. Supports HTTP, HTTPS, and SOCKS5. Example: http://user:pass@host:8080",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}