What is HTTPX? Facts and alternatives
python-httpx.org
HTTPX (python-httpx.org) is a Python HTTP client with sync and async APIs and HTTP/2 support.
Visit python-httpx.org ↗Code on GitHub ↗Alternatives ↓
What it is
| Product | Category | Price | Rating |
|---|---|---|---|
| HTTPX: Python HTTP client with sync and async APIs and HTTP/2 support. Good for: Python developers fetching pages from sites without TLS checks. | HTTP clients and TLS 15 | Freeopen source | 66 5 facts |
5 facts, each linked to its page. Category: tools we compare. Rating: our formula.
Facts
Spec facts 5 · 10 not listed yet
| How you use it 1 | |
|---|---|
| Official command-line tool? | Yes |
| Where it runs 2 | |
| Can I host it myself? | YesOpen-source library you install with pip |
| Code licence | BSD-3-Clause |
| Code 2 | |
| Written in | Python |
| Latest release | 0.28.1, 2024-12-06 |
10 spec facts not listed on the company's pages yet. Seen one? Send us a source.
Who says what
What HTTPX says about itself
Quality 1
| Main claim | Source |
|---|---|
| HTTPX reports 100% test coverage.“100% test coverage.” | python-httpx.orgChecked 16 Nov 2026 |
Features 5
| Main claim | Source |
|---|---|
| python-httpx.orgChecked 16 Nov 2026 · 5 claims | |
| HTTPX offers synchronous and asynchronous APIs and supports both HTTP/1.1 and HTTP/2.“HTTPX is a fully featured HTTP client for Python 3, which provides sync and async APIs, and support for both HTTP/1.1 and HTTP/2.” | |
| HTTPX has a broadly requests-compatible API.“A broadly requests-compatible API.” | |
| HTTPX applies strict timeouts everywhere.“Strict timeouts everywhere.” | |
| HTTPX can send requests directly to WSGI or ASGI applications.“Ability to make requests directly to WSGI applications or ASGI applications.” | |
| HTTPX requires Python 3.9 or newer.“HTTPX requires Python 3.9+” | |
What HTTPX says about others
No claims by HTTPX about others yet.
What others say about HTTPX
Speed 2
| Who | Main claim | Source |
|---|---|---|
| HTTPX performs better than Requests in most cases, according to the page.“Comparing HTTPX vs Requests performance, HTTPX shows better results in most cases.” | ||
| HTTPX is typically slower in raw benchmarks but wins on ergonomics, with both sync and async modes and HTTP/2.“In raw benchmarks, HTTPX is typically slower, but it wins on ergonomics, offering both sync and async modes plus modern perks like HTTP/2.” |
Features 6
| Who | Main claim | Source |
|---|---|---|
| Requests is synchronous-only, while HTTPX adds async, HTTP/2, and streaming support.“Requests is sync-only; HTTPX adds async, HTTP/2, and streaming.” | ||
| HTTPX does not follow redirects by default, while Requests follows redirects automatically.“One difference to remember: Requests follows redirects automatically, while HTTPX does not.” | ||
| HTTPX 0.28 uses a single proxy= argument; the older proxies= dictionary was removed.“HTTPX 0.28 uses a single proxy argument. The older proxies= dictionary was removed” | ||
| HTTPX exposes a running num_bytes_downloaded counter on streaming responses.“HTTPX exposes a running num_bytes_downloaded counter on the response” | ||
| httpx offers both synchronous and asynchronous interfaces for different project needs.“The httpx library provides both synchronous and asynchronous interfaces, giving you the flexibility to choose the approach that best suits your project.” | ||
| httpx's API closely resembles requests, so switching between them is easy.“Its API is very similar to requests, making it easy to switch between the two.” | ||
These are the companies' own claims, each linked to its page. A company name opens both sides.
Alternatives
The closest tools from other companies, and how each differs on facts from their own pages. Not a ranking: the scrapenews rating lives in the compare tables.
| Tool | Price | How it differs |
|---|---|---|
| Free | They differ on 2 of 4 points we have facts for on both. Also different: licence, latest release. | |
| Free | They differ on 2 of 3 points we have facts for on both. Also different: licence, latest release. | |
| Free | They differ on 2 of 3 points we have facts for on both. Also different: licence, latest release. |