SofaScore
SofaScore event player statistics
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.
get/sofascore/event-player-statistics
Request
- Base URL: https://api.crawlora.net/api/v1
- URL: https://api.crawlora.net/api/v1/sofascore/event-player-statistics
- Auth: API key in header x-api-key
Query parameters
idstring required
Numeric SofaScore event (match) id
player_idstring required
Numeric SofaScore player id that took part in the match
Headers
x-api-keystring required
API key required
Response
OK
Example response
{
"code": 200,
"data": {
"event_id": 16363867,
"player": {
"id": 839956,
"jersey_number": "9",
"name": "Erling Haaland",
"position": "F",
"short_name": "E. Haaland",
"slug": "erling-haaland"
},
"player_id": 839956,
"position": "F",
"team": {
"country": "Spain",
"id": 2817,
"name": "FC Barcelona",
"short_name": "Barcelona",
"slug": "barcelona"
}
},
"msg": "OK"
}Changes
No recorded changes to this operation across all 2 revisions of this API.