Proxy API Authentication
How to create an API key to use proxy apis
Available authentication methods
There are two available authentication methods to access Proxy networks.
- Username and password combination
- Using API key
When to use username & password for Proxy authentication
Bright data uses your account ID concate
Bright Data uses the proxy username to pass on proxy configuration parameters to our proxy network, by concatenating the paramater name and values separates by -
charachter, to the proxy username.
This authentication method is preferred when using 3rd party tools which take Proxy Native configruation, and do not support REST API operations.
To read more about Native Proxy access vs. REST API access read here: API vs Native access
Using API key to access proxy networks over REST API
API key enables access to proxy networks. Some users may find API key more convenient to use. API key allows you:
- Control your access with one key, instead of combination of two
- Key is tied to a names user, which enhances traceability
- Key to access all zones
- Easier migration to high level scraping solutions for hard to access domains
- Full compliant with REST API
Creating an API key
Please see here about our API key and its usage.
How to use the API key
When using curl
API key is used as part of the header fields:
When using this in REST API, populate the Authorization bearer string with the API key as shown in the API playground.