yahoo_team_stats
Retrieve a team's aggregated stats for a season, week, or other period. Use the team key to get detailed statistics and points.
Instructions
A team's aggregated stats for a season or a week.
Returns: {fantasy_content:{team:[[{team_key}, …], {team_stats:{coverage_type, season, stats:[{stat:{stat_id, value}}]}}, {team_points:{total}}]}} — SHAPE FROM VENDOR DOCS. stat_id resolves via yahoo_game_stat_categories.
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: Season totals {"teamKey": "449.l.12345.t.3", "type": "season"}
Auth: needs your own key in YAHOO_CLIENT_ID or YAHOO_CLIENT_SECRET or YAHOO_REFRESH_TOKEN.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Aggregation window. One of: season, week, date, lastweek, lastmonth. | season |
| format | No | Leave as json. | json |
| teamKey | Yes | Team key. Required — part of the URL path. |