# ESPN Scraper: Scores, Standings, Injuries, Odds & Stats (`panix/espn-sports-scraper`) Actor

Get ESPN scores, betting odds, box scores, standings, rosters, injury reports with return dates, news and player game logs for 50+ leagues: NFL, NBA, MLB, NHL, soccer, college, F1, tennis, golf and UFC. Only-new mode for alerts. No login.

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

## Pricing

from $1.10 / 1,000 result rows

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 Scraper: Scores, Standings, Injuries, Odds & Player Stats

Get ESPN data as clean JSON, CSV or Excel for **50+ leagues**: NFL, NBA, MLB, NHL, WNBA, college football and basketball, the big soccer leagues and cups, F1, NASCAR, tennis, golf and UFC. No login, no ESPN account, no API key.

Pick what you want, name the leagues, and set a date range:

| You want | Set `dataType` to | What a row is |
|---|---|---|
| Scores, schedules, live games, betting lines | `games` | One game, race session, tennis match, fight or golf leaderboard |
| Box score, every player's stats, opening and closing odds, officials | `games` + `includeDetails` | The same game row with a `details` block |
| League tables | `standings` | One team in one group |
| Team list | `teams` | One team |
| Rosters | `players` | One player with position, age, height, college |
| Injury reports | `injuries` | One injured player with status, body part and expected return date |
| Headlines | `news` | One ESPN article |
| Polls and rankings | `rankings` | One line of the AP, CFP, ATP, WTA or UFC ranking |
| Stats game by game | `playerGameLog` | One game of one player |

### Who uses it

- **Sports bettors and modelers** who need lines, opening and closing numbers, team and player stats, and results in one table.
- **Fantasy players** who track injury status and return dates every morning.
- **Developers and AI agents** who need a plain JSON source for scores, standings and rosters.
- **Journalists, bloggers and newsletter writers** who fill daily recaps and league tables.
- **Analysts and students** who build datasets of finished games, box scores and game logs.

### What you get that other ESPN scrapers often skip

- **One Actor for all of it.** Games, box scores, odds, standings, rosters, injuries, news, rankings and game logs, with one input and one price.
- **The full college slate.** College basketball and football games come with every Division I game, not only ESPN's featured top 25 (145 men's basketball games on a January Saturday, against 21 shown by default).
- **Tournaments handled properly.** Tennis gives one row per match with round and players, F1 one row per session, UFC one row per fight, golf one leaderboard row with every player.
- **Only-new mode for alerts.** Schedule the Actor and pay only for games that went live or finished, injuries whose status or return date changed, and new articles.
- **Injuries with return dates**, body part, side, and the analyst note.
- **Plain inputs.** Write `premier league`, `ncaam` or `formula 1`. Write `yesterday` or `+3` for dates.
- **Fair billing.** Note rows, error rows and games without details are free. A spending limit stops the run exactly where you set it.

### Quick start

Yesterday's, today's and tomorrow's games for four leagues (this is the example input of the Actor):

```json
{
  "leagues": ["nba", "nfl", "mlb", "premier league"],
  "dateFrom": "yesterday",
  "dateTo": "tomorrow",
  "maxItems": 30
}
```

Finished NBA games of the last three days with box scores, player stats and odds:

```json
{
  "leagues": ["nba"],
  "dateFrom": "-3",
  "dateTo": "-1",
  "gameStatus": "finished",
  "includeDetails": true
}
```

Today's NBA, NFL, MLB and NHL injuries, only the ones that are new or changed since your last run (schedule this every morning):

```json
{
  "dataType": "injuries",
  "leagues": ["nba", "nfl", "mlb", "nhl"],
  "onlyNew": true,
  "monitorKey": "morning-injuries"
}
```

Lakers roster and a player's game log (athlete ids are in every player and injury row):

```json
{ "dataType": "players", "leagues": ["nba"], "teams": ["lakers"] }
```

```json
{ "dataType": "playerGameLog", "leagues": ["nba"], "athleteIds": ["1966"] }
```

### Input

