Overview
The season averages endpoint fetches cumulative season statistics for all teams in your Yahoo Fantasy Basketball league. This includes category totals and averages across all weeks of the season.Authentication
Requires an active user session with a selected league.Request
This endpoint does not accept any query parameters. It automatically uses the league selected in the user’s session.Response
The root object containing all season statistics data from Yahoo Fantasy API
Error Responses
Error message describing what went wrong
Possible Errors
- 400 Bad Request - No league selected in session
Example Request
Implementation Details
This endpoint is implemented inmain.py:482-484 and performs the following:
- Validates that a league is selected in the user’s session
- Calls the Yahoo Fantasy API:
fantasy/v2/league/{league_key}/teams;out=stats;type=season - Returns the complete Yahoo API response containing season statistics for all teams
Use Cases
- Display league standings based on category performance
- Compare team performance across statistical categories
- Calculate league-wide averages and trends
- Build team comparison tools and visualizations
Related Endpoints
- Scoreboard - Get weekly matchup data
- League Settings - View league configuration including scoring categories