For the complete documentation index, see llms.txt. This page is also available as Markdown.

Country

To target a specific country's IP, add the country header to the username. The value should be a case-insensitive 2-letter country code in ISO 3166-1 alpha-2 format, such as DE for Germany, GB for the United Kingdom, and ES for Spain. Example below with more details. Examples of a few countries that you can target in the country parameter:

United States

country-us

United Kingdom

country-gb

Japan

country-jp

The full list of country abbreviations may be found here: Full Country List

Request example

curl --proxytunnel --proxy "https://customer-USERNAME-country-us:PASSWORD@hosting.goproxies.com" https://ip.goproxies.com
npm install axios https-proxy-agent
// country-example.js
const axios = require('axios');
const { HttpsProxyAgent } = require('https-proxy-agent');

const username = 'customer-USERNAME-country-gb'; // e.g. country-gb
const password = 'PASSWORD';
const proxyUrl = `http://${encodeURIComponent(username)}:${encodeURIComponent(password)}@hosting.goproxies.com:1080`;
const agent = new HttpsProxyAgent(proxyUrl);

(async () => {
  try {
    const res = await axios.get('https://ip.goproxies.com', { httpsAgent: agent, timeout: 10000 });
    console.log('status:', res.status);
    console.log('body:', res.data);
  } catch (err) {
    console.error('request error:', err.message);
  }
})();
# country_example.py
import requests
from urllib.parse import quote

username = "customer-USERNAME-country-jp"  # e.g. country-jp
password = "PASSWORD"
proxy = f"http://{quote(username)}:{quote(password)}@hosting.goproxies.com:1080"

proxies = {"http": proxy, "https": proxy}

resp = requests.get("https://ip.goproxies.com", proxies=proxies, timeout=10)
print(resp.status_code)
print(resp.text)

Last updated

Was this helpful?