SofaScore API endpoint
Returns the statistics of every player in a team's squad for one competition season, each as a snake_case metric map (appearances, minutes, rating, goals, assists, passing and duel metrics for football; points, rebounds and assists for basketball), in SofaScore's order. The `type` enum accepts `overall`, `home`, `away`, `regular_season` and `playoffs` and defaults to `overall`; only the types listed for that season by team-player-statistics-seasons exist (football `overall`, `home`, `away`; NBA `regular_season`, `playoffs`). A metric SofaScore did not record is omitted rather than returned as 0. Returns 404 when SofaScore has no statistics of that type for the combination.
/sofascore/team-player-statisticsQuery parameters:
id: required. Numeric SofaScore team id, e.g. 17. Get it from sofascore-search or sofascore-team-events.tournament_id: required. Numeric SofaScore unique-tournament (competition) id from sofascore-team-player-statistics-seasons, e.g. 17.season: required. Numeric SofaScore season id from sofascore-team-player-statistics-seasons, e.g. 76986.type: optional enum. Allowed values: overall, home, away, regular_season, playoffs. Defaults to overall.Notable response behavior:
types that sofascore-team-player-statistics-seasons lists for the season exist: football seasons answer overall, home and away; NBA seasons answer regular_season and playoffs (overall returned 404 for NBA teams).statistics keys depend on the sport and the player's position; a metric SofaScore did not record is omitted rather than returned as 0. Common football keys: rating, minutes_played, goals, assists, expected_goals, total_shots, accurate_passes_percentage, tackles. Basketball keys include points, rebounds, assists, steals, blocks.played_enough says whether the player met SofaScore's minimum-playing-time rule for ranking, and is omitted when SofaScore does not say. Players are in SofaScore's order, not sorted by a metric.type returns 400. Returns 404 when SofaScore has no statistics of that type for the team, competition and season.| Field | Filled in, of 26 checked | Values in the sample |
|---|---|---|
| player | 26 | |
| played_enough | 26 | true in 17 of 26 |
| statistics | 26 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Numeric SofaScore team id | 17 | |
| tournament_id | string | Yes | Numeric SofaScore unique-tournament (competition) id from team-player-statistics-seasons | 17 | |
| season | string | Yes | Numeric SofaScore season id from team-player-statistics-seasons | 96668 | |
| type | string | No | Statistics view Allowed values: overall, home, away, regular_season, playoffs. | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/team-player-statistics?id=17&tournament_id=17&season=96668&type=overall" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"team_id": 17,
"tournament_id": 17,
"season": 96668,
"type": "overall",
"source_url": "https://api.sofascore.com/api/v1/team/17/unique-tournament/17/season/96668/player-statistics/overall",
"fetched_at": "2026-10-07T00:00:00Z",
"count": 21,
"players": [
{
"player": {
"id": 974505,
"name": "Enzo Fernández",
"short_name": "E. Fernández",
"slug": "enzo-fernandez",
"position": "M",
"jersey_number": "17"
},
"played_enough": true,
"statistics": {
"rating": 7.275,
"minutes_played": 273,
"goals": 1,
"assists": 0,
"big_chances_created": 1,
"total_shots": 5,
"tackles": 3
}
}
]
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.teamPlayerStatisticsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.TeamPlayerStatisticsResponse | No | ||||
| data.count | integer | No | ||||
| data.fetched_at | string | No | ||||
| data.players | array | No | ||||
| data.players[].played_enough | boolean | No | ||||
| data.players[].player | sofascore.PlayerBrief | No | PlayerBrief record, 6 fields: id, jersey_number, name, position, short_name, slug. Described under SofaScore event at-bat pitches API. | |||
| data.players[].statistics | object | No | ||||
| data.season | integer | No | 96668 | |||
| data.source_url | string | No | ||||
| data.team_id | integer | No | 17 | |||
| data.tournament_id | integer | No | 17 | |||
| data.type | string | No | overall | |||
| 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?id=17&tournament_id=17&season=96668&type=overall" \
-H "x-api-key: $CRAWLORA_API_KEY"