Perform City Exclusion
Execute a proxy request while excluding specific cities from the routing.
Route your proxy requests while excluding specific cities from the routing.
Exclusion Rules
You can only exclude cities. You cannot combine city exclusions with country, state, or ASN exclusions in the same request.
How to Specify City Exclusion
Append -not.city-<city_1>,<city_2> after your <geonode_username>.
- Single city:
-not.city-charlotte - Multiple cities:
-not.city-charlotte,newyork,houston - With country:
-country-US-not.city-charlotte,newyork
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"Response
200 Success
Returns detailed geolocation information about the IP address, excluding the specified cities.
Response Fields
| Field | Type | Description |
|---|---|---|
status | string | The status of the request (e.g., "success") |
country | string | The full name of the country |
countryCode | string | The two-letter ISO country code |
region | string | The region code |
regionName | string | The full name of the region |
city | string | The name of the city |
zip | string | The postal code associated with the IP |
lat | number | The latitude coordinate |
lon | number | The longitude coordinate |
timezone | string | The timezone of the IP location |
isp | string | The name of the Internet Service Provider |
org | string | The organization that owns the IP address |
as | string | The Autonomous System (AS) number |
query | string | The queried IP address |
Example Response
{
"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"
}