yahoo_team_roster
Retrieves a team's weekly roster, showing started and benched players in each slot, and indicates if the lineup is editable.
Instructions
A team's roster for a week — who is started, benched, and in which slot. The read that precedes every lineup write.
Returns: {fantasy_content:{team:[[{team_key}, …], {roster:{'0':{players:{'0':{player:[[{player_key}, {name}, {eligible_positions:[{position}]}, {status}], {selected_position:[{coverage_type:'week'}, {position:'QB'|'BN'|'IR'}]}]}, count}}, coverage_type, week, is_editable}}]}} — SHAPE FROM VENDOR DOCS. selected_position.position is the CURRENT slot and eligible_positions the legal ones; is_editable false means the week is locked and a write will fail.
NOTE: this shape is from the vendor's documentation and has NOT been verified against a live response (we hold no key for this provider). Treat it as approximate — inspect the actual payload before relying on a field name.
Example: This week's roster {"teamKey": "449.l.12345.t.3", "week": 1}
Auth: needs your own key in YAHOO_CLIENT_ID or YAHOO_CLIENT_SECRET or YAHOO_REFRESH_TOKEN.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| week | Yes | Week number. Past weeks are historical; the current week is what a lineup write changes. Required — part of the URL path. | |
| format | No | Leave as json. | json |
| teamKey | Yes | Team key. Required — part of the URL path. |