Language

Python httpx (async) proxy setup

When you need concurrency — hundreds of requests, or an AI agent firing tool calls in parallel — httpx routes async traffic through the gateway with one proxy argument. Each request still exits from its own residential IP.

Get 1 GB of residential data — freeon your first $10+ top-upClaim it

Connection details

proxmint · gateway
Host : Port (HTTP)gw.proxmint.com:823
Host : Port (SOCKS5)gw.proxmint.com:824
UsernamePROXY_USER
PasswordPROXY_PASS

Swap PROXY_USER / PROXY_PASS for the credentials on your dashboard. New here? Create an account to generate a key.

Python (httpx / async) proxy example

python
import asyncio
import httpx

PROXY = "http://PROXY_USER:PROXY_PASS@gw.proxmint.com:823"

async def fetch(client, url):
    r = await client.get(url, timeout=30)
    return r.text

async def main():
    async with httpx.AsyncClient(proxy=PROXY) as client:
        pages = await asyncio.gather(*(fetch(client, "https://example.com") for _ in range(20)))
        print(len(pages), "pages fetched, each via a residential IP")

asyncio.run(main())

Steer the exit IP from the username

append to your username
CountryPROXY_USER__cr.us
Country + cityPROXY_USER__cr.us;city.newyork
Sticky IP (30 min)PROXY_USER__sessid.abc123;sessttl.30

Tips & gotchas

  • httpx 0.26+ uses proxy= (singular). On older versions use proxies=.
  • For a stable IP per worker, give each its own sticky session id in the username.

Python (httpx / async), answered

Is a residential proxy fast enough for async scraping?

Yes — concurrency hides per-request latency. Fire many requests at once with asyncio.gather and the gateway spreads them across residential exits. Cap concurrency to be polite to the target.

Can I use this for an AI agent's web tools?

Yes. Any agent that fetches URLs with httpx or requests can share this client, so the model's browsing traffic exits from a residential IP instead of a datacenter range that gets blocked.

Ready to route Python (httpx / async) through residential IPs?

Create an account, paste the code above, and we'll add your first 1 GB of residential free on your first top-up. Pay by the GB after that — no subscription.