Skip to main content
Geo-target multiple countries

How to geo-target multiple countries at once

Evan avatar
Written by Evan
Updated over a week ago

Quick Example using the Proxyrack API:

"username;country=US,CA,FR"

Video guide here.

You can geo-target multiple countries in one of two ways:

  1. Through the default port settings in your dashboard

  2. Using the Proxyrack API

Dashboard

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:

Select the countries you would like to geo-target from the "GEO targeted countries" 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

You can geo-target multiple countries at once when using the “=” syntax. To do this, simply string the 2-letter country codes 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”.

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

You can retrieve a list of available countries using the Proxyrack API. Here is a guide.

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.
curl -x unmetered.residential.proxyrack.net:10000 -U 'username;country=US,CA,FR:password' http://example.com

Live example here.

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

Live example here.

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

Live example here.

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

Live example here.

Did this answer your question?