SofaScore API endpoint
Returns the team of the season SofaScore selected for a finished competition season: the formation, when it was created and the selected players (11 in football, 5 in basketball) with position, shirt number, team and average rating. A season that is still running, has no selection, or does not belong to the competition answers 404. Get `id` from search and `season` from tournament-seasons or tournament-winners.
/sofascore/tournament-team-of-the-seasonQuery parameters:
id: required. Numeric SofaScore unique-tournament (competition) id, e.g. 17 for the Premier League, 19 for the FA Cup, 132 for the NBA.season: required. Numeric SofaScore season id of a finished season, from sofascore/tournament-winners or sofascore/tournament-seasons, e.g. 76986 for the 2025/26 Premier League.Notable response behavior:
formation such as 3-2-4-1); the NBA selection holds 5 (formation 2-3). order numbers the players in the formation, goalkeeper first. rating is the player's average rating over the season. Basketball positions use SofaScore's codes such as GF and FC.sofascore/team-of-the-week.Example response (shortened):
{
"code": 200,
"msg": "OK",
"data": {
"tournament_id": 17,
"season_id": 76986,
"formation": "3-2-4-1",
"created_at": "2026-05-25T07:52:32Z",
"count": 11,
"source_url": "https://api.sofascore.com/api/v1/unique-tournament/17/season/76986/team-of-the-season",
"fetched_at": "2026-10-07T14:00:00Z",
"players": [
{
"order": 1,
"rating": 7.05,
"player": { "id": 827362, "name": "Caoimhin Kelleher", "short_name": "C. Kelleher", "slug": "caoimhin-kelleher", "position": "G" },
"jersey_number": "1",
"team": { "id": 50, "name": "Brentford", "short_name": "Brentford", "slug": "brentford" }
}
]
}
}
| Field | Filled in, of 11 checked | Values in the sample |
|---|---|---|
| order | 11 | 1 to 11, median 6 |
| rating | 11 | 7.05 to 7.61, median 7.31 |
| player | 11 | |
| jersey_number | 11 | 1 to 41, median 7 |
| team | 11 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Numeric SofaScore unique-tournament (competition) id | 17 | |
| season | string | Yes | Numeric SofaScore season id of a finished season | 76986 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/tournament-team-of-the-season?id=17&season=76986" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"tournament_id": 17,
"season_id": 76986,
"formation": "3-2-4-1",
"created_at": "2026-05-25T07:52:32Z",
"count": 11,
"source_url": "https://api.sofascore.com/api/v1/unique-tournament/17/season/76986/team-of-the-season",
"fetched_at": "2026-10-07T14:00:00Z",
"players": [
{
"order": 1,
"rating": 7.05,
"player": {
"id": 827362,
"name": "Caoimhin Kelleher",
"short_name": "C. Kelleher",
"slug": "caoimhin-kelleher",
"position": "G"
},
"jersey_number": "1",
"team": {
"id": 50,
"name": "Brentford",
"short_name": "Brentford",
"slug": "brentford"
}
}
]
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.tournamentTeamOfTheSeasonResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.TournamentTeamOfTheSeasonResponse | No | ||||
| data.count | integer | No | ||||
| data.created_at | string | No | 2026-05-25T10:00:00Z | |||
| data.fetched_at | string | No | ||||
| data.formation | string | No | 3-2-4-1 | |||
| data.players | array | No | TeamOfTheWeekPlayer record, 56 fields: event, jersey_number, order, player, rating, team. Described under SofaScore team of the week API. | |||
| data.season_id | integer | No | ||||
| data.source_url | string | No | ||||
| data.tournament_id | integer | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/sofascore/tournament-team-of-the-season?id=17&season=76986" \
-H "x-api-key: $CRAWLORA_API_KEY"