espnfantasy_league
Fetch ESPN fantasy league data with any combination of views in one call. Retrieve teams, rosters, settings, schedule, and more without an API key.
Instructions
Raw league read with ANY combination of views — the escape hatch when no dedicated tool below fits, or to fetch several views in one round trip.
Returns: {id, seasonId, scoringPeriodId, settings, status, teams:[…], members:[…]} plus whatever the requested views add (schedule, draftDetail, players, …)
Example: Teams + rosters + settings in one call {"game": "ffl", "seasonId": 2018, "leagueId": 1234, "view": ["mTeam", "mRoster", "mSettings"]}
Auth: works without a key; ESPN_FANTASY_COOKIE unlocks more if set.
Also answers this: sleeper_league.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game | No | Fantasy game code. One of: ffl, flb, fba, fhl, wfba. | ffl |
| view | No | One or more views, sent as repeated params. Verified: mTeam, mRoster, mMatchup, mMatchupScore, mSettings, mStandings, mBoxscore, mScoreboard, mSchedule, mDraftDetail, mTransactions2, mPendingTransactions, mPositionalRatings, mLiveScoring, mNav, mStatus, kona_player_info, kona_playercard, allon. | |
| leagueId | Yes | Your league id — the `leagueId=` in the fantasy site URL. Required — part of the URL path. | |
| seasonId | Yes | Season year (>= 2018; use espnfantasy_league_history for older). Required — part of the URL path. | |
| fantasy_filter | No | Filter object; league-scoped views nest under an entity key, e.g. {"players":{"limit":50,"sortPercOwned":{"sortPriority":1,"sortAsc":false}}}. | |
| scoringPeriodId | No | Scoring period (NFL week / daily-sport day). Required by mBoxscore, mRoster-at-week, mTransactions2. |