Skip to main content
The Browserbase Python and TypeScript SDKs work with querying.ai Browser. Set the SDK’s base URL to https://api.querying.ai/browser and its API key to your querying.ai vt_ key. Features, limits, concurrency and prices are on the Browser API page.

1. Set your API key

2. Create a session and drive it

projects.list() returns the project of your key. Pass its id as projectId when you create and release sessions.
  • connectUrl carries a token for this session, so Playwright connects with no API key. Puppeteer connects with puppeteer.connect({ browserWSEndpoint: session.connectUrl }).
  • sessions.debug returns debuggerUrl and debuggerFullscreenUrl for the session, and the same pair for each open tab in pages. Open either URL in a browser tab to watch the session and take control.
  • REQUEST_RELEASE ends the session and stops its charges. A session also ends when its timeout runs out (5 minutes by default, up to 21,600 seconds).
  • Sessions solve captchas (solveCaptchas) and record the session (recordSession) by default. Recordings, logs, downloads and uploads are available through the SDK’s sessions methods.
  • A session runs headful and is charged at the Browserbase session rate, 1.38 credits per minute. See Billing.
Next: Kernel SDK, Credits and limits.