# ESPN Scraper — Scores, Schedules, Standings, Odds & Teams (`istmobot/espn-sports-data`) Actor

Get ESPN scores, schedules, standings, betting odds, teams and news for NFL, NBA, MLB, NHL, soccer, F1, UFC and more. Input: leagues, data types, a date range and an optional team filter. Output: one JSON row per game, standing, team or news item. No API key.

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

## Pricing

from $1.60 / 1,000 results

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, Schedules, Standings, Odds & Teams

Get **scores, schedules, standings, betting odds, teams and news from ESPN** as clean JSON rows, for the NFL, NBA, MLB, NHL, college sports, the big soccer leagues, F1, UFC and any other league ESPN covers. One row per game, standing row, team or news item. No API key, no login, no browser.

### What is ESPN Scraper?

ESPN serves the data behind its website as public JSON. This Actor reads those endpoints for the leagues you choose and turns the deeply nested answers into flat, predictable rows:

- **Scores & schedule**: every game of a date range (finished, live or scheduled) with status, score, records, venue, TV broadcasts and the betting line.
- **Standings**: the current table of the league, with every stat ESPN returns for each team.
- **Teams**: all teams of the league with colour, logo, current record and standing.
- **News**: the latest ESPN articles of the league.

Use it to:

- **Fill a scores or fixtures widget**, a Discord or Slack bot, or a Google Sheet every morning.
- **Track betting lines**: spread, over/under and moneylines before the game, and the closing line after it.
- **Build datasets** for models and dashboards: results with odds, standings over time.
- **Monitor a team or a league**: games, table position and news for the teams you name.
- **Give an AI agent live sports data** through the Apify MCP server.

What it does **not** do: box scores, play-by-play, player statistics, rosters, rankings and polls, article text, or odds from several bookmakers (ESPN shows one line per game). Tennis returns no games (ESPN nests its matches differently). Standings are the current season only.

#### Leagues

| Name to type | ESPN path | Notes |
|---|---|---|
| `nfl` | `football/nfl` | |
| `nba` | `basketball/nba` | |
| `wnba` | `basketball/wnba` | |
| `mlb` | `baseball/mlb` | |
| `nhl` | `hockey/nhl` | |
| `mls` | `soccer/usa.1` | |
| `ncaaf` or `college-football` | `football/college-football` | all FBS games |
| `ncaam` or `mens-college-basketball` | `basketball/mens-college-basketball` | all Division I games |
| `premier-league` | `soccer/eng.1` | |
| `la-liga` | `soccer/esp.1` | |
| `bundesliga` | `soccer/ger.1` | |
| `serie-a` | `soccer/ita.1` | |
| `ligue-1` | `soccer/fra.1` | |
| `champions-league` | `soccer/uefa.champions` | |
| `liga-mx` | `soccer/mex.1` | |
| `f1` | `racing/f1` | one row per session; driver and constructor standings |
| `ufc` | `mma/ufc` | one row per fight; no standings, no teams |

Any other league works by its ESPN path, typed as `sport/league`. The path is in the league's web address on espn.com: `espn.com/soccer/league/_/name/bra.1` is `soccer/bra.1`. Paths we ran on 2026-11-20: `soccer/bra.1`, `soccer/ned.1`, `soccer/por.1`, `soccer/arg.1`, `soccer/uefa.europa`, `basketball/womens-college-basketball`, `racing/nascar-premier`, `golf/pga` (one row per tournament, players in `competitors`).

### What data can I get?

Every row has `dataType` (`game`, `standing`, `team` or `news`), `league` (the name you typed) and `scrapedAt`. Fields that do not exist in a sport are `null`, so the columns stay the same across sports.

#### `game` rows (data type `scores`)

