City And State Targeting Proxies: Country, State And City In One Username
How city and state targeting proxies work on Rainproxy: country to state to city, the username tokens, which products support it and what to expect.

Many projects need more than a country. Prices, content and search results often change by region or by city. City and state targeting lets you choose that level of detail. This guide explains how it works on Rainproxy, which products support it and where the limits are.
What city and state targeting is
City and state targeting filters the residential pool by location in three steps: country → state → city. You can stop at any step. Ask for a country only, a state inside that country, or a city inside that state. Your exits then resolve inside the area you picked, so you see roughly what a local visitor sees.
When you need it
- Regional pricing and offers. Comparing what customers in different states or cities are shown.
- Localized content. Checking language, currency and regional variants of a page.
- Local search. Seeing how results change from one city to another.
- Ad checks for regional campaigns. Confirming that a campaign scoped to one metro area appears there.
If your results are the same everywhere in a country, country targeting alone keeps more IPs available to rotate through.
How to set it up at Rainproxy
Add the tokens to the proxy username in order: country, then state, then city.
user-country-US-state-texas-city-austin
Precise targeting at state and city level uses port 3333. You can also choose the location in the dashboard Generator and copy the ready-made username.
To keep one IP while you work in that city, add a sticky session (-session-<id>-time-<minutes>). Read more in our sticky session guide.
Which products have it
City and state targeting is available on:
Residential Smart is country level only. If you use Residential Smart and need state or city precision, Premium Residential is the product to move to.
See the city and state targeting section on the features page for a short overview.
Combining with other filters
City and state targeting combines with ASN targeting on both Premium and Exclusive Residential, and on Premium Residential also with ZIP and OS targeting. For postcode-level precision, see our guide to ZIP code proxies.
Every filter narrows the pool. A large city leaves plenty of choice; a small town plus an ASN filter leaves far fewer matching IPs. Start broad and narrow only as far as your task requires.
A worked example
Suppose you want to compare a page in two US states. Create one username per location:
user-country-US-state-texas-city-austinuser-country-US-state-california-city-sandiego
Fetch the same page through both at the same time and compare the currency, language, offers and store details. If the difference shows up at state level already, drop the city token and target the state only: you keep the same answer with more IPs to rotate through. If you need to click through several pages per location, add -session-<id>-time-<minutes> to each username.
Common setup mistakes
- Using Residential Smart for city work. Smart is country level only, so state and city tokens will not narrow it. Use Premium Residential or Exclusive Residential.
- Skipping the state. Keep the order country, state, city. Copying the username from the Generator avoids format problems.
- Wrong port. Precise state and city targeting uses port 3333.
- Narrowing too early. Start at country or state level and add a city only when your results really change by city.
How to check it is working
Send a few requests to an IP information page you trust and confirm the reported region and city. Because location databases sometimes disagree near borders, check against the source your target is likely to use. Run a small sample on your own task before you scale up.
Honest limits
- Smaller places mean fewer IPs. Rotation inside a small city is more limited than inside a large one.
- Geolocation is an estimate. IP location databases do not always agree, especially near borders between states or cities. Check against the database your target is likely to use.
- Smart stops at country. Residential Smart does not support state or city targeting.
- No promise about any specific site. We do not promise results on any named website or app.
Getting started
The free trial includes 250 MB in total — 125 MB of Premium Residential and 125 MB of Exclusive Residential — claimed through live chat, so you can test city targeting on both products. Plans are on the pricing page.
Spin up your first session in 60 seconds.
250 MB on us, activated by our team in live chat. No credit card. Real residential and mobile IPs across 195+ countries.