Geo targeting

City targeting

Target a city inside a country. This is a username flag on proxy.geonode.io, not a separate HTTP management API.

Auth

Use your Geonode proxy username and password with the proxy URL.

Username syntax

FormExample username suffix
Country + city-country-US-city-houston
<geonode_username>-country-<COUNTRY>-city-<city>:<geonode_password>

City values are lowercase without spaces (for example houston, newyork).

Rules

  • Do not combine -state- and -city- in the same request.
  • Always include -country- with -city-.

Parameters

NameInRequiredDescription
geonode_usernameproxy useryesDashboard proxy username
geonode_passwordproxy useryesDashboard proxy password
countryusername flagyesISO country code
cityusername flagyesCity name
portproxy URLyesProxy port

Example

curl -x "http://proxy.geonode.io:<port>" \
  --proxy-user "<geonode_username>-country-US-city-houston:<geonode_password>" \
  "http://ip-api.com/json"

Response

ip-api.com egress check (not a Geonode schema).

Example with -country-US-city-houston (city: "Houston"):

{
  "status": "success",
  "country": "United States",
  "countryCode": "US",
  "region": "TX",
  "regionName": "Texas",
  "city": "Houston",
  "zip": "77020",
  "lat": 29.7756,
  "lon": -95.3082,
  "timezone": "America/Chicago",
  "isp": "T-Mobile USA, Inc.",
  "org": "T-Mobile USA, Inc.",
  "as": "AS21928 T-Mobile USA, Inc.",
  "query": "172.58.48.82"
}

Useful fields: city, countryCode, query.

Was this page helpful?

On this page