Language

Go proxy setup

Go's standard library does everything — set Proxy on an http.Transport and every request through that client exits from a residential IP. No packages to install, ideal for fast concurrent scrapers.

Get 1 GB of residential data — freeon your first $10+ top-upClaim it

Connection details

proxmint · gateway
Host : Port (HTTP)gw.proxmint.com:823
Host : Port (SOCKS5)gw.proxmint.com:824
UsernamePROXY_USER
PasswordPROXY_PASS

Swap PROXY_USER / PROXY_PASS for the credentials on your dashboard. New here? Create an account to generate a key.

Go proxy example

go
package main

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

func main() {
    // Add __cr.us to the user for country targeting
    proxyURL, _ := url.Parse("http://PROXY_USER:PROXY_PASS@gw.proxmint.com:823")
    client := &http.Client{
        Transport: &http.Transport{Proxy: http.ProxyURL(proxyURL)},
    }

    resp, err := client.Get("https://api.ipify.org")
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    body, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body)) // a fresh residential IP
}

Steer the exit IP from the username

append to your username
CountryPROXY_USER__cr.us
Country + cityPROXY_USER__cr.us;city.newyork
Sticky IP (30 min)PROXY_USER__sessid.abc123;sessttl.30

Tips & gotchas

  • Reuse one http.Client across goroutines — the Transport is safe for concurrent use.
  • Set client.Timeout so a slow residential exit cannot hang a worker forever.

Go, answered

Do I need a package for proxies in Go?

No. net/http and net/url in the standard library are enough — http.ProxyURL on the Transport handles authenticated HTTP/HTTPS proxies natively.

How do I rotate or pin IPs in Go?

Rotation is automatic per request on the rotating port. To pin an IP, add a sticky session id to the username in the proxy URL (PROXY_USER__sessid.abc123;sessttl.30).

Ready to route Go through residential IPs?

Create an account, paste the code above, and we'll add your first 1 GB of residential free on your first top-up. Pay by the GB after that — no subscription.