Back to Knowledge Base
Guides

How to Use Proxies in Python

16 Mar 2026 · 915 views
Using Inside Proxy in Python is straightforward with the requests library.

BASIC USAGE WITH REQUESTS

import requests

proxy_url = "http://USERNAME:PASSWORD@proxy.insideproxy.net:8080"

proxies = {
"http": proxy_url,
"https": proxy_url,
}

response = requests.get("https://httpbin.org/ip", proxies=proxies)
print(response.json())

ROTATING SESSIONS
Each request with the same credentials uses the same IP (sticky session).
To rotate IPs on every request, contact support for rotating endpoint details.

SOCKS5 SUPPORT
proxies = {
"http": "socks5://USERNAME:PASSWORD@proxy.insideproxy.net:8080",
"https": "socks5://USERNAME:PASSWORD@proxy.insideproxy.net:8080",
}

Replace USERNAME and PASSWORD with your actual credentials from Dashboard → My Plans.