Skip to main content

Connecting libraries

If you already have automations set up with a library such as Playwright or Puppeteer, you can connect it through a WebSocket endpoint.

This allows you to log in with BrowserQL and generate an endpoint to run your existing script.

mutation generating_endpoints {
goto(url: "https://example.com/", waitUntil: networkIdle) {
status
}

solve(type: hcaptcha) {
solved
}

reconnect (timeout: 10000) {
browserWSEndpoint
}
}

The response will be a browserWSEndpoint with a unique token.

For more details on using this endpoint, check out the documentation for connecting Puppeteer or Playwright.