Location

Location targeting is arguably the most crucial aspect of configuring a proxy. Users frequently need to access a proxy server in a specific location for various purposes. IPRoyal offers extensive possibilities in this regard, enabling users to target a region, country, state, or city and even a specific internet service provider (ISP) within that location. We will explore these options in greater detail in the subsequent paragraphs, focusing on the comprehensive location-targeting capabilities provided by IPRoyal within this section.

Region

_region- is the key for region configuration. Adding this value will tell our router to filter proxies that are located in this region.

Example:

curl -v -x http://username123:[email protected]:12321 -L https://google.com
Supported region values
  • africa

  • arabstates

  • asiapacific

  • europe

  • middleeast

  • northamerica

  • southlatinamerica

Country

_country- is the key for country configuration. The value of this parameter is a two letter country code (ISO 3166-1 alpha-2 format).

You can select more than one country. When resolving a proxy with this configuration, our router will randomly select one of the countries you had set as a value for the country key.

Examples:

curl -v -x http://username123:password321_country-dk,it,[email protected]:12321 -L http://example.com

City

_city- is the key to target a city. The value should be a name of the city.

Example:

State

_state- is used to target a state in the US. The value should be the name of the state.

Example:

ISP

Available only with verified ID and after spending $1,000 or more.

_isp- is used to target a specific ISP (Internet service provider) in a location. The value should be a concatenated name of the provider.

Example:

Geolocation

_geolocation- is used to target exit nodes near a specific geographic point. The value is a comma-separated list of latitude, longitude, radius (in miles), and an optional strict flag.

Format:

  • LAT - latitude, a decimal between -90 and 90.

  • LON - longitude, a decimal between -180 and 180.

  • RADIUS - search radius in miles. Must be at least 10.

  • Non-strict (default) - without the strict flag, exit nodes inside the radius are preferred. If no exit nodes are available inside the radius, the closest exit nodes by distance are used instead, so a request is always routed.

  • Strict - optional. With the strict flag appended, only exit nodes that fall inside the radius are used. If none are available, the request fails. Use this when precise geographic targeting matters more than availability.

Examples:

Target exit nodes within 10 miles of Vilnius (54.6872, 25.2797) (if not found in a 10 mile radius, return closest ones):

Same target, but only accept exit nodes strictly inside the radius (if not found, request will fail):

Last updated

Was this helpful?