Skip to main content

Browserbase Loader


Browserbase is a developer platform to reliably run, manage, and monitor headless browsers.

Power your AI data retrievals with:


  • Get an API key and Project ID from and set it in environment variables (BROWSERBASE_API_KEY, BROWSERBASE_PROJECT_ID).
  • Install the Browserbase SDK:
npm i @browserbasehq/sdk


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

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

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

API Reference:


  • urls: Required. List of URLs to load.


  • textContent Retrieve only text content. Default is false.
  • sessionId Optional. Provide an existing Session ID.
  • proxy Optional. Enable/Disable Proxies.

Was this page helpful?

You can also leave detailed feedback on GitHub.