espn-api
ESPN API
Decision gist · record as of 2026-08-14
Yes. Low install friction, permissive MIT license, active maintenance, no vulnerabilities, and a clear use case for anyone managing or analyzing ESPN fantasy leagues. The two-dependency footprint is minimal. Verify that Hockey and Baseball APIs meet your needs if you plan to use those sports.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction installation via pip with only two runtime dependencies (requests and urllib3).
- Active maintenance with recent commits and no known vulnerabilities.
License · maintenance · safety
permissive license (permissive) — MIT-licensed under permissive terms, allowing use in commercial and private projects with minimal restrictions.
last release 2026-03-23 (144 days) · last repo commit 2026-05-04 · 937 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 77,000 downloads/mo, #14,561 on PyPI
Alternatives
Verify before relying
pip install espn_api
from espn_api.football import League
league = League(league_id=222, year=2019)- Whether Hockey and Baseball APIs are production-ready or still in development
- Exact Python version requirements (requires_python unspecified in metadata)
What it is and what it does
espn-api is a Python wrapper around ESPN's Fantasy API that lets you programmatically fetch league, team, and player data from Fantasy Football and Basketball leagues. It handles authentication and API communication through requests and urllib3, abstracting away the complexity of ESPN's endpoints so you can work directly with league objects.
You instantiate a League object with a league ID and year, then query teams, players, and statistics. The package supports both public and private leagues. Hockey and Baseball APIs are noted as in development. It's actively maintained with recent commits and has no known security vulnerabilities.
Use it for
- Build a dashboard or bot that pulls live Fantasy Football standings and player stats from your league
- Analyze historical league data across multiple seasons for performance trends
- Automate Fantasy Basketball trade analysis or draft preparation by querying league rosters
- Export league data to a database or spreadsheet for further analysis
- Create alerts or notifications based on roster changes or scoring updates
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Low install friction, permissive MIT license, active maintenance, no vulnerabilities, and a clear use case for anyone managing or analyzing ESPN fantasy leagues. The two-dependency footprint is minimal. Verify that Hockey and Baseball APIs meet your needs if you plan to use those sports.
Install
espn-api on PyPI
Before you install
Low friction installation via pip with only two runtime dependencies (requests and urllib3). Active maintenance with recent commits and no known vulnerabilities.
License in practice
MIT-licensed under permissive terms, allowing use in commercial and private projects with minimal restrictions.
Quickstart
pip install espn_api
from espn_api.football import League
league = League(league_id=222, year=2019)
Verify before relying
- Whether Hockey and Baseball APIs are production-ready or still in development
- Exact Python version requirements (requires_python unspecified in metadata)
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesrequestsurllib3 |
| Maintenance | Actively maintained 144 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 77,000 / month, #14,561 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: espn_api-0.46.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “espn fantasy football api”
- espn-apiExtracts league, team, and player data from ESPN's Fantasy API for…
- nfl-data-pyImports NFL play-by-play, weekly, seasonal, roster, draft, combine,…
- nflreadpyDownloads and caches NFL data from nflverse repositories into Polars…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also nflreadpy · MLB-StatsAPI · nfl-data-py · nba_api · rlbot · statsbombpy · google-play-scraper · newspaper4k · walkscore-api · pybaseball