Leagues
Team of the week
GET/v2/leagues/{id}/team-of-the-weekPro + Business
The team of the week of one round or week: the best-rated players as a line-up — formation, each player with his team, position, the rating that earned the place and the match it is from.
Football: 11 players, order 1 = the goalkeeper; the NBA: 5 players, formation "2-3". Ratings are the source’s match ratings (0–10). A team never changes once published.
Parameters
id
our numeric id (positive integer)
season
a season id from /v2/leagues/{id}/seasons
period
a period id from /v2/leagues/{id}/team-of-the-week/periods (default: the newest)
Response
- data
TeamOfTheWeek- meta
- season, period (the period served), count (players)
- errors
- 403 history_not_in_plan — the season ended before your plan’s history404 no_data — the source has no team of the week for this league and season (yet)404 not_found — period is not one of this season’s periods, or season not one of this league’s
Every /v2 call can also answer the common errors.
$ curl -H "Authorization: Bearer sk_live_…" \ "https://api.sportsapi.app/v2/leagues/{id}/team-of-the-week?season=…"
Example
{ "data": { "period": { "id": 812604, "kind": "round", "sequence": 9, "round": 9, "roundName": "9", … }, "formation": "3-4-3", "players": [ { "order": 1, "player": { "id": 994363, "name": "Bart Verbruggen", "shortName": "B. Verbruggen", … }, "team": { "id": 30, "name": "Brighton & Hove Albion", … }, "position": "goalkeeper", "rating": 9.6, "fixtureId": 701188 }, { "order": 2, "player": { "name": "Jan Paul van Hecke", … }, "position": "defender", "rating": 9.8, … }, … ] }, "meta": { "season": 200386, "period": 812604, "count": 11 } }