| Field | What it does |
|---|---|
| `dataType` | `games` (default), `standings`, `teams`, `players`, `injuries`, `news`, `rankings`, `playerGameLog` |
| `leagues` | Names or codes, one per line: `nba`, `nfl`, `mlb`, `nhl`, `wnba`, `ncaam`, `ncaaw`, `ncaaf`, `fcs`, `premier league`, `la liga`, `bundesliga`, `serie a`, `ligue 1`, `mls`, `champions league`, `f1`, `nascar`, `atp`, `wta`, `pga`, `ufc` and more. A sport name such as `soccer` adds all its leagues. |
| `dateFrom`, `dateTo` | Games only. `YYYY-MM-DD`, `today`, `yesterday`, `tomorrow`, `+3`, `-7`. Up to 31 days. Empty means today. |
| `gameStatus` | `all`, `scheduled`, `live` or `finished` |
| `teams` | Names or codes, for example `Lakers`, `LAL`, `Arsenal`, `Djokovic`. Filters games, standings, teams, players, injuries and rankings. |
| `includeDetails` | Adds box score, player stats, odds, officials, injuries and recap to every game |
| `includePlays` | Adds the full play-by-play (turns on `includeDetails`) |
| `season` | Season year as ESPN counts it. NBA 2026 is the 2025-26 season. NFL and soccer 2026 is the season that starts in 2026. Empty means the current one. |
| `athleteIds` | For `playerGameLog` |
| `newsLimit` | Headlines per league (1 to 200, default 25) |
| `maxItems` | Stops after this many rows (default 1,000) |
| `onlyNew`, `monitorKey` | Deliver only rows that are new or changed since the last run with the same name |
| `proxyConfiguration` | Optional. ESPN answers without a proxy; the Actor uses the proxy only if ESPN ever refuses. |

### Output

Every row has a `type` (`game`, `standing`, `team`, `player`, `injury`, `article`, `ranking`, `gameLog`) plus `league`, `leagueName`, `sport` and `scrapedAt`. Rows without data are `no_results` or `error` rows, which are free. Real rows from our test runs:

**A finished game** (`dataType: games`)

```json
{
  "type": "game", "league": "nba", "leagueName": "NBA", "gameId": "401810433",
  "name": "Memphis Grizzlies at Orlando Magic", "date": "2026-01-15T19:00Z",
  "status": "finished", "statusDetail": "Final", "completed": true,
  "venue": "Uber Arena", "city": "Berlin", "neutralSite": true, "attendance": 13738,
  "broadcast": "Prime Video",
  "home": { "name": "Orlando Magic", "abbreviation": "ORL", "score": 118, "winner": true, "record": "23-18", "linescores": [23, 35, 26, 34] },
  "away": { "name": "Memphis Grizzlies", "abbreviation": "MEM", "score": 111, "winner": false, "record": "17-23", "linescores": [39, 28, 12, 32] },
  "winner": "Orlando Magic", "scoreLine": "MEM 111 - 118 ORL",
  "url": "https://www.espn.com/nba/game/_/gameId/401810433/grizzlies-magic"
}
```

Each team also carries `stats` (rebounds, assists, shooting) and `leaders` (top scorer, rebounder, passer). Upcoming games carry `odds` when ESPN lists a line.

**The `details` block** (`includeDetails: true`, shortened)

```json
{
  "attendance": 13738,
  "officials": [{ "name": "Courtney Kirkland", "role": "Referee" }],
  "teamStats": [{ "name": "Memphis Grizzlies", "homeAway": "away", "stats": { "FG": "38-83", "3PT": "17-36", "Assists": 27 } }],
  "playerStats": [{ "team": "Memphis Grizzlies", "athlete": "Jaren Jackson Jr.", "position": "F", "starter": true,
                    "stats": { "MIN": 33, "PTS": 30, "FG": "12-22", "3PT": "3-5", "FT": "3-3" } }],
  "odds": [{ "provider": "Draft Kings", "details": "ORL -5.5", "spread": -5.5, "overUnder": 227.5,
             "homeMoneyLine": -230, "awayMoneyLine": 190, "homeSpreadOpen": "-4.5", "homeSpreadClose": "-5.5" }]
}
```

Soccer games add lineups with formation, substitutions and key events (goals, cards). NFL games add passing, rushing and receiving tables.

**An injury** (`dataType: injuries`)

```json
{
  "type": "injury", "league": "nba", "athleteId": "3146557", "athlete": "Jock Landale", "position": "C",
  "team": "Atlanta Hawks", "status": "Day-To-Day", "injury": "Hip", "bodyPart": "Torso",
  "detail": "Inflammation", "side": "Right", "returnDate": "2026-11-20", "fantasyStatus": "GTD",
  "date": "2026-11-19T14:50Z", "shortComment": "Landale (hip) won't play Wednesday in Oklahoma City."
}
```

**A standings line** (`dataType: standings`)

```json
{ "type": "standing", "league": "eng.1", "season": 2026, "group": "2026-27 English Premier League", "rank": 1,
  "team": "Arsenal", "wins": 9, "losses": 1, "draws": 0, "points": 27, "gamesPlayed": 10, "note": "Champions League" }
```

Every standings row also has `stats` with every column ESPN shows (goal difference, streak, home and away records) and `statValues` with the same numbers as numbers.

**A player** (`dataType: players`)

```json
{ "type": "player", "league": "nba", "athleteId": "5105817", "name": "Carson Cooper", "position": "C",
  "height": "6' 11\"", "weight": "245 lbs", "age": 22, "birthPlace": "Jackson, MI, USA",
  "college": "Michigan State", "team": "Los Angeles Lakers", "status": "Active" }
```

