Country Targeting
You can target a specific country by adding a country code to your username, likeusername-country-country_code
. Use only two-letter country codes in lowercase.
Shell
Default countries’ selection
In all Bright Data shared pool proxies: Datacenter, ISP, Residential and Mobile share pools (also known as “Rotating proxies”) we offer a default country selection during zone configuration. When a country(s) is selected, Bright Data will attempt to allocate a peer from the selected default countries. The allocation sequence is as follows: If there are default countries configured:- Select a random country from the default countries list.
- Attempt to allocate a peer in that country
- If peer found: route request to the peer
- If peer not found: fail the request and reply with error
EU Countries targeting
Bright Data proxy networks as well as our Unlocker API allow random peer selection specifically from EU-member countries via the use of the-country-eu
flag. When needing to target EU peers, this will improve success rates over targeting from just one EU country, while still keeping the peer within the EU.
City Targeting
City targeting works best in Residential & Mobile proxies. City targeting in Datacenter & ISP proxies has deprecated and we do not recommend using it.
username-country-country_code-city-city_code
. The city_codemust be in lowercase only and have no spaces, for example -city-sanfrancisco
Shell
State Targeting
Residential proxies only
username-country-country_code-state-state_code
. Use only two-letter state codes in lowercase.
ASN Targeting
Residential proxies only
Shell
ZIP Code Targeting
Residential proxies only
Shell