SofaScore API endpoint
Returns every team (or, for tennis and other individual sports, every player) entered in a competition season, with id, name, short name, name code, country, gender, type (`0` team, `1` individual player) and, for individual players, the current ranking. Use the team ids with team, team-players and the `team` filter of tournament-player-statistics. A season id that does not belong to the competition, or a field not yet decided, answers 404. Get `id` from search and `season` from tournament-seasons.
/sofascore/tournament-teamsQuery parameters:
id: required. Numeric SofaScore unique-tournament (competition) id, e.g. 17 for the Premier League.season: required. Numeric SofaScore season id from sofascore/tournament-seasons, e.g. 96668.Notable response behavior:
type is SofaScore's competitor type: 0 for a team and 1 for an individual player. Other codes (for example doubles pairs) are passed through unchanged. ranking is present only for players that carry one.country_code is SofaScore's two-letter code, which uses EN, SX, WA and NX for the home nations. sport is the sport key.sofascore/team, sofascore/team-players and the team filter of sofascore/tournament-player-statistics.Example response (shortened):
{
"code": 200,
"msg": "OK",
"data": {
"tournament_id": 17,
"season_id": 96668,
"count": 20,
"source_url": "https://api.sofascore.com/api/v1/unique-tournament/17/season/96668/teams",
"fetched_at": "2026-10-07T14:00:00Z",
"teams": [
{
"id": 42,
"name": "Arsenal",
"short_name": "Arsenal",
"slug": "arsenal",
"name_code": "ARS",
"gender": "M",
"country": "England",
"country_code": "EN",
"national": false,
"type": 0,
"sport": "football",
"user_count": 3822607
}
]
}
}
| Field | Filled in, of 20 checked | Values in the sample |
|---|---|---|
| id | 20 | |
| name | 20 | “Arsenal” and 19 other values |
| short_name | 20 | “Arsenal” and 19 other values |
| slug | 20 | |
| name_code | 20 | |
| gender | 20 | |
| country | 20 | England in all 20 |
| country_code | 20 | |
| national | 20 | true in 0 of 20 |
| type | 20 | 0 |
| sport | 20 | football in all 20 |
| user_count | 20 | 115,823 to 4,193,314, median 379,862 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Numeric SofaScore unique-tournament (competition) id | 17 | |
| season | string | Yes | Numeric SofaScore season id | 96668 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/tournament-teams?id=17&season=96668" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"tournament_id": 17,
"season_id": 96668,
"count": 20,
"source_url": "https://api.sofascore.com/api/v1/unique-tournament/17/season/96668/teams",
"fetched_at": "2026-10-07T14:00:00Z",
"teams": [
{
"id": 42,
"name": "Arsenal",
"short_name": "Arsenal",
"slug": "arsenal",
"name_code": "ARS",
"gender": "M",
"country": "England",
"country_code": "EN",
"national": false,
"type": 0,
"sport": "football",
"user_count": 3822607
}
]
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.tournamentTeamsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.TournamentTeamsResponse | No | ||||
| data.count | integer | No | ||||
| data.fetched_at | string | No | ||||
| data.season_id | integer | No | ||||
| data.source_url | string | No | ||||
| data.teams | array | No | ||||
| data.teams[].country | string | No | England | |||
| data.teams[].country_code | string | No | EN | |||
| data.teams[].gender | string | No | M | |||
| data.teams[].id | integer | No | 42 | |||
| data.teams[].name | string | No | Arsenal | |||
| data.teams[].name_code | string | No | ARS | |||
| data.teams[].national | boolean | No | ||||
| data.teams[].ranking | integer | No | ||||
| data.teams[].short_name | string | No | Arsenal | |||
| data.teams[].slug | string | No | arsenal | |||
| data.teams[].sport | string | No | football | |||
| data.teams[].type | integer | No | 0 | Type is the upstream competitor type: 0 for a team, 1 for an individual player; other codes (for example doubles pairs) are passed through. | ||
| data.teams[].user_count | integer | 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-teams?id=17&season=96668" \
-H "x-api-key: $CRAWLORA_API_KEY"