Step 1: Install and import the SDK package

Open your terminal and run:
pip install brightdata-sdk
# Ensure pip is installed on your machine (for macOS first open a virtual env)
Then, in your code file, import the package:
from brightdata import bdclient
In your IDE, hover over the brightdata package or any function to view available methods, parameters, and usage examples.
Hover.PNG

Step 2: Start making requests

Go to account settings, and make sure that your API key have admin permissions. Here are examples of how to use Bright Data’s SDK functions from your IDE.
from brightdata import bdclient

client = bdclient(api_token="your-api-token") # Can also be taken from .env file

results = client.search(query=["pizza"])
# Try adding parameters like: search_engine="bing"/"yandex", country="gb"

print (results)

# save this code as Search.py in the same folder,
# then run it by pasting "python Search.py" in your terminal.
When working with multiple queries or URLs, requests are handled concurrently for optimal performance.

Resources