# ESPN API: Scores, Odds, Box Scores, Standings & Stats (`oswaldocarabano/espn-sports-data-api`) Actor

ESPN sports data for 360 leagues: live and final scores, schedules, betting odds, box scores with player stats, teams, standings, rosters with season stats, and news. NBA, NFL, MLB, NHL, college, soccer, F1, golf, tennis, UFC. No login.

- **URL**: https://apify.com/oswaldocarabano/espn-sports-data-api.md
- **Developed by:** [Oswaldo Carabaño](https://apify.com/oswaldocarabano) (community)
- **Categories:** Sports, Developer tools, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 games

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## ESPN API: Scores, Odds, Box Scores, Standings & Stats

Get **ESPN sports data** as clean JSON, CSV or Excel: **live and final scores**, schedules, **betting odds** (spread, moneyline, total), **box scores with player stats**, teams, **standings**, **rosters with season stats** and **news** — for **360 leagues in 17 sports**: NBA, WNBA, NFL, MLB, NHL, college football and basketball, the Premier League, LaLiga, Bundesliga, Serie A, Ligue 1, Champions League, MLS, Liga MX, Formula 1, NASCAR, PGA Tour, UFC, ATP and WTA tennis, AFL, rugby and more.

It reads ESPN's public JSON endpoints, the same ones espn.com uses. No login, no account, no API key. Error rows and duplicates are **never charged**.

> This actor is not affiliated with, endorsed by, or connected to ESPN. It reads publicly available data.

### What you get

| Output type | One row per | Highlights |
|---|---|---|
| **Games** (default) | game, race session, tennis match or tournament | Start time (UTC), status (scheduled / live / final, clock and period), **score and line scores**, winner, venue and city, **attendance**, team records and form, **game leaders**, soccer **goals and cards**, **betting odds** for upcoming games (spread, total, moneylines incl. draw, prices, favourite), TV networks, recap, ticket prices, ESPN link. Racing and golf rows carry the **whole field** with finishing order |
| **Game details** | game | Full **box score**: **player stats** for every player (minutes, points, rebounds… / passing, rushing… / goals, shots, saves…), **team stats**, soccer **lineups and formations**, **scoring plays**, **injury report**, **officials**, **closing odds from each sportsbook**, win probability, season series and ESPN's game story |
| **Teams** | team | Record, wins/losses/ties, points for and against, streak, playoff seed, **standing summary** ("3rd in Atlantic Division"), home and road records, venue, **next game**, colours and logos |
| **Standings** | team (or driver) in a table | Conference/division/group, position, wins, losses, ties, win %, points, point differential, **games behind**, streak, clinch mark, home/road/last-10 records, qualification note and every stat ESPN publishes |
| **Athletes** | rostered player | Name, jersey, position, **age, date of birth, height, weight, birthplace, college**, experience, **injury status**, headshot, and **this season's stats** (main line, every category, career totals) |
| **News** | article | Headline, summary, author, publication time, link, image, and the **teams and athletes tagged** |

Fill rates measured on real data on 18 Nov 2026 (n = rows, across leagues):

| Field | Fill |
|---|---|
| Games: date, competitors, venue | 100%, 99.8%, 97.5% (n = 3,000, 19 leagues) |
| Games: broadcasts / leaders / recap of finished games | 84.6% / 65.1% / 54.0% |
| Games: **betting odds on upcoming games** | 61.8% of scheduled games (100% for NFL, Premier League, LaLiga, Serie A, Champions League; ESPN removes the line once a game is final) |
| Game details: team stats / player stats or lineups / odds / injuries / officials | 99.3% / 100% / 100% / 70.0% / 70.5% (n = 400, 8 leagues) |
| Teams: record / next game / standing summary | 83.8% / 95.1% / 81.3% (n = 284, 12 leagues) |
| Standings: wins, points for, overall record | 95.8% (n = 858, 16 leagues) |
| Athletes: date of birth / height / season stats | 99.8% / 98.5% / 90.2% (n = 600, 5 leagues) |
| News: headline, summary, date / teams tagged | 100% / 73.1% (n = 595, 12 leagues) |

Every field is always present: missing values are `null`, never left out. Dates are ISO 8601 (UTC); scores, odds and stats are numbers.

### How to use it

- **Output type** — Games, Game details, Teams, Standings, Athletes or News. One type per run.
- **Leagues** — short names like `nba`, `nfl`, `mlb`, `nhl`, `wnba`, `ncaaf`, `ncaab`, `epl`, `laliga`, `bundesliga`, `serie-a`, `ligue-1`, `champions-league`, `mls`, `liga-mx`, `f1`, `nascar`, `pga`, `ufc`, `atp`, `wta`, `afl`, or any ESPN league as `sport/league` (`soccer/eng.2`, `soccer/bra.1`, `basketball/nba-development`). Empty = NBA, NFL, NHL, MLB and the Premier League.
- **Dates** (games and game details) — **From date / To date**, or days back and ahead of today (default: yesterday to tomorrow). Up to 366 days per run. ESPN days follow US Eastern time.
- **Game links or ids** — paste ESPN game links (`https://www.espn.com/nba/game/_/gameId/401910002`) or ids (`401910002`, `nba:401910002`) to get their game details.
- **Teams** — narrow any output to teams: ESPN id, abbreviation (`NY`, `LAL`, `ARS`) or part of the name.
- **Game status** — all, scheduled, live or final.
- **Standings season** — a past season's table (e.g. `2025`). If ESPN has none for that season you get a free error row, never another season's table.
- **Athletes: include season stats** — on by default.
- **Max rows** — default 100, shared fairly between leagues.

#### Examples

Tonight's NBA and NHL games with odds:

```json
{ "leagues": ["nba", "nhl"], "daysBack": 0, "daysAhead": 0, "status": "scheduled" }
```

Every Premier League result of a month with goals and cards:

```json
{ "leagues": ["epl"], "startDate": "2026-10-01", "endDate": "2026-10-31", "status": "final", "maxItems": 500 }
```

Box scores of a list of games:

```json
{ "gameUrls": ["https://www.espn.com/nba/game/_/gameId/401910002", "nfl:401873065"] }
```

Rosters with season stats of two teams:

```json
{ "outputType": "athletes", "leagues": ["nba"], "teams": ["NY", "Lakers"] }
```

### Output example (Games)

```json
{
  "_type": "game",
  "gameId": "401910007",
  "sport": "basketball",
  "league": "nba",
  "date": "2026-11-19T00:00:00.000Z",
  "name": "Memphis Grizzlies at Cleveland Cavaliers",
  "statusState": "pre",
  "statusDetail": "Wed, November 18th at 7:00 PM EST",
  "venueName": "Rocket Arena",
  "homeTeamAbbreviation": "CLE",
  "homeRecord": "8-7",
  "awayTeamAbbreviation": "MEM",
  "homeScore": null,
  "oddsProvider": "DraftKings",
  "oddsDetails": "CLE -4.5",
  "spread": -4.5,
  "overUnder": 237.5,
  "homeMoneyline": -196,
  "awayMoneyline": 164,
  "espnUrl": "https://www.espn.com/nba/game/_/gameId/401910007/grizzlies-cavaliers"
}
```

(Abridged: a game row has 70 fields.)

### Pricing

Pay per row delivered, nothing else:

| Row | Price |
|---|---|
| Game | **$1 per 1,000 games** ($0.001) |
| Game detail (box score) | **$3 per 1,000 game details** ($0.003) |
| Team | **$1 per 1,000 teams** ($0.001) |
| Standings row | **$0.50 per 1,000 standings rows** ($0.0005) |
| Athlete with season stats | **$1.50 per 1,000 athletes** ($0.0015) |
| News article | **$0.50 per 1,000 news articles** ($0.0005) |

Plus the platform's run start of $0.00001. Error rows (unknown league, game not found, nothing on those dates) and duplicates are free. Set a maximum cost per run and the actor stops cleanly at it.

### How it compares

Measured on 18 Nov 2026 from each actor's published dataset schema and price (Apify API):

| Actor | Price of a game row | Declared output fields | Box scores | Rosters with stats | Standings | News | Odds |
|---|---|---|---|---|---|---|---|
| **This actor** | **$0.001** | **181** | yes | yes | yes | yes | yes |
| ESPN Sports Scores & Schedules (hgservices) | $0.001 | 23 | not offered | not offered | not offered | not offered | not in schema |
| ESPN Sports Scraper (scrapesage) | $0.003 | 99 | yes ($0.006) | $0.002 | $0.002 | $0.002 | $0.003 |
| Sports Scores & Schedules API (lergassy) | $0.0028 | 113 | yes ($0.005) | $0.0018 | $0.0018 | $0.0018 | — |

### FAQ

**Is the data live?** Yes: every run reads ESPN at that moment (nothing is cached). Live games show the current score, clock and period.

**Why are there no odds on finished games in Games?** ESPN removes the line from the scoreboard once a game is final. **Game details** keeps the closing line of each sportsbook.

**Which leagues work?** 360 leagues of 17 sports answered on 18 Nov 2026. Teams, rosters and standings exist where ESPN publishes them: individual sports (golf, tennis, racing, MMA) have games but no teams or rosters; F1 has driver and constructor standings.

**Why did a league return an error row?** ESPN did not recognise the league slug. Use a short name from the list above or the `sport/league` form shown in ESPN's own URLs.

**College sports?** College football lists FBS games by default (FCS with the division option); college basketball lists all Division I games, not only the top 25.

**Personal data?** Only what ESPN publishes about athletes (name, bio, stats). Contact details are removed from any free text.

**Something wrong or missing?** Open an issue on the actor's Issues tab and it will be looked at.

# Actor input Schema

## `outputType` (type: `string`):

One row type per run. <b>Games</b>: scores and schedule with status, venue, attendance, line scores, team stats, game leaders, key events (goals, cards), betting odds (spread, moneyline, total) and broadcasts. <b>Game details</b>: the full box score of each game (player stats, team stats, lineups, scoring plays, injuries, officials, odds from every provider). <b>Teams</b>: every team with record, standing summary, venue and next game. <b>Standings</b>: one row per team per conference or group. <b>Athletes</b>: team rosters with bio and this season's stats. <b>News</b>: ESPN headlines with teams and athletes tagged.

## `leagues` (type: `array`):

Short names (nba, wnba, nfl, mlb, nhl, ncaaf, ncaab, ncaaw, mls, epl, laliga, bundesliga, serie-a, ligue-1, champions-league, liga-mx, f1, nascar, pga, lpga, ufc, atp, wta, afl, nrl…) or any ESPN league as <code>sport/league</code> (soccer/eng.2, soccer/bra.1, basketball/nba-development). 360 leagues of 17 sports answer. Leave empty for NBA, NFL, NHL, MLB and the Premier League.

## `startDate` (type: `string`):

First day of games (YYYY-MM-DD, ESPN days are US Eastern). Empty = yesterday. Used by Games and Game details.

## `endDate` (type: `string`):

Last day of games, included (YYYY-MM-DD). Empty = tomorrow. Up to 366 days per run; ESPN is read day by day.

## `daysBack` (type: `integer`):

Without dates: how many days before today. Default 1 (yesterday).

## `daysAhead` (type: `integer`):

Without dates: how many days after today. Default 1 (tomorrow), so upcoming games come with betting odds.

## `gameUrls` (type: `array`):

ESPN game links (https://www.espn.com/nba/game/\_/gameId/401910002) or event ids (401910002 or nba:401910002). Pasting games switches the run to Game details.

## `teams` (type: `array`):

Narrow to these teams: ESPN team id, abbreviation (NY, LAL, ARS) or part of the name (Knicks, Arsenal). Games involving them, their team rows, their standings rows, their rosters or their news.

## `status` (type: `string`):

Games and game details only.

## `season` (type: `integer`):

Season year for standings (e.g. 2025). Empty = current. If ESPN has no table for that season you get an error row, never another season's table.

## `includeAthleteStats` (type: `boolean`):

Adds this season's stats, every stat category and career totals to each athlete (one extra request per athlete). Soccer rosters already carry season stats.

## `collegeFootballDivision` (type: `string`):

Which college football games to list: FBS (default) or FCS.

## `maxItems` (type: `integer`):

Rows to deliver (and charge) at most, shared fairly across leagues. Error rows are free.

## `maxConcurrency` (type: `integer`):

Requests to ESPN in flight at once. 6 is fast and polite; ESPN did not throttle 16 in our tests.

## Actor input object example

```json
{
  "outputType": "games",
  "leagues": [
    "nba",
    "nfl",
    "epl"
  ],
  "daysBack": 1,
  "daysAhead": 1,
  "status": "all",
  "includeAthleteStats": true,
  "collegeFootballDivision": "fbs",
  "maxItems": 50,
  "maxConcurrency": 6
}
```

# Actor output Schema

## `results` (type: `string`):

The rows of this run: games, game details, teams, standings, athletes or news, depending on the output type you chose.

## `errors` (type: `string`):

Every error of the run with its reason. Always present, empty when nothing failed.

## `summary` (type: `string`):

Counts of delivered, charged, filtered, duplicate and error rows, requests and duration for this run.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "outputType": "games",
    "leagues": [
        "nba",
        "nfl",
        "epl"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("oswaldocarabano/espn-sports-data-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "outputType": "games",
    "leagues": [
        "nba",
        "nfl",
        "epl",
    ],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("oswaldocarabano/espn-sports-data-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "outputType": "games",
  "leagues": [
    "nba",
    "nfl",
    "epl"
  ],
  "maxItems": 50
}' |
apify call oswaldocarabano/espn-sports-data-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,oswaldocarabano/espn-sports-data-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/XoxkSwFm8fPBk6IEC/builds/javPyi20KGVTfUkGq/openapi.json
