# GET /v2/leagues/{id}/team-of-the-week/periods

Group: Leagues

The rounds (football and other round-based leagues) or weeks (NBA) of a season that have a team of the week, newest first.

Note: An empty array when the source picks no team of the week for that league and season. Pass a period id to /v2/leagues/{id}/team-of-the-week.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | our numeric id (positive integer) |
| `season` | query | yes | a season id from /v2/leagues/{id}/seasons |

## Response

- `data`: `TeamOfTheWeekPeriod[]`
- `meta`: season, count
- Objects: TeamOfTheWeekPeriod (https://sportsapi.app/markdown/en/reference.md#teamoftheweekperiod)

## Errors

- 403 history_not_in_plan — the season ended before your plan’s history
- 404 not_found — season is not one of this league’s seasons

Plus the common errors (https://sportsapi.app/markdown/en/docs.md#errors).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.sportsapi.app/v2/leagues/{id}/team-of-the-week/periods?season=…"
```

TypeScript:

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

Python:

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

Go:

```go
res, err := client.Leagues.TeamOfTheWeekPeriods(ctx, id, &sportsapi.LeaguesTeamOfTheWeekPeriodsParams{Season: season})
```

CLI:

```bash
$ sportsapi leagues team-of-the-week-periods <id> --season <season>
```

## Example response

```json
{ "data": [ { "id": 812604, "kind": "round", "sequence": 9, "round": 9, "roundName": "9", "from": null, "to": null,
      "publishedAt": "2026-11-03T08:32:39.000Z" },
    { "id": 812281, "kind": "round", "sequence": 8, "round": 8, … }, … ],
  "meta": { "season": 200386, "count": 9 } }

// NBA: weeks
{ "data": [ { "id": 812590, "kind": "week", "sequence": 2, "round": null, "roundName": null,
      "from": "2026-10-26T07:00:00.000Z", "to": "2026-11-02T07:00:00.000Z", "publishedAt": "2026-11-02T07:28:22.000Z" }, … ] }
```

---

Base URL: https://api.sportsapi.app. Send your API key as `Authorization: Bearer <key>` on every /v2 request; keys are created in the dashboard (https://sportsapi.app/dashboard).
HTML: https://sportsapi.app/docs/leagues/team-of-the-week-periods · All docs: https://sportsapi.app/markdown/en/docs.md
