Docs menu
Docs

Proxy Location Targeting: Country, Region and City

Yes: ProxyField residential and mobile proxies target by country (195+ countries), region (all 50 US states) and city (21,000+ cities), and you set the location in the proxy username, for example <login>-country-us-city-new_york:<password> on gate.proxyfield.io:7000. Websites then answer as they would for a visitor there; carrier, ASN and ZIP targeting are not offered. City and state targeting cost nothing extra: every location is billed at the same residential price, $2.95/GB for 1 GB down to $1.95/GB from 1,000 GB. Test your targets with the Easy Trial: 1 GB for $2.95.

residential IPs
412M+
from, traffic never expires
$1.95/GB
Easy Trial
1 GB for $2.95
gate.proxyfield.io:7000
ProxyField location targeting
SettingProxyField value
Gatewaygate.proxyfield.io:7000; HTTP, HTTPS and SOCKS5 with the same username and password
Username<login>-country-us-city-new_york; the order is login, country, region, city, session, ttl, and every part after the login is optional
Country-country-<cc>, the two-letter code in lowercase (country-us, country-au; the UK is country-gb)
Region-region-<region>, lowercase with underscores (region-australian_capital_territory); US: all 50 states
City-city-<city>, lowercase, spaces and hyphens as _; the full list per country is in your dashboard; no fallback to a nearby city: the gateway answers 502
Session-session-<id>-ttl-<seconds>: one IP for 30 to 129,600 s (30 s to 36 h), 20 min when ttl is left out; without a session, a new IP on every request
Productresidential is the default; add -mobile or -dc right after the login (-dc takes the country only)
Pricethe same price per GB for every targeting
Passwordyour ProxyField password
SOCKS5the same username and password; in a proxy URL, write socks5h:// so the gateway resolves the site's name
Allowlistup to 100 IPv4 addresses; use the port you set up in the dashboard; the location and session are set per port in the dashboard
Headersthe gateway adds no Via, X-Forwarded-For or Forwarded header; the headers your client sends pass through; your Proxy-Authorization is removed before the request goes to the site

Set the location with ProxyField

  1. Point your tool at gate.proxyfield.io, port 7000.
  2. Add the country to your login: <login>-country-de.
  3. Add a region or a city after the country, with the name from your dashboard list.
  4. Add -session-<id>-ttl-<seconds> when you need one IP for a while.
  5. Run the curl lines on this page with your username and check where the exit IP is.

Every part at once, as one proxy line (host:port:username:password):

gate.proxyfield.io:7000:<login>-country-au-region-australian_capital_territory-city-canberra-session-he9f2qga-ttl-60:<password>

How a website places an IP on the map: IP geolocation (Cloudflare docs).

Shell
curl -x gate.proxyfield.io:7000 -U "<login>-country-us-city-new_york:<password>" https://api.ipify.org
curl -x gate.proxyfield.io:7000 -U "<login>-country-us-city-new_york:<password>" https://ipinfo.io/json

What a matching result looks like (the IP is an illustrative documentation address; yours will differ):

203.0.113.24                      <- line 1: an exit IP that is not your own
{
  "ip": "203.0.113.24",
  "city": "New York",             <- the city you put in the username
  "region": "New York",
  "country": "US",
  …
}

If line 1 prints your own IP, the proxy is not in use: check the -x host and port. If city names a neighboring town, see how precise is each level.

On this page 13 sections

What you can target

LevelCoverageUsername partExtra cost
Country195+ countries-country-us (two-letter code, lowercase)none
Region (state)US: all 50 states-region-new_yorknone
City21,000+ cities-city-new_yorknone
Carriernot offered––
ASNnot offered––
ZIP codenot offered––

Country, region and city work for residential and mobile proxies, on the same gateway and port.

Does city or state targeting cost extra with residential proxies?

No. City and state targeting cost nothing extra at ProxyField: the same $2.95/GB for 1 GB down to $1.95/GB from 1,000 GB, whether you target a country, a state or a city. There is no surcharge for a region or a city, and none for countries, requests or threads. You pay only for the traffic you use, at the rate of your purchase's volume tier, which applies to the whole purchase:

Volume in one purchase, Residential, per GB, Mobile, per GB
Volume in one purchaseResidential, per GBMobile, per GB
1–9 GB$2.95$3.45
10–49 GB$2.79$3.29
50–99 GB$2.65$3.15
100–249 GB$2.49$2.99
250–499 GB$2.29$2.79
500–999 GB$2.09$2.59
1,000+ GB$1.95$2.45

The same 10 GB purchase, priced by targeting level:

10 GB of residential traffic, targeted toUsernamePrice
the whole United States<login>-country-us10 × $2.79 = $27.90
New York State<login>-country-us-region-new_york10 × $2.79 = $27.90
New York City<login>-country-us-city-new_york10 × $2.79 = $27.90

