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.
Connection details
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
Steer the exit IP from the username
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.