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#
Parameter | Description | Example |
---|
city | City 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:PASSWORDThis 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.ioYour 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