How to target specific countries and cities with residential proxies
Country and city geolocation targeting comes as standard with all residential bandwidth purchases. We support over 195 countries and every major city in the world.You can generate proxies which are geolocated to specific countries or cities through both our dashboard generator and through syntax generation in your API requests.
To discover which cities are available within a country, you can use the city search endpoint:
Copy
# List cities in the United Kingdomcurl --request GET \ --url 'https://api.pingproxies.com/1.0/public/user/city/search?country_id=gb&city_is_populous=true' \ --header 'X-API-Public-Key: your_public_key' \ --header 'X-API-Private-Key: your_private_key'
You can also easily generate geotargeted proxies through our dashboard interface by selecting the desired country and city from the dropdown menus in the residential proxy generator.For more information on generating residential proxies, see the Generating Residential Proxies guide.