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

Country

ByteZero mobile proxies allow you to route your traffic through a mobile IP located in a specific country. By appending the cc parameter to your username, you can ensure that your requests originate from the desired country. All geo-location details are retrieved from ipinfo.io.

How It Works#

To target a country, include the cc parameter in your credentials. This parameter accepts a 2-letter ISO 3166-1 alpha-2 country code (case-insensitive). When you include this parameter, our system automatically selects a mobile IP address from that country for your connection.

Query Parameter#

ParameterDescriptionExample
ccA 2-letter country code in ISO 3166-1 alpha-2 format. Use this to specify the country from which you want your mobile IP to be sourced.cc-US, cc-DE, cc-GB

Example Credential Structure#

For example, if you wish to have your traffic routed from the United States, format your credentials as follows: user-USERNAME-cc-US:PASSWORD
This instructs ByteZero to select a mobile proxy IP from the United States when processing your requests.

Making a Request#

When making requests using country 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:PASSWORD@mobile-bridge.bytezero.io:7777',
    'https': 'http://user-USERNAME-cc-US:PASSWORD@mobile-bridge.bytezero.io:7777'
}

response = requests.get('https://ipinfo.io/', proxies=proxy)
print(response.text)
By correctly specifying the country parameter in your credentials, you can precisely control the geographic origin of your traffic with ByteZero mobile proxies while leveraging the detailed location data from ipinfo.io.
Modified at 2025-02-21 14:07:34
Previous
Location Settings
Next
City
Built with