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
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 23
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.”
decodo.com/blog/httpx-vs-requests-vs-aiohttpChecked 16 Nov 2026 · Published 26 Aug 2026 · 2 claims
DecodoHTTPX offers sync and async clients with one API and supports HTTP/2.“HTTPX gives you both sync and async clients with the same API, plus HTTP/2 support.”
DecodoHTTPX defaults to a 5-second timeout per phase; Requests has no default timeout.“It defaults to a 5-second timeout applied independently to each phase (connect, read, write, pool), versus Requests, which has no default timeout.”
rayobyte.com/blog/httpx-vs-requestsChecked 16 Nov 2026 · Published 24 May 2023 · 2 claims
RayobyteHTTPX can issue both synchronous and asynchronous requests, giving it more flexibility than the Requests library.“You can issue synchronous and asynchronous requests, which offers more flexibility than the Requests library.”
RayobyteHTTPX supports the HTTP/2 protocol, which the page says is not available in Requests.“Support for HTTP/2 protocol, which is not available in Requests”
Bright DataHTTPX offers both sync and async APIs and optional HTTP/2, with 700 million monthly downloads.“HTTPX is a modern client with both sync and async APIs. It has over 15,000 GitHub stars and 700 million downloads a month.”brightdata.comChecked 16 Nov 2026 · Published 23 Jun 2024
Bright DataHTTPX is an asynchronous client designed for speed and ease of use.“HTTPX is a newer asynchronous client designed for both speed and ease of use.”brightdata.comChecked 16 Nov 2026 · Published 29 Dec 2024
DecodoHTTPX adds async support and HTTP/2, so multiple requests can share one connection to the same host.“HTTP/2 allows multiple requests to share a single connection simultaneously”decodo.comChecked 16 Nov 2026 · Published 26 Mar 2026
IPRoyalHTTPX supports both async and synchronous requests and includes HTTP/2 support.“HTTPX provides both async compatibility and HTTP/2 support.”iproyal.comChecked 16 Nov 2026 · Published 26 Jan 2026
IPRoyalHTTPX offers a requests-compatible API supporting both synchronous and asynchronous operations.“A modern client that offers a requests-compatible API with support for both synchronous and asynchronous operations.”iproyal.comChecked 16 Nov 2026 · Published 7 Aug 2026
OxylabsHTTPX offers synchronous and asynchronous APIs with full HTTP/2 support as a modern Requests alternative.“HTTPX is a next-generation HTTP client for Python, offering both synchronous and asynchronous APIs with full HTTP/2 support.”oxylabs.ioChecked 16 Nov 2026
OxylabsHTTPX works in both async and sync programs, while Requests is synchronous only.“HTTPX has both async and sync compatibility, which means you can use it in both asynchronous and synchronous programs.”oxylabs.ioChecked 16 Nov 2026
Proxy-CheapHTTPX supports sync and async requests, HTTP/2, streaming, and a Requests-like API, so migration is easy.“It supports both synchronous and asynchronous requests, adds HTTP/2, streams responses, and mirrors much of the Requests API, so migration is easy.”proxy-cheap.comChecked 16 Nov 2026 · Published 18 Aug 2026
Scrapflyhttpx offers HTTP/2 support and full asyncio compatibility for web scraping.“It offers vital HTTP2 support and is fully compatible with asyncio making it the best choice for web scraping.”scrapfly.ioChecked 16 Nov 2026 · Published 3 Aug 2023
ScrapflyHTTPX sends the HTTP requests while Beautiful Soup parses the returned HTML.“HTTPX takes care of sending the requests, while Beautiful Soup parses the HTML that comes back”scrapfly.ioChecked 16 Nov 2026 · Published 9 Nov 2026
ScrapflyHTTPX sent the same JA4 TLS fingerprint with and without HTTP/2 in the author's fingerprint test.“it had the same JA4 fingerprint with and without HTTP/2, t13d1712h1_ab0a1bf427ad_8e6e362c5eac”scrapfly.ioChecked 16 Nov 2026 · Published 1 Jun 2023
ScrapingBeeHTTPX is the only client in the comparison that supports HTTP/2.“HTTPX is the only Python HTTP client here that currently supports HTTP/2”scrapingbee.comChecked 16 Nov 2026 · Published 18 Sept 2026
SerpApiHTTPX works like Requests and adds async requests.“HTTPX looks and feels a lot like Requests, so there is almost nothing new to learn.”serpapi.comChecked 16 Nov 2026 · Published 27 Oct 2026
Their own tests 4
WhoMain claimSource
Bright DataHTTPX completed the same 1,000 requests in just over 7 seconds at 139.47 requests per second.“The total time was just over 7 seconds. This comes out to 139.47 requests per second.”brightdata.comChecked 16 Nov 2026 · Published 29 Dec 2024
DecodoAt 1K concurrent requests, HTTPX finishes in about 30-50 minutes, 3-5x slower than AIOHTTP.“At 1K concurrent requests, HTTPX would finish in roughly 30-50 minutes – still far faster than threads, but 3-5x slower than AIOHTTP at that level.”decodo.comChecked 16 Nov 2026 · Published 26 Aug 2026
Proxy-CheapHTTPX processes 50 synchronous GET requests in about 1.22 seconds.“HTTPX processes 50 synchronous GET requests in about 1.22 seconds.”proxy-cheap.comChecked 16 Nov 2026 · Published 2 Mar 2026
ScrapflyIn the page's timing test, Playwright loaded a page in 2.22s with 13 requests, versus 0.89s for HTTPX.“playwright: 2.22s, 17077 bytes, 13 requests”scrapfly.ioChecked 16 Nov 2026 · Published 9 Nov 2026
Support 1
WhoMain claimSource
ScrapflyHTTPX has not shipped a release in 2026; its last stable version went to PyPI in December 2024 with 78 pull requests open.“The last stable release, 0.28.1, went to PyPI on December 6, 2024, and the default branch took one commit in all of 2026.”scrapfly.ioChecked 16 Nov 2026 · Published 11 Aug 2026
Other 2
WhoMain claimSource
IPRoyalHTTPX has more dependencies than Requests because of its layered design.“HTTPX has more dependencies than Requests.”iproyal.comChecked 16 Nov 2026 · Published 26 Jan 2026
Proxy-CheapHTTPX holds more than 14,000 GitHub stars and is treated as the current default.“HTTPX holds more than 14,000 GitHub stars and is widely treated as the current default”proxy-cheap.comChecked 16 Nov 2026 · Published 18 Aug 2026

These are the companies' own claims, each linked to its page. A company name opens both sides. Every row is shown. Short view.

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.