SpeedProxies Documentation
  • 📖Overview
  • Proxies
    • Integration Guides
      • FoxyProxy
      • iOS / iPhone
    • Residential Proxies
      • Important
        • Authentication
        • Response Codes
        • Restricted Targets
      • Location Settings
      • Other Settings
    • Datacenter Proxies
      • Authentication
    • Static ISP Proxies
      • Authentication
    • Mobile Proxies
      • Authentication
  • Tools
    • Adblocking DNS
    • Proxy Formatter
    • Proxy Tester
  • Extras
    • Public API
    • Reseller API
Powered by GitBook
On this page
  1. Proxies
  2. Residential Proxies

Location Settings

PreviousRestricted TargetsNextOther Settings

Last updated 1 year ago

If you want your proxies to be from a specific location, you will have to either add the a country or region flag so that we can process the request. The value of the country/region paratemere is case insensitive but it follows the 2 letter country code using the format.

Full Region List:

Full Country List:

Here are a few examples of using a country or region parameters:

country-US

region-EU


Code Example

curl -x budget.speedproxies.net:11000 -U "USERNAME:PASSWORD_country-us" https://whatsmyip.speedshare.workers.dev/
package main

import (
	"fmt"
	"io/ioutil"
	"net/http"
	"net/url"
)

func main() {
	proxyURL, _ := url.Parse("http://USERNAME:PASSWORD_country-us@budget.speedproxies.net:11000")
	proxyClient := &http.Client{
		Transport: &http.Transport{
			DialContext: (&net.Dialer{
				KeepAlive: time.Duration(-1),
			}).DialContext,
			DisableKeepAlives: true,
			Proxy:             http.ProxyURL(proxyURL),
		},
	}

	resp, err := proxyClient.Get("https://whatsmyip.speedshare.workers.dev/")
	if err != nil {
		fmt.Println("Error:", err)
		return
	}
	
	defer resp.Body.Close()

	if body, err := io.ReadAll(resp.Body); err == nil {
		fmt.Println(string(body))
	} else {
		fmt.Println("Error:", err)
	}
}
import urllib.request
import random
username = 'USERNAME'
password = 'PASSWORD_country-us'
entry = ('http://customer-%s:%s@budget.speedproxies.net:11000' %
    (username, password))
query = urllib.request.ProxyHandler({
    'http': entry,
    'https': entry,
})
execute = urllib.request.build_opener(query)
print(execute.open('https://whatsmyip.speedshare.workers.dev/').read())
ISO 3166 Alpha 2
https://speedproxies.net/docs/regions.json
https://speedproxies.net/docs/countries.json