ByteZero Support
  1. Locations
ByteZero Support
  • Getting started
    • Introduction our Proxies
    • How to Choose the Right Proxy Plan
    • Setting up your first proxy
    • Datacenter Proxies
  • Proxies
    • Why choose IPv6 Proxies?
    • Restricted usage
    • Residential Proxies
      • Getting Started
      • Residential Proxy Parameters
      • Automatic fallback
    • ISP Proxies
      • Getting Started
      • Proxy Rotation
      • Location Settings
      • Protocols
      • Response codes
    • Mobile Proxies
      • Getting Started
      • Locations
        • Location Settings
        • Country
        • City
    • IPv6 Datacenter
      • Getting Started
    • IPv6 Residential
      • Getting Started
    • Datacenter Proxies
      • Getting Started
  • Billing
    • Topping up Balance
  1. Locations

City

ByteZero mobile proxies let you refine your proxy location to a specific city. By appending the city parameter to your credentials, you ensure that your traffic originates from a mobile IP located in the desired city. For optimal accuracy, it is recommended to use city targeting in combination with country targeting. All geo-location details are retrieved from ipinfo.io.

How It Works#

To target a city, include the city parameter in your credentials. Provide the city name in English. For cities with multiple words, replace spaces with underscores.

Query Parameter#

ParameterDescriptionExample
cityCity name in English. For multi-word cities, replace spaces with underscores. It is best used together with the cc parameter for improved accuracy.city-new_york, city-los_angeles

Example Credential Structure#

For example, if you wish to target New York in the United States, your credentials should be formatted as follows: user-USERNAME-cc-US-city-new_york:PASSWORD
This instructs ByteZero to select a mobile proxy IP from New York when processing your requests.

Making a Request#

When using city targeting, direct your traffic through the ByteZero mobile proxy endpoint: mobile-bridge.bytezero.io
Your request will then retrieve geo-location data from ipinfo.io.

cURL Example#

Python Example#

import requests

proxy = {
    'http': 'http://user-USERNAME-cc-US-city-new_york:PASSWORD@mobile-bridge.bytezero.io:7777',
    'https': 'http://user-USERNAME-cc-US-city-new_york:PASSWORD@mobile-bridge.bytezero.io:7777'
}

response = requests.get('https://ipinfo.io/', proxies=proxy)
print(response.text)
By combining the city parameter with the cc parameter, you can precisely control the geographic origin of your ByteZero mobile proxy requests.
Modified at 2025-02-21 14:10:15
Previous
Country
Next
Getting Started
Built with