Perform Country Targeting

Execute a geo-targeting request to route proxy traffic through a specific country.

Route your proxy requests through a specific country by including the country code in your username string.

How to Specify Country

Append -country-<country_code> after your <geonode_username> to target a specific country.

For example: username-country-US targets the United States.

Request

curl --request GET \
     -x "http://proxy.geonode.io:<port>" \
     --user "<geonode_username>-country-<country_code>:<geonode_password>" \
     --url "http://ip-api.com/json"

Response

200 Success

Returns detailed geolocation information about the IP address assigned to your proxy connection.

Response Fields

FieldTypeDescription
statusstringThe status of the request (e.g., "success")
continentstringThe name of the continent
continentCodestringThe two-letter continent code
countrystringThe full name of the country
countryCodestringThe two-letter country code (ISO 3166-1 alpha-2)
regionstringThe region code
regionNamestringThe full name of the region
citystringThe name of the city
districtstringThe district name, if available
zipstringThe postal code associated with the IP
latnumberThe latitude coordinate
lonnumberThe longitude coordinate
timezonestringThe timezone of the IP location
offsetintegerThe time offset in seconds from UTC
currencystringThe currency code of the country
ispstringThe name of the Internet Service Provider
orgstringThe organization that owns the IP address
asstringThe Autonomous System (AS) number
querystringThe queried IP address

Example Response

{
  "status": "success",
  "continent": "North America",
  "continentCode": "NA",
  "country": "Canada",
  "countryCode": "CA",
  "region": "QC",
  "regionName": "Quebec",
  "city": "Montreal",
  "district": "",
  "zip": "H2Y",
  "lat": 45.5088,
  "lon": -73.5878,
  "timezone": "America/Toronto",
  "offset": -18000,
  "currency": "CAD",
  "isp": "Bell Canada",
  "org": "Bell Canada",
  "as": "AS577 Bell Canada",
  "query": "207.134.47.124"
}

On this page