Guides4 min readOct 11, 2026

Geo-targeting with proxies: country, state and city

How to pick the exact location your requests come from with crawlproxies, from a country down to a single city (or a US state on the plans that take one), plus which products support what and how to check you landed in the right place.

By crawlproxies
Geo-targeting with proxies: country, state and city

Prices, search results, ads and even whole websites change with the visitor's location. Geo-targeting lets you see the web the way someone in Munich, Texas or São Paulo sees it. On crawlproxies it's part of your username, so you can switch location per request without changing anything else.

Residential Premium covers 200+ countries, with cities worldwide, and the whole network spans 233 countries and territories and more than 10,900 cities. Browse them on the Locations page.

Country and city

On Residential Premium (gateway prem.crawlproxies.com:3621, HTTP), append location options to your username, from broad to narrow:

LevelOptionExample
Country-country-<code>USERNAME-country-de
City-city-<name>USERNAME-country-us-city-chicago

The rules:

  • Countries use two-letter ISO codes in lowercase: us, gb, de, br, jp.
  • Cities are lowercase, with underscores for spaces: new_york, los_angeles, london. They work worldwide, with no state needed.
  • Order matters: country first, then city. A city always goes after a country.
  • No location at all (USERNAME) means worldwide rotation.

Combine location with a sticky session when you need both (on Residential Premium a session is -ssid-<id>-sst-<seconds>, up to 3600 seconds):

text
USERNAME-country-us-city-los_angeles-ssid-job7-sst-1800

US states

Residential Premium has no state option. Two places do take one:

  • Older Residential Premium plans whose plan page shows geo.crawlproxies.com (8080 / 1080) accept -state-<name>, lowercase with no spaces (texas, newyork). There a city only works together with its state, for the cities the generator lists: USERNAME-country-us-state-texas-city-houston.
  • Mobile (4G/5G) offers a state or city only where the generator lists one.

Try it

bash
curl -x http://USERNAME-country-jp:PASSWORD@prem.crawlproxies.com:3621 https://ipinfo.io/json

ipinfo.io answers with the IP's country, region and city, so you can confirm you landed where you asked. Geolocation databases occasionally disagree with each other by a city or two, especially near borders and for mobile IPs, so treat city-level results as "in or near".

What each product supports

Not every proxy type can be targeted the same way. Here's what each one accepts:

ProductCountryUS stateCity
Residential PremiumYesNoYes, worldwide
Residential Premium, older plans on geo.crawlproxies.comYesYesWith its state
Residential PrivateYesNoNo
ResidentialNoNoNo
Mobile (4G/5G)YesWhere the generator lists itWhere the generator lists it
Premium Unlimited ResidentialYesNoYes
Unlimited ResidentialYesNoNo
Shared ISP, ISP EuropeUS / NetherlandsNoNo
IPv6 Residential, IPv6 DatacenterYesNoNo
DatacenterNo: a US IP list, each IP fixedNoNo
Mobile USAUS onlyNoNo
Dedicated ISPFixed per IPNoNo

The generator lists exactly the locations your plan supports, so it's the quickest way to see your options and get the spelling right.

Choosing how narrow to go

Narrower targeting means a smaller pool of IPs to rotate through. That's usually fine, but it has trade-offs:

  • Country is right for most jobs: localized prices, search results, content and ads.
  • City is for genuinely local results: maps, delivery, local search, store availability. For anything priced or regulated by US state (insurance, sports, tax-inclusive prices), pick a city in that state.

If a very specific city is slow or keeps failing, step out one level (to the country) and see whether the content still matches what you need. Often it does.

Code examples

Python, building the username from parts:

python
def geo_proxy(country=None, city=None):
    user = "USERNAME"
    if country:
        user += f"-country-{country}"
        if city:
            user += "-city-" + city.lower().replace(" ", "_")
    return f"http://{user}:PASSWORD@prem.crawlproxies.com:3621"

import requests
for cc in ("us", "de", "jp"):
    p = geo_proxy(cc)
    data = requests.get("https://ipinfo.io/json", proxies={"http": p, "https": p}, timeout=30).json()
    print(cc, "->", data["country"], data.get("city"))

The same helper in JavaScript:

js
const geoUser = ({ country, city } = {}) =>
  ["USERNAME",
   country && `country-${country}`,
   country && city && `city-${city.toLowerCase().replaceAll(" ", "_")}`,
  ].filter(Boolean).join("-");

geoUser({ country: "us", city: "san antonio" });
// "USERNAME-country-us-city-san_antonio"

Common mistakes

  • Spaces in names. -city-new york breaks the username. Write -city-new_york.
  • A state on Residential Premium. There's no state option there; target a city in that state instead (-country-us-city-houston).
  • Expecting one fixed IP. Location targeting picks where the IP is; it still rotates unless you add a session. See sticky vs rotating sessions.
  • Testing with one request. Sample a few IPs before deciding a location doesn't work.

New to crawlproxies? Start with your first proxy request.

Written by
crawlproxies
Create account