> ## Documentation Index
> Fetch the complete documentation index at: https://docs.querying.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Browser API

> Remote stealth Chrome sessions you control over CDP, Playwright or Puppeteer, served to the Kernel and Browserbase SDKs from one base URL.

querying.ai Browser runs remote Chrome sessions that you control over the Chrome DevTools Protocol (CDP) with Playwright or Puppeteer. Every session starts with a fresh browser fingerprint, and it can exit through a residential proxy that keeps one address for the whole session. The API is a drop-in for the Kernel and Browserbase SDKs: change the base URL and the API key, and your code runs unchanged.

| | |
| - | - |
| Base URL | `https://api.querying.ai/browser` |
| API key | Your querying.ai `vt_` API key, as the SDK's API key |
| Kernel SDK | `base_url` in Python, `baseURL` in TypeScript |
| Browserbase SDK | `base_url` in Python, `baseURL` in TypeScript |
| CDP WebSocket and live view | URLs under the same base URL |

Create a key on the [API keys](https://querying.ai/dashboard/keys) page of the dashboard and keep it on your server. See [Authentication](https://docs.querying.ai/authentication.md).

## Quickstarts

* [Kernel SDK](https://docs.querying.ai/browser/kernel-sdk.md): create a browser, connect Playwright, open the live view and delete the browser.
* [Browserbase SDK](https://docs.querying.ai/browser/browserbase-sdk.md): create a session, connect, open the live view and end the session.

## Connect and watch

* Creating a browser returns a CDP URL: `cdp_ws_url` in the Kernel API, `connectUrl` in the Browserbase API. The URL carries a token for that session alone, so Playwright `chromium.connectOverCDP(url)` and Puppeteer `connect({ browserWSEndpoint: url })` connect with no API key.
* The live view shows the session in a browser tab. Kernel returns `browser_live_view_url` on create, and `browsers.live_view.create` issues a read-only (default) or control URL, with an optional expiry (`ttl_seconds`). Browserbase `sessions.debug` returns `debuggerUrl` and `debuggerFullscreenUrl` for the session and for each tab.
* Each API key belongs to one project. Sessions, profiles, extensions, proxies and pools are visible in the project that created them. A Browserbase `projectId` equals your key's project, and `projects.list()` returns it. The Kernel API selects another project of your account with the `X-Kernel-Project-Id` header.
* Sessions with `stealth` (Kernel) or `solveCaptchas` (Browserbase, on by default) solve captchas on each page.

## Supported features

Kernel SDK and CLI:

* Browsers, live view, and `browsers.curl` for HTTP requests through the browser's network
* Replays and recordings
* Computer controls (mouse, keyboard, screenshots) and the session file system
* Telemetry and log streams
* Profiles, extensions and proxies
* Browser pools
* Credentials and Managed Auth, with health checks and automatic re-login
* Projects and limits
* Search (`POST /search`)

Browserbase SDK:

* Sessions, labels and `REQUEST_RELEASE`
* Debug (live view)
* Recordings and replays
* Downloads and uploads
* Logs
* Contexts and extensions
* Projects and usage
* `fetch` with raw output

Both APIs share the same sessions and storage: a Browserbase context is a Kernel profile, and a Browserbase extension is a Kernel extension.

## Limits

A request for an option the Browser API does not offer fails with a named error, and the browser is not created.

* Raw HTTP: `browsers.request`, `browsers.stream` and `browsers.fetch` of the Kernel SDK are unavailable at this base URL. `browsers.curl` sends the same request.
* Code execution on the browser host: the features that run your code beside the browser, which are process exec, Playwright execute, the Browser REPL, Apps deploy and invoke, and WebMCP CDP tools, answer 403 to customer keys. Your Playwright and Puppeteer scripts run on your side of the connection.
* Kernel options and routes: vaults, `/proxy_ips`, GPU, operating systems other than Linux, mobile proxies, OTLP telemetry destinations, audit logs and SSH.
* Kernel telemetry captures control, connection, system and captcha events. The console, network, page, interaction and screenshot categories answer 400 `unsupported_configuration`.
* Browserbase options and routes: search, `fetch` as markdown or JSON, WebDriver BiDi, recording audio, Functions and Agents.

## Concurrency

An account runs up to **5 browsers at the same time**, summed across all its projects. Email [contact@querying.ai](mailto:contact@querying.ai) for a higher limit.

* Every running browser counts, including a browser that is still starting.
* A browser pool counts by its size from the moment you create or resize it, whether or not its browsers have started. A browser leased from the pool adds nothing.
* A Browserbase `fetch` request checks the limit when it starts its browser.

Over the limit, a create request answers `429` with the code `concurrency_limit_exceeded`. The same limit applies to Kernel and Browserbase sessions, pools, and Managed Auth logins and health checks. The Browserbase SDK receives the `429` with the message. Delete or release a browser to free its place. The Kernel `/org/limits` route shows `max_concurrent_sessions` and `concurrent_sessions_used`, and a Browserbase project shows `concurrency`.

## Billing

Browser time and proxy traffic are charged in credits from your account balance. See [Credits and limits](https://docs.querying.ai/concepts/credits-and-limits.md).

| Item | Credits |
| - | - |
| Headless browser | 0.69 per minute |
| Kernel API headful browser | 3.33 per minute |
| Browserbase API session (always headful) | 1.38 per minute |
| Proxy traffic (residential and custom HTTP proxies) | 1,667 per GB |

* A Kernel API browser is headful unless you create it with `headless: true`. Every Browserbase API session is headful and bills at the Browserbase session rate.
* The clock starts when you create the browser and stops when you delete it or it ends. A browser leased from a pool is charged from the lease, and time spent waiting in the pool is free. A 10-minute headless session costs 6.9 credits.
* Proxy traffic counts for sessions that exit through a residential proxy or a custom HTTP or HTTPS proxy. A Kernel `stealth` browser exits through a residential proxy by default, so its traffic is billed per GB. Traffic from a datacenter exit (a session without a proxy, or a datacenter proxy) and through a custom SOCKS5 proxy is free.
* Managed Auth logins, health checks and automatic re-logins run in Kernel API headful browsers and bill at that rate, along with their proxy traffic.
* Credits are charged while the session runs and when it ends. Creating a session answers `402` when your credits run out.
* Kernel search (`POST /search`) is billed as [Search API](https://docs.querying.ai/engines/web-search.md) calls: 0.5 credits for `standard` and 2 for `pro`. The browser that `POST /search/{id}/contents` opens is charged as a browser session.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.