yahoo_my_leagues
Fetch the authenticated user's Yahoo Fantasy leagues for specified game keys, providing the league_key needed for subsequent league-specific operations.
Instructions
The authenticated user's leagues for one or more games — where you get league_key.
Returns: {fantasy_content:{users:{'0':{user:[{guid}, {games:{'0':{game:[{game_key}, {leagues:{'0':{league:[{league_key:'449.l.12345', league_id, name, num_teams, scoring_type, current_week, start_week, end_week, is_finished}]}, count}}]}}}}]}}} — SHAPE FROM VENDOR DOCS. league_key is what every league tool below needs.
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: NFL leagues {"gameKeys": "nfl"}
Auth: needs your own key in YAHOO_CLIENT_ID or YAHOO_CLIENT_SECRET or YAHOO_REFRESH_TOKEN.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Leave as json. | json |
| gameKeys | Yes | Comma-separated game keys, e.g. 'nfl' or 'nfl,nba'. Bare codes mean the CURRENT season. Required — part of the URL path. |