| Field | Meaning |
|---|---|
| `sport` | ESPN sport: `football`, `basketball`, `soccer`, `racing`, `mma`… |
| `eventId`, `competitionId` | ESPN ids. They are equal for a team game. An F1 weekend or a UFC card is one event with one competition (row) per session or fight |
| `name`, `shortName` | `Dallas Cowboys at Indianapolis Colts`, `DAL @ IND` |
| `session` | `FP1`, `Qual`, `Race` for F1; the weight class for UFC; `null` for a regular game |
| `date` | Start time, ISO 8601 in UTC |
| `status` | `state` (`pre`, `in`, `post`), `detail` (`Final`, `FT`, `Fri, November 20th at 7:00 PM EST`), `period`, `clock`, `completed` |
| `home`, `away` | `id`, `name`, `abbreviation`, `score` (`null` before the start), `record`, `winner`, `logo`. Both are `null` in sports without home and away |
| `competitors` | For racing, MMA and golf: everyone in the session or fight in ESPN's order (the classification for F1), each with `order`, `id`, `name`, `score`, `record`, `winner`, `logo`. `null` for team games |
| `venue` | `name`, `city`, `state`, `country`, `indoor` |
| `broadcasts` | TV and streaming names, e.g. `["Fox"]` |
| `odds` | `provider`, `details` (`DAL -4.5`), `spread`, `overUnder`, `homeMoneyline`, `awayMoneyline`, `drawMoneyline`; or `null` when ESPN has no line |
| `attendance` | Reported attendance, `null` when not reported |
| `season` | `year` and `type`: ESPN's season slug, e.g. `regular-season` or `2026-27-english-premier-league` |
| `week` | Week number (NFL, college football), else `null` |
| `url` | The game page on espn.com |

About the odds: `spread` is the **home team's line** (negative = home team favoured), moneylines are American odds, `drawMoneyline` is filled for soccer. Scheduled games carry the current line; finished games carry the line ESPN keeps after the game. In our runs the provider was DraftKings. For UFC the moneylines are `null` (no home and away); the favourite is in `details`.

#### `standing` rows

