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

Location Settings

Learn more about location settings for Residential Proxies. Here you'll find guides for location targeting from continents, specific cities to coordinates or geohash.

Oxylabs Residential Proxies cover over 195 locations worldwide, allowing granular traffic routing down to country, city, state, continent, ZIP code, geohash, ASN, or coordinate levels. Location parameters are added directly into your proxy username string or passed via custom headers.

Location mapping: We use the MaxMind GeoIP2 database to assign our exit nodes cc, st, and city values. This database is updated weekly.

Some other public IP databases may show different locations. In cases where there can not be any location mismatches, please double-check if the location of the assigned proxy is the same on the IP database used by the target website.

Targeting
Parameter
Description

cc

ISO 3166-1 alpha-2 code. Supports country-specific entry ports. E.g. customer-USERNAME-cc-US

city

English city name. Requires cc parameter for maximum accuracy. E.g. customer-USERNAME-cc-US-city-new_york

st

US states only. Requires us_ prefix. E.g. customer-USERNAME-st-us_california

cn

Two-letter continent code (AF, AN, AS, EU, NA, OC, SA). E.g. customer-USERNAME-cn-EU

postalcode

5-digit US ZIP codes only. Requires cc-US. E.g. customer-USERNAME-cc-US-postalcode-90210

geohash

Grid cell levels 1 to 4 (9 to drq4). Mutually exclusive with other geo parameters. E.g. customer-USERNAME-geohash-u09

ASN

Target specific Autonomous System Numbers. Overridden if cc is present. E.g. customer-USERNAME-ASN-21928

X-Oxylabs-Geolocation

Passed as an HTTP proxy header. Minimum 10-mile radius. E.g. Latitude:Longitude;Radius


Country

Adding the cc parameter to the authorization header specifies the target country using a 2-letter ISO 3166-1 alpha-2 format country code (e.g., DE for Germany, GB for the United Kingdom, JP for Japan):

customer-USERNAME-cc-DE:PASSWORD

Code examples

curl -x pr.oxylabs.io:7777 -U "customer-USERNAME-cc-DE:PASSWORD" https://ip.oxylabs.io/location
import urllib.request

username = 'USERNAME'
password = 'PASSWORD'
country = 'DE'
entry = f'http://customer-{username}-cc-{country}:{password}@pr.oxylabs.io:7777'

