Daily SOCKS5 proxies from $0.80. SMS numbers from $0.10. Create free account

Connect to a proxy from Python

Send requests through an Authilo proxy with the requests library, and check the IP you exit from.

3 min read

You need the host, port, username and password of a proxy list. Create one in your dashboard and copy the details.

Send one request

import requests

proxy = "http://USER:PASS@ai.authilo.com:10000"
r = requests.get("https://api.ipify.org?format=json",
                 proxies={"http": proxy, "https": proxy}, timeout=30)
print(r.json())

The printed address is the IP the website sees. If it is not your own, the proxy is working.

Use SOCKS5 instead

Install the SOCKS extra (pip install "requests[socks]") and switch the scheme. Use socks5h so that DNS lookups also go through the proxy.

proxy = "socks5h://USER:PASS@ai.authilo.com:10000"

If it fails

  • A timeout usually means the host or port is wrong.
  • A 407 response means the username or password is wrong.
  • Check your remaining data or the list expiry in the dashboard.

Start today.

Create an account, add funds and get your first connection in minutes.

Chat with support on Telegram