The smallest purchase is 1 GB, there is no subscription, the traffic never expires, and all purchases are final. No annual contracts, no monthly minimums, no auto-renewals, and ordinary purchases need no identity verification.

Where "extra cost" can hide with a provider, and what ProxyField does:

How a city or state can cost moreProxyField
A higher per-GB rate for city or state trafficNo: the same rate for every targeting
A premium plan or subscription needed for city targetingNo: every feature on every tier, from your first gigabyte; no subscription
A minimum purchase before city targeting unlocksNo: city targeting works from a 1 GB purchase
Targeted traffic counted at a multiple of the real bandwidthNo: city and state traffic costs the same per GB as the country
A city with few IPs at the momentNot a price, but a limit: a city holds far fewer IPs than its country; see how precise is each level

From 1 TB the price is individual: contact sales. Nothing about targeting is billed separately; the products sold per IP, dedicated ISP proxies and datacenter proxies, are priced per IP for 30 days instead of per GB. The full table is on the pricing page.

Set the country and city in the username, step by step

Yes, the location is set in the username. Username formats differ from provider to provider; ProxyField's order is login, country, region, city, session, ttl, and every part after the login is optional.

  1. Copy your credentials. Your login, password and the configurator (it generates as many proxy lines as you need) are in your ProxyField account.
  2. Point your tool at the gateway: host gate.proxyfield.io, port 7000. HTTP, HTTPS and SOCKS5 all use this host and port with the same username and password.
  3. Add the country to your login: <login>-country-de. Requests now exit from Germany.
  4. Add a region or a city after the country: <login>-country-us-region-california for California, <login>-country-us-city-<city> for a city, with its name from the list in your dashboard. Names are lowercase, with underscores for spaces and hyphens.
  5. Add a session if you need one IP for a while: -session-<id>-ttl-<seconds> at the end.
  6. Run the two curl lines at the top of this page with your username: the first prints the exit IP, the second asks ipinfo.io, an IP geolocation service, where that IP is ("city": "New York", "region": "New York", "country": "US" when the target matches). Databases disagree at city level, so check the target site's own view too.

To move to another location, change only the username; the host, port and password stay the same.

What you setUsernameNotes
Everything, as one proxy linegate.proxyfield.io:7000:<login>-country-au-region-australian_capital_territory-city-canberra-session-he9f2qga-ttl-60:<password>host:port:username:password: Canberra, one IP for 60 seconds
Country only<login>-country-de195+ countries; the two-letter code in lowercase
Country and region<login>-country-us-region-californiaUS: all 50 states
Country and city<login>-country-us-city-new_yorkexits in New York, United States
Another US city<login>-country-us-city-<city>the name from your dashboard list; underscores for spaces
Region and city<login>-country-au-region-australian_capital_territory-city-canberrathe region before the city
Any other city<login>-country-<cc>-city-<city>21,000+ cities; lowercase, underscores for spaces
Sticky session<login>-country-us-city-new_york-session-he9f2qga-ttl-600ttl in seconds, 30 to 129,600 (30 s to 36 h); without ttl, 20 minutes
All parts<login>-country-<cc>-region-<region>-city-<city>-session-<id>-ttl-<seconds>every part after the login is optional

The full list of region and city names for each country is in your dashboard.

The full proxy line has the form host:port:username:password, for example gate.proxyfield.io:7000:<login>-country-au-region-australian_capital_territory-city-canberra-session-he9f2qga-ttl-60:<password>.

How proxy location targeting works

Your tool sends each request to one address, gate.proxyfield.io:7000, and the username tells the gateway where the request should come out. The gateway forwards the request through an exit IP registered in that place, and the target website sees only that IP. It then serves the page it serves local visitors: their language, currency, prices, search results and ads.

In rotating mode the exit IP changes on every request, and every new IP comes from the location in your username. That keeps a scrape spread over many addresses in the same market. Mobile proxies have the same targeting as residential; how the username selects mobile instead of residential is residential by default; add -mobile after the login for mobile IPs, as in <login>-mobile-country-us.

Country targeting

Country targeting is the right level for most jobs. It draws on the whole national pool, so you get the widest choice of IPs, and it is enough wherever a site changes its content by country only. Every country takes its two-letter code in lowercase, as in <login>-country-de. The coverage per country, such as 61.2M+ residential IPs in the United States, is on the proxy locations page.

Region and state targeting

Region targeting narrows the exit to a state or province, and in the United States it covers all 50 states. Use it when prices, taxes, delivery options, laws or search results differ from one state to the next. The region follows the country, its name in lowercase with underscores for spaces: <login>-country-us-region-new_york exits in New York State, <login>-country-us-region-california in California, and <login>-country-au-region-australian_capital_territory in the Australian Capital Territory. All 50 US states are covered; region names outside the US: the full list is in your dashboard.

