SofaScore API endpoint
Returns one player's statistics inside one football match (minutes, rating, passes, duels, shots, expected goals, and more) as a snake_case metric map. The set of metrics depends on the player's position, so absent metrics are omitted rather than zero. Get `player_id` from event-lineups. Returns 404 when SofaScore has no statistics for that player in that match.
/sofascore/event-player-statisticsQuery parameters:
id: required. Numeric SofaScore event (match) id, e.g. 16363867.player_id: required. Numeric SofaScore player id that took part in the match, e.g. 839956. Get player ids from the event-lineups endpoint.Notable response behavior:
statistics keys depend on the player's position (outfield players carry passes, duels, shots and expected goals; goalkeepers carry saves), so a metric SofaScore did not record is omitted rather than returned as 0. Common keys: minutes_played, rating, goals, total_pass, accurate_pass, duel_won, duel_lost, touches, expected_goals, expected_assists.rating_versions_original, rating_versions_alternative). Metadata fields are not metrics and are not returned.404 when SofaScore has no statistics for that player in that match (a player who did not take part in that match, a match without player-level coverage, an unstarted match, or a non-football match).| Field | In the sample | Value in the sample |
|---|---|---|
| event_id | Has a value | |
| player_id | Has a value | |
| player.id | Has a value | |
| player.name | Has a value | “Erling Haaland” |
| player.short_name | Has a value | “E. Haaland” |
| player.slug | Has a value | |
| player.position | Has a value | “F” |
| player.jersey_number | Has a value | 9 |
| 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 | |
| position | Has a value | “F” |
| statistics | Has a value |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Numeric SofaScore event (match) id | 16363867 | |
| player_id | string | Yes | Numeric SofaScore player id that took part in the match | 839956 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/event-player-statistics?id=16363867&player_id=839956" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"event_id": 16363867,
"player_id": 839956,
"source_url": "https://api.sofascore.com/api/v1/event/16363867/player/839956/statistics",
"fetched_at": "2026-07-08T00:00:00Z",
"player": {
"id": 839956,
"name": "Erling Haaland",
"short_name": "E. Haaland",
"slug": "erling-haaland",
"position": "F",
"jersey_number": "9"
},
"team": {
"id": 17,
"name": "Manchester City",
"short_name": "Man City",
"slug": "manchester-city"
},
"position": "F",
"statistics": {
"minutes_played": 90,
"rating": 6.3,
"goals": 1,
"total_pass": 13,
"accurate_pass": 9,
"duel_won": 1,
"expected_goals": 1.0873,
"touches": 25
}
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.eventPlayerStatisticsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.EventPlayerStatisticsResponse | No | ||||
| data.event_id | integer | No | 16363867 | |||
| data.fetched_at | string | No | ||||
| data.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.player_id | integer | No | 839956 | |||
| data.position | string | No | F | |||
| 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. | |||
| 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/event-player-statistics?id=16363867&player_id=839956" \
-H "x-api-key: $CRAWLORA_API_KEY"