Country, state and city

    Choose the country, state and city where the proxy exits. What each product accepts and how to change it in the panel or through the API.

    View as Markdown

    You choose where the proxy exits from. The location is saved on the proxy: after you change it, all connections follow the new rule, with no change to the username and password.

    What each product accepts

    ProductCountryStateCity
    Residential ProxyYesYesYes
    Mobile 4G/5G ProxyYesWhere mobile IPs existWhere mobile IPs exist
    Rotativa CPAYesNoNo

    RH7 covers more than 190 countries. If the location is left blank, the proxy exits through any country.

    On the Mobile 4G/5G Proxy, there are fewer options by state and city than on the Residential Proxy. For precise targeting with more options, use the Residential Proxy.

    Change it in the panel

    Open the proxy, choose the country, state and city, and save. The change applies to the next connections.

    Change it through the API

    Use PATCH /v1/proxies/{id} with only what you want to change:

    bash
    curl -X PATCH https://api.rh7proxys.com/v1/proxies/12345 \
      -H "Authorization: Bearer rh7k_your_key" \
      -H "Content-Type: application/json" \
      -d '{"country": "BR", "state": "sao paulo", "city": "campinas"}'

    Rules:

    • The country uses two letters: BR, US, PT.
    • The city requires the state.
    • Changing the country clears the state and city.

    State and city codes come from the routes in Countries, states and cities.

    Location with no IP right now

    If no IP is available in the chosen city, the API responds with NO_PROXIES_FOR_LOCATION and the old setting stays in effect. Try the whole state or another nearby city.

    Tip

    The narrower the location, the less variety of IPs. For accounts and ads, country or state is usually enough. Use city when the website really checks the city.