**A game log line** (`dataType: playerGameLog`)

```json
{ "type": "gameLog", "league": "nba", "athleteId": "1966", "athlete": "LeBron James", "team": "Philadelphia 76ers",
  "gameId": "401910010", "date": "2026-11-19T00:00:00.000+00:00", "opponent": "Orlando Magic", "homeAway": "away",
  "result": "W", "score": "121-116",
  "stats": { "MIN": 31, "FG": "8-16", "3PT": "1-5", "REB": 3, "AST": 6, "PTS": 22 } }
```

The **Output** tab shows ready tables for games, standings, teams, players, injuries, news, rankings and game logs. The key-value store record `SUMMARY` lists rows per league, requests and why the run stopped.

### Which data each league has

| Data | Available for |
|---|---|
| Games and scores | All leagues |
| Betting odds | Games ESPN lists a line for: mainly NFL, NBA, NHL, college basketball and soccer |
| Box score and player stats | Team sports and soccer (soccer gives lineups and key events). Not F1, tennis, golf or UFC. |
| Standings | All leagues with a table: team sports, soccer leagues and cups with a group stage, F1 and NASCAR points |
| Teams and rosters | All team leagues |
| Injuries | NFL, NBA, WNBA, MLB, NHL, college football |
| Rankings and polls | College football, college basketball, college hockey, ATP, WTA, UFC |

When a league has no data of the type you asked for, you get one free `no_results` row that says so.

### Pricing

You pay per row, and the price falls with your Apify plan:

| Plan | Per 1,000 rows | Per 1,000 games with details |
|---|---|---|
| Free | $1.80 | +$4.00 |
| Bronze | $1.50 | +$3.50 |
| Silver | $1.30 | +$3.00 |
| Gold and above | $1.10 | +$2.50 |

Plus $0.001 to start a run. Details are charged only for games where ESPN had details. Notes, errors and empty answers are free. In our tests a run of about 100 games used less than $0.001 of Apify platform usage, so the price you see is the price you pay.

Examples at the Bronze price: a day of NBA games (about 10 rows) costs about $0.016. All 30 NBA rosters (about 530 players) cost about $0.80. Today's injury lists for NFL, NBA, MLB and NHL (about 1,200 rows) cost about $1.80, or a few cents a day with `onlyNew`.

### Only-new mode

Turn on `onlyNew` and give the schedule a `monitorKey`. The Actor remembers what it delivered.

- **Games** come again when their status changes: scheduled, then live, then finished.
- **Injuries** come again when status, return date or injury changes.
- **News** comes once per article.
- **Rankings** come again when a poll is updated.

The first run delivers everything that matches. Later runs deliver only the changes, and you pay only for those rows. Use a different `monitorKey` for each schedule.

### Coming from another ESPN scraper, or from ESPN's raw feeds?

| What you hit with the raw feeds | What this Actor does |
|---|---|
| College slates show about 20 games unless you pass a hidden `groups` code | Asks for the full Division I slate automatically |
| Tennis matches sit inside tournament groupings, F1 sessions inside race weekends | One flat row per match, session or fight |
| Date ranges are rejected, so you need one request per day | A range of up to 31 days in one input |
| Scores, box scores, odds and injuries live on different endpoints with different shapes | One input and one row layout |
| A daily schedule re-delivers the same games | `onlyNew` delivers only changes |
| One failing league breaks a script | The failed league becomes a free `error` row and the others finish |

### Use it from code and no-code tools

Python with `apify-client` 3.x:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("panix/espn-sports-scraper").call(run_input={
    "leagues": ["nba"], "dateFrom": "yesterday", "gameStatus": "finished", "includeDetails": True,
})
for game in client.dataset(run.default_dataset_id).iterate_items():
    if game["type"] == "game":
        print(game["scoreLine"], game["details"]["odds"][0]["details"] if game.get("details", {}).get("odds") else "")
```

JavaScript:

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('panix/espn-sports-scraper').call({
    dataType: 'injuries', leagues: ['nfl'], onlyNew: true, monitorKey: 'nfl-injuries',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((i) => `${i.athlete} (${i.team}): ${i.status}, back ${i.returnDate ?? 'unknown'}`));
```

**n8n, Make and Zapier:** use the Apify node or module "Run Actor", paste the input JSON, then read the dataset items. Put the Actor on an Apify schedule (for example every morning) and send the rows to Google Sheets, Slack, Discord or a database. AI agents can call it through the Apify MCP server.

### FAQ

**Does it need a login or an API key?** No. It reads the public data ESPN shows on its own pages and apps.

