curl --request GET \
-x "http://proxy.geonode.io:<port>" \
--user "<geonode_username>-country-<country_code>-not.city-<city_1>,<city_2>:<geonode_password>" \
--url "http://ip-api.com/json"{
"status": "success",
"country": "United States",
"countryCode": "US",
"region": "NC",
"regionName": "North Carolina",
"city": "Charlotte",
"zip": "28202",
"lat": 35.2327,
"lon": -80.8461,
"timezone": "America/New_York",
"isp": "FiberPower LLC",
"org": "FiberPower LLC",
"as": "AS214483 FiberPower LLC",
"query": "38.13.166.129"
}Exclude City Targeting
Execute a proxy request while excluding specific cities from the routing.
How to Specify City Exclusion
To exclude cities in your proxy request, append:
-not.city-<city_1>,<city_2> after your <geonode_username>.
You can pass a single exclusion like -not.city-<city>
or add multiple exclusions separated by commas: -not.city-charlotte,newyork,houston
You can only exclude cities, not combine with country, state, or ASN exclusions in the same request.
curl --request GET \
-x "http://proxy.geonode.io:<port>" \
--user "<geonode_username>-country-<country_code>-not.city-<city_1>,<city_2>:<geonode_password>" \
--url "http://ip-api.com/json"{
"status": "success",
"country": "United States",
"countryCode": "US",
"region": "NC",
"regionName": "North Carolina",
"city": "Charlotte",
"zip": "28202",
"lat": 35.2327,
"lon": -80.8461,
"timezone": "America/New_York",
"isp": "FiberPower LLC",
"org": "FiberPower LLC",
"as": "AS214483 FiberPower LLC",
"query": "38.13.166.129"
}Response
Successful proxy response with excluded cities.
Indicates request status.
"success"
Country name.
"United States"
Two-letter ISO country code.
"US"
Region code.
"NC"
Full region name.
"North Carolina"
City name.
"Charlotte"
Postal code.
28202
Latitude.
35.2327
Longitude.
-80.8461
Timezone.
"America/New_York"
Internet Service Provider.
"FiberPower LLC"
Organization.
"FiberPower LLC"
Autonomous system name.
"AS214483 FiberPower LLC"
IP address returned.
"38.13.166.129"
Was this page helpful?