Skip to main content
GET
/
roster
/
getRoster
/
{league_id}
/
{roster_id}
Returns a roster by league_id and roster_id
curl --request GET \
  --url https://api.leaguesync.dev/roster/getRoster/{league_id}/{roster_id} \
  --header 'auth_token: <auth_token>'
[
  {
    "league_id": 598254394714169300,
    "roster_id": "1",
    "owned_player": 12,
    "sport": "football",
    "season": 2020
  }
]

Headers

auth_token
string
required

user-platform auth_token supplied by LeagueSync API

Path Parameters

league_id
string
required

league_id to filter by

roster_id
string
required

roster_id to filter by

Response

200 - application/json

successful operation

league_id
integer<int64>
required
Example:

598254394714169300

roster_id
string
required
Example:

"1"

owned_player
object[]
Example:

12

sport
string
Example:

"football"

season
integer<int64>
Example:

2020