Once you have your proxy credentials from the dashboard, use any of these examples to make your first request.
Your proxies follow this format:
host:port:username:password
For example: 192.168.1.1:3128:myuser:mypass
Code examples
import requests
proxies = {
"http": "http://myuser:mypass@192.168.1.1:3128",
"https": "http://myuser:mypass@192.168.1.1:3128"
}
response = requests.get("https://httpbin.org/ip", proxies=proxies)
print(response.json())
# {"origin": "192.168.1.1"}
const axios = require('axios');
const HttpsProxyAgent = require('https-proxy-agent');
const agent = new HttpsProxyAgent('http://myuser:mypass@192.168.1.1:3128');
axios.get('https://httpbin.org/ip', { httpsAgent: agent })
.then(res => console.log(res.data))
.catch(err => console.error(err));
// {"origin": "192.168.1.1"}
curl -x http://myuser:mypass@192.168.1.1:3128 https://httpbin.org/ip
# {"origin": "192.168.1.1"}
package main
import (
"fmt"
"net/http"
"net/url"
"io"
)
func main() {
proxyURL, _ := url.Parse("http://myuser:mypass@192.168.1.1:3128")
client := &http.Client{
Transport: &http.Transport{Proxy: http.ProxyURL(proxyURL)},
}
resp, _ := client.Get("https://httpbin.org/ip")
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
Verifying your connection
After running any of the examples above, the response should show your proxy IP address, not your real IP. If you see your real IP, double-check:
- The proxy host and port are correct
- Your username and password are correct
- You’re using the right protocol (
http:// prefix)
Replace 192.168.1.1:3128:myuser:mypass with your actual proxy credentials from the dashboard.
Using SOCKS5
All Stat Proxies support SOCKS5. Simply change the protocol:
curl --socks5 myuser:mypass@192.168.1.1:3128 https://httpbin.org/ip
Next steps
Using with Puppeteer
Set up browser automation with proxies
Python Requests Library
Deep dive into Python proxy configuration
Scrapy Integration
Configure Scrapy middleware for proxies
Troubleshooting
Fix common connection issues