SofaScore API & Scraper
The SofaScore API returns SofaScore's match, player, team and competition statistics as JSON: match statistics (possession, shots, xG), lineups with per-player ratings, attack momentum, incidents, best players, head-to-head, managers, odds, average positions, a player's heatmap and shotmap in a match; player profiles, season statistics, season heatmaps, attribute radars, transfer histories and recent matches; team profiles, squads, transfers, season statistics, form and goal distributions; league tables (overall, home, away), season top players and teams, team of the week, power rankings, cup trees and competition details; manager and referee profiles; and the FIFA, ATP and WTA world rankings.
🤖 Using an AI assistant? Copy this link into ChatGPT / Claude / Cursor — it reads every endpoint and parameter instantly and tells you if this API fits your use case.
It needs no SofaScore account. Everything is keyed by SofaScore's own ids, which entity_search returns from a name: on 2026-11-21 "Haaland" returned 18 results and Erling Haaland is player 839956. Competitions take a league key (eng.1 = Premier League, esp.1, ita.1, ger.1, fra.1 and more), a competition name or a SofaScore tournament id. On 2026-11-21 player_season_stats for Erling Haaland in the Premier League returned 139 fields: 9 goals in 11 appearances and 980 minutes, expected goals 8.09, 42 shots with 19 on target, average rating 7.55, 104.7 km covered and 130 sprints. Old calls to POST /sports-data/v1/<action> keep working unchanged; the call for SofaScore is POST /sofascore/v1/<action>. For scoreboards, standings, rosters and injuries of the NFL, NBA, MLB and NHL see the ESPN API.
What a SofaScore field actually contains
Fields that read differently from how they look. Measured on live SofaScore data on 2026-11-21 (entity_search "Haaland" and player_season_stats for player 839956 in the Premier League), plus the parameter rules of the actions.
| Field or input | What it holds |
|---|---|
| entity_search results[] | type (player, team, tournament, manager, referee), SofaScore id, name, slug and country. 18 rows for "Haaland"; the sport field was empty on all 18. |
| player_id, team_id, event_id | SofaScore's own numbers, not ESPN's. 839956 = Erling Haaland. Match actions take a SofaScore match id, which live_events, player_recent and team_form return. |
| league | A league key (eng.1, esp.1, ita.1, ger.1, fra.1, uefa.champions, nba), a competition name to search, or a SofaScore tournament id. eng.1 resolved to the Premier League. |
| season, season_id | season is a year; omit it for the current season. season_id is SofaScore's season number (tournament_seasons lists them) and skips the lookup. |
| player_season_stats statistics | 139 fields for one player and competition, all numbers: goals, assists, expectedGoals (8.0931), expectedAssists (0.9115), totalShots, shotsOnTarget, bigChancesMissed, headedGoals, accuratePassesPercentage (64.44), touches, duels, tackles, rating (7.5545), minutesPlayed, plus running data: kilometersCovered (104.69), numberOfSprints (130), topSpeed (35.33). |
| type on season stats | overall, home or away split. Other SofaScore split names are passed on; a wrong one returns NOT_FOUND. |
| rankings type | fifa (default), atp or wta. Any other value returns INVALID_PARAM. |
Percentages and averages come with SofaScore's full decimals (rating 7.5545454545455); round them yourself.
Real request and response JSON
Captured from the indexed primary action, entity_search, on .
{
"method": "POST",
"url": "https://api.reefapi.com/sofascore/v1/entity_search",
"headers": {
"x-api-key": "$REEF_KEY",
"content-type": "application/json"
},
"body": {
"query": "Haaland"
}
}{
"ok": true,
"meta": {
"api": "sofascore",
"endpoint": "entity_search",
"mode": "live",
"latency_ms": 1689.3,
"record_count": 18,
"cache_hit": false,
"completeness_pct": 100
},
"data": {
"query": "Haaland",
"results": [
{
"type": "player",
"id": 839956,
"name": "Erling Haaland",
"slug": "erling-haaland",
"sport": null,
"country": "Norway"
},
{
"type": "player",
"id": 1126486,
"name": "Markus Haaland",
"slug": "markus-haaland",
"sport": null,
"country": "Norway"
},
{
"type": "player",
"id": 1421422,
"name": "Alf Inge Haaland",
"slug": "alf-inge-haaland",
"sport": null,
"country": "Norway"
}
],
"count": 18
}
}What the SofaScore API does
| Action | Description | Concrete use case | Key params |
|---|---|---|---|
| entity_search | search players/teams/tournaments/managers/referees → SofaScore ids | Content platforms call entity_search to search players/teams/tournaments/managers/referees → SofaScore ids. | query |
| live_events | all in-play events for a sport | Research tools call live_events to get all in-play events for a sport. | sport |
| scheduled_events | all scheduled events for a sport on a date | Community analysts call scheduled_events to get all scheduled events for a sport on a date. | sport, date |
| tournament_seasons | Every season available for a competition (season id + year) — use the id to scope season-specific calls. | Media monitors call tournament_seasons to get every season available for a competition (season id + year). | league |
| match_statistics | detailed match stats (possession/shots/xG) | Content platforms call match_statistics to get detailed match stats (possession/shots/xG). | event_id |
| match_lineups | lineups + per-player ratings & stats | Research tools call match_lineups to get lineups + per-player ratings & stats. | event_id |
| match_momentum | attack-momentum graph | Community analysts call match_momentum to get attack-momentum graph. | event_id |
| match_incidents | goal/card/sub timeline | Media monitors call match_incidents to get goal/card/sub timeline. | event_id |
| match_best_players | best player per team | Content platforms call match_best_players to get best player per team. | event_id |
| match_h2h | head-to-head duel record | Research tools call match_h2h to get head-to-head duel record. | event_id |
| match_managers | both managers for a match | Community analysts call match_managers to get both managers for a match. | event_id |
| match_odds | multi-market odds for a match | Media monitors call match_odds to get multi-market odds for a match. | event_id |
| match_player_heatmap | a player's touch heatmap in a match | Content platforms call match_player_heatmap to get a player's touch heatmap in a match. | event_id, player_id |
| match_player_shotmap | a player's shotmap in a match | Research tools call match_player_shotmap to get a player's shotmap in a match. | event_id, player_id |
| match_average_positions | average player positions on the pitch | Community analysts call match_average_positions to get average player positions on the pitch. | event_id |
| player | Player profile: current team, position, market value, preferred foot, height, date of birth and contract — by SofaScore player id. | Media monitors call player to get player profile. | player_id |
| player_season_stats | player's season statistics in a league | Content platforms call player_season_stats to get player's season statistics in a league. | player_id, league, season, type |
| player_heatmap | player's season heatmap | Research tools call player_heatmap to get player's season heatmap. | player_id, league, season |
| player_attributes | player attribute radar (att/tech/tac/def/cre) | Community analysts call player_attributes to get player attribute radar (att/tech/tac/def/cre). | player_id |
| player_transfers | A player's full transfer history (from/to club, fee, date) by SofaScore player id. | Media monitors call player_transfers to get a player's full transfer history (from/to club, fee, date) by SofaScore player id.. | player_id |
| player_recent | player's recent matches | Content platforms call player_recent to get player's recent matches. | player_id |
| team_details | Team profile: manager, venue, founding year and recent pregame form — by SofaScore team id. | Research tools call team_details to get team profile. | team_id |
| team_squad | A club's full current squad (every player with id, position, value) by SofaScore team id. | Community analysts call team_squad to get a club's full current squad (every player with id, position, value) by SofaScore team id.. | team_id |
| team_transfers | A club's transfers in and out (player, club, fee, date) by SofaScore team id. | Media monitors call team_transfers to get a club's transfers in and out (player, club, fee, date) by SofaScore team id.. | team_id |
| team_season_stats | team's season statistics in a league | Content platforms call team_season_stats to get team's season statistics in a league. | team_id, league, season, type |
| team_form | team recent form + next/prev event | Research tools call team_form to get team recent form + next/prev event. | team_id |
| team_goal_distributions | goals scored/conceded by match period | Community analysts call team_goal_distributions to get goals scored/conceded by match period. | team_id, league, season |
| season_standings | SofaScore league table for a competition (overall / home / away splits) with goals for/against and goal difference. | Media monitors call season_standings to get sofaScore league table for a competition (overall / home / away splits) with goals for/agains…. | league, season, type |
| season_top_players | season leaders by category | Content platforms call season_top_players to get season leaders by category. | league, season, type |
| season_top_teams | season top teams by category | Research tools call season_top_teams to get season top teams by category. | league, season, type |
| team_of_week | team of the week (round or rounds list) | Community analysts call team_of_week to get team of the week (round or rounds list). | league, season, round_id |
| power_rankings | season power rankings | Media monitors call power_rankings to get season power rankings. | league, season, round_id |
| cup_tree | knockout bracket / cup tree | Content platforms call cup_tree to get knockout bracket / cup tree. | league, season |
| tournament_details | Competition metadata: country, tier, and the clubs with the most titles — by league key. | Research tools call tournament_details to get competition metadata. | league |
| manager | Manager profile and full club-by-club career history (matches, wins, points) by SofaScore manager id. | Community analysts call manager to get manager profile and full club-by-club career history (matches, wins, points) by SofaScore man…. | manager_id |
| referee | referee details + per-tournament stats | Media monitors call referee to get referee details + per-tournament stats. | referee_id |
| rankings | World rankings — FIFA men's football, or ATP / WTA tennis (set type; defaults to FIFA). | Content platforms call rankings to get world rankings. | type |
| leagues | Directory of every supported league/competition (key, name, sport) — call this first to discover the league keys the other actions take. | Research tools call leagues to get directory of every supported league/competition (key, name, sport). | sport |
Call entity_search from your stack
curl -X POST https://api.reefapi.com/sofascore/v1/entity_search \
-H "x-api-key: $REEF_KEY" \
-H "content-type: application/json" \
-d '{"query":"Haaland"}'import os
import requests
REEF_KEY = os.environ["REEF_KEY"]
r = requests.post(
"https://api.reefapi.com/sofascore/v1/entity_search",
headers={"x-api-key": REEF_KEY},
json={
"query": "Haaland"
},
timeout=90,
)
print(r.json()["data"])const res = await fetch("https://api.reefapi.com/sofascore/v1/entity_search", {
method: "POST",
headers: {
"x-api-key": process.env.REEF_KEY,
"content-type": "application/json",
},
body: JSON.stringify({
"query": "Haaland"
}),
});
const { ok, data, meta, error } = await res.json();Ask your MCP-connected assistant: call reefapi.sofascore.entity_search with {"query":"Haaland"}.Who uses this API and why
- Build player scouting profiles from season statistics, xG, attribute radars and heatmaps.
- Show match centres with statistics, lineups with ratings, momentum and the incident timeline.
- Track transfers and market values of players and clubs.
- Feed fantasy football and prediction models with per-player season data.
- Publish league tables, team of the week and season leaders for a competition.
Questions developers ask before integrating
Is there a SofaScore API?
Yes. The SofaScore API on ReefAPI returns SofaScore match statistics, lineups with ratings, heatmaps, shotmaps, player and team season stats, transfers, squads, league tables and rankings as JSON, with no SofaScore account. Call POST /sofascore/v1/<action>; start with entity_search to turn a name into a SofaScore id.
How do I find a player's or team's SofaScore id?
Call entity_search with the name. On 2026-11-21 "Haaland" returned 18 results with type, id, name, slug and country; the first was Erling Haaland, player 839956, Norway. team_squad also lists every player of a club with their ids.
Can I get xG and season statistics for a player?
Yes, with player_season_stats (player_id and league). For Erling Haaland in the Premier League on 2026-11-21 it returned 139 fields: 9 goals, 0 assists, 11 appearances, 980 minutes, expected goals 8.09, expected assists 0.91, 42 shots, 19 on target, 64.4% pass accuracy and a 7.55 average rating. type picks overall, home or away.
Does it return match statistics, lineups and heatmaps?
Yes. match_statistics returns possession, shots, xG and the other stat groups per period; match_lineups both formations with every player's rating, minutes and goals and the missing players; match_momentum the attack-momentum graph by minute; match_incidents the goal, card and substitution timeline; match_player_heatmap and match_player_shotmap one player's touches and shots with xG. Each takes a SofaScore match id.
Can I get transfers and market values?
player_transfers returns a player's transfer history (from club, to club, fee, date); team_transfers a club's arrivals and departures; player the profile with position, market value, preferred foot, height and contract.
Which competitions does it cover?
League keys such as eng.1 (Premier League), esp.1 (La Liga), ita.1 (Serie A), ger.1 (Bundesliga), fra.1 (Ligue 1) and uefa.champions resolve to SofaScore competitions (eng.1 was measured on 2026-11-21), and the league parameter also accepts a SofaScore tournament id or a competition name to search. rankings returns the FIFA men's ranking or the ATP or WTA tennis ranking.
Are SofaScore ids the same as ESPN ids?
No. Players, teams and matches each have their own SofaScore numbers (Haaland 839956). The ESPN API uses ESPN's ids, so look a team up again with entity_search when moving between the two.
Do old sports-data calls still work?
Yes. Calls to POST /sports-data/v1/<action> keep working unchanged with the same parameters and the same answer. The SofaScore actions now have their own name, POST /sofascore/v1/<action>; the ESPN actions are at POST /espn/v1/<action>.
What is the SofaScore API?
SofaScore API is a ReefAPI endpoint group for sofascore match statistics, lineups with player ratings, momentum, heatmaps and shotmaps, player and team season stats, transfers, squads, league tables, team of the week and world rankings, as json. It returns live JSON through POST requests under /sofascore/v1.
Is the SofaScore API free to try?
Yes. ReefAPI starts with 1,000 free credits, no card required. SofaScore calls use the same shared credit balance as every other ReefAPI engine.
Do I need a SofaScore login or account?
No login to SofaScore is needed for the API response. You call ReefAPI with your x-api-key header, and the playground can run live examples before you create a production key.
How fresh is the SofaScore data?
The page example is captured from a live entity_search call, and production requests fetch live data through ReefAPI rather than a static sample.
How many credits does the SofaScore API use?
SofaScore actions currently cost 1-2 credits per successful call. Failed or blocked calls are free. All APIs draw from one credit pool.
Can I call SofaScore from an AI assistant or MCP client?
Yes. Connect ReefAPI once through MCP and your assistant can call sofascore actions with the same key, credit pool and JSON envelope used by normal REST requests.