Skip to main content

Connecting libraries

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

You can even perform actions such as logging in with BrowserQL, and only then create an endpoint:

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

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.