SofaScore player season statistics
A player's statistics in one tournament season (rating, goals, assists, xG, shots, passes, duels, tackles ... ) and the list of tournaments and seasons that have statistics. Without tournament_id the most recent one is used.
Every response includes credits_used: the credits this call cost.
Part of the SofaScore API: 28 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
player_idrequired | string | SofaScore player id or a player link (sofascore.com/football/player/bukayo-saka/934235). 934235 = Bukayo Saka. Example: 934235 |
tournament_id | string | Unique-tournament id (e.g. 17). |
season_id | string | Season id from /sofascore/v1/tournament (default: the current season). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/sofascore/v1/player/statistics?player_id=934235" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/sofascore/v1/player/statistics",
params={"player_id": "934235"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/sofascore/v1/player/statistics");
url.searchParams.set("player_id", "934235");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"player_id": 934235,"tournament_id": 7,"season_id": 96518,"statistics": {"rating": 7.0666666666667,"totalRating": 21.2,"countRating": 3,"goals": 1,"bigChancesCreated": 0,"bigChancesMissed": 1,"assists": 1,"expectedAssists": 0.2264499,"goalsAssistsSum": 2,"expectedGoalInvolvements": 1.5763499,"accuratePasses": 44,"inaccuratePasses": 7,"totalPasses": 51,"accuratePassesPercentage": 86.274509803922,"accurateOwnHalfPasses": 3,"accurateOppositionHalfPasses": 41,"accurateFinalThirdPasses": 34,"keyPasses": 2,"successfulDribbles": 4,"successfulDribblesPercentage": 80,"tackles": 0,"interceptions": 1,"yellowCards": 0,"directRedCards": 0,"redCards": 0,"accurateCrosses": 4,"accurateCrossesPercentage": 66.666666666667,"totalShots": 7,"shotsOnTarget": 2,"shotsOffTarget": 3,"groundDuelsWon": 4,"groundDuelsWonPercentage": 57.142857142857,"aerialDuelsWon": 1,"aerialDuelsWonPercentage": 100,"totalDuelsWon": 5,"totalDuelsWonPercentage": 62.5,"minutesPlayed": 108,"goalConversionPercentage": 14.285714285714,"penaltiesTaken": 0,"penaltyGoals": 0,"…": "97 more fields"},"team": {"id": 42,"name": "Arsenal"},"available": [{"tournament": {"id": 7,"name": "UEFA Champions League"},"seasons": [{"id": 96518,"name": "UEFA Champions League 26/27","year": "26/27"},{"id": 76953,"name": "UEFA Champions League 25/26","year": "25/26"},"… 2 more"]},{"tournament": {"id": 10783,"name": "UEFA Nations League"},"seasons": [{"id": 89945,"name": "UEFA Nations League 26/27","year": "26/27"},{"id": 58337,"name": "UEFA Nations League 24/25","year": "24/25"},"… 2 more"]},"… 12 more"],"types": {"1": {"26542": ["overall","home","… 1 more"],"56953": ["overall","home","… 1 more"]},"7": {"52162": ["overall","home","… 1 more"],"61644": ["overall","home","… 1 more"],"76953": ["overall","home","… 1 more"],"96518": ["overall","home","… 1 more"]},"11": {"35021": ["overall","home","… 1 more"],"69427": ["overall","home","… 1 more"]},"16": {"41087": ["overall","home"],"58210": ["overall","home","… 1 more"]},"17": {"17359": ["overall","home"],"23776": ["overall","home","… 1 more"],"29415": ["overall","home","… 1 more"],"37036": ["overall","home","… 1 more"],"41886": ["overall","home","… 1 more"],"52186": ["overall","home","… 1 more"],"61627": ["overall","home","… 1 more"],"76986": ["overall","home","… 1 more"],"96668": ["overall","home","… 1 more"]},"19": {"19402": ["overall"],"25944": ["overall"],"34650": ["overall"],"39384": ["overall"]},"21": {"24004": ["overall","home","… 1 more"],"29404": ["overall","away"],"37177": ["overall","home","… 1 more"],"52393": ["overall","away"],"62483": ["overall","home","… 1 more"],"77500": ["overall","home","… 1 more"]},"27": {"46599": ["overall","home","… 1 more"]},"346": {"29373": ["overall","home"],"53261": ["overall","away"],"95402": ["overall","home"]},"679": {"17352": ["overall","home","… 1 more"],"23755": ["overall","home","… 1 more"],"29343": ["overall","home","… 1 more"],"44509": ["overall","home","… 1 more"]},"1295": {"41859": ["overall","home"],"65236": ["overall","home"],"79027": ["overall","home"]},"1337": {"23027": ["overall"]},"1794": {"51711": ["overall","away"]},"10783": {"27595": ["overall","home","… 1 more"],"40128": ["overall","home","… 1 more"],"58337": ["overall","home","… 1 more"],"89945": ["overall","home","… 1 more"]}},"cached": false,"credits_used": 1}