Skip to main content

Geo targeting

Geo targeting lets you route traffic through mobile IPs in specific countries.

Benefits

  • Geographic IP diversity: Distribute requests across IPs from different countries to avoid concentration patterns that trigger blocks.
  • Test localized experiences: Verify that your application behaves correctly for users in different countries.

Geo target IPs using the Aluvia client

Use updateTargetGeo() to change your target country at runtime:

await client.updateTargetGeo("us"); // Target United States
await client.updateTargetGeo("de"); // Switch to Germany
await client.updateTargetGeo(null); // Clear geo targeting

Changes take effect immediately—no restart required.

See Manage Connections for examples.

Geo target IPs using the -geo parameter

In instances where you cannot use the SDK or API (e.g., using a third-party proxy client), you can geo target IPs by adding the -geo parameter and a geography to your connection's username.

myusername-geo-de

This format works with any HTTP client that supports proxy authentication.

Available countries

CodeCountry
afAfghanistan
alAlbania
dzAlgeria
aoAngola
agAntigua and Barbuda
arArgentina
amArmenia
auAustralia
atAustria
azAzerbaijan
bsBahamas
bhBahrain
bdBangladesh
bbBarbados
byBelarus
beBelgium
bzBelize
bjBenin
btBhutan
boBolivia
baBosnia and Herzegovina
bwBotswana
brBrazil
bgBulgaria
bfBurkina Faso
khCambodia
cmCameroon
caCanada
kyCayman Islands
tdChad
clChile
cnChina
coColombia
kmComoros
cgCongo
cdDR Congo
ckCook Islands
crCosta Rica
ciIvory Coast
hrCroatia
cuCuba
cwCuraçao
cyCyprus
czCzechia
dkDenmark
djDjibouti
dmDominica
doDominican Republic
ecEcuador
egEgypt
svEl Salvador
eeEstonia
szEswatini
etEthiopia
fjFiji
fiFinland
frFrance
pfFrench Polynesia
gaGabon
gmGambia
geGeorgia
deGermany
ghGhana
grGreece
gdGrenada
gpGuadeloupe
gtGuatemala
gnGuinea
gwGuinea-Bissau
gyGuyana
htHaiti
hnHonduras
hkHong Kong
huHungary
isIceland
inIndia
idIndonesia
iqIraq
ieIreland
imIsle of Man
ilIsrael
itItaly
jmJamaica
jpJapan
jeJersey
joJordan
kzKazakhstan
keKenya
krSouth Korea
kwKuwait
kgKyrgyzstan
laLaos
lvLatvia
lbLebanon
lsLesotho
lyLibya
ltLithuania
luLuxembourg
moMacau
mgMadagascar
mwMalawi
myMalaysia
mvMaldives
mlMali
mtMalta
mrMauritania
muMauritius
mxMexico
mdMoldova
mnMongolia
meMontenegro
maMorocco
mzMozambique
mmMyanmar
naNamibia
npNepal
nlNetherlands
nzNew Zealand
niNicaragua
neNiger
ngNigeria
mkNorth Macedonia
mpNorthern Mariana Islands
noNorway
omOman
pkPakistan
psPalestine
paPanama
pgPapua New Guinea
pyParaguay
pePeru
phPhilippines
plPoland
ptPortugal
prPuerto Rico
qaQatar
roRomania
ruRussia
rwRwanda
vcSaint Vincent and the Grenadines
wsSamoa
saSaudi Arabia
snSenegal
rsSerbia
scSeychelles
slSierra Leone
sgSingapore
skSlovakia
siSlovenia
soSomalia
zaSouth Africa
esSpain
lkSri Lanka
sdSudan
srSuriname
seSweden
chSwitzerland
sySyria
twTaiwan
tjTajikistan
tzTanzania
thThailand
tgTogo
ttTrinidad and Tobago
tnTunisia
trTurkey
ugUganda
uaUkraine
aeUnited Arab Emirates
gbUnited Kingdom
usUnited States
uyUruguay
uzUzbekistan
veVenezuela
vnVietnam
vgBritish Virgin Islands
viU.S. Virgin Islands
yeYemen
zmZambia
zwZimbabwe

Get available countries programmatically

Use the API to get the current list of available countries:

import { AluviaApi } from "@aluvia/sdk";

const api = new AluviaApi({ apiKey: process.env.ALUVIA_API_KEY! });
const geos = await api.geos.list();

for (const geo of geos) {
console.log(`${geo.code}: ${geo.label}`);
}
  • Connections — Understand connection attributes including target_geo