HX
Languages & HTTP Clients
Python (HTTPX) proxy integration
HTTPX is the modern async HTTP client for Python and supports proxies natively for both sync and async code. Point it at your Aethyn endpoint to run high-concurrency residential requests with asyncio.
Setup steps
- 1Install HTTPX: pip install httpx (add httpx[socks] for SOCKS5).
- 2Pass the Aethyn proxy URL to the proxy argument.
- 3Use AsyncClient for concurrent residential requests.
- 4Add targeting suffixes to the username as needed.
Code
Async HTTPX client
import asyncio, httpx
proxy = "http://aethyn-XXXXX-country-us:PASSWORD@proxy.aethyn.io:2099"
async def main():
async with httpx.AsyncClient(proxy=proxy, timeout=30) as client:
r = await client.get("https://httpbin.org/ip")
print(r.json())
asyncio.run(main())SOCKS5 with HTTPX
import httpx
proxy = "socks5://aethyn-XXXXX:PASSWORD@proxy.aethyn.io:1099"
with httpx.Client(proxy=proxy, timeout=30) as client:
r = client.get("https://httpbin.org/ip")
print(r.json())Replace aethyn-XXXXX and PASSWORD with your dashboard credentials. See the full targeting reference and protocol/port list.
Tips
- Use AsyncClient + asyncio.gather to fan out many residential requests.
- Install httpx[socks] before using the socks5:// scheme.
- Reuse a single client instance to pool connections.
Python (HTTPX) proxy FAQ
Does HTTPX support async proxies?
Yes. HTTPX's AsyncClient accepts the same proxy argument, so you can run high-concurrency residential requests under asyncio.
Docs, solutions & blog
Related solution guideEnd-to-end workflow that pairs with this integration.Python SDKproxy-builder-sdk on PyPI — requests/httpx helpers and validated targeting.Premium residential proxiesCost-efficient rotating residential pool from €2.00/GB for bulk scraping and monitoring.Elite residential proxiesCurated high-trust pool with city and ISP targeting for hard anti-bot targets.Quickstart docsCredentials, endpoints, and your first proxied request.Proxy glossaryPlain-English definitions for residential proxies, rotation, anti-bot, and scraping terms.