Requests
Elegant Python HTTP library for making web requests.
HTTP clients and networking PyPI Apache-2.0
Used in agent projects
675
5.3% of 12,697 public repos built with AI coding agents
Rank in http clients and networking
#2 of 29
by use in those projects
Downloads
309M
PyPI, last 7 days, requests
GitHub stars
54.6K
last push Sep 28, 2026
How Requests is used
Requests is a dependency in 675 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (5.3%), #2 of 29 in http clients and networking. The most used alternative there is Axios. Projects that use it most often also use python-dotenv (61.3%), solders (39.1%), Pydantic (38.8%). It is more common in projects set up for Roo Code (8.8%) than for OpenAI Codex (3.6%).
Often used with Requests
| python-dotenv | 61.3% of Requests projects · 9.4× more than average |
|---|---|
| solders | 39.1% of Requests projects · 11.7× more than average |
| Pydantic | 38.8% of Requests projects · 7.6× more than average |
| NumPy | 37.3% of Requests projects · 9.7× more than average |
| solana-py | 33.3% of Requests projects · 12.4× more than average |
| Uvicorn | 31.1% of Requests projects · 7.3× more than average |
| pandas | 30.5% of Requests projects · 10.1× more than average |
| websockets | 29.0% of Requests projects · 12.9× more than average |
By coding agent
| GitHub Copilot | 6.9% of projects set up for it |
|---|---|
| Claude Code | 5.6% of projects set up for it |
| Cursor | 6.0% of projects set up for it |
| Gemini CLI | 4.8% of projects set up for it |
| Devin Desktop | 6.6% of projects set up for it |
| OpenAI Codex | 3.6% of projects set up for it |
| OpenCode | 3.8% of projects set up for it |
| Roo Code | 8.8% of projects set up for it |
Share of public repos configured for each agent that list Requests as a dependency.
Install
| Package | pip install requests |
|---|---|
| Main stacks | Python (659), Next.js (12), React Native / Expo (2), Other (1) |
| Example projects | The-Swarm-Corporation/AutoHedge, Josh-XT/AGiXT, solana-developers/solana-cookbook, Kaggle/kaggle-environments, capture0x/AdStrike |
Alternatives to Requests
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Axios npm Promise-based HTTP client for browser and Node.js with interceptors. |
1,264 (10.0%) | 115M | 109K | MIT |
| aiohttp pypi Async HTTP client/server framework for Python with WebSocket support. |
295 (2.3%) | 117M | 16.6K | — |
| ws npm Simple, fast WebSocket client and server for Node.js with full RFC support. |
287 (2.3%) | 283M | 22.8K | MIT |
| websockets pypi WebSocket implementation for Python with RFC 6455 and 7692 compliance. |
286 (2.3%) | 109M | 5,732 | — |
| httpx pypi Modern Python HTTP client with async support, replacing the standard requests library. |
266 (2.1%) | 16M | 15.6K | BSD-3-Clause |
| node-fetch npm Bring the Fetch API to Node.js for making HTTP requests. |
219 (1.7%) | 207M | 8,852 | MIT |
| urllib3 pypi HTTP client with thread-safe connection pooling, file uploads and advanced features. |
193 (1.5%) | 338M | 4,071 | — |
| AnyIO pypi Async I/O framework supporting both asyncio and Trio with high-level networking abstractions. |
186 (1.5%) | 206M | 2,555 | — |