City targeting

The city follows the country, or the region if you set one: <login>-country-us-city-new_york exits in New York. City targeting covers 21,000+ cities in total. These are the city counts for ten markets:

CountryCitiesCountry page
United States2,800+USA proxies
France170+French proxies
Germany980+German proxies
United Kingdom640+UK proxies
Spain690+Spanish proxies
India1,100+Indian proxies
Poland160+Polish proxies
Turkey190+Turkish proxies
Netherlands110+Dutch proxies
South Africa150+South African proxies

When no IP is available in a city at the moment, the gateway answers 502 Bad Gateway; it does not fall back to a nearby city.

How precise is each level?

Country is the broadest and steadiest level, and city the narrowest:

  • Country: the whole national pool, the most IPs to rotate through. Use it unless the content differs inside the country.
  • Region: fewer IPs than the country; right for state-level prices, taxes and search results.
  • City: a city holds far fewer IPs than its country. Use it for checks that need the local view (local search results, local ads, store availability), and keep volume work at the country level.

Location comes from IP geolocation databases, which are built from different sources and can disagree at city level: one service may place an IP in a neighboring town. Before a city-level job, send a few requests and check the location the target site itself shows (its store picker, currency or local results), not only an IP lookup. If a site sees a different location from the one you chose, message our 24/7 live chat with the IP and the time of the request; more causes are in the proxy setup guides.

Rotating and sticky sessions with a location

In rotating mode, every request gets a new IP from the location in your username. A sticky session keeps the same IP instead, for 30 seconds to 36 hours (30 to 129,600 seconds, 20 minutes by default), with presets of 1, 5, 10 and 30 minutes and 1, 3 and 6 hours. Use sticky sessions for logins, carts and multi-step forms, where the site expects the same visitor from start to finish.

A sticky session adds -session-<id> and -ttl-<seconds> after the location: <login>-country-us-city-new_york-session-he9f2qga-ttl-600 asks for one New York IP for 600 seconds. The IP is held while its exit node is up; an IP that stays idle for 120 seconds is replaced by a new one, so a long job should send a request at least every 2 minutes. The IP is not guaranteed if the exit node drops: on a connection error the gateway retries once with a new session, so the IP may change, and a connection that breaks is not restored, so your client reconnects. When to pick which is covered in sticky vs rotating proxy sessions and on the rotating proxies page.

Need the same IP for longer than 36 hours? Dedicated ISP proxies and dedicated datacenter proxies are sold per IP for a 30-day term, renewed by you in the dashboard.

Carrier, ASN and ZIP targeting are not offered

Targeting is by country, region (state) and city. The carrier is not a targeting option. On the mobile location pages, carrier names describe the networks the mobile IPs run on in that country. ASN and ZIP code targeting are not offered.

Datacenter and ISP proxies

The parameters on this page apply to residential and mobile proxies. Rotating datacenter proxies cover the same countries as residential and target by country only, with -dc after the login: <login>-dc-country-us. Dedicated ISP and datacenter IPs come in the countries their order form lists, which follow stock, and take no targeting keys: you choose the country when you buy them. See the datacenter proxies and ISP proxies pages.

Examples in code

The same username works in any tool that accepts an HTTP or HTTPS proxy with a username and password. This Python script with Requests sends one request from the United States and one from Germany: the location change is only a username change.

Python
from urllib.parse import quote
import requests

LOGIN, PASSWORD = "<login>", quote("<password>", safe="")   # URL-encode the password

for country in ["us", "de"]:
    proxy = f"http://{LOGIN}-country-{country}:{PASSWORD}@gate.proxyfield.io:7000"
    ip = requests.get("https://api.ipify.org",
                      proxies={"http": proxy, "https": proxy}, timeout=30).text
    print(country, ip)    # two different exit IPs, one per country

The password goes inside a URL here, so characters such as @, : or / in it must be URL-encoded; quote(..., safe="") does that. For a city, extend the same string: f"http://{LOGIN}-country-us-city-new_york:{PASSWORD}@gate.proxyfield.io:7000".

The same check in Node.js 18 or later with Axios and https-proxy-agent (save as geo.mjs, run node geo.mjs):

JavaScript
import axios from "axios";
import { HttpsProxyAgent } from "https-proxy-agent";

const LOGIN = "<login>", PASSWORD = encodeURIComponent("<password>");
for (const loc of ["country-us", "country-us-city-new_york", "country-de"]) {
  const agent = new HttpsProxyAgent(`http://${LOGIN}-${loc}:${PASSWORD}@gate.proxyfield.io:7000`);
  const { data } = await axios.get("https://ipinfo.io/json", { httpsAgent: agent, proxy: false, timeout: 30000 });
  console.log(loc, data.ip, data.city, data.country);   // one line per location
}

