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.
Copy
Ask AI
from brightdata import bdclientclient = bdclient(api_token="your-api-token") # Can also be taken from .env fileresults = 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.