espnfantasy_rosters
Retrieve fantasy team rosters for ESPN leagues, showing each manager's lineup slots, acquisition type, and player stats for any season, league, or scoring period.
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.
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. |