# GET /v2/leagues/{id}/award-teams

Group: Leagues

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}.

Plans: Every plan, Free included.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | league id issued by DataSportsAPI, a positive integer |
| `season` | query | yes | season id, as listed by /v2/leagues/{id}/seasons |

## Response

- `data`: `AwardTeamRef[]`
- `meta`: season, count
- Objects: AwardTeamRef (https://datasportsapi.com/markdown/reference.md#awardteamref)

## Errors

- 403 history_not_in_plan — your plan’s history window begins after this season ended
- 404 no_data — our data source has no award teams for that season

Plus the errors every /v2 call shares (https://datasportsapi.com/markdown/docs/errors.md).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/leagues/{id}/award-teams?season=…"
```

TypeScript:

```ts
const { data, meta } = await client.leagues.awardTeams(id, { season });
```

Python:

```python
res = client.leagues.award_teams(id, season=season)
```

Go:

```go
res, err := client.Leagues.AwardTeams(ctx, id, &datasportsapi.LeaguesAwardTeamsParams{Season: season})
```

CLI:

```bash
$ dsa leagues award-teams <id> --season <season>
```

## Example response

```json
{ "data": [ { "id": 1190001, "key": "best-first", "name": "1st Team" }, { "id": 1190002, "key": "best-second", "name": "2nd Team" }, … ],
  "meta": { "season": 80229, "count": 7 } }
```

---

Base URL: https://api.datasportsapi.com. Authenticate each /v2 call with the header `Authorization: Bearer <key>` (secret keys begin with `sk_live_`).
HTML: https://datasportsapi.com/docs/leagues/award-teams/ · Group: https://datasportsapi.com/markdown/docs/leagues.md · All docs: https://datasportsapi.com/markdown/docs.md · Data model: https://datasportsapi.com/markdown/reference.md
