Class | Package | Serializable | JS support | Package latest |
---|---|---|---|---|
BrightDataSERP | langchain-brightdata | ✅ | ❌ |
Native async | Returns artifact | Return data | Pricing |
---|---|---|---|
❌ | ❌ | Title, URL, snippet, position, and other search result data | Requires Bright Data account |
langchain-brightdata
package.
pip install langchain-brightdata
bright_data_api_key
(required, str): Your Bright Data API key for authentication.search_engine
(optional, str): Search engine to use for queries. Default is “google”. Other options include “bing”, “yahoo”, “yandex”, “DuckDuckGo” etc.country
(optional, str): Two-letter country code for localized search results (e.g., “us”, “gb”, “de”, “jp”). Default is “us”.language
(optional, str): Two-letter language code for the search results (e.g., “en”, “es”, “fr”, “de”). Default is “en”.results_count
(optional, int): Number of search results to return. Default is 10. Maximum value is typically 100.search_type
(optional, str): Type of search to perform. Options include:
device_type
(optional, str): Device type to simulate for the search. Options include:
parse_results
(optional, bool): Whether to return parsed JSON results. Default is False, which returns raw HTML response.Parameter | Type | Description |
---|---|---|
query | str | The search query to perform |
search_engine | str | Search engine to use (default: “google”) |
country | str | Two-letter country code for localized results (default: “us”) |
language | str | Two-letter language code (default: “en”) |
results_count | int | Number of results to return (default: 10) |
search_type | str | Type of search: None (web), “isch” (images), “shop”, “nws” (news), “jobs” |
device_type | str | Device type: None (desktop), “mobile”, “ios”, “android” |
parse_results | bool | Whether to return structured JSON (default: False) |