What's New
- New JSON Parsing Feature: Added
parse parameter to search function
- When
parse=True, automatically appends &brd_json=1 to search URLs
- Enables structured JSON responses from search engines
- Defaults to
False for backward compatibility
Usage Example
from brightdata import bdclient
client = bdclient(api_token="your-token")
# Enable JSON parsing
results = client.search(
query="pizza restaurants",
search_engine="google",
parse=True
)
Changes
- Add parse parameter to search() method in both API and client
- Update documentation and examples
- Add comprehensive unit tests
- Maintain backward compatibility