Overview
The scoreboard endpoint fetches matchup data for a specific week in your Yahoo Fantasy Basketball league. This includes head-to-head matchup information, scores, and team performance for the requested week.Authentication
Requires an active user session with a selected league.Request
The week number for which to retrieve scoreboard data. Must be a valid week number for the current fantasy season.
Response
The root object containing all scoreboard data from Yahoo Fantasy API
Error Responses
Error message describing what went wrong
Possible Errors
-
400 Bad Request - Missing or invalid week parameter
-
400 Bad Request - No league selected in session
Example Request
Implementation Details
This endpoint is implemented inmain.py:475-479 and performs the following:
- Validates that a league is selected in the user’s session
- Validates that the
weekparameter is provided and is an integer - Calls the Yahoo Fantasy API:
fantasy/v2/league/{league_key}/scoreboard;week={week} - Returns the complete Yahoo API response as JSON
Related Endpoints
- Season Averages - Get season-long team statistics
- Bulk Matchups - Retrieve matchups for multiple weeks at once