yahoo_league
Return league metadata (name, team count, scoring type, current week, week range) using a league key to determine week-specific data.
Instructions
League metadata: name, size, scoring type, current week, and the season's week range.
Returns: {fantasy_content:{league:[{league_key, league_id, name, url, num_teams, scoring_type:'head'|'point'|'roto', league_type, current_week, start_week, end_week, start_date, end_date, is_finished}]}} — SHAPE FROM VENDOR DOCS. current_week drives every week-scoped call below.
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: One league {"leagueKey": "449.l.12345"}
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 |
| leagueKey | Yes | League key, e.g. '449.l.12345' (from yahoo_my_leagues). Required — part of the URL path. |