Perform State Exclusion
Execute a proxy request while excluding specific states or regions from the routing.
Route your proxy requests while excluding specific states or regions from the routing.
Exclusion Rules
You can only exclude states. You cannot combine state exclusions with city, country, or ASN exclusions in the same request.
How to Specify State Exclusion
Append -not.state-<state_1>,<state_2> after your <geonode_username>.
- Single state:
-not.state-california - Multiple states:
-not.state-california,newyork,texas - With country:
-country-US-not.state-california,newyork
Request
curl --request GET \
-x "http://proxy.geonode.io:<port>" \
--user "<geonode_username>-country-<country_code>-not.state-<state_1>,<state_2>:<geonode_password>" \
--url "http://ip-api.com/json"Response
200 Success
Returns detailed geolocation information about the IP address, excluding the specified states.
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": "NY",
"regionName": "New York",
"city": "Queens",
"zip": "11436",
"lat": 40.6744,
"lon": -73.8016,
"timezone": "America/New_York",
"isp": "Charter Communications",
"org": "Spectrum",
"as": "AS12271 Charter Communications Inc",
"query": "72.227.174.55"
}