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"{
"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"
}Exclude State Targeting
Execute a proxy request while excluding specific states from the routing.
How to Specify State Exclusion
To exclude states in your proxy request, append:
-not.state-<state_1>,<state_2>
after your <geonode_username>.
You can pass a single exclusion like -not.state-<state>
or add multiple exclusions separated by commas: -not.state-california,newyork,texas
You can only exclude states — not mix with city, country, or ASN exclusions in the same 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"{
"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"
}Response
Successful proxy response with excluded states.
Indicates request status.
"success"
Country name.
"United States"
Two-letter ISO country code.
"US"
Region code.
"NY"
Full region name.
"New York"
City name.
"Queens"
Postal code.
11436
Latitude.
40.6744
Longitude.
-73.8016
Timezone.
"America/New_York"
Internet Service Provider.
"Charter Communications"
Organization.
"Spectrum"
Autonomous system name.
"AS12271 Charter Communications Inc"
IP address returned.
"72.227.174.55"
Was this page helpful?