Providers & Prices

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.

Checked

Licence BSD-3-Clause · 15,857 GitHub stars, counted 26 Nov 2026 · last release 0.28.1, 6 Dec 2024 · last code change 16 Nov 2026 · 14 alternatives in HTTP clients and TLS · Guide: Python web scraping

Visit python-httpx.org ↗Code on GitHub ↗Alternatives ↓

What it is

ProductCategoryPriceRating
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 15Freeopen source66 5 facts

5 facts, each linked to its page. Category: tools we compare. Rating: our formula.

Data: JSON · CC BY 4.0

Facts

python-httpx.org · github.com/encode/httpx

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 licenceBSD-3-Clause
Code 2
Written inPython
Latest release0.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

6 claims

Quality 1
Main claimSource
HTTPX reports 100% test coverage.“100% test coverage.”python-httpx.orgChecked 16 Nov 2026
Features 5
Main claimSource
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

0 claims about 0 companies

No claims by HTTPX about others yet.

What others say about HTTPX

32 claims by 9 companies

Speed 2 · Features 23 · Their own tests 4 · Support 1 · Other 2

Who: Proxy-Cheap 7 · Bright Data 5 · Scrapfly 5 · Decodo 4 · IPRoyal 3 · Oxylabs 3 · Rayobyte 2 · ScrapingBee 2 · SerpApi 1

Speed 2
WhoMain claimSource
OxylabsHTTPX performs better than Requests in most cases, according to the page.“Comparing HTTPX vs Requests performance, HTTPX shows better results in most cases.”oxylabs.ioChecked 16 Nov 2026
ScrapingBeeHTTPX 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.”scrapingbee.comChecked 16 Nov 2026 · Published 18 Sept 2026
Features 6
WhoMain claimSource
proxy-cheap.com/blog/httpx-vs-requestsChecked 16 Nov 2026 · Published 2 Mar 2026 · 4 claims
Proxy-CheapRequests is synchronous-only, while HTTPX adds async, HTTP/2, and streaming support.“Requests is sync-only; HTTPX adds async, HTTP/2, and streaming.”
Proxy-CheapHTTPX does not follow redirects by default, while Requests follows redirects automatically.“One difference to remember: Requests follows redirects automatically, while HTTPX does not.”
Proxy-CheapHTTPX 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”
Proxy-CheapHTTPX exposes a running num_bytes_downloaded counter on streaming responses.“HTTPX exposes a running num_bytes_downloaded counter on the response”
brightdata.com/faqs/python-requests/requests-library-alternativesChecked 16 Nov 2026 · Published 9 Jul 2024 · 2 claims
Bright Datahttpx 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.”
Bright Datahttpx'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.”

All 32 rows (24 more) →

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.

Sorted by GitHub stars (counted 26 Nov 2026): that shows popularity, not quality. Tools without stars come last, A–Z.

ToolPriceHow it differs
Requests: The classic simple HTTP library for Python.FreeThey differ on 2 of 4 points we have facts for on both. Also different: licence, latest release.
curl_cffi: Python HTTP client on curl-impersonate that can copy a browser's TLS, JA3 and HTTP/2 fingerprints.FreeThey differ on 2 of 3 points we have facts for on both. Also different: licence, latest release.
hrequests: Python scraping library that mimics browser requests and can switch to a headless browser.FreeThey differ on 2 of 3 points we have facts for on both. Also different: licence, latest release.

Sources

  1. python-httpx.org
  2. github.com/encode/httpx

Checked: facts 16 Nov 2026, spec 26 Nov 2026.