Example curl request
curl --request GET \
-x "http://proxy.geonode.io:<port>" \
--user "<geonode_username>-country-<country_code>-city-<city_name>:<geonode_password>" \
--url "http://ip-api.com/json"{
"status": "success",
"continent": "North America",
"continentCode": "NA",
"country": "United States",
"countryCode": "US",
"region": "AL",
"regionName": "Alabama",
"city": "Decatur",
"district": "",
"zip": 35601,
"query": "68.191.141.86"
}Geo-Targetting
Perform City Targeting
Execute a City level geo-targeting request using proxy credentials.
How to Specify City
If you need to geo-target requests at the city level, simply append
-city-<city_name> after the
<geonode_username>-country-<country_code>.
Note that you can not target state and city at the same time.
Example curl request
curl --request GET \
-x "http://proxy.geonode.io:<port>" \
--user "<geonode_username>-country-<country_code>-city-<city_name>:<geonode_password>" \
--url "http://ip-api.com/json"{
"status": "success",
"continent": "North America",
"continentCode": "NA",
"country": "United States",
"countryCode": "US",
"region": "AL",
"regionName": "Alabama",
"city": "Decatur",
"district": "",
"zip": 35601,
"query": "68.191.141.86"
}Response
Successful response from City Targeting API.
Indicates the status of the request.
Example:
"success"
The name of the continent.
Example:
"North America"
The two-letter continent code.
Example:
"NA"
The full name of the country.
Example:
"United States"
The two-letter country code.
Example:
"US"
The region code.
Example:
"AL"
The full name of the region.
Example:
"Alabama"
The name of the city.
Example:
"Decatur"
The district name, if available.
Example:
""
The postal code associated with the IP.
Example:
35601
The queried IP address.
Example:
"68.191.141.86"
Was this page helpful?