Connection Format
DocsConnection Format

Connection Format

Proxy host, ports, protocols, and all supported credential string formats.

Host & Ports

All proxy connections go through a single host. There are no regional gateway variants.

PortProtocolSession typeUse for
823HTTP / HTTPSRotatingWeb scraping, REST APIs, browser automation
824SOCKS5RotatingTCP-level proxying, SSH tunnels, SOCKS-native tools
10000–20000HTTPSticky (port-based)Sessions that require a persistent IP per connection slot

Host: proxy.raxyproxy.comuse this in every connection. Do not use IP addresses directly; they can change without notice.

Credential Formats

Proxy credentials consist of four parts. You can express them in different orders depending on what your tool expects.

FormatExample
host:port:user:passproxy.raxyproxy.com:823:USERNAME:PASSWORD
user:pass@host:portUSERNAME:PASSWORD@proxy.raxyproxy.com:823
http://user:pass@host:porthttp://USERNAME:PASSWORD@proxy.raxyproxy.com:823
socks5://user:pass@host:portsocks5://USERNAME:PASSWORD@proxy.raxyproxy.com:824

Protocols

HTTP/HTTPS (port 823)

Use HTTP tunnelling (CONNECT) for HTTPS targets — your client sends a CONNECT request and all subsequent traffic is encrypted end-to-end. Port 823 handles both HTTP and HTTPS.

cURL — HTTPS target through HTTP proxy
curl -x http://USERNAME:PASSWORD@proxy.raxyproxy.com:823 \
     https://httpbin.org/ip

SOCKS5 (port 824)

SOCKS5 operates at the TCP layer and proxies any protocol, not just HTTP. Use it for tools that explicitly support SOCKS5, for SSH tunnelling, or when you need to proxy non-HTTP traffic.

cURL — SOCKS5
curl --socks5-hostname proxy.raxyproxy.com:824 \
     -U USERNAME:PASSWORD \
     https://httpbin.org/ip

Which to use?

Use HTTP (port 823) for everything web-related. Use SOCKS5 (port 824) only when your tool natively supports it or when you need TCP-level proxying.

URL Formats by Language

Different HTTP libraries expect proxy URLs in slightly different forms.

Python (requests)
import requests

proxies = {
    "http":  "http://USERNAME:PASSWORD@proxy.raxyproxy.com:823",
    "https": "http://USERNAME:PASSWORD@proxy.raxyproxy.com:823",
}
r = requests.get("https://httpbin.org/ip", proxies=proxies)
Node.js
import { HttpsProxyAgent } from 'https-proxy-agent';
const agent = new HttpsProxyAgent('http://USERNAME:PASSWORD@proxy.raxyproxy.com:823');
PHP (cURL)
curl_setopt($ch, CURLOPT_PROXY,     'http://proxy.raxyproxy.com:823');
curl_setopt($ch, CURLOPT_PROXYUSERPWD, 'USERNAME:PASSWORD');
Go
proxyURL, _ := url.Parse("http://USERNAME:PASSWORD@proxy.raxyproxy.com:823")
transport   := &http.Transport{Proxy: http.ProxyURL(proxyURL)}
client      := &http.Client{Transport: transport}

API Output Formats

When you call GET /api/v1/packages/{id}/proxies, the format parameter controls how credentials are returned.

format valueOutput
user:pass@host:portUSERNAME:PASSWORD@proxy.raxyproxy.com:823 (default)
host:port:user:passproxy.raxyproxy.com:823:USERNAME:PASSWORD
user:pass:host:portUSERNAME:PASSWORD:proxy.raxyproxy.com:823
user:passUSERNAME:PASSWORD
host:portproxy.raxyproxy.com:823
http://user:pass@host:porthttp://USERNAME:PASSWORD@proxy.raxyproxy.com:823
socks5://user:pass@host:portsocks5://USERNAME:PASSWORD@proxy.raxyproxy.com:824