Skip to main content

Building an AI startup?

You might be eligible for our Startup Program. Get fully funded access to the infrastructure you’re reading about right now (up to $20K value).
Integrating Bright Data with Haystack enhances your RAG pipelines and AI applications with reliable, scalable web data extraction for real-world use cases. The haystack-brightdata Python package is the official Haystack integration for Bright Data, including support for:
  • Bright Data Web Scraper - Extract structured data from 45+ supported websites including Amazon, LinkedIn, Instagram, Facebook, TikTok, YouTube, and more using Bright Data’s Dataset API.
  • Bright Data SERP - Query search engines (Google, Bing, Yahoo) with geo-targeting and language customization for real-time search results.
  • Bright Data Unlocker - Access geo-restricted and bot-protected websites, bypass CAPTCHAs and anti-bot measures to extract content in multiple formats.

How to Integrate Bright Data With Haystack

1

Obtain Your Bright Data API Key

2

Install the Bright Data Integration

Install the Bright Data integration package for Haystack by running the following command:
3

Set the environment variable

Set your Bright Data API key as an environment variable:
4

Select your preferred Bright Data component

The Bright Data + Haystack integration currently supports:
API reference: Scrapers Documentation
Extract structured data from 45+ supported websites, including e-commerce, social media, and business intelligence platforms.

RAG Pipeline Examples

Product Data RAG Pipeline

Build a Retrieval-Augmented Generation (RAG) pipeline using Bright Data to extract product data from Amazon and answer questions about products:

SERP + Web Content RAG Pipeline

Use SERP API to find relevant web pages, then use Web Unlocker to extract content for a RAG pipeline:

Which datasets are supported

The BrightDataWebScraper component supports 45+ datasets across multiple categories:
For detailed information about each dataset and its required parameters:

Use Cases

Bright Data’s Haystack integration enables powerful use cases:
  • E-commerce Intelligence: Price monitoring, product data extraction, and competitive analysis
  • Social Media Analytics: Content monitoring and engagement analysis across platforms
  • Business Intelligence: Company research and competitive landscape analysis
  • Search Analysis: SEO/SEM research with geo-targeted search results
  • Content Aggregation: Building RAG pipelines with real-time web data
  • Market Research: Accessing geo-restricted content for global research