query = urllib.request.ProxyHandler({'http': entry, 'https': entry})
execute = urllib.request.build_opener(query)
print(execute.open('https://ip.oxylabs.io/location').read().decode('utf-8'))
<?php
$username = 'USERNAME';
$password = 'PASSWORD';
$country = 'DE';
$proxy = 'pr.oxylabs.io:7777';
$query = curl_init('https://ip.oxylabs.io/location');
curl_setopt($query, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($query, CURLOPT_PROXY, "http://$proxy");
curl_setopt($query, CURLOPT_PROXYUSERPWD, "customer-$username-cc-$country:$password");
$output = curl_exec($query);
curl_close($query);
if ($output)
    echo $output;
?>

Country-specific entry nodes

Alternatively, connect directly to country-specific domain entry points without modifying your username parameters. The following example query to ip.oxylabs.io/location is performed from a random Turkish IP:

Please see the dashboard for entry point information. Download a complete list of random entry points or find them in the table below.

Table of available entry nodes

Random pr.oxylabs.io:7777

USA us-pr.oxylabs.io:10000

Canada ca-pr.oxylabs.io:30000

Great Britain gb-pr.oxylabs.io:20000

Germany de-pr.oxylabs.io:30000

France fr-pr.oxylabs.io:40000

Spain es-pr.oxylabs.io:10000

Italy it-pr.oxylabs.io:20000

Sweden se-pr.oxylabs.io:30000

Greece gr-pr.oxylabs.io:40000

Portugal pt-pr.oxylabs.io:10000

Netherlands nl-pr.oxylabs.io:20000

Belgium be-pr.oxylabs.io:30000

Indonesia id-pr.oxylabs.io:10000

Ukraine (non-occupied regions) ua-pr.oxylabs.io:10000

Poland pl-pr.oxylabs.io:20000

Israel il-pr.oxylabs.io:20000

Turkey tr-pr.oxylabs.io:30000

Australia au-pr.oxylabs.io:40000

Malaysia my-pr.oxylabs.io:10000

Thailand th-pr.oxylabs.io:20000

South Korea kr-pr.oxylabs.io:30000

Japan jp-pr.oxylabs.io:40000

Philippines ph-pr.oxylabs.io:10000

Singapore sg-pr.oxylabs.io:20000

China cn-pr.oxylabs.io:30000

Hong Kong hk-pr.oxylabs.io:40000

Taiwan tw-pr.oxylabs.io:10000

India in-pr.oxylabs.io:20000

Pakistan pk-pr.oxylabs.io:30000

Kazakhstan kz-pr.oxylabs.io:30000

UAE ae-pr.oxylabs.io:40000

Mexico mx-pr.oxylabs.io:10000

Brazil br-pr.oxylabs.io:20000

Argentina ar-pr.oxylabs.io:30000

Chile cl-pr.oxylabs.io:40000

Peru pe-pr.oxylabs.io:10000

Ecuador ec-pr.oxylabs.io:20000

Colombia co-pr.oxylabs.io:30000

​​South Africa za-pr.oxylabs.io:40000

Egypt eg-pr.oxylabs.io:10000

Angola ao-pr.oxylabs.io:40000

Cameroon cm-pr.oxylabs.io:41000

Central African Republic cf-pr.oxylabs.io:42000

Chad td-pr.oxylabs.io:43000

Benin bj-pr.oxylabs.io:44000

Ethiopia et-pr.oxylabs.io:45000

Djibouti dj-pr.oxylabs.io:46000

Gambia gm-pr.oxylabs.io:47000

Ghana gh-pr.oxylabs.io:48000

Côte d'Ivoire ci-pr.oxylabs.io:49000

Kenya ke-pr.oxylabs.io:10000

Liberia lr-pr.oxylabs.io:11000

Madagascar mg-pr.oxylabs.io:12000

Mali ml-pr.oxylabs.io:13000

Mauritania mr-pr.oxylabs.io:14000

Mauritius mu-pr.oxylabs.io:15000

Morocco ma-pr.oxylabs.io:16000

Mozambique mz-pr.oxylabs.io:17000

Nigeria ng-pr.oxylabs.io:18000

Senegal sn-pr.oxylabs.io:19000

Seychelles sc-pr.oxylabs.io:20000

Zimbabwe zw-pr.oxylabs.io:21000

South Sudan ss-pr.oxylabs.io:22000

Sudan sd-pr.oxylabs.io:23000

Togo tg-pr.oxylabs.io:24000

Tunisia tn-pr.oxylabs.io:25000

Uganda ug-pr.oxylabs.io:26000

Zambia zm-pr.oxylabs.io:27000

Afghanistan af-pr.oxylabs.io:28000

Bahrain bh-pr.oxylabs.io:29000

Bangladesh bd-pr.oxylabs.io:30000

Armenia am-pr.oxylabs.io:31000

Bhutan bt-pr.oxylabs.io:32000

Myanmar mm_pr.oxylabs.io:33000

Cambodia kh-pr.oxylabs.io:34000

Georgia ge-pr.oxylabs.io:36000

Iraq iq-pr.oxylabs.io:37000

Jordan jo-pr.oxylabs.io:38000

Lebanon lb-pr.oxylabs.io:39000

Maldives mv-pr.oxylabs.io:40000

Mongolia mn-pr.oxylabs.io:41000

Oman om-pr.oxylabs.io:42000

Qatar

qa-pr.oxylabs.io:43000

Saudi Arabia sa-pr.oxylabs.io:44000

Vietnam vn-pr.oxylabs.io:45000

Turkmenistan tm-pr.oxylabs.io:46000

Uzbekistan uz-pr.oxylabs.io:47000

Yemen ye-pr.oxylabs.io:48000

Albania

al-pr.oxylabs.io:49000

Andorra ad-pr.oxylabs.io:10000

Austria at-pr.oxylabs.io:11000

Bosnia and Herzegovina ba-pr.oxylabs.io:13000

Bulgaria bg-pr.oxylabs.io:14000

Azerbaijan az-pr.oxylabs.io:20000

Croatia hr-pr.oxylabs.io:16000

Cyprus cy-pr.oxylabs.io:35000

Czech Republic

cz-pr.oxylabs.io:18000

Denmark dk-pr.oxylabs.io:19000

Estonia ee-pr.oxylabs.io:20000

Finland fi-pr.oxylabs.io:21000

Hungary hu-pr.oxylabs.io:23000

Iceland is-pr.oxylabs.io:24000

Ireland ie-pr.oxylabs.io:25000

Latvia lv-pr.oxylabs.io:26000

Liechtenstein li-pr.oxylabs.io:27000

Lithuania lt-pr.oxylabs.io:28000

Luxembourg lu-pr.oxylabs.io:29000

Malta mt-pr.oxylabs.io:30000

Monaco mc-pr.oxylabs.io:31000

Moldova md-pr.oxylabs.io:32000

Montenegro me-pr.oxylabs.io:33000

Norway no-pr.oxylabs.io:34000

Romania ro-pr.oxylabs.io:35000

Serbia rs-pr.oxylabs.io:36000

Slovakia sk-pr.oxylabs.io:37000

Slovenia si-pr.oxylabs.io:38000

Switzerland ch-pr.oxylabs.io:39000

Macedonia

mk-pr.oxylabs.io:40000

Bahamas bs-pr.oxylabs.io:41000

Belize bz-pr.oxylabs.io:42000

British Virgin Islands vg-pr.oxylabs.io:43000

Costa Rica cr-pr.oxylabs.io:44000

Namibia na-pr.oxylabs.io:28000

Dominica dm-pr.oxylabs.io:46000

Haiti ht-pr.oxylabs.io:47000

Honduras hn-pr.oxylabs.io:48000

Jamaica jm-pr.oxylabs.io:49000

Aruba aw-pr.oxylabs.io:10000

Panama pa-pr.oxylabs.io:11000

Puerto Rico pr-pr.oxylabs.io:12000

Trinidad and Tobago tt-pr.oxylabs.io:13000

Fiji fj-pr.oxylabs.io:14000

New Zealand nz-pr.oxylabs.io:15000

Bolivia bo-pr.oxylabs.io:16000

Paraguay py-pr.oxylabs.io:17000

Uruguay uy-pr.oxylabs.io:18000

Venezuela ve-pr.oxylabs.io:19000

European Union eu-pr.oxylabs.io:10000

Dominican Republic

do-pr.oxylabs.io:21000

Laos

la-pr.oxylabs.io:22000

Tanzania

tz-pr.oxylabs.io:23000

Sri Lanka

lk-pr.oxylabs.io:24000

Brunei

bn-pr.oxylabs.io:25000

Nepal

np-pr.oxylabs.io:26000

Kuwait

kw-pr.oxylabs.io:20000

Guatemala

gt-pr.oxylabs.io:27000

Algeria dz-pr.oxylabs.io:29000


City

Target proxies in specific cities by combining the city parameter with a matching country code (cc). Multi-word city names use underscores instead of spaces (e.g., new_york, rio_de_janeiro).

Code examples

Download the list of supported cities by clicking the file below:

Open

We support every city in the world, yet due to the dynamic nature of Residential Proxies we do not guarantee we will have proxies there at specific moment in time. Most popular cities are well covered.


State

Select proxies from specific US states using the st parameter. State names must include the us_ prefix (e.g., us_california, us_illinois).

Code Examples

In this example, a query to ip.oxylabs.io/location is performed from a random IP address from California, USA:

See the full supported state list below:

Open

Continent

Route requests through any of the seven continents using the cn parameter followed by a two-letter continent code:

cn-AF – Africa cn-AN – Antarctica cn-AS – Asia cn-EU – Europe cn-NA – North America cn-OC – Oceania cn-SA – South America

Code example


ZIP / Postal code

Target specific US 5-digit ZIP codes using the postalcode parameter. The parameter must be used with the country code parameter cc and a case-insensitive country code in 2-letter 3166-1 alpha-2 format.

Currently we support only US-based codes for ZIP code targeting, the parameter must be accompanied by cc-US.

Code examples

Proxy location using ZIP code is being matched using MaxMind IP Geolocation database. There can be a mismatch between ZIP codes when checking IP addresses against other IP geo-location databases.


Geohash

Target proxies within specific geographic grid cells using geohash codes ranging from Level 1 (largest) to Level 4 (smallest). Geohash allows precise grid-based targeting without relying on traditional administrative boundaries like country or city borders.

By default, geohash uses strict targeting: if no IP is available in the requested cell, the request returns a 502 Bad Gateway error.

Length
Approx. cell size
Examples

1

≤ 5,000 km × 5,000 km

geohash-9 (Large part of US & Mexico), geohash-c (Northern US & Canada)

2

≤ 1,250 km × 625 km

geohash-gc (Ireland, Northern Ireland, England and Scotland)

3

≤ 156 km × 156 km

geohash-u09 (Paris)

4

≤ 39.1 km × 19.5 km

geohash-drq4 (Most of Nantucket Island)

Code examples

Geohash fallback

If your use case does not require a strict cell match, geohash_fallback uses the rotator that automatically removes one geohash character at a time to expand the area until an available proxy is found.

If no IP is found at single-character level, a 502 Bad Gateway error is returned.

  • Initial target: 2svd (≤ 39.1 km × 19.5 km)

  • Fallback 1 (1 character removed): 2sv (≤ 156 km × 156 km)

  • Fallback 2 (2 characters removed): 2s (≤ 1,250 km × 625 km)

  • Fallback 3 (3 characters removed): 2 (≤ 5,000 km × 5,000 km)

Tracking the fallback: geohash cell that was used is returned in the x-geo-hash-fallback response header. Compare it with your requested value to see if a fallback occurred and how far the area was expanded.

Code example


ASN targeting

Route traffic through specific Internet Service Provider (ISP) networks using Autonomous System Numbers (ASN). You can find ASN numbers here.

If no active proxies are available for the specified ASN, the request returns a 502 Bad Gateway error.

You can use either Country or ASN parameter per each request. If both location parameters are used, only Country parameter will be applied.


Coordinates

Target proxies near specific geographic coordinates using the X-Oxylabs-Geolocation HTTP proxy header. Value format is Latitude:Longitude;Radius (radius in miles, minimum 10 miles).

If no IP is found within the provided coordinates and radius, you will receive 502 response code. See full list of response codes here.

Code example

China entry nodes

For requests initiated from mainland China, dedicated HTTPS regional entry nodes provide optimized connectivity.

  • Hong Kong: a81298871.com:8000

  • Beijing: cnt9t1is.com:8000

Last updated

Was this helpful?