Skip to main content

Browserbase Loader

Description

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

Installation

npm i @browserbasehq/sdk

Example

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

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

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

API Reference:

Arguments

  • urls: Required. List of URLs to load.

Options

  • 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: