The Bright Data toolkit is now available in Agno, bringing real-world web access to AI agents. This integration enables structured data extraction and web scraping from over 40 platforms, including Amazon, LinkedIn, TikTok, Instagram, and Facebook.

Agents can perform tasks like scraping product listings, capturing screenshots, running search queries, and accessing live structured data feeds, all with minimal setup. This makes it easy to build intelligent agents that can reason, act, and fetch real-time web data for research, automation, and monitoring.

How to Integrate Bright Data With LangChain

1

Pre-requisites

  • Bright Data API key
  • Active SERP Zone for search engine capabilities
  • Active Unlocker API zone for Scraping
2

Obtain Your Bright Data API Key

3

Install the Bright Data Integration

You can install the Bright Data integration directly from GitHub using the tool code available here.

This integration will be published to PyPI by the end of the week. Once available, you’ll be able to install it using:

pip install agno
4

Set the environment variable

Set your Bright Data API key as an environment variable:

import os


os.environ["BRIGHT_DATA_API_KEY"] = "your-api-key"
5

Example usage

from agno.agent import Agent
from agno.tools.brightdata import BrightDataTools 
from agno.models.openai import OpenAIChat 
from dotenv import load_dotenv 

load_dotenv() 

agent = Agent(
  tools=[
      BrightDataTools(
        serp_zone="serp",
        web_unlocker_zone="unlocker"
      )
    ],
  show_tool_calls=True,
  model=OpenAIChat(id="gpt-4o-mini"),
) 

agent.print_response("Search for AAPL news", markdown=True)