| Field | Meaning |
|---|---|
| `group` | The table: `Eastern Conference`, `American Football Conference`, `2026-27 English Premier League`, `Driver Standings`… |
| `team` | `id`, `name`, `abbreviation`, `logo` (a driver for F1 driver standings) |
| `rank` | Position in the table (ESPN's rank, or the playoff seed in US leagues) |
| `wins`, `losses`, `ties` | `ties` are the draws in soccer |
| `winPercent`, `gamesBehind` | US leagues; `null` in soccer |
| `points` | Table points (soccer, NHL, F1). `null` for basketball, baseball and American football, which have none |
| `pointsFor`, `pointsAgainst` | Points or goals scored and conceded |
| `streak` | `W4`, `L12`; `null` where ESPN has none |
| `stats` | Every stat ESPN returns for the row, by name: `gamesPlayed`, `pointDifferential`, `playoffSeed`, `total` (the record, `9-0-1`), `home`, `road`, `lasttengames`… The set differs per sport |

Rows are sorted by `rank` inside each table.

#### `team` rows

`id`, `name` (`Hawks`), `displayName` (`Atlanta Hawks`), `abbreviation`, `location`, `color` (hex), `logo`, `recordSummary` (`9-6`), `standingSummary` (`1st in English Premier League`), `url`.

#### `news` rows

`headline`, `description`, `published`, `lastModified`, `type` (`Story`, `HeadlineNews`, `Recap`, `Preview`, `Media`), `byline`, `url`, `images` (URLs), `categories` (league, teams and people the article is tagged with). ESPN returns at most 50 articles per league.

### How much does it cost?

| Event | Price |
|---|---|
| Actor start | $0.005 per run |
| `result` | $0.002 per row, or **$2.00 per 1,000** (Silver plan $1.80, Gold and above $1.60) |

You pay per row saved: a game, a standing row, a team or a news item. Error rows are free. Odds are included in the price of the game row.

Examples from our runs:

- Today's NBA games and the full standings (the example input): 39 rows, **about $0.08**.
- A week of NFL games with odds: 15 rows, **about $0.04**.
- The Premier League table plus all 20 teams: 40 rows, **about $0.09**.
- Two days of men's college basketball: 132 rows, **about $0.27**.
- 10,000 rows: **about $20**.

For comparison, the other ESPN dataset Actor on the Store listed $3.00 per 1,000 results on the free tier when we checked on 2026-11-20.

Control the spend with `maxItems`, `maxNewsPerLeague` and the **maximum cost per run**: the Actor stops cleanly when the limit is reached and keeps the rows it already saved.

### How to use ESPN Scraper

1. Click **Try for free**.
2. Type one or more leagues, e.g. `nba` and `premier-league`.
3. Choose the data: scores, standings, teams, news.
4. For scores, set the dates. Leave them empty for today's games.
5. Click **Start**, then download the dataset as JSON, CSV or Excel, or read it through the API.

#### Run it every day

Dates can be relative, so one saved input keeps working on a schedule:

```json
{
    "leagues": ["nba", "nhl"],
    "dataTypes": ["scores"],
    "dateFrom": "yesterday"
}
```

Schedule this for the morning to get last night's final scores with their closing odds. `"dateFrom": "7 days"` with `"dateTo": "0 days"` gives the last week through today; `"dateFrom": "0 days"` with `"dateTo": "7 days"` gives the schedule and current odds of the coming week. A relative "From" counts back from today and a relative "To" counts ahead.

### ⬇️ Input

```json
{
    "leagues": ["nfl"],
    "dataTypes": ["scores"],
    "dateFrom": "2026-11-08",
    "dateTo": "2026-11-14",
    "includeOdds": true,
    "teams": [],
    "maxItems": 500
}
```

| Field | Default | Description |
|---|---|---|
| `leagues` | required | League names from the table above, or ESPN `sport/league` paths |
| `dataTypes` | `["scores"]` | Any of `scores`, `standings`, `teams`, `news` |
| `dateFrom` | today | First day of games: `YYYY-MM-DD`, `today`, `yesterday`, `tomorrow`, or `N days` back from today |
| `dateTo` | same as `dateFrom` | Last day of games: `YYYY-MM-DD`, or `N days` ahead of today. At most 60 days per run |
| `includeOdds` | `true` | Add the betting line to each game |
| `teams` | all | Keep only these teams, by name (`Lakers`, `Arsenal`) or abbreviation (`BOS`) |
| `maxItems` | `500` | Stop after this many rows in total |
| `maxNewsPerLeague` | `25` | Latest articles per league, 1 to 50 |
| `proxy` | none | Optional proxy for every request. Not needed in our tests |

Notes:

- **Days are ESPN schedule days in US Eastern time.** A game that starts at 8:20 PM Eastern on November 8 is in the day `2026-11-08`, although its `date` field reads `2026-11-09T01:20:00.000Z`. "Today" is today in US Eastern time.
- **Future dates return the schedule**, with `status.state` = `pre` and no score.
- **A multi-day event comes back whole.** If any day of an F1 weekend is in your range you get all its sessions, once.
- **The `teams` filter** matches an abbreviation exactly or whole words of the full name: `Lakers` and `LAL` find the Los Angeles Lakers, `Manchester` finds both City and United. News is matched against the article's tags, by name only.

### ⬆️ Output

A finished NFL game, with the closing line:

```json
{
    "dataType": "game",
    "league": "nfl",
    "sport": "football",
    "eventId": "401873040",
    "competitionId": "401873040",
    "name": "Dallas Cowboys at Indianapolis Colts",
    "shortName": "DAL @ IND",
    "session": null,
    "date": "2026-11-08T18:00:00.000Z",
    "status": {
        "state": "post",
        "detail": "Final",
        "period": 4,
        "clock": "0:00",
        "completed": true
    },
    "home": {
        "id": "11",
        "name": "Indianapolis Colts",
        "abbreviation": "IND",
        "score": 23,
        "record": "2-7",
        "winner": false,
        "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/scoreboard/ind.png"
    },
    "away": {
        "id": "6",
        "name": "Dallas Cowboys",
        "abbreviation": "DAL",
        "score": 27,
        "record": "4-5",
        "winner": true,
        "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/scoreboard/dal.png"
    },
    "competitors": null,
    "venue": {
        "name": "Lucas Oil Stadium",
        "city": "Indianapolis",
        "state": "IN",
        "country": "USA",
        "indoor": true
    },
    "broadcasts": ["Fox"],
    "odds": {
        "provider": "DraftKings",
        "details": "DAL -4.5",
        "spread": 4.5,
        "overUnder": 51.5,
        "homeMoneyline": 180,
        "awayMoneyline": -218,
        "drawMoneyline": null
    },
    "attendance": 65479,
    "season": {
        "year": 2026,
        "type": "regular-season"
    },
    "week": 9,
    "url": "https://www.espn.com/nfl/game/_/gameId/401873040/cowboys-colts",
    "scrapedAt": "2026-11-20T16:57:20.192Z"
}
```

A standing row:

```json
{
    "dataType": "standing",
    "league": "premier-league",
    "group": "2026-27 English Premier League",
    "team": {
        "id": "359",
        "name": "Arsenal",
        "abbreviation": "ARS",
        "logo": "https://a.espncdn.com/i/teamlogos/soccer/500/359.png"
    },
    "rank": 1,
    "wins": 9,
    "losses": 1,
    "ties": 0,
    "winPercent": null,
    "gamesBehind": null,
    "points": 27,
    "pointsFor": 15,
    "pointsAgainst": 5,
    "streak": null,
    "stats": {
        "gamesPlayed": 10,
        "losses": 1,
        "pointDifferential": 10,
        "points": 27,
        "pointsAgainst": 5,
        "pointsFor": 15,
        "ties": 0,
        "wins": 9,
        "advanced": 0,
        "deductions": 0,
        "ppg": 0,
        "rank": 1,
        "rankChange": 0,
        "total": "9-0-1"
    },
    "scrapedAt": "2026-11-20T16:57:19.692Z"
}
```

A team row:

```json
{
    "dataType": "team",
    "league": "premier-league",
    "id": "359",
    "name": "Arsenal",
    "displayName": "Arsenal",
    "abbreviation": "ARS",
    "location": "Arsenal",
    "color": "#e20520",
    "logo": "https://a.espncdn.com/i/teamlogos/soccer/500/359.png",
    "recordSummary": "9-0-1",
    "standingSummary": "1st in English Premier League",
    "url": "https://www.espn.com/soccer/club/_/id/359/arsenal",
    "scrapedAt": "2026-11-20T16:57:20.390Z"
}
```

A news row:

```json
{
    "dataType": "news",
    "league": "nba",
    "headline": "Fred VanVleet's 'fresh slate' is driving Houston's early season success",
    "description": "A healthy Fred VanVleet is commanding the surging Rockets after an ACL injury derailed his 2025-26 season. Here's why he's so important.",
    "published": "2026-11-20T15:28:14Z",
    "lastModified": "2026-11-20T15:28:14Z",
    "type": "Story",
    "byline": "Michael C. Wright",
    "url": "https://www.espn.com/nba/story/_/id/50524821/nba-houston-rockets-fred-vanvleet-injury-comeback",
    "images": [
        "https://a.espncdn.com/photo/2026/1118/r1747856_1296x729_16-9.jpg",
        "https://a.espncdn.com/photo/2026/1118/r1747853_1296x729_16-9.jpg"
    ],
    "categories": ["NBA", "Houston Rockets", "Fred VanVleet", "Kevin Durant", "Alperen Sengun"],
    "scrapedAt": "2026-11-20T16:57:19.304Z"
}
```

(The news example is shortened: the real row had 6 images and 9 categories.)

A UFC fight: no home and away, the fighters are in `competitors`:

```json
{
    "dataType": "game",
    "league": "ufc",
    "sport": "mma",
    "eventId": "600061268",
    "competitionId": "401928118",
    "name": "UFC Fight Night: Cortes Acosta vs. Walker",
    "shortName": "UFC Fight Night",
    "session": "Welterweight",
    "date": "2026-11-07T22:00:00.000Z",
    "status": { "state": "post", "detail": "Final", "period": 1, "clock": "4:16", "completed": true },
    "home": null,
    "away": null,
    "competitors": [
        { "order": 1, "id": "4880114", "name": "Jonny Parsons", "abbreviation": null, "score": null, "record": "9-4-0", "winner": false, "logo": "https://a.espncdn.com/i/teamlogos/countries/500/usa.png" },
        { "order": 2, "id": "5080485", "name": "José Souza", "abbreviation": null, "score": null, "record": "10-1-0", "winner": true, "logo": "https://a.espncdn.com/i/teamlogos/countries/500/bra.png" }
    ],
    "venue": { "name": "Meta APEX", "city": "Las Vegas", "state": "NV", "country": "USA", "indoor": true },
    "broadcasts": ["Paramount+"],
    "odds": { "provider": "DraftKings", "details": "J. Souza -185", "spread": 3.5, "overUnder": 2.5, "homeMoneyline": null, "awayMoneyline": null, "drawMoneyline": null },
    "attendance": null,
    "season": { "year": 2026, "type": "regular-season" },
    "week": null,
    "url": "https://www.espn.com/mma/fightcenter/_/id/600061268/league/ufc",
    "scrapedAt": "2026-11-20T16:58:48.978Z"
}
```

### Error items

A league or data type that gives nothing gets one row that says why. These rows have `error` and `errorCode`, and they are **never charged**. Their `dataType` is the data type you asked for (`scores`, `standings`, `teams`, `news`), or `null` when the league name itself was not understood.

```json
{
    "dataType": "scores",
    "league": "foo/bar",
    "errorCode": "UNKNOWN_LEAGUE",
    "error": "ESPN has no scores for the path \"foo/bar\" (HTTP 400). Check the league name; the other data types of this league were skipped.",
    "scrapedAt": "2026-11-20T16:57:20.863Z"
}
```

| `errorCode` | Meaning |
|---|---|
| `UNKNOWN_LEAGUE` | The name is not in the list and is not a `sport/league` path, or ESPN does not know the path |
| `NO_RESULTS` | ESPN answered but has nothing: no games on those days, a league without standings or teams (UFC), or a `teams` filter that matched nothing |
| `BLOCKED` | ESPN refused the request (HTTP 401, 403, 429 or a page that is not JSON) on 3 tries, the later ones through the Apify proxy when your account has one |
| `REQUEST_FAILED` | ESPN did not answer on 3 tries (timeout or server error) |

After a `BLOCKED` or `REQUEST_FAILED` row for scores, the remaining days of that league are skipped; the rows saved before it stay.

Wrong input (a date that is not a date, an empty league list) fails the run at the start with a message, before anything is charged beyond the start.

### Integrations & API

```bash
curl -X POST "https://api.apify.com/v2/acts/istmobot~espn-sports-data/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"leagues":["nba"],"dataTypes":["scores"],"dateFrom":"yesterday"}'
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("istmobot/espn-sports-data").call(run_input={
    "leagues": ["nfl"],
    "dataTypes": ["scores"],
    "dateFrom": "0 days",
    "dateTo": "7 days",
})
for game in client.dataset(run["defaultDatasetId"]).iterate_items():
    if game.get("odds"):
        print(game["shortName"], game["date"], game["odds"]["details"], game["odds"]["overUnder"])
```

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

const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('istmobot/espn-sports-data').call({ leagues: ['premier-league'], dataTypes: ['standings'] });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.table(items.map((r) => ({ rank: r.rank, team: r.team.name, points: r.points })));
```

Connect it to Make, Zapier, n8n or Google Sheets with the Apify integrations, or add a webhook to be called when a run finishes.

### 🤖 Use with AI agents (MCP)

`https://mcp.apify.com?tools=istmobot/espn-sports-data`

Example prompts: "Get last night's NBA scores and tell me which favourites lost." "Show the Premier League table and Arsenal's next three fixtures with odds."

### Want other data?

- [Google News Scraper](https://apify.com/istmobot/google-news-scraper): news about a team or player from every publisher.
- [Reddit Scraper](https://apify.com/istmobot/reddit-scraper-cheap): fan discussion from team subreddits.
- [X (Twitter) Trends by Country](https://apify.com/istmobot/x-trends-by-country): what is trending during a game.
- [YouTube Video Scraper](https://apify.com/istmobot/youtube-scraper-cheap): highlights and channel videos.

### ❓ FAQ

**Is this an official ESPN API?** No. The Actor reads the public JSON endpoints that ESPN's own website and apps use. They need no key, they are not documented by ESPN, and ESPN can change them. If a field disappears, open an issue.

**Is it legal?** The Actor reads public data that needs no login and contains no private personal data. Scores and standings are facts. Check ESPN's terms and your local rules before you republish article text, images or logos.

**Do I need a proxy?** No. On 2026-11-20 every run from Apify without a proxy answered in 1 to 4 seconds. The same requests through the Apify datacenter proxy also worked but took several times longer, because some proxied requests hang and are retried. Leave the proxy input empty: the Actor switches to the Apify proxy by itself when ESPN refuses the run's address.

**Does ESPN rate-limit?** Yes. ESPN's CDN refused our test client with HTTP 403 for about eight minutes after a burst of roughly 2,500 requests within five minutes from one address. The Actor therefore paces itself: the first 300 requests of a run go at full speed, the rest at 5 per second. With that pacing a run of about 1,500 requests (eight leagues, all four data types, 2,140 rows) finished in four minutes from the same address without a refusal. If ESPN still refuses the run's address, the following requests go through the Apify proxy (we ran this path while refused: 79 rows came back complete in 37 seconds). On an account without proxy access the Actor waits 30 and then 60 seconds instead, and if that fails it reports a `BLOCKED` row and continues without the optional lookups (odds of finished games, team summaries).

**How fast is it?** Measured on Apify with 256 MB and no proxy: today's NBA games plus standings (39 rows) took 1.8 seconds; a week of NFL games with odds 1.7 seconds; 60 days of NFL games (108 rows) 3.3 seconds; two days of men's college basketball (132 games) 1.7 seconds. Runs that need more than 300 requests (long date ranges with odds, college team lists) continue at 5 requests per second: the 365 Division I men's basketball teams (366 requests) took 17.7 seconds.

**Where do the odds come from, and does every game have them?** From ESPN. Scheduled games carry the line in the scoreboard. For finished games the Actor asks ESPN's core API once per game. In our runs all 15 NFL games of a week and all 25 NBA games of three days had a line, 113 of 132 men's college basketball games had one, and F1 sessions had none. The 132 extra requests added about a tenth of a second to the run.

**Is the data live?** Each run is a snapshot. A game in progress has `status.state` = `in` with the score and clock at the moment of the run. For live tracking, schedule runs as often as you need; the Actor does not stream.

**How far back can I go?** Each run reads at most 60 days. We read games from 2024 with their odds while building this, but did not test older seasons. For a whole season, run it several times with consecutive ranges.

**Why is `points` empty in my NBA standings?** The NBA, MLB and NFL rank teams by win percentage, not by points, so the `points` column is `null` for basketball, baseball and American football. Everything ESPN returns is still in `stats`.

**Why do college football teams return so many rows?** ESPN's team list for college football holds every division (763 teams on 2026-11-20). Use the `teams` filter or `maxItems`.

**Which formats can I export?** JSON, CSV, Excel, XML, HTML and RSS, from the dataset page or through the API.

### Your feedback

Missing a league name, a field or a data type (rosters, box scores, rankings)? Open an issue on the **Issues** tab and say which league you need it for.

# Actor input Schema

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

One league per line, e.g. "nba" or "premier-league". Names: nfl, nba, wnba, mlb, nhl, mls, ncaaf (college-football), ncaam (mens-college-basketball), premier-league, la-liga, bundesliga, serie-a, ligue-1, champions-league, liga-mx, f1, ufc. Any other ESPN league works by its "sport/league" path, e.g. "soccer/bra.1" (the path is in the league's ESPN web address).

## `dataTypes` (type: `array`):

What to read for each league, e.g. \["scores", "standings"]. "scores": games with status, score and odds for the date range (past, live and scheduled). "standings": the current table. "teams": all teams with record. "news": the latest articles.

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

First day of games: a date as YYYY-MM-DD (e.g. 2026-11-08), or a relative value counted back from today: "1 day" (or "yesterday") = yesterday, "7 days" = a week ago. Empty = today. Days are ESPN schedule days, in US Eastern time. Used by "scores" only.

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

Last day of games: a date as YYYY-MM-DD (e.g. 2026-11-14), or a relative value counted ahead from today: "0 days" = today, "7 days" = a week from now (the schedule). Empty = the same day as "From date". At most 60 days per run.

## `includeOdds` (type: `boolean`):

Add the betting line to each game (spread, over/under, moneylines), e.g. true. Scheduled games carry it in the scoreboard; for finished games the Actor makes one extra request per game to read the closing line. Turn off if you do not need odds.

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

Keep only rows of these teams, by name or abbreviation, e.g. "Lakers", "BOS" or "Arsenal". A name matches whole words of the team's full name. Applies to games, standings and teams; news is matched against the article's tags. Empty = all teams.

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

Stop after this many rows in total (games, standing rows, teams and news items), e.g. 100. You pay per row.

## `maxNewsPerLeague` (type: `integer`):

How many of the latest articles to read per league when "news" is selected, e.g. 10. ESPN returns at most 50.

## `proxy` (type: `object`):

Optional: send every request through a proxy, e.g. {"useApifyProxy": true}. In our tests ESPN answered from Apify without one, and several times slower through the Apify datacenter proxy, so leave it off. If ESPN refuses the run's address, the Actor switches to the Apify proxy by itself.

## Actor input object example

```json
{
  "leagues": [
    "nba"
  ],
  "dataTypes": [
    "scores",
    "standings"
  ],
  "includeOdds": true,
  "maxItems": 500,
  "maxNewsPerLeague": 25,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "leagues": [
        "nba"
    ],
    "dataTypes": [
        "scores",
        "standings"
    ],
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("istmobot/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 = {
    "leagues": ["nba"],
    "dataTypes": [
        "scores",
        "standings",
    ],
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("istmobot/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 '{
  "leagues": [
    "nba"
  ],
  "dataTypes": [
    "scores",
    "standings"
  ],
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call istmobot/espn-sports-data --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,istmobot/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/7yIeBHXOOTgZU7n1a/builds/FCOgNUBX7asm8vgul/openapi.json
