Anchor provides 4 types of proxy configurations: To experiment with different proxy types, visit our Interactive API Reference

Use Anchor Residential Proxy

Create your session with a residential proxy to access websites as if you’re browsing from a computer in that country.
curl --request POST \
  --url https://api.anchorbrowser.io/v1/sessions \
  --header 'Content-Type: application/json' \
  --header 'anchor-api-key: <api-key>' \
  --data '{
  "session": {
    "proxy": {
      "type": "anchor_residential",
      "country_code": "us",
      "active": true
    }
  }
}'

Use Anchor Mobile Proxy

Create your session with a mobile proxy to access websites as if you’re browsing from a mobile device in that country.
curl --request POST \
  --url https://api.anchorbrowser.io/v1/sessions \
  --header 'Content-Type: application/json' \
  --header 'anchor-api-key: <api-key>' \
  --data '{
  "session": {
    "proxy": {
      "type": "anchor_mobile",
      "country_code": "us",
      "active": true
    }
  }
}'

Use Anchor Gov Proxy

Create your session with a residential proxy to access websites as if you’re browsing from a computer in that country. This option reduces the chance of being blocked by governmental websites.
curl --request POST \
  --url https://api.anchorbrowser.io/v1/sessions \
  --header 'Content-Type: application/json' \
  --header 'anchor-api-key: <api-key>' \
  --data '{
  "session": {
    "proxy": {
      "type": "anchor_gov",
      "country_code": "us",
      "active": true
    }
  }
}'

Use a Custom Proxy

curl --request POST \
  --url https://api.anchorbrowser.io/v1/sessions \
  --header 'Content-Type: application/json' \
  --header 'anchor-api-key: <api-key>' \
  --data '{
  "session": {
    "proxy": {
      "type": "custom",
      "server": "proxy.example.com",
      "username": "myUser",
      "password": "myPassword",
      "active": true
    }
  }
}'

Localization

You can specify a country code for your proxy to route traffic through a specific geographic location. This is useful for accessing region-specific content or testing localized experiences. The country_code parameter accepts the following country codes in lowercase:

Supported Countries with their Country Codes

AfghanistanafGambiagmOmanom
AlbaniaalGeorgiagePakistanpk
AlgeriadzGermanydePanamapa
AndorraadGhanaghPapua New Guineapg
AngolaaoGreecegrParaguaypy
Antigua and BarbudaagGrenadagdPerupe
ArgentinaarGuatemalagtPhilippinesph
ArmeniaamGuineagnPolandpl
ArubaawGuyanagyPortugalpt
AustraliaauHaitihtPuerto Ricopr
AustriaatHondurashnQatarqa
AzerbaijanazHong KonghkRomaniaro
BahamasbsHungaryhuRussiaru
BahrainbhIcelandisRwandarw
BangladeshbdIndiainSaint Lucialc
BarbadosbbIndonesiaidSamoaws
BelarusbyIranirSan Marinosm
BelgiumbeIraqiqSaudi Arabiasa
BelizebzIrelandieSenegalsn
BeninbjIsraelilSerbiars
BermudabmItalyitSierra Leonesl
BoliviaboJamaicajmSingaporesg
Bosnia and HerzegovinabaJapanjpSlovakiask
BotswanabwJordanjoSloveniasi
BrazilbrKazakhstankzSomaliaso
Brunei DarussalambnKenyakeSouth Africaza
BulgariabgKuwaitkwSouth Koreakr
Burkina FasobfKyrgyzstankgSouth Sudanss
BurundibiLaoslaSpaines
CambodiakhLatvialvSri Lankalk
CamerooncmLebanonlbSudansd
CanadacaLesotholsSurinamesr
Cape VerdecvLiberialrSwedense
ChadtdLibyalySwitzerlandch
ChileclLithuanialtSyriasy
ChinacnLuxembourgluSão Tomé and Príncipest
ColombiacoMacedoniamkTaiwantw
CongocgMadagascarmgTajikistantj
Costa RicacrMalawimwTanzaniatz
Côte d’IvoireciMalaysiamyThailandth
CroatiahrMaldivesmvTimor Leste (East Timor)tl
CubacuMalimlTurkeytr
CypruscyMaltamtTogotg
Czech RepublicczMauritaniamrTrinidad and Tobagott
DenmarkdkMexicomxTunisiatn
DjiboutidjMoldovamdTurkmenistantm
DominicadmMongoliamnUgandaug
Dominican RepublicdoMontenegromeUkraineua
EcuadorecMoroccomaUnited Kingdomgb
EgyptegMozambiquemzUnited Statesus
El SalvadorsvMyanmarmmUruguayuy
Equatorial GuineagqNamibianaUzbekistanuz
EstoniaeeNepalnpVanuatuvu
EswatiniszNetherlandsnlVenezuelave
EthiopiaetNew CaledoniancVietnamvn
FijifjNew ZealandnzYemenye
FinlandfiNicaraguaniZambiazm
FrancefrNigerneZimbabwezw
French PolynesiapfNigeriang
GabongaNorwayno