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

# Bright data integrations

> Integrate with Bright data using LangChain Python.

[Bright Data](https://brightdata.com) is a web data platform that provides tools for web scraping, SERP collection, and accessing geo-restricted content.

Bright Data allows developers to extract structured data from websites, perform search engine queries, and access content that might be otherwise blocked or geo-restricted. The platform is designed to help overcome common web scraping challenges including anti-bot systems, CAPTCHAs, and IP blocks.

## Installation and setup

<CodeGroup>
  ```bash pip theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
  pip install langchain-brightdata
  ```

  ```bash uv theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
  uv add langchain-brightdata
  ```
</CodeGroup>

You'll need to set up your Bright Data API key:

Sign up at [Bright Data](https://brightdata.com/?utm_source=tech-partner\&utm_medium=link\&utm_campaign=langchain\&hs_signup=1) and retrieve your API key from your account settings. Replace `"your-api-key"` with your actual API key in the examples below:

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
import os
os.environ["BRIGHT_DATA_API_KEY"] = "your-api-key"
```

Or you can pass it directly when initializing tools:

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
from langchain_brightdata import BrightDataSERP

tool = BrightDataSERP(bright_data_api_key="your-api-key")
```

## Tools

The Bright Data integration provides several tools:

* [BrightDataSERP](/oss/python/integrations/tools/brightdata_serp) - Search engine results collection with geo-targeting and custom zone support
* [BrightDataUnlocker](/oss/python/integrations/tools/brightdata_unlocker) - Access any public website that might be geo-restricted or bot-protected
* [BrightDataWebScraperAPI](/oss/python/integrations/tools/brightdata-webscraperapi) - Extract structured data from 44 popular domains including Amazon, LinkedIn, Instagram, TikTok, and more

***

<div className="source-links">
  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>

  <Callout icon="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/providers/brightdata.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>
</div>
