Award teams
GET
/
Markdown copyOpen in the playground →
The award teams named for a season — All-NBA First, Second and Third Team, All-Defensive, All-Rookie and others. The players of each are on /v2/leagues/{id}/award-teams/{teamId}.
Parameters
idpathrequired
league id issued by DataSportsAPI, a positive integer
seasonqueryrequired
season id, as listed by /v2/leagues/{id}/seasons
Response
- data
AwardTeamRef[]- meta
- season, count
- errors
- 403
history_not_in_plan— your plan’s history window begins after this season ended404no_data— our data source has no award teams for that season
The errors every /v2 call shares (key, plan, quota, rate) are listed under error codes.
curl -H "Authorization: Bearer sk_live_…" \
"https://api.datasportsapi.com/v2/leagues/{id}/award-teams?season=…"Example
{ "data": [ { "id": 1190001, "key": "best-first", "name": "1st Team" }, { "id": 1190002, "key": "best-second", "name": "2nd Team" }, … ],
"meta": { "season": 80229, "count": 7 } }