Skip to main content

Browserbase Loader


Browserbase is a serverless platform for running headless browsers, it offers advanced debugging, session recordings, stealth mode, integrated proxies and captcha solving.


npm i @browserbasehq/sdk


Utilize the BrowserbaseLoader as follows to allow your agent to load websites:

import { BrowserbaseLoader } from "langchain/document_loaders/web/browserbase";

const loader = new BrowserbaseLoader([""], {
textContent: true,
const docs = await loader.load();

API Reference:


  • urls: Required. List of URLs to load.


  • api_key: Optional. Specifies Browserbase API key. Defaults is the BROWSERBASE_API_KEY environment variable.
  • text_content: Optional. Load pages as readable text. Default is False.

Help us out by providing feedback on this documentation page: