SofaScore API endpoint
Returns a player's statistics for one competition season (appearances, rating, goals, assists, passing, duels, and more) as a snake_case metric map, plus the team and a rating breakdown when available. The `type` enum accepts `overall`, `home`, `away`, `regular_season`, and `playoffs` and defaults to `overall`; only the types listed for that season by player-statistics-seasons exist (football players have `overall`, `home`, `away`; basketball, ice hockey and baseball players have `regular_season` and `playoffs`). Returns 404 when SofaScore has no statistics of that type for the combination.
/sofascore/player-season-statisticsQuery parameters:
id: required. Numeric SofaScore player id, e.g. 839956.tournament_id: required. Numeric SofaScore unique-tournament (competition) id from the player-statistics-seasons endpoint, e.g. 17.season: required. Numeric SofaScore season id from the player-statistics-seasons endpoint, e.g. 96668.type: optional enum. Allowed values: overall, home, away, regular_season, playoffs. Defaults to overall.Notable response behavior:
types the player-statistics-seasons endpoint lists for that season exist. Football seasons use overall, home, away; basketball, ice hockey and baseball seasons use regular_season and playoffs (overall returned 404 for the basketball subjects checked).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: appearances, minutes_played, rating, goals, assists, expected_goals, total_shots, shots_on_target, accurate_passes_percentage.type returns 400. Returns 404 when SofaScore has no statistics of that type for the player, competition and season.| Field | In the sample | Value in the sample |
|---|---|---|
| player_id | Has a value | |
| tournament_id | Has a value | |
| season | Has a value | 76,986 |
| type | Has a value | “overall” |
| team.id | Has a value | |
| team.name | Has a value | “Manchester City” |
| team.short_name | Has a value | “Man City” |
| team.slug | Has a value | |
| statistics | Has a value | |
| rating_breakdown.defensive_value | Has a value | 0.08 |
| rating_breakdown.dribble_value | Has a value | 0.23 |
| rating_breakdown.pass_value | Has a value | -0.09 |
| rating_breakdown.shot_value | Has a value | 0.13 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Numeric SofaScore player id | 839956 | |
| tournament_id | string | Yes | Numeric SofaScore unique-tournament (competition) id from player-statistics-seasons | 17 | |
| season | string | Yes | Numeric SofaScore season id from 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/player-season-statistics?id=839956&tournament_id=17&season=96668&type=overall" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"player_id": 839956,
"tournament_id": 17,
"season": 96668,
"type": "overall",
"source_url": "https://api.sofascore.com/api/v1/player/839956/unique-tournament/17/season/96668/statistics/overall",
"fetched_at": "2026-07-08T00:00:00Z",
"team": {
"id": 17,
"name": "Manchester City",
"short_name": "Man City",
"slug": "manchester-city"
},
"statistics": {
"appearances": 5,
"minutes_played": 450,
"rating": 7.6,
"goals": 5,
"assists": 0,
"expected_goals": 4.4254,
"total_shots": 20,
"shots_on_target": 10
},
"rating_breakdown": {
"shot_value": 0.41,
"pass_value": 0.04
}
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.playerSeasonStatisticsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.PlayerSeasonStatisticsResponse | No | ||||
| data.fetched_at | string | No | ||||
| data.player_id | integer | No | 839956 | |||
| data.rating_breakdown | object | No | ||||
| data.season | integer | No | 96668 | |||
| data.source_url | string | No | ||||
| data.statistics | object | No | ||||
| data.team | sofascore.TeamRef | No | TeamRef record, 6 fields: country, id, name, national, short_name, slug. Described under SofaScore venue API. | |||
| 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/player-season-statistics?id=839956&tournament_id=17&season=96668&type=overall" \
-H "x-api-key: $CRAWLORA_API_KEY"