Skip to main content
All CollectionsResidential ProxyTargeting
Generate proxy without GUI (using API)
Generate proxy without GUI (using API)

Examples of connecting to HTTP, HTTPS, SOCKS5 proxies with setting the country, city region and ASN (ISP) using the API

Dmitry Kotov avatar
Written by Dmitry Kotov
Updated over a month ago

You can generate a proxy connection string (URI) without using generator widget in your personal account.

The simplest connection example (global mix of IP addresses without any specifications):

http://{Connection_address}:{Connection_port}:{Sabaccount_login}-zone-custom:{Sabaccount_password} 

https://{Connection_address}:{Connection_port}:{Sabaccount_login}-zone-custom:{Sabaccount_password}

socks5://{Sabaccount_login}-zone-custom:{Sabaccount_password}@{Connection_address}:{Connection_port}

Sabaccount_login - subaccount login from the subaccounts table on the main page of your personal account

Sabaccount_password - password from the subaccount from the table of subaccounts on the main page of your personal account

Connection_address - connection address

Connection_port - connection port

The characteristics of connecting to a proxy can be specified either by specifying the location or by selecting a specific ASN ( What is an ASN? ).

Targeting accurate to part of the world (mix of countries)

Asia-region-rsa

Europe-region-eu

Examples of connecting to Europe (European mix)

http://{Connection_address}:{Connection_port}:{Sabaccount_login}-zone-custom-region-eu:{Sabaccount_password} 

https://{Connection_address}:{Connection_port}:{Sabaccount_login}-zone-custom-region-eu :{Sabaccount_password}

socks5://{Sabaccount_login}-zone-custom-region-eu:{Sabaccount_password}@{Connection_address}:{Connection_port}

Targeting to country (mix of regions)

Example of connecting to the country Bangladesh -region-bd

http://{Connection_address}:{Connection_port}:{Sabaccount_login}-zone-custom-region-bd:{Subaccount_password} 

https://{Connection_address}:{Connection_port}:{Subaccount_login}-zone-custom-region-bd :{Sabaccount_password}

socks5://{Sabaccount_login}-zone-custom-region-bd:{Sabaccount_password}@{Connection_address}:{Connection_port}

Targeting to region (mix of cities)

An example of connecting to the Khulna region in the country of Bangladesh -region-bd-st-khulna

http://{Connection_address}:{Connection_port}:{Sabaccount_login}-zone-custom-region-bd-st-khulna:{Sabaccount_password} 

https://{Connection_address}:{Connection_port}:{Sabaccount_login}-zone-custom-region-bd-st-khulna:{Sabaccount_Password}

socks5://{Sabaccount_Login}-zone-custom-region-bd-st-khulna:{Sabaccount_Password}@{Connection_Address}:{Connection_Port}

Targeting to the city

An example of connection to the city of Phultala in the Khulna region, in the country of Bangladesh -region-bd-st-khulna

http://{Connection_address}:{Connection_port}:{Sabaccount_login}-zone-custom-region-bd-st-khulna-city-phultala:{Sabaccount_password} 

https://{Connection_address}:{Connection_port}:{Sabaccount_login} -zone-custom-region-bd-st-khulna-city-phultala:{Sabaccount_password}

socks5://{Sabaccount_login}-zone-custom-region-region-bd-st-khulna-city-phultala:{Sabaccount_password}@ {Connection_address}:{Connection_port}

Targeting by ASN

To find out more about what ASN is please read the article (What is ASN?)

To target about ASN, you need to select the country and ASN identifier.

An example of connecting to the provider Swapo Network Limited (AS131242) in the country of Bangladesh -region-bd-asn-AS131242

http://{Connection_address}:{Connection_port}:{Sabaccount_login}-zone-custom-region-bd-asn-AS131242:{Sabaccount_password} 

https://{Connection_address}:{Connection_port}:{Sabaccount_login}-zone-custom -region-bd-asn-AS131242:{Sabaccount_password}

socks5://{Sabaccount_login}-zone-custom-region-region-bd-asn-AS131242:{Sabaccount_password}@{Connection_address}:{Connection_port}

IP address and connection port

The connection IP address depends on the ip-address pool

Session ID and session time

For dynamic residential proxies, the default IP address changes EVERY time within the parameters (country, city, ASN, etc.).

You can control the amount of time the IP address is stuck to your session. To do this you need:

1. Specify the session ID. This is done by adding a parameter -session-{ID_сессии}(you can invent the session ID yourself, this is any random set of letters and numbers)

2. Specify the time (in minutes) for which the IP address will stick to your session using the parameter -sessTime-{ID_сессии}

An example of connecting to the provider Swapo Network Limited (AS131242) in the country of Bangladesh with a session time of 12 minutes.

http://{Connection_address}:{Connection_port}:{Sabaccount_login}-zone-custom-region-bd-asn-AS131242-session-u1lejylzq-sessTime-12:{Sabaccount_password} 

https://{Connection_address}:{Connection_port} :{Sabaccount_login}-zone-custom-region-bd-asn-AS131242-session-u1lejylzq-sessTime-12:{Sabaccount_password}

socks5://{Sabaccount_login}-zone-custom-region-region-bd-asn-AS131242- session-u1lejylzq-sessTime-12:{Sabaccount_password}@{Connection_address}:{Connection_port}

List of countries, regions, cities and ASNs

Did this answer your question?