For the complete documentation index, see llms.txt. This page is also available as Markdown.

Select Country

Learn how to target specific proxy locations and how to use rotation logic.

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

Argentina

country-AR

Australia

country-AU

Austria

country-AT

Belgium

country-BE

Brazil

country-BR

Canada

country-CA

Chile

country-CL

China

country-CN

Colombia

country-CO

Croatia

country-HR

Czech Republic

country-CZ

Denmark

country-DK

Finland

country-FI

France

country-FR

Germany

country-DE

India

country-IN

Indonesia

country-ID

Ireland

country-IE

Israel

country-IL

Italy

country-IT

Japan

country-JP

Mexico

country-MX

Netherlands

country-NL

Peru

country-PE

Philippines

country-PH

Poland

country-PL

Portugal

country-PT

Romania

country-RO

Saudi Arabia

country-SA

Singapore

country-SG

Slovakia

country-SK

Spain

country-ES

Switzerland

country-CH

Thailand

country-TH

United Arab Emirates

country-AE

United Kingdom

country-GB

United States

country-US

Datacenter per traffic supported countries list
Country
Country code

Argentina

country-AR

Australia

country-AU

Austria

country-AT

Belgium

country-BE

Brazil

country-BR

Canada

country-CA

Chile

country-CL

China

country-CN

Colombia

country-CO

Croatia

country-HR

Denmark

country-DK

Estonia

country-EE

Finland

country-FI

France

country-FR

Germany

country-DE

Greece

country-GR

Hungary

country-HU

India

country-IN

Indonesia

country-ID

Ireland

country-IE

Israel

country-IL

Italy

country-IT

Japan

country-JP

Latvia

country-LV

Lithuania

country-LT

Mexico

country-MX

Netherlands

country-NL

New Zealand

country-NZ

Norway

country-NO

Peru

country-PE

Poland

country-PL

Portugal

country-PT

Romania

country-RO

Saudi Arabia

country-SA

Singapore

country-SG

Slovakia

country-SK

Slovenia

country-SI

South Korea

country-KR

Spain

country-ES

Sweden

country-SE

Switzerland

country-CH

Thailand

country-TH

United Kingdom

country-GB

United States

country-US

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:

curl -x dc.oxylabs.io:8000 -U 'user-USERNAME-country-US:PASSWORD' https://ip.oxylabs.io/location

Code examples

curl -x dc.oxylabs.io:8000 -U 'user-USERNAME-country-COUNTRY:PASSWORD' https://ip.oxylabs.io/location
#pip install requests
import requests

username = 'USERNAME'
password = 'PASSWORD'
country = 'COUNTRY'
proxy = 'dc.oxylabs.io:8000'

proxies = {
   "https": ('https://user-%s-country-%s:%s@%s' % (username, country, password, proxy))
}

response=requests.get("https://ip.oxylabs.io/location", proxies=proxies)

print(response.content)
//npm install axios
const axios = require("axios");
const https = require("https");

const client = axios.create({
    httpsAgent: new https.Agent({
        rejectUnauthorized: false,
    }),
});
const username = 'USERNAME';
const country = 'COUNTRY'
const password = 'PASSWORD'

client
    .get("https://ip.oxylabs.io/location", {
        proxy: {
            protocol: "https",
            host: "dc.oxylabs.io",
            port: 8000,
            auth: {
                username: `user-${username}-country-${country}`,
                password: password,
            },
        },
    })
    .then((res) => {
        console.log(res.data);
    })
    .catch((err) => console.error(err));

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 the MaxMind GeoIP2 database to determine IPs location.

Last updated

Was this helpful?