LeaguesEndpoint 81 of 116
Team of the week periods
https://api.datasportsapi.com/
- Plan
- All plans
- Auth
Bearer dsa_live_…- Parameters
- 2 required · 0 optional
- Returns
TeamOfTheWeekPeriod[]
Every period in the season for which a team of the week exists, newest first — rounds in football and other round-based leagues, weeks in the NBA.
Worth knowing
An empty array means our data source picked no team of the week in that league and season. Any period id from this list works with /v2/leagues/{id}/team-of-the-week.
01Parameters
idpathRequiredleague id issued by DataSportsAPI, a positive integer
seasonqueryRequiredseason id, as listed by /v2/leagues/{id}/seasons
02Request
The same call from the command line and each SDK. The SDK lines assume a client created with your key; left out, it is read from DATASPORTSAPI_API_KEY. Installing a client: SDKs & CLI.
curl -H "Authorization: Bearer dsa_live_…" \
"https://api.datasportsapi.com/v2/leagues/{id}/team-of-the-week/periods?season=…"03Response
The top-level keys of the JSON body. Each object links to its full shape in the data reference.
dataTeamOfTheWeekPeriod[]meta- season, count
{ "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" }, … ] }04Errors
- 403
history_not_in_planyour plan’s history window begins after this season ended
- 404
not_foundthe season id does not belong to this league
unauthorized429rate_limited429quota_exceeded500internal_errorEvery error code