Skip to main content
Bright Data provides a powerful Web Scraper API that allows you to extract structured data from 100+ ppular domains, including Amazon product details, LinkedIn profiles, and more, making it particularly useful for AI agents requiring reliable structured web data feeds.

Overview

Integration details

Tool features

Setup

The integration lives in the langchain-brightdata package.
You’ll need a Bright Data API key to use this tool. You can set it as an environment variable:
Or pass it directly when initializing the tool:

Instantiation

Here we show how to instantiate an instance of the BrightDataWebScraperAPI tool. This tool allows you to extract structured data from various websites including Amazon product details, LinkedIn profiles, and more using Bright Data’s Dataset API. The tool accepts various parameters during instantiation:
  • bright_data_api_key (required, str): Your Bright Data API key for authentication.
  • dataset_mapping (optional, Dict[str, str]): A dictionary mapping dataset types to their corresponding Bright Data dataset IDs. The default mapping includes:
    • “amazon_product”: “gd_l7q7dkf244hwjntr0”
    • “amazon_product_reviews”: “gd_le8e811kzy4ggddlq”
    • “linkedin_person_profile”: “gd_l1viktl72bvl7bjuj0”
    • “linkedin_company_profile”: “gd_l1vikfnt1wgvvqz95w”

Invocation

Basic Usage

Advanced Usage with Parameters

Customization Options

The BrightDataWebScraperAPI tool accepts several parameters for customization:

Available Dataset Types

The tool supports the following dataset types for structured data extraction:

Use within an agent

API reference