If you want to access IPs from specific locations, you have to provide a country- parameter with a two letter country code in your username Here is the list of country parameters. For example, if you want to use United States country parameter, add country-US.
Find complete list of supported countries in the table below.
Datacenter per IP supported countries list
Country
Country code
United States
country-US
Netherlands
country-NL
United Kingdom
country-GB
Romania
country-RO
Germany
country-DE
Spain
country-ES
Canada
country-CA
Japan
country-JP
Belgium
country-BE
France
country-FR
Brazil
country-BR
Argentina
country-AR
Colombia
country-CO
Peru
country-PE
Chile
country-CL
Portugal
country-PT
Mexico
country-MX
China
country-CN
United Arab Emirates
country-AE
Austria
country-AT
Indonesia
country-ID
India
country-IN
Denmark
country-DK
Australia
country-AU
Datacenter per traffic supported countries list
Country
Country code
United States
country-US
Netherlands
country-NL
United Kingdom
country-GB
Romania
country-RO
Germany
country-DE
Belgium
country-BE
Canada
country-CA
Spain
country-ES
France
country-FR
Japan
country-JP
Brazil
country-BR
Mexico
country-MX
Argentina
country-AR
Chile
country-CL
Colombia
country-CO
South Korea
country-KR
Peru
country-PE
China
country-CN
Indonesia
country-ID
India
country-IN
Portugal
country-PT
For example, if you want to rotate United States proxy pool only, use rotating port 8000 together with a parameter country-US in your username:
using System.Net;
// .NET currently does not support HTTPS proxies
var proxy = new WebProxy {
Address = new Uri("dc.oxylabs.io:8000"),
Credentials = new NetworkCredential(
userName: "user-USERNAME-country-COUNTRY",
password: "PASSWORD"
)
};
var httpClientHandler = new HttpClientHandler {Proxy = proxy};
using var client = new HttpClient(handler: httpClientHandler, disposeHandler: true);
var result = await client.GetStringAsync("https://ip.oxylabs.io/location");
Console.WriteLine(result);
Differences between subscription methods
Datacenter per IP users who provide rotating port and country parameter will receive a random IP from the selected country from their Proxy list with each new request.
Datacenter per traffic users who provide rotating port and country parameter will receive random IP from the selected country from the entire proxy pool.
We use theMaxMind GeoIP2 database to determine IPs location.