Skip to main content
Geo-target a city
Evan avatar
Written by Evan
Updated over 2 weeks ago

Quick Example:

username-country-US-city-LosAngeles

OR

"username;country=US;city=LosAngeles"

Video guide here.

You can geo-target a specific city within a country by adding “;country={2-letter country code};city={city name}” or “-country-{2-letter country code}-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.

Make sure to substitute "{2-letter country code}" and "{city name}" in the configuration with the 2-letter country code and the city name of the location that you want to geo-target. Here are some helpful guides for retrieving a list of available countries and cities using the Proxyrack API:

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”

Please note that cURL is used below as an example. You do not need to use cURL in order to geo-target. You can do this wherever you have configured your proxies, such as in a browser, code, etc.

Examples

Unmetered Residential:

Please note: Unmetered Residential proxies are no longer available for purchase. Existing subscriptions will continue to work, however.
"=" Syntax: ​curl -x unmetered.residential.proxyrack.net:10000 -U 'username;country=US;city=LosAngeles:password' http://example.com

"-" Syntax: curl -x unmetered.residential.proxyrack.net:10000 -U username-country-US-city-LosAngeles:password http://example.com

Live example here.

Premium Residential:
"=" Syntax: ​curl -x premium.residential.proxyrack.net:10000 -U 'username;country=US;city=LosAngeles:password' http://example.com

"-" Syntax: curl -x premium.residential.proxyrack.net:10000 -U username-country-US-city-LosAngeles:password http://example.com

Live example here.

Private Unmetered Residential:
"=" Syntax: ​curl -x private.residential.proxyrack.net:10000 -U 'username;country=US;city=LosAngeles:password' http://example.com

"-" Syntax: curl -x private.residential.proxyrack.net:10000 -U username-country-US-city-LosAngeles:password http://example.com

Live example here.

Global Rotating Datacenter:
"=" Syntax: ​curl -x global.rotating.proxyrack.net:10000 -U 'username;country=US;city=LosAngeles:password' http://example.com

"-" Syntax: curl -x global.rotating.proxyrack.net:10000 -U username-country-US-city-LosAngeles:password http://example.com

Live example here.

USA Rotating Datacenter:
"=" Syntax: ​curl -x usa.rotating.proxyrack.net:10000 -U 'username;country=US;city=LosAngeles:password' http://example.com

"-" Syntax: curl -x usa.rotating.proxyrack.net:10000 -U username-country-US-city-LosAngeles:password http://example.com

Live example here.

Static USA Datacenter:
"=" Syntax: ​curl -x usa.static.proxyrack.net:10000 -U 'username;country=US;city=LosAngeles:password' http://example.com

"-" Syntax: curl -x usa.static.proxyrack.net:10000 -U username-country-US-city-LosAngeles:password http://example.com

Live example here.

Did this answer your question?