SofaScore API endpoint
Lists the competitions a team plays in, each with id, name, slug, category and sport. By default (`all=false`) it returns the competitions the team currently takes part in; with `all=true` it returns every competition the team has been recorded in, including friendlies and older tournaments. Competition ids can be used as `tournament_id` elsewhere in the SofaScore endpoints; use team-player-statistics-seasons for the seasons that have statistics. Returns 404 when SofaScore has no competitions for the team.
/sofascore/team-tournamentsQuery parameters:
id: required. Numeric SofaScore team id, e.g. 17. Get it from sofascore-search or sofascore-team-events.all: optional boolean. false (default) lists the competitions the team currently takes part in; true lists every competition the team has been recorded in, including friendlies and older tournaments.Notable response behavior:
id, name, slug, category, sport and, when known, gender. Use the id as tournament_id in the other SofaScore endpoints; seasons with statistics come from sofascore-team-player-statistics-seasons.all returns 400. Returns 404 when SofaScore has no competitions for the team.| Field | Filled in, of 15 checked | Values in the sample |
|---|---|---|
| id | 15 | |
| name | 15 | “Premier League” and 14 other values |
| slug | 15 | |
| category | 15 | World (6), England (5), Europe (4) |
| sport | 15 | football in all 15 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Numeric SofaScore team id | 17 | |
| all | boolean | No | false returns current competitions, true returns every recorded competition | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/team-tournaments?id=17&all=true" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"team_id": 17,
"all": false,
"source_url": "https://api.sofascore.com/api/v1/team/17/unique-tournaments",
"fetched_at": "2026-10-07T00:00:00Z",
"count": 2,
"tournaments": [
{
"id": 7,
"name": "UEFA Champions League",
"slug": "uefa-champions-league",
"category": "Europe",
"sport": "football"
},
{
"id": 17,
"name": "Premier League",
"slug": "premier-league",
"category": "England",
"sport": "football",
"gender": "M"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.teamTournamentsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.TeamTournamentsResponse | No | ||||
| data.all | boolean | No | ||||
| data.count | integer | No | ||||
| data.fetched_at | string | No | ||||
| data.source_url | string | No | ||||
| data.team_id | integer | No | 17 | |||
| data.tournaments | array | No | ||||
| data.tournaments[].category | string | No | England | |||
| data.tournaments[].gender | string | No | M | |||
| data.tournaments[].id | integer | No | 17 | |||
| data.tournaments[].name | string | No | Premier League | |||
| data.tournaments[].slug | string | No | premier-league | |||
| data.tournaments[].sport | string | No | football | |||
| 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/team-tournaments?id=17&all=true" \
-H "x-api-key: $CRAWLORA_API_KEY"