Sleeper
communityFantasy sports platform for NFL, NBA, and dynasty leagues with social features.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
GET
https://api.sleeper.app/v1/user/{username}Get user
Parameters
usernameusername or ID (stringrequiredReturns
user_id, username, display_name, avatarGET
https://api.sleeper.app/v1/user/{userId}/leagues/{sport}/{season}Get user leagues
Parameters
sportnfl|nba (stringrequiredseasonyear (stringrequireduserIduser ID (stringrequiredReturns
leagues[] with league_id, name, total_rosters, roster_positions[], scoring_settings, statusGET
https://api.sleeper.app/v1/players/{sport}Get all players
Parameters
sportnfl|nba (stringrequiredReturns
players object with player_id keys and values of full_name, position, team, age, status, fantasy_positions[]