Geo-target a country

How to connect to proxies from a specific country

Evan avatar
Written by Evan
Updated over a week ago

Quick Example (using the Proxyrack API):

username-country-US

OR

"username;country=US"

You can geo-target a specific country in one of two ways:

  1. Through the default port settings in your dashboard

  2. Using the Proxyrack API

Dashboard

Video guide here.

First, select the proxies you would like to use and then click on the "Proxy Endpoints" tab. Scroll down the page until you reach the "Set default port settings" section, as you see in the screenshot below:

Click on the "Add new port" button. You will see a modal appear that allows you to select a port number and select a country for geo-targeting.

Select the country you would like from the "GEO targeting country" dropdown and then click "Save".

When you make a new request on the port, you will then see the IP information appear in the "Currently assigned ports" table. Under the "Parameters" column, you will see the country that you have set.

Proxyrack API

Video guide here.

You can also geo-target a specific country using the Proxyrack API by adding “;country={2-letter country code}” or “-country-{2-letter country code}” after your username wherever you are authenticating. For example, to target US IPs, you would add “;country=US” or “-country-US” after your username.

Make sure to substitute "{2-letter country code}" in the configuration with the 2-letter country code of the country that you want to geo-target. Here is a helpful guide on retrieving a list of available countries 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: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:password' http://example.com

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

Live example here.

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

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

Live example here.

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

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

Live example here.

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

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

Live example here.

Did this answer your question?