Class | Package | Serializable | JS support | Package latest |
---|---|---|---|---|
BrightDataUnlocker | langchain-brightdata | ✅ | ❌ |
Native async | Returns artifact | Return data | Pricing |
---|---|---|---|
❌ | ❌ | HTML, Markdown, or screenshot of web pages | Requires Bright Data account |
langchain-brightdata
package.
bright_data_api_key
(required, str): Your Bright Data API key for authentication.format
(optional, Literal[“raw”]): Format of the response content. Default is “raw”.country
(optional, str): Two-letter country code for geo-specific access (e.g., “us”, “gb”, “de”, “jp”). Set this when you need to view the website as if accessing from a specific country. Default is None.zone
(optional, str): Bright Data zone to use for the request. The “unlocker” zone is optimized for accessing websites that might block regular requests. Default is “unlocker”.data_format
(optional, Literal[“html”, “markdown”, “screenshot”]): Output format for the retrieved content. Options include:
Parameter | Type | Description |
---|---|---|
url | str | The URL to access |
format | str | Format of the response content (default: “raw”) |
country | str | Two-letter country code for geo-specific access (e.g., “us”, “gb”) |
zone | str | Bright Data zone to use (default: “unlocker”) |
data_format | str | Output format: None (HTML), “markdown”, or “screenshot” |
data_format
parameter allows you to specify how the content should be returned:
None
or "html"
(default): Returns the standard HTML content of the page"markdown"
: Returns the content converted to markdown format, which is useful for feeding directly to LLMs"screenshot"
: Returns a PNG screenshot of the rendered page, useful for visual analysis