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

FieldTypeDescription
statusstringThe status of the request (e.g., "success")
countrystringThe full name of the country
countryCodestringThe two-letter ISO country code
regionstringThe region code
regionNamestringThe full name of the region
citystringThe name of the city
zipstringThe postal code associated with the IP
latnumberThe latitude coordinate
lonnumberThe longitude coordinate
timezonestringThe timezone of the IP location
ispstringThe name of the Internet Service Provider
orgstringThe organization that owns the IP address
asstringThe Autonomous System (AS) number
querystringThe 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"
}

On this page