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

# Configure Browserbase for LangChain

<Steps>
  <Step title="Get your API key">
    Go over the [Dashboard's Settings tab](https://www.browserbase.com/settings):

    <Frame>
      <img src="https://mintcdn.com/browserbase/giE_cpy18f2mWHqr/images/quickstart/api_key.png?fit=max&auto=format&n=giE_cpy18f2mWHqr&q=85&s=4ac94a8f69cec20bd17b2a8788169062" alt="" width="3410" height="1864" data-path="images/quickstart/api_key.png" />
    </Frame>

    Then copy your API Key directly from the input.
  </Step>

  <Step title="Install the Browserbase SDK, Playwright, and Langchain Community">
    ```bash theme={null}
    # If you haven't installed pipx (MacOS)
    brew install pipx

    # Install Dependencies
    pipx install browserbase playwright langchain_community --include-deps
    ```
  </Step>

  <Step title="Load documents or images">
    **Load documents**

    ```python theme={null}
    from langchain_community.document_loaders import BrowserbaseLoader
    import os
    from dotenv import load_dotenv

    load_dotenv()

    BROWSERBASE_API_KEY = os.getenv("BROWSERBASE_API_KEY")

    loader = BrowserbaseLoader(
        api_key=BROWSERBASE_API_KEY,
        urls=[
            # load multiple pages
            "https://www.espn.com",
            "https://lilianweng.github.io/posts/2023-06-23-agent/"
        ],
        text_content=True,
    )

    documents = loader.load()
    print(documents)
    ```
  </Step>
</Steps>

### Loader options

* `urls` Required. A list of URLs to fetch.
* `text_content` Retrieve only text content. Default is `False`.
* `api_key` Browserbase API key. Default is `BROWSERBASE_API_KEY` env variable.
* `session_id` Optional. Provide an existing Session ID.
* `proxy` Optional. Enable/Disable Proxies.