Step-by-step setup for other tools is in the integration guides for Python, cURL, Node.js, Playwright and Selenium.

New to ProxyField? Start with the quick start, from sign-up to your first request. Billing and account questions are answered in the help center.

Proxy Location Targeting FAQ

How do I set the country and city for a rotating residential proxy, and is it done in the username?

ProxyField sets both in the username: <login>-country-us-city-new_york:<password> on gate.proxyfield.io:7000 sends every request through a residential IP in New York, United States. Targeting covers 195+ countries and 21,000+ cities, and the gateway and port stay the same when you change the location in the username.

Can I target specific countries, regions and cities with residential proxies?

Yes. ProxyField residential and mobile proxies target by country (195+), region (all 50 US states) and city (21,000+, including 2,800+ in the United States and 640+ in the United Kingdom); carrier, ASN and ZIP targeting are not offered. Country and city go into the username, as in <login>-country-us-city-new_york; a region goes in as -region-<region>, as in <login>-country-us-region-california. IP databases disagree at city level, so check the location the target site itself shows (its store picker or local results), not only an IP lookup.

How does proxy location targeting work?

You send each request to one gateway with the location written in your username, and the gateway forwards it through an exit IP registered in that place. The website sees only that exit IP, so it serves the version of the page it shows visitors there. With rotation on, each request gets a different IP from the same location.

What is a proxy region?

A proxy region is the area inside a country that the exit IP belongs to, such as a US state or a Canadian province. Region targeting matters when a site changes prices, taxes, delivery or search results by state. ProxyField region targeting covers all 50 US states.

How do I use a proxy to change my country?

Route your browser or script through a proxy whose exit IP is in the country you want, and websites see that country instead of yours. With ProxyField you write the location into the username, as in <login>-country-de for Germany, and set the gateway gate.proxyfield.io:7000 in your tool. Steps for browsers, phones and operating systems are in the proxy setup guides.

Can I switch my proxy to a different country?

Yes, at any time: the location is part of the username, so the next request with a new location in the username exits there. Nothing is bought per country, because one balance covers every location at the same price per GB. A script can send requests to several countries side by side.

Should I use a country proxy or a regional proxy?

Use a country proxy unless the site changes its content by state or city. Country targeting draws on the whole national pool, which gives you the widest choice of IPs. Region or city targeting narrows the pool, so keep it for prices, taxes, delivery options or search results that differ inside a country.

Why does proxy location matter?

Websites decide what to show from the visitor's IP location: language, currency, prices, stock, search results, ads and sometimes whether a page loads at all. A proxy in the wrong place gives you data that no local customer sees. Matching the location to the market you study keeps the data true to that market.

Why use local proxies?

Local proxies show you a site the way people in one city or country see it, which local SEO checks, regional price monitoring, ad checks and localized page tests all need. Without them, your results reflect wherever your server sits. ProxyField covers 21,000+ cities for this.

How can country proxies help with web scraping?

They return the country version of each page, so the prices, currencies and listings you collect match that market. Spreading requests over many residential IPs in the country also keeps the load on any single IP low. Setups by target are on proxies for web scraping.

Show 4 more questionsShow fewer questions

What is ASN targeting for proxies?

ASN targeting, which ProxyField does not offer, picks exit IPs that belong to one network operator, identified by its autonomous system number. Our targeting is by country, region (state) and city. ZIP code targeting is not offered either.

Why do I need ZIP-level proxies for price monitoring?

Some retailers and grocery sites set prices, stock and delivery fees by ZIP code, so an IP in the right city can still show a different offer from the next district. ProxyField targets down to the city, not the ZIP code. Where a site lets you enter a delivery ZIP code, set it on the site within a sticky session; more on proxies for price monitoring.

Can I target a city with a backconnect proxy?

Yes. A backconnect proxy is one gateway address that hands your requests to IPs in its pool, and ProxyField's gateway works that way. You connect to gate.proxyfield.io:7000, and the city in your username decides where the exit IP is.

Can I combine city targeting with a sticky session?

Yes: a sticky session holds one IP for 30 seconds to 36 hours, and city targeting decides where that IP is. Both go in one username: <login>-country-us-city-new_york-session-he9f2qga-ttl-600 holds one New York IP, though the IP is not guaranteed if the exit node drops. If you need one fixed IP in one place for weeks, dedicated ISP proxies run for 30-day terms.

Easy Trial: 1 GB for $2.95.

Try for the price of 1 GB, no subscription, traffic never expires.