SofaScore API endpoint
Lists the competitions and seasons for which SofaScore has per-player statistics for a team, with the statistics `types` available in each season (`overall`, `home`, `away`, `regular_season`, `playoffs`). Use it to find the `tournament_id`, `season` and `type` accepted by team-player-statistics and team-top-players. Football teams offer `overall`, `home` and `away`; NBA teams offer `regular_season` and `playoffs`. Returns 404 when SofaScore has no player statistics for the team.
/sofascore/team-player-statistics-seasonsQuery parameters:
id: required. Numeric SofaScore team id, e.g. 17. Get it from sofascore-search or sofascore-team-events.Notable response behavior:
types lists the views that exist for that season. Allowed values: overall, home, away, regular_season, playoffs. Football teams offer overall, home and away (a season that has not played a home or away match yet can omit it); NBA teams offer regular_season and playoffs.unique_tournament_id, a season id and one of its types as tournament_id, season and type for sofascore-team-player-statistics and sofascore-team-top-players.404 when SofaScore has no player statistics for the team.| Field | Filled in, of 8 checked | Values in the sample |
|---|---|---|
| unique_tournament_id | 8 | |
| name | 8 | “UEFA Champions League” and 7 other values |
| slug | 8 | |
| category | 8 | England (4), Europe (2), World (2) |
| seasons | 8 | median 7 entries |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Numeric SofaScore team id | 17 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/team-player-statistics-seasons?id=17" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"team_id": 17,
"source_url": "https://api.sofascore.com/api/v1/team/17/player-statistics/seasons",
"fetched_at": "2026-10-07T00:00:00Z",
"count": 1,
"tournaments": [
{
"unique_tournament_id": 17,
"name": "Premier League",
"slug": "premier-league",
"category": "England",
"seasons": [
{
"id": 96668,
"name": "Premier League 26/27",
"year": "26/27",
"types": [
"overall",
"home",
"away"
]
}
]
}
]
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.teamPlayerStatisticsSeasonsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.TeamPlayerStatisticsSeasonsResponse | 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 | StatisticsTournament record, 9 fields: category, name, seasons, slug, unique_tournament_id. Described under SofaScore team statistics seasons API. | |||
| 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-player-statistics-seasons?id=17" \
-H "x-api-key: $CRAWLORA_API_KEY"