# ESPN Sports Data: Scores, Schedules, Standings, Injuries, Odds (`eze007/espn-sports-data`) Actor

Live scores, schedules, standings, rosters, injuries, news, odds and box scores from ESPN's public JSON endpoints for 20+ leagues. Flat rows, no browser, no login. Built for analysts, bettors, fantasy tools and AI agents (MCP-ready).

- **URL**: https://apify.com/eze007/espn-sports-data.md
- **Developed by:** [Eric Birdsong](https://apify.com/eze007) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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 Sports Data — Scores, Schedules, Standings, Injuries, Odds

Pull **live scores, schedules, standings, rosters, injury reports, news, sportsbook odds, box scores and college rankings** from ESPN's public JSON endpoints for **20+ leagues** — NBA, WNBA, NCAA men's & women's basketball, NFL, college football, MLB, NHL, MLS, Premier League, La Liga, Bundesliga, Serie A, Ligue 1, Champions League, UFC, PGA Tour, Formula 1, ATP and WTA — plus any other ESPN league via `customLeague`.

No browser, no login, no proxies. Flat rows you can drop straight into a spreadsheet, a model, or an AI agent.

### What you get

| dataType | One row per | Key fields |
|---|---|---|
| `scoreboard` | game on the date(s) | status, period, clock, home/away team + score + record, venue, broadcasts, opening odds, spread, over/under |
| `schedule` | game on a team's season schedule | same as scoreboard, for the `teamIds` you pass |
| `standings` | team | W, L, PCT, GB, streak, home/away/conference records (every stat ESPN publishes) |
| `teams` | team | ESPN team ID, name, abbreviation, logo — use the IDs for schedule/roster/news |
| `roster` | player | name, jersey, position, age, height, weight, experience, college, status, injuries |
| `injuries` | injured player | team, player, position, status, injury type, detail, expected return |
| `news` | article | headline, description, published time, byline, link, image, categories |
| `odds` | sportsbook line | provider, spread, over/under, moneylines, spread odds, favorite |
| `summary` | game | team box score, player box score, scoring plays, win probability, attendance |
| `rankings` | ranked team (college) | poll, rank, previous rank, record, points, first-place votes, trend |

### Quick start

Today's NBA games:

```json
{ "league": "nba", "dataType": "scoreboard", "dates": "today" }
```

NFL injury report:

```json
{ "league": "nfl", "dataType": "injuries" }
```

A full college basketball slate (all Division I games, one date range):

```json
{ "league": "ncaam", "dataType": "scoreboard", "dates": "20261120-20261127" }
```

Odds for every Premier League match this weekend:

```json
{ "league": "epl", "dataType": "odds", "dates": "20261108-20261109" }
```

Any other ESPN league: `{"customLeague": "soccer/mex.1", "dataType": "standings"}`.

### Pricing (pay per result — you only pay for rows you receive)

| Event | Price | Example |
|---|---|---|
| Game row (scoreboard, schedule, summary) | $0.002 | a 15-game NBA night = **$0.03** |
| Record row (standings, teams, roster, injuries, news, rankings) | $0.001 | full NFL injury report (~800 rows) = **$0.80** |
| Odds row | $0.003 | odds for 15 games × ~3 books = **$0.14** |

A season-long daily scoreboard pull for one league costs about **$3–$5 a year**. Platform compute is included in the price.

Free Apify plan: output is capped at 10 rows per run so you can test the schema; any paid Apify plan removes the cap.

### For AI agents (MCP)

This Actor is pay-per-event and exposed through the Apify MCP server. Inputs are plain enums and strings, so an agent can call it with no setup: pick a `league`, a `dataType`, and (optionally) `dates`. Use `dataType: teams` once to discover `teamIds`, then `schedule`, `roster` or `news` for a specific team.

### Notes and limits

- `dates` accepts `today`, `yesterday`, `tomorrow`, `YYYYMMDD`, or a range `YYYYMMDD-YYYYMMDD` (max 31 days per run).
- Odds come from ESPN's partner sportsbooks as published on ESPN; availability varies by league and game time.
- Data is ESPN's public data and is provided for research, analytics and personal use; check ESPN's terms for your use case. This Actor is not affiliated with ESPN or Disney.
- Found a league or field that's missing? Open an issue — new leagues are usually added within a day.

### Need a variant or a new data source?

Request it here — it ships as a pay-per-result Actor, usually within days, and you'll get the link in your request: https://github.com/Realdeal00/actor-requests/issues/new?template=request.yml

### Changelog

- 0.1 — initial release: 20 leagues, 10 data types, pay-per-event pricing.

# Actor input Schema

## `league` (type: `string`):

Which league to pull. Use customLeague for anything not listed (format: sport/league, e.g. soccer/mex.1).

## `customLeague` (type: `string`):

Overrides League. ESPN path segment such as soccer/eng.2, basketball/nbl, hockey/ncaa-men, football/xfl.

## `dataType` (type: `string`):

scoreboard = games for the date(s); schedule = a team's season schedule (needs teamIds); standings; teams; roster (needs teamIds); injuries; news; odds (needs eventIds or uses the scoreboard games); summary = box score + play-by-play (needs eventIds); rankings (college polls).

## `dates` (type: `string`):

For scoreboard/odds: 'today', 'yesterday', 'tomorrow', YYYYMMDD, or a range YYYYMMDD-YYYYMMDD (max 31 days).

## `teamIds` (type: `array`):

ESPN numeric team IDs (get them from dataType=teams). Used by schedule, roster and news.

## `eventIds` (type: `array`):

ESPN event IDs for odds or summary. If empty, odds/summary run for every game on the selected dates.

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

Season for schedule/standings/rankings, e.g. 2026. Defaults to the current season.

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

Stop after this many rows (controls cost).

## Actor input object example

```json
{
  "league": "nba",
  "dataType": "scoreboard",
  "dates": "today",
  "maxItems": 1000
}
```

# Actor output Schema

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

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("eze007/espn-sports-data").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("eze007/espn-sports-data").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 '{}' |
apify call eze007/espn-sports-data --silent --output-dataset

```

## MCP server setup

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

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/wgr1SUe8SaKNWX3C3/builds/4NHb3Zk1wjfbQIwMV/openapi.json
