Skip to main content

Bright Data Tools

This set of tools integrates Bright Data services for web extraction.

Installation

Environment Variables

  • BRIGHT_DATA_API_KEY (required)
  • BRIGHT_DATA_ZONE (for SERP/Web Unlocker)
Create credentials at https://brightdata.com/ (sign up, then create an API token and zone). See their docs: https://developers.brightdata.com/

Included Tools

  • BrightDataSearchTool: SERP search (Google/Bing/Yandex) with geo/language/device options.
  • BrightDataWebUnlockerTool: Scrape pages with anti-bot bypass and rendering.
  • BrightDataDatasetTool: Run Dataset API jobs and fetch results.

Examples

Code

Web Unlocker

Code

Dataset API

Code

Troubleshooting

  • 401/403: verify BRIGHT_DATA_API_KEY and BRIGHT_DATA_ZONE.
  • Empty/blocked content: enable rendering or try a different zone.

Example

Code