**How fresh is it?** Live games update as ESPN updates them. For live scores, run it on a schedule every minute or two, or use `gameStatus: live`.

**Which time zone do the dates use?** For team leagues, a game day follows ESPN's calendar (US Eastern time). For tennis, racing, golf and fights, days are the UTC date of the start. All `date` values in the output are UTC.

**How far back can I go?** Games from past seasons are available; each run covers up to 31 days. Run it several times for a full season.

**Why did I get a `no_results` row?** The league had no games on those days, or does not have that data type (see the table above). It is free.

**Can I get live odds from several bookmakers?** ESPN shows the lines of its odds partner, not a comparison of many bookmakers. Each row names the provider.

**Is this official?** No. It is not affiliated with or endorsed by ESPN. It reads publicly available pages and feeds. Check ESPN's terms before you republish their content.

### Limits

- Up to 31 days of games per run, and up to 200 athletes for game logs.
- Rankings, injuries and standings are the current ones (use `season` for standings and rankings of other seasons).
- Fields ESPN does not publish for a league are left out of the row.

Questions or a league you need? Open an issue on the Actor page and we answer in a few days.

# Actor input Schema

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

Games and scores, standings, teams, players, injuries, news, rankings or player game logs.

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

League names or codes, one per line: nba, nfl, mlb, nhl, wnba, ncaam, ncaaf, premier league, la liga, bundesliga, serie a, ligue 1, mls, champions league, f1, atp, wta, pga, ufc and 30 more. A sport name such as soccer adds all its leagues.

## `dateFrom` (type: `string`):

First day. Use YYYY-MM-DD, or words: today, yesterday, tomorrow, +3 (3 days ahead), -7 (7 days ago). Empty means today.

## `dateTo` (type: `string`):

Last day, same formats. Empty means the same day as 'From date'.

## `gameStatus` (type: `string`):

Keep all games, only upcoming ones, only live ones, or only finished ones.

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

Names or short codes, for example Lakers, LAL, Arsenal, Djokovic. Works for games, standings, teams, players, injuries and rankings. Empty means everyone.

## `includeDetails` (type: `boolean`):

Adds a details block per game: team stats, every player's stats, betting lines with opening and closing numbers, officials, injuries and the recap. Charged once per game that has details.

## `includePlays` (type: `boolean`):

Adds every play of the game to the details block. Turns on the box score and odds details too. Rows get large.

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

Season year as ESPN counts it: for the NBA, 2026 means the 2025-26 season; for the NFL and soccer, 2026 means the season that starts in 2026. Empty means the current season.

## `athleteIds` (type: `array`):

ESPN athlete ids, one per line. Every row of the 'Players' and 'Injuries' data has an athleteId. Needed for 'Player game logs' only.

## `newsLimit` (type: `integer`):

How many of the latest headlines to return per league.

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

Stops the run after this many rows. Your spending limit also stops it.

## `onlyNew` (type: `boolean`):

Games come again when they go live or finish, injuries when the status or return date changes, news once per article. Schedule the Actor and pay only for what changed.

## `monitorKey` (type: `string`):

Runs with the same name share one memory. Use a different name for each schedule, for example 'nba-injuries'.

## `proxyConfiguration` (type: `object`):

Not needed normally: ESPN answers without a proxy. If it ever refuses, the Actor switches to this proxy.

## Actor input object example

```json
{
  "dataType": "games",
  "leagues": [
    "nba",
    "nfl",
    "mlb",
    "premier league"
  ],
  "dateFrom": "yesterday",
  "dateTo": "tomorrow",
  "gameStatus": "all",
  "includeDetails": false,
  "includePlays": false,
  "newsLimit": 25,
  "maxItems": 30,
  "onlyNew": false,
  "monitorKey": "default",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All delivered rows. Use the type column to tell them apart. no_results and error rows are free.

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

Rows and game details delivered per league, requests, why the run stopped and warnings.

# 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 = {
    "leagues": [
        "nba",
        "nfl",
        "mlb",
        "premier league"
    ],
    "dateFrom": "yesterday",
    "dateTo": "tomorrow",
    "maxItems": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("panix/espn-sports-scraper").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 = {
    "leagues": [
        "nba",
        "nfl",
        "mlb",
        "premier league",
    ],
    "dateFrom": "yesterday",
    "dateTo": "tomorrow",
    "maxItems": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("panix/espn-sports-scraper").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 '{
  "leagues": [
    "nba",
    "nfl",
    "mlb",
    "premier league"
  ],
  "dateFrom": "yesterday",
  "dateTo": "tomorrow",
  "maxItems": 30
}' |
apify call panix/espn-sports-scraper --silent --output-dataset

```

## MCP server setup

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

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/02ydXgJtjtKjBab1o/builds/mXvKSkWQshwFunU33/openapi.json
