Get Projections
get_projectionsGet ESPN projections for your fantasy roster each NFL week, including a suggested optimal lineup and start/sit changes for lineup advice.
Instructions
ESPN projections for the user's roster for one NFL week, with a suggested optimal lineup.
Use this for "set my lineup", "start X or Y?", or "who's on bye?". week defaults to current_week (the league's current NFL week, which ESPN keeps until the week's games finish); to plan ahead once games have kicked off, call again with week = current_week + 1. Projections are null until ESPN publishes them.
players: every rostered player with slot (current lineup slot), opponent ("@KC" away, "vs KC" home, "BYE"), kickoff (UTC), and projected (ESPN's points projection for that week; null if ESPN has none). suggested_lineup fills this league's starting slots (including FLEX/superflex slots and their eligibility rules) to maximize projected points; players on IR or marked OUT/suspended are never started. changes lists who to start (with their suggested slot) and who to sit (with their current slot) to get there, plus the projected gain; a continuing starter that merely moves slots appears only in suggested_lineup. Present changes to the user rather than the whole table when they ask for lineup advice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| week | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||