curl --request GET \
-x "http://proxy.geonode.io:<port>" \
--user "<geonode_username>-not.country-<country_code_1>,<country_code_2>:<geonode_password>" \
--url "http://ip-api.com/json"{
"status": "success",
"country": "Mexico",
"countryCode": "MX",
"region": "AGU",
"regionName": "Aguascalientes",
"city": "Aguascalientes",
"zip": "20326",
"lat": 21.9419,
"lon": -102.2756,
"timezone": "America/Mexico_City",
"isp": "Uninet S.A. de C.V.",
"org": "UNINET",
"as": "AS8151 UNINET",
"query": "187.232.239.178"
}Exclude Country Targeting
Execute a proxy request while excluding specific countries from the routing.
How to Specify Country Exclusion
To exclude countries in your proxy request, append:
-not.country-<country_code_1>,<country_code_2>
after your <geonode_username>.
You can pass a single exclusion like -not.country-<country_code>
or add multiple exclusions separated by commas: -not.country-xx,yy,zz
You can only exclude countries — not mix with city, state, or ASN exclusions in the same request.
curl --request GET \
-x "http://proxy.geonode.io:<port>" \
--user "<geonode_username>-not.country-<country_code_1>,<country_code_2>:<geonode_password>" \
--url "http://ip-api.com/json"{
"status": "success",
"country": "Mexico",
"countryCode": "MX",
"region": "AGU",
"regionName": "Aguascalientes",
"city": "Aguascalientes",
"zip": "20326",
"lat": 21.9419,
"lon": -102.2756,
"timezone": "America/Mexico_City",
"isp": "Uninet S.A. de C.V.",
"org": "UNINET",
"as": "AS8151 UNINET",
"query": "187.232.239.178"
}Response
Successful proxy response with excluded countries.
Indicates request status.
"success"
Country name.
"Mexico"
Two-letter ISO country code.
"MX"
Region code.
"AGU"
Full region name.
"Aguascalientes"
City name.
"Aguascalientes"
Postal code.
20326
Latitude.
21.9419
Longitude.
-102.2756
Timezone.
"America/Mexico_City"
Internet Service Provider.
"Uninet S.A. de C.V."
Organization.
"UNINET"
Autonomous system name.
"AS8151 UNINET"
IP address returned.
"187.232.239.178"
Was this page helpful?