Bright Data

This page will guide you on how to generate sticky and rotating proxies, Supported countries, other optional features, White labeling and FAQs regarding Bright Data APIs.

How to generate Sticky Proxies:

const string = (length) => {
  let result = '';
  const characters = 'abcdefghijklmnopqrstuvwxyz1234567890';
  const charactersLength = characters.length;
  for (let i = 0; i < length; i++) {
    result += characters.charAt(Math.floor(Math.random() * charactersLength));
  }
  return result;
};

function proxyGenerationSticky(amount, country, user_id, username, password) {
  proxy = [];
  for (var i = 0; i < parseInt(amount); i++) {
    proxy.push(
      `brd.x.proxiess.com:22225:${username}:${password}-country-${countryCode.toLowerCase()}-session-${string(
        12,
      )}\n`,
    );
  }
  return proxy.join('');
}
  • Session ( add this under sticky proxy generation )

The -session- key instructs our routing system to either create or resolve a unique session for the connection. The value assigned to this key must be a random alphanumeric string, precisely 12 characters in length. This ensures the uniqueness and integrity of the session.

General Proxy format of Brightdata Sticky:

Follow the below table for generate proxies .

API
Authentication
Domain
Port

Brightdata (Default)

HTTP/HTTPS

brd.x.proxiess.com

22225

Brightdata EU

HTTP/HTTPS

brdeu.x.proxiess.com

22226

Brightdata Asia

HTTP/HTTPS

brdasia.x.proxiess.com

22227

Brightdata (Default)

SOCKS5

socksbrd.x.proxiess.com

22228

Brightdata EU

SOCKS5

socksbrdeu.x.proxiess.com

22229

Brightdata Asia

SOCKS5

socksbrdasia.x.proxiess.com

22230

How to generate Rotating Proxies:

General Proxy format of Brightdata Rotating:

Follow the below table for generate proxies.

API
Authentication
Domain
Port

Brightdata (Default)

HTTP/HTTPS

brd.x.proxiess.com

22225

Brightdata EU

HTTP/HTTPS

brdeu.x.proxiess.com

22226

Brightdata Asia

HTTP/HTTPS

brdasia.x.proxiess.com

22227

Brightdata (Default)

SOCKS5

socksbrd.x.proxiess.com

22228

Brightdata EU

SOCKS5

socksbrdeu.x.proxiess.com

22229

Brightdata Asia

SOCKS5

socksbrdasia.x.proxiess.com

22230

Supported countries:

Other Optional Features:

Cloud Proxy Manager Initial setup Hosting the Proxy Manager on our Cloud servers with remote server access lets Bright Data host the servers for you.

The Cloud Proxy Manager should be already added automatically to your CParrow-up-right, If you don’t have any servers installed - you should contact your account manager.

Before doing any action in Cloud Proxy Manager, you should add your IP to the admin's whitelist

  • Open the cp/lpmarrow-up-right page

  • Click the open button on the Cloud Proxy Manager row

  • Click on the General settings button

  • In the General settings page, add your IP to the Admin whitelisted IPs

White labeling:

Use this method to brand your proxies with your own domain/company name

To brand the proxies under your domain follow these steps:

  1. Open the DNS configuration for your domain.

  2. Create a CNAME Record pointing to the domain.

API
Record Type
Domain
Port

Brightdata (Default)

CNAME

brd.x.proxiess.com

22225

Brightdata EU

CNAME

brdeu.x.proxiess.com

22226

Brightdata Asia

CNAME

brdasia.x.proxiess.com

22227

  1. Whatever you enter in the name/host will decide the domain which points to our API IP.

  2. Thus if your domain is API.comarrow-up-right and you enter the host premium or whatever you want to call it pointing to the PacketStream domain, your proxies will be formatted premium.yourdomain.comarrow-up-right:port:user:pass

  3. An example on Godaddy is linked below:

FAQ

What is Authorization?

This is a header value you provide with every request. We are using the Bearer token so send in the header like this: "Authorization: Bearer <your API token>"

  • Im getting this error: {"message":"username cannot be null or undefined.","timestamp":1634146255996} how do I fix it?

Make sure you have this "Content-Type": "application/json" header present in your requests.

Headers

Please check on how to send requests with headers in whichever languages you are using.

POST Request:

GET Request:

Last updated