Geo-Targeting

Geo-targeting allows you to specify the country, city, or ISP you would like your proxies to be from.

Evan avatar
Written by Evan
Updated over a week ago

Geo-target allows you to specify what country, city, or ISP you would like your proxies to be from. For example, when accessing an international bank account for security reasons you might want to access the account from the country it is held in. Please note: It is not possible to geo-target by state or province.

You can do this with a few simple tweaks to your username. These tweaks will need to be added after your username whenever you wish to geo-target.

You can view live examples of geo-targeting with our code examples here.

Please note: Geo-targeting and IP whitelisting cannot be used together. If you want to geo-target, you will need to use your username and password to authenticate. If you have already whitelisted your IP address for authentication, please remove it from your profile as it will interfere with geo-targeting.

Want to watch a video walkthrough instead? This YouTube video will walk you through geo-targeting:

Country Targeting

You can geo-target a specific country by adding “;country={country abbreviation}” or “-country-{country abbreviation}” after your username wherever you are authenticating. For example, to target US IPs, you would add “;country=US” or “-country-US” after your username. View live examples here.

Using the “=” syntax here, you need to encapsulate your username and password in quotation marks. It would look like this: “username;country=US:password”

You can also geo-target multiple countries at once when using the “=” syntax. To do this, simply string the country abbreviations together and separate them with a comma. For example, geo-targeting the US, Canada, and France would look like this: “username;country=US,CA,FR:password”. View live examples here.

If you want to exclude a country, you can add a minus symbol in front of the country abbreviation. For example, to connect to IPs in any location except the US would look like this: “username;country=-US:password”. You can also exclude multiple countries by separating each country with a comma. View live examples here.


City Targeting

You can geo-target a specific city within a country by adding “;country={country abbreviation};city={city name}” or “-country-{country abbreviation}-city-{city name}” after your username wherever you are authenticating. For example, to target Los Angeles IPs, you would add “;country=US;city=LosAngeles” or “-country-US-city-LosAngeles” after your username. View live examples here.

Using the “=” syntax here, you need to encapsulate your username and password in quotation marks. It would look like this: “username;country=US;city=LosAngeles:password”

You can also geo-target multiple cities at once when using the “=” syntax. To do this, simply string the city names together and separate them with a comma. For example, geo-targeting IPs in Los Angeles, Denver, and Seattle would look like this: “username;country=US;city=”LosAngeles,Denver,Seattle:password”. View live examples here.

If you want to exclude a city, you can add a minus symbol in front of the city name. For example, to connect to IPs in any location except Los Angeles would look like this: “username;country=US;city=-LosAngeles:password”. You can also exclude multiple countries by separating each country with a comma. View live examples here.


ISP Targeting

You can geo-target a specific ISP within a country by adding “;country={country abbreviation};isp={isp name}” or “-country-{country abbreviation}-isp-{isp name}” after your username wherever you are authenticating. For example, to target Verizon IPs, you would add “;country=US;isp=Verizon” or “-country-US-isp=Verizon” after your username. View live examples here.

Using the “=” syntax here, you need to encapsulate your username and password in quotation marks. It would look like this: “username;country=US;isp=Verizon:password”

You can also geo-target multiple cities at once when using the “=” syntax. To do this, simply string the ISP names together and separate them with a comma. For example, geo-targeting Verizon, Comcast, and Sprint IPs would look like this: “username;country=US;isp=Verizon,Comcast,Sprint:password”. View live examples here.

If you want to exclude an ISP, you can add a minus symbol in front of the ISP name. For example, to connect to IPs with any ISP except for Verizon would look like this: “username;country=US;isp=-Verizon:password”. You can also exclude multiple countries by separating each country with a comma. View live examples here.


Get a list of countries, cities, ISPs, and the number of available IPs in a country

The Proxyrack API provides an endpoint to output all of the countries, cities, ISPs, and number of IPs available in a country with each type of proxies. You will need to be connected to your proxies when you make a request to this API endpoint. If you are not, you will not see any results.

  1. Country List: api.proxyrack.net/countries

  2. City List: api.proxyrack.net/countries/{country abbreviation}/cities

  3. ISP List: api.proxyrack.net/countries/{country abbreviation}/isps

  4. Number of IPs Available: api.proxyrack.net/countries/{country abbreviation}/count

When you access any of these endpoints, make sure to replace “{country abbreviation}” with the 2-letter abbreviation of the country you want this information for.

Live Examples:

Did this answer your question?