ESPN API & Scraper
The ESPN API returns ESPN's live and final scores, fixtures, standings, teams, rosters, match summaries, betting odds, injury reports and news as JSON: for the NFL, NBA, WNBA, MLB, NHL, NCAA football, basketball and baseball, ATP and WTA tennis, cricket (IPL, Big Bash, Sheffield Shield, County Championship, Cricket World Cup) and soccer (Premier League, EFL Championship, La Liga, Serie A, Bundesliga, Ligue 1, Eredivisie, Primeira Liga, MLS, Liga MX, Brazilian Serie A, Champions League, Europa League, World Cup).
🤖 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 ESPN account. Every league action takes a sport and a league key; leagues lists the 30 keys, and any other ESPN league code works with its sport. scores returns every match of a league on a day or a date range with event_id, state (pre, in, post), clock and period, venue and city, broadcasters, both teams with score, season record, recent form and team stats; on 2026-11-21 it returned all 7 Premier League matches of the day with possession, shots, shots on target, corners and fouls per team. fixtures returns the schedule in the same shape. standings returns the table; on 2026-11-21 the NBA table had 30 teams with 22 fields each, including home, road, division, conference and last-ten records, streak, games behind and playoff seed. team lists a league's teams or one team's detail, roster a team's players with jersey, position, age, height, weight and nationality, team_schedule one team's whole season, summary one match in full (boxscore, per-player stats, lineups, head-to-head, win probability, odds), odds the moneyline, spread and total for one game or every game with an open line, injuries the league's injury report by team with each player's status, news the latest headlines, and conferences a league's conferences and divisions. Old calls to POST /sports-data/v1/<action> keep working unchanged; the call for ESPN is POST /espn/v1/<action>. For deep match and player analytics (xG, heatmaps, player ratings, transfers) see the SofaScore API.
What an ESPN field actually contains
Fields that read differently from how they look. Each row was measured on live ESPN data on 2026-11-21 (NBA standings and the Premier League scoreboard of that day).
| Field | What it holds |
|---|---|
| sport + league | Sent together on every league action. league is a key from leagues (nba, nfl, mlb, nhl, eng.1, uefa.champions, ipl) or any other ESPN league code with its sport (soccer + bra.1). Cricket leagues are ESPN series numbers behind the keys. |
| status.state, completed, clock, period | state is pre, in or post; completed true after the final whistle. clock and period follow the sport: a Premier League match on 2026-11-21 ended with clock "90'+10'", period 2 (the half) and detail "FT". |
| event_id | ESPN's match id as text (401879232 = Newcastle United v Arsenal, 2026-11-21). It opens summary and odds for the same sport and league. |
| team_id | ESPN's team id as text, scoped to its league: in the NBA 13 = Los Angeles Lakers, 20 = Philadelphia 76ers, 15 = Milwaukee Bucks. It feeds roster, team and team_schedule. |
| standings[].stats | 22 fields per team, all as text: overall, Home, Road, vs. Div., vs. Conf., Last Ten Games, streak (W5, L13), gamesBehind, playoffSeed, winPercent, pointsFor, pointsAgainst, avgPointsFor, avgPointsAgainst, differential and more. |
| standings order | ESPN's order, not rank order: the first NBA row on 2026-11-21 was the Milwaukee Bucks (1-16, seed 15). Sort by stats.playoffSeed within each group (Eastern Conference, Western Conference). |
| home / away statistics | Per-team match stats on the score row: possessionPct, totalShots, shotsOnTarget, wonCorners, foulsCommitted, totalGoals. Arsenal had 13 shots and 66.4% possession at Newcastle on 2026-11-21. |
| records, form | The team's season record as ESPN prints it (Manchester City "7-1-3") and its last five results as a string ("DLWLW"). |
| odds | null when no betting line is open: all 7 finished Premier League matches of 2026-11-21 had odds null. Upcoming games carry provider, line and over/under. |
| broadcasts | The channels ESPN lists for the match, US-centric: Peacock, USA Net, Universo and Tele for the Premier League on 2026-11-21. |
Soccer seasons are named by the year they start (season 2026 = 2026-27). NBA standings come back with season null and the current table.
Real request and response JSON
Captured from the indexed primary action, search, on .
{
"method": "POST",
"url": "https://api.reefapi.com/espn/v1/search",
"headers": {
"x-api-key": "$REEF_KEY",
"content-type": "application/json"
},
"body": {
"query": "Arsenal",
"type": "team"
}
}{
"ok": true,
"meta": {
"api": "espn",
"endpoint": "search",
"mode": "live",
"latency_ms": 598.9,
"record_count": 1,
"cache_hit": false,
"completeness_pct": 100
},
"data": {
"type": "team",
"query": "Arsenal",
"results": [
{
"source_id": "133604",
"espn_id": "359",
"name": "Arsenal",
"league": "English Premier League",
"sport": "Soccer",
"country": "England",
"formed_year": "1892",
"stadium": "Emirates Stadium",
"badge": "https://r2.thesportsdb.com/images/media/team/badge/uyhbfe1612467038.png",
"website": "www.arsenal.com"
}
],
"count": 1
}
}What the ESPN API does
| Action | Description | Concrete use case | Key params |
|---|---|---|---|
| scores | Live and final scores for a league — pass a date (YYYYMMDD) or range to get scores for any day; omit it for today/in-play games. | Content platforms call scores to get live and final scores for a league. | sport, league, date, dates |
| fixtures | Upcoming fixtures and the match schedule for a league, by date or date range (same event shape as scores). | Research tools call fixtures to get upcoming fixtures and the match schedule for a league, by date or date range (same event shap…. | sport, league, date, dates |
| standings | Full league table / standings with wins, losses, points and per-team stats (soccer leagues accept a season year). | Community analysts call standings to get full league table / standings with wins, losses, points and per-team stats (soccer leagues ac…. | sport, league, season |
| team | Every team in a league, or one team's detail (record, next game, logo) when you pass a team_id. | Media monitors call team to get every team in a league, or one team's detail (record, next game, logo) when you pass a team_id.. | sport, league, team_id |
| roster | A team's full roster / squad with jersey, position, age, height, weight and nationality for each player. | Content platforms call roster to get a team's full roster / squad with jersey, position, age, height, weight and nationality for e…. | sport, league, team_id |
| summary | Full match summary: boxscore, per-player stats, lineups, play-by-play count, head-to-head, win probability and odds. | Research tools call summary to get full match summary. | sport, league, event_id |
| odds | Betting odds (moneyline, spread, over/under) — for one game by event_id, or every scheduled game in the league that has odds. | Community analysts call odds to get betting odds (moneyline, spread, over/under). | sport, league, event_id, dates |
| news | Latest news headlines and articles for a league. | Media monitors call news to get latest news headlines and articles for a league.. | sport, league |
| search | Look up a team or player by name across all sports (returns ids, badges, league, country) — start here when you only have a name. | Content platforms call search to look up a team or player by name across all sports (returns ids, badges, league, country). | query, type |
| injuries | Current injury report for a league, grouped by team, with each player's status and detail. | Research tools call injuries to get current injury report for a league, grouped by team, with each player's status and detail.. | sport, league |
| team_schedule | One team's full season schedule and results (every game the team plays, unlike league-wide fixtures). | Community analysts call team_schedule to get one team's full season schedule and results (every game the team plays, unlike league-wide fi…. | sport, league, team_id, season |
| conferences | A league's conference / division structure (the directory of groups and sub-groups, e.g. college conferences). | Media monitors call conferences to get a league's conference / division structure (the directory of groups and sub-groups, e.g. | sport, league |
| leagues | Directory of every supported league/competition (key, name, sport) — call this first to discover the league keys the other actions take. | Content platforms call leagues to get directory of every supported league/competition (key, name, sport). | sport |
Call search from your stack
curl -X POST https://api.reefapi.com/espn/v1/search \
-H "x-api-key: $REEF_KEY" \
-H "content-type: application/json" \
-d '{"query":"Arsenal","type":"team"}'import os
import requests
REEF_KEY = os.environ["REEF_KEY"]
r = requests.post(
"https://api.reefapi.com/espn/v1/search",
headers={"x-api-key": REEF_KEY},
json={
"query": "Arsenal",
"type": "team"
},
timeout=90,
)
print(r.json()["data"])const res = await fetch("https://api.reefapi.com/espn/v1/search", {
method: "POST",
headers: {
"x-api-key": process.env.REEF_KEY,
"content-type": "application/json",
},
body: JSON.stringify({
"query": "Arsenal",
"type": "team"
}),
});
const { ok, data, meta, error } = await res.json();Ask your MCP-connected assistant: call reefapi.espn.search with {"query":"Arsenal","type":"team"}.Who uses this API and why
- Show live and final scores for the NFL, NBA, MLB, NHL or the Premier League in an app or on a site.
- Build league tables with home, road, conference and last-ten records from standings.
- Track injury reports and rosters for fantasy sports tools.
- Collect moneyline, spread and over/under lines for scheduled games.
- Store a season's results per team with team_schedule and summary.
Questions developers ask before integrating
Is there an ESPN API?
Yes. The ESPN API on ReefAPI returns ESPN scores, fixtures, standings, teams, rosters, match summaries, odds, injuries and news as JSON, with no ESPN account. Call POST /espn/v1/<action>, for example scores with sport soccer and league eng.1.
Which sports and leagues does the ESPN API cover?
30 league keys across 7 sports: soccer 14 (Premier League, EFL Championship, La Liga, Serie A, Bundesliga, Ligue 1, Eredivisie, Primeira Liga, MLS, Liga MX, Brazilian Serie A, Champions League, Europa League, World Cup), cricket 5, basketball 4 (NBA, WNBA, NCAA men and women), American football 2 (NFL, college), baseball 2 (MLB, college), tennis 2 (ATP, WTA) and hockey 1 (NHL). Any other ESPN league code also works with its sport. Golf, MMA and motor racing are not covered.
How do I get today's or a past day's scores?
Call scores with sport and league, and date as YYYYMMDD for a day (or YYYYMMDD-YYYYMMDD for a range); omit date for today and live games. On 2026-11-21 sport soccer, league eng.1, date 20261121 returned the 7 Premier League matches of that day, all final, with score, clock, venue, broadcasters and team stats.
Can I get NBA, NFL, MLB or NHL standings?
Yes, with standings. On 2026-11-21 the NBA table returned 30 of 30 teams with 22 fields each: overall, home, road, division, conference and last-ten records, streak, games behind and playoff seed. The Philadelphia 76ers (14-3) led the East and the Los Angeles Lakers (14-3) the West. Rows come in ESPN's order; sort by stats.playoffSeed.
Does the ESPN API return betting odds?
Yes, while a line is open. odds returns moneyline, spread and over/under for one game by event_id, or for every scheduled game of a league that has a line. Finished games have odds null: all 7 Premier League matches played on 2026-11-21 did.
Can I get injury reports and rosters?
Yes. injuries returns the league's current injury report grouped by team, with each player's position, status, date and detail. roster returns a team's players with jersey, position, age, height, weight and nationality, by the ESPN team_id that standings, scores and team return (13 = Los Angeles Lakers).
Where do event_id and team_id come from?
From scores, fixtures, team_schedule (event_id) and from standings, scores or team (team_id). Both are ESPN's own numeric ids returned as text and scoped to the league. On 2026-11-21 Newcastle United v Arsenal was event_id 401879232; summary and odds take it.
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 ESPN actions now have their own name: POST /espn/v1/<action>. The SofaScore actions moved to POST /sofascore/v1/<action>.
What is the ESPN API?
ESPN API is a ReefAPI endpoint group for espn scores, fixtures, standings, rosters, match summaries, odds, injuries and news for the nfl, nba, mlb, nhl, college sports, cricket and soccer, as json. It returns live JSON through POST requests under /espn/v1.
Is the ESPN API free to try?
Yes. ReefAPI starts with 1,000 free credits, no card required. ESPN calls use the same shared credit balance as every other ReefAPI engine.
Do I need an ESPN login or account?
No login to ESPN 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 ESPN data?
The page example is captured from a live scores call, and production requests fetch live data through ReefAPI rather than a static sample.
How many credits does the ESPN API use?
ESPN 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 ESPN from an AI assistant or MCP client?
Yes. Connect ReefAPI once through MCP and your assistant can call espn actions with the same key, credit pool and JSON envelope used by normal REST requests.