espnfantasy_rosters
Retrieves fantasy league rosters for a given season and league, showing each manager's players, lineup slots, acquisition type, and player stats.
Instructions
Every fantasy team's roster — who each manager holds, their lineup slot, acquisition type and player stats. LARGE (hundreds of KB).
Returns: {teams:[{id, roster:{entries:[{playerId, lineupSlotId, acquisitionType, playerPoolEntry:{player:{fullName, defaultPositionId, eligibleSlots, injuryStatus, stats:[…]}}}]}}]}
Example: All rosters, week 3 {"game": "ffl", "seasonId": 2018, "leagueId": 1234, "scoringPeriodId": 3}
Auth: works without a key; ESPN_FANTASY_COOKIE unlocks more if set.
Also answers this: sleeper_league_rosters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game | No | Fantasy game code. One of: ffl, flb, fba, fhl, wfba. | ffl |
| view | No | Leave as-is. | |
| leagueId | Yes | League id. Required — part of the URL path. | |
| seasonId | Yes | Season year (>= 2018). Required — part of the URL path. | |
| scoringPeriodId | No | Roster as it stood in this scoring period (week). Omit for the current one. |