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
| Form | Example 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
| Name | In | Required | Description |
|---|---|---|---|
geonode_username | proxy user | yes | Dashboard proxy username |
geonode_password | proxy user | yes | Dashboard proxy password |
country | username flag | yes | ISO country code |
city | username flag | yes | City name |
port | proxy URL | yes | Proxy 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.
Related
Was this page helpful?