Docs menu
Docs Reference
Python package
pip install proxmint: the free proxy list in Python, and proxy rotation for aiohttp and httpx.
Last verified: October 2026What it does
The proxmint package reads the free proxy list, where every proxy was proven alive by a real request through it in the last 30 minutes. It also rotates requests through a pool of proxies: a client middleware for aiohttp and a transport for httpx. A proxy that fails is dropped and the request is retried through the next one. The pool is the free list unless you pass proxies of your own.
Reading the list needs only the standard library. The source is on GitHub and the package on PyPI (download counts on pypistats).
Read the free proxy list
| Filter | Values |
|---|---|
protocol | http, https, socks4 or socks5 |
country | A two-letter code such as de |
anonymity | elite, anonymous or transparent |
sort | score (the default), latency, uptime or checked |
limit | Rows wanted, 20 by default. Paged past the API's 200-row cap |
An https proxy is an HTTP proxy that can also tunnel TLS, so its URL starts with http://: an https:// URL would make your client attempt TLS to the proxy itself. proxy_url(row) builds the URL for one row. Failures raise ProxmintError with the HTTP status. The API allows 60 requests a minute per IP.
Rotate proxies with aiohttp
Each request goes out through the next proxy in the pool. A proxy that refuses the connection, times out, drops it or answers 407 is removed, and the request is retried through another, up to tries=3 proxies. Each proxy gets timeout=10 seconds to connect and send back headers. A session-wide ClientTimeout(total=...) covers all the tries together, so keep it loose.
Without proxies of your own, the pool is the 50 best http proxies on the free list, fetched again whenever it runs dry. The filters above narrow it, for example RotatingProxy(country="us", sort="latency"). It needs aiohttp 3.12 or later, which added client middleware, and aiohttp speaks HTTP proxies only.
Rotate proxies with httpx
Same rotation, same arguments, sync and async. Timeouts come from the client, so each proxy gets httpx's usual five seconds to connect. For SOCKS, install httpx[socks] and pass protocol="socks5".
Your own proxies, or ours
To rotate through proxies you already have, pass their URLs, with credentials if they need them:
Proxmint's own residential, datacenter and mobile proxies don't need a pool: the gateway hands out a new IP on every request, or keeps one for a sticky session. Point the client straight at it. The httpx and requests guides cover targeting and sessions.
Good to know
- Free proxies are run by strangers. They are slow and short-lived, and some log or tamper with traffic. Use them for testing and research, and never send logged-in or sensitive traffic through one.
- Retries send the request body again, so a streamed upload can't be retried.
- The same list is on the command line as
npx proxmint, and as plain text and JSON files on GitHub.