SofaScore player matches
A player's latest matches, newest first, with their rating and minutes per match. Pass next_page back as page; null on the last page.
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 |
page | integer | Page, from 0. Pass next_page back as page; null on the last page. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/sofascore/v1/player/matches?player_id=934235" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/sofascore/v1/player/matches",
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/matches");
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,"page": 0,"count": 30,"next_page": 1,"events": [{"id": 15632635,"custom_id": "RsLgb","slug": "atletico-madrid-arsenal","url": "https://www.sofascore.com/football/match/atletico-madrid-arsenal/RsLgb#id:15632635","sport": "football","start_time": "2026-05-05T19:00:00.000Z","status": "finished","status_description": "Ended","status_code": 100,"home_team": {"id": 42,"name": "Arsenal","short_name": "Arsenal","code": "ARS","slug": "arsenal","country": "England","url": "https://www.sofascore.com/football/team/arsenal/42","logo": "https://img.sofascore.com/api/v1/team/42/image"},"away_team": {"id": 2836,"name": "Atlético Madrid","short_name": "Atlético Madrid","code": "ATM","slug": "atletico-madrid","country": "Spain","url": "https://www.sofascore.com/football/team/atletico-madrid/2836","logo": "https://img.sofascore.com/api/v1/team/2836/image"},"home_score": 1,"away_score": 0,"winner": "home","tournament": {"id": 7,"name": "UEFA Champions League","slug": "uefa-champions-league"},"category": {"id": 1465,"name": "Europe","country_code": null},"season": {"id": 76953,"name": "UEFA Champions League 25/26","year": "25/26"},"round": 28,"player_statistics": {"rating": 7.2,"minutesPlayed": 58},"on_bench": null},{"id": 14023942,"custom_id": "MR","slug": "arsenal-west-ham-united","url": "https://www.sofascore.com/football/match/arsenal-west-ham-united/MR#id:14023942","sport": "football","start_time": "2026-05-10T15:30:00.000Z","status": "finished","status_description": "Ended","status_code": 100,"home_team": {"id": 37,"name": "West Ham United","short_name": "West Ham","code": "WHU","slug": "west-ham-united","country": "England","url": "https://www.sofascore.com/football/team/west-ham-united/37","logo": "https://img.sofascore.com/api/v1/team/37/image"},"away_team": {"id": 42,"name": "Arsenal","short_name": "Arsenal","code": "ARS","slug": "arsenal","country": "England","url": "https://www.sofascore.com/football/team/arsenal/42","logo": "https://img.sofascore.com/api/v1/team/42/image"},"home_score": 0,"away_score": 1,"winner": "away","tournament": {"id": 17,"name": "Premier League","slug": "premier-league"},"category": {"id": 1,"name": "England","country_code": "EN"},"season": {"id": 76986,"name": "Premier League 25/26","year": "25/26"},"round": 36,"player_statistics": {"rating": 6.1,"minutesPlayed": 80},"on_bench": null},"… 28 more"],"cached": false,"credits_used": 1}