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

State

To receive proxy IP address from a specific state, you would need to use the state header together with the 2-letter ISO 3166-1 alpha-2 country code. For example state-us_illinois , state-us_ohio , state-us_california .

Below is a few examples with the state targeting in the username.

State
State parameter

Alabama

state-us_alabama

Colorado

state-us_colorado

Florida

state-us_florida

Request example

curl --proxytunnel --proxy "https://customer-USERNAME-state-us_idaho:PASSWORD@proxy.goproxies.com:1080" https://ip.goproxies.com
const axios = require('axios');
const { HttpsProxyAgent } = require('https-proxy-agent');

const username = 'customer-USERNAME-state-us_florida'; // example
const password = 'PASSWORD';
const proxyAuth = encodeURIComponent(username) + ':' + encodeURIComponent(password);
const proxyUrl = `http://${proxyAuth}@proxy.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(res.status, res.data);
  } catch (err) {
    console.error('request error:', err.message);
  }
})();
import requests
from urllib.parse import quote

username = "customer-USERNAME-state-us_colorado"
password = "PASSWORD"
proxy = f"http://{quote(username)}:{quote(password)}@proxy.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)

Note: State parameter will have priority against Country, so if used together those headers will be ignored.

Last updated

Was this helpful?