Skip to main content
GET
Returns all leagues for a given user.

Headers

X-Auth-Token
string
required

User-platform auth_token supplied by LeagueSync API

Query Parameters

sport
enum<string>[]

Filter results to only include the specified sport

Available options:
baseball,
football,
basketball
season
enum<number>[]

Filter results to only include the specified season

Available options:
2017,
2018,
2019,
2020,
2021

Response

successful operation

league_id
integer<int64>
required
Example:

598254394714169300

name
string
required
Example:

"Sleeperbot Dynasty"

num_teams
integer<int64>
Example:

12

sport
string
Example:

"football"

league_url
string
Example:

"https://sleeper.app/leagues/598254394714169344"

season
integer<int64>
Example:

2020

league_avatar
string
Example:

"http://sleepercdn.com/avatars/efaefa889ae24046a53265a3c71b8b64"