Skip to main content
Geo-targeting allows you to control the geographic location of the exit IP address for your requests. This is essential for accessing geo-restricted content, collecting localized data, and ad verification. You can control geo-targeting by appending special parameters directly to your proxy’s username. Base Username: 2xt-customer-a1b2-proxy-my_scraper Username with Geo-Targeting: 2xt-customer-a1b2-proxy-my_scraper-country-de-state-stateofberlin-city-berlin

Targeting Logic

Our gateway processes geo-parameters with the following rules:
  • Specificity Wins: The most specific parameter is always used. For example, if you provide both -city and -country, the city will be prioritized.
  • Dependencies: Some parameters require others. For example, you cannot target a city without specifying a country.
  • Mutual Exclusivity: You can either target by geography (country, state, city, zip) OR by network (asn, isp). You cannot use both in the same request.
  • Operating System Combines With Everything: The os parameter works alongside both groups. Add it to a geographic or a network username, with or without session parameters.
  • Sticky Sessions Freeze Targeting: If your username contains a -session parameter, the targeting is bound to that session ID at its first request. Changing the targeting while reusing the same session ID has no effect until the session expires - generate a new session ID instead. See Session Control Parameters.

Geographic Targeting Parameters

These parameters control the physical location of the proxy.

Country (-country)

This is the most common targeting parameter. It allows you to select an IP from a specific country.
  • Format: -country-[code]
  • Value: A 2-letter ISO 3166-1 alpha-2 country code (e.g., us, de, gb).
  • Dependencies: None.
  • Example Username: ...-my_scraper-country-de
  • Result: Your request will be routed through a random IP in Germany.
  • View full list of supported countries

State / Region (-state)

Target a specific state or region within the selected country.
  • Format: -state-[code]
  • Value: The region’s extract_parameter from the region lookup (e.g., california for California, newyork for New York).
  • Dependencies: Requires -country to be present in the username.
  • Example Username: ...-my_scraper-country-us-state-california
  • Result: Your request will be routed through an IP in California.
  • View the full list of regions/states

City (-city)

Target a specific city.
  • Format: -city-[name]
  • Value: The city’s extract_parameter from the city lookup (e.g., newyork, sanfrancisco).
  • Dependencies: Use the country and region for the selected city.
  • Paris: ...-my_scraper-country-fr-state-iledefrance-city-paris
  • Springfield, Illinois: ...-my_scraper-country-us-state-illinois-city-springfield
  • Result: Your request will be routed through an IP in the specified city.
  • View the full list of cities

ZIP Code (-zip)

Target a specific ZIP code. Ideal for hyper-local data collection.
  • Format: -zip-[code]
  • Value: A ZIP code.
  • Dependencies: Requires -country. Use ZIP as the only location filter within that country.
  • Example Username: ...-my_scraper-country-us-zip-90210
  • Result: Your request will be routed through an IP in the Beverly Hills area.
  • View the full list of ZIP codes

Network Targeting Parameters

These parameters control the network origin of the proxy. They are mutually exclusive with all geographic parameters.

ASN (-asn)

Target a specific Internet Service Provider (ISP) by its Autonomous System Number (ASN).
  • Format: -asn-[number]
  • Value: The numerical ASN of the provider (e.g., 7922 for Comcast).
  • Dependencies: Mutually exclusive with all geographic parameters (-country, -state, -city, -zip).
  • Example Username: ...-my_scraper-asn-7922
  • Result: Your request will be routed through an IP belonging to the Comcast network.
  • Tip: You can find ASN numbers for major providers on sites like ipinfo.io.

ISP (-isp) - Mobile Proxies Only

Target a specific mobile network operator by its numeric ISP code. Available for mobile proxies only.
  • Format: -isp-[code]
  • Value: The numeric code of the mobile operator as provided in the ISP reference list (e.g., 76506 for T-Mobile USA).
  • Dependencies: Mutually exclusive with all geographic parameters (-country, -state, -city, -zip). Available on mobile proxies only.
  • Example Username: ...-my_scraper-isp-76506
  • Result: Your request will be routed through an IP on the T-Mobile USA network.
  • Note: The ISP code is a numeric identifier, not a name slug. Use the code from the ISP selector in your proxy dashboard.
  • View the full list of ISPs

Device Targeting Parameters

These parameters filter exit devices by the software they run. Unlike network parameters, they combine with geographic parameters.

Operating System (-os)

Route your requests through exit devices running a specific operating system. Without this parameter, devices with any operating system are used. The typical use is anti-detect browsers: match the exit device’s OS to the OS declared in the browser profile.
  • Format: -os-[value]
  • Value: Exactly one value per username. Lists of values are not supported.
    • Residential proxies: windows, macos, linux
    • Mobile proxies: android, ios
  • Dependencies: None. Combines with geographic parameters (-country, -state, -city, -zip), with -asn (residential) or -isp (mobile), and with session parameters (-session, -time, -const).
  • Example Username: ...-my_scraper-country-us-os-windows
  • Example (With Session): ...-my_scraper-country-us-os-windows-session-ab12cd-time-30
  • Result: Your request will be routed through a device in the United States running Windows.
  • Note on Narrow Filters: An operating system combined with a city, a ZIP code or an ISP can leave fewer exit devices to choose from, the same as any narrow filter. If such a combination does not connect reliably, widen the location or remove -os.