# ESPN Scraper — Scores, Box Scores, Odds & Standings (`yugenox/espn-sports-scraper`) Actor

Scrape ESPN scores, schedules, live games, DraftKings betting lines, box scores, standings, teams, rosters and news for 40+ leagues: NFL, NBA, MLB, NHL, WNBA, college sports, Premier League, LaLiga, Champions League, MLS and more. Date ranges, team filters. No login.

- **URL**: https://apify.com/yugenox/espn-sports-scraper.md
- **Developed by:** [Yugenox Corp](https://apify.com/yugenox) (community)
- **Categories:** Sports, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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.

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, box scores, betting odds and standings

Scrape **ESPN** for **live scores, final results, schedules, DraftKings betting lines, box scores, standings, teams, rosters and news** across **40+ leagues**: NFL, NBA, MLB, NHL, WNBA, college football and basketball, the Premier League, LaLiga, Bundesliga, Serie A, Ligue 1, MLS, Liga MX, the Champions League and more. Pick leagues and a date range and get one clean row per game. No login, no cookies, no account.

### What you get

| | |
|---|---|
| **Games** | Teams, score, winner, status ("Final/OT", "Q3 4:12", kick-off time), period and clock, score by period, records, recent form (soccer), venue and city, attendance, broadcasters, stat leaders, goals and cards (soccer), ESPN game link |
| **Betting lines** | Provider (DraftKings), spread, over/under, moneylines (home / away / draw), spread and total prices, opening spread, total and moneylines |
| **Box scores** (optional) | Team box score, every player's stat line (soccer: line-ups with player stats), officials, injury report, and the closing line for finished games |
| **Standings** | Group / conference, rank, games played, wins, losses, ties, OT losses, points, win %, games behind, points for / against, streak, home / road records, last 10, playoff seed, clinch flag |
| **Teams** | Name, abbreviation, city, nickname, colors, logo, ESPN team page |
| **Rosters** | Every player: name, jersey, position, age, height, weight, experience, college, birthplace, status, injury status, headshot |
| **News** | Latest ESPN headlines per league: title, summary, author, publish date, link, image, the teams and athletes it covers |

### How to use it

1. Pick one or more **Leagues** (or type any other ESPN league in **Other leagues**, e.g. `soccer/chn.1`, `Champions League`, `NCAAF`).
2. Pick the **Data**: games (default), standings, teams, rosters, news.
3. For games, set **From date** / **To date** (`2026-10-25`, `today`, `yesterday`, `-7`, `+3`). Empty = today.
4. Optional: **Include box scores**, **Game status** (scheduled / live / final), **Teams**.
5. Set **Max results** and run.

Date ranges are cheap: days without games and the off-season are skipped using ESPN's own league calendar, so a whole season costs only the days that have games.

#### Input examples

NFL Sunday results:

```json
{ "leagues": ["nfl"], "dateFrom": "2026-10-25", "maxItems": 20 }
```

Tonight's NBA and NHL games with betting lines, every 10 minutes for live scores (schedule it):

```json
{ "leagues": ["nba", "nhl"], "dateFrom": "today", "gameStatus": "all" }
```

Premier League and Champions League results of the last week with full box scores:

```json
{ "leagues": ["eng.1", "uefa.champions"], "dateFrom": "-7", "dateTo": "today", "includeGameDetails": true }
```

Every Kansas City Chiefs game of the 2025 season:

```json
{ "leagues": ["nfl"], "teams": ["Chiefs"], "dateFrom": "2025-09-01", "dateTo": "2026-02-15" }
```

NBA standings, every roster and the latest news:

```json
{ "leagues": ["nba"], "dataTypes": ["standings", "rosters", "news"], "maxItems": 0 }
```

### Output example

An upcoming game with its DraftKings line (trimmed):

```json
{
  "type": "game",
  "league": "nfl",
  "eventId": "401873026",
  "date": "2026-11-01T18:00Z",
  "name": "Baltimore Ravens at Buffalo Bills",
  "shortName": "BAL @ BUF",
  "week": 8,
  "status": "pre",
  "statusDetail": "Sun, November 1st at 1:00 PM EST",
  "venue": "Highmark Stadium",
  "venueCity": "Orchard Park",
  "homeTeam": "Buffalo Bills",
  "homeRecord": "5-1",
  "homeScore": null,
  "awayTeam": "Baltimore Ravens",
  "awayRecord": "4-3",
  "awayScore": null,
  "leaders": [
    { "team": "BUF", "category": "Passing Leader", "athlete": "Josh Allen", "value": "114/171, 1504 YDS, 9 TD, 4 INT" }
  ],
  "broadcasts": ["CBS"],
  "oddsProvider": "DraftKings",
  "oddsDetails": "BUF -3",
  "spread": -3,
  "overUnder": 54.5,
  "homeMoneyline": -175,
  "awayMoneyline": 145,
  "homeSpreadOdds": -118,
  "awaySpreadOdds": -102,
  "openSpread": -2.5,
  "openOverUnder": 51.5,
  "gameUrl": "https://www.espn.com/nfl/game/_/gameId/401873026/ravens-bills",
  "detailsIncluded": false,
  "scrapedAt": "2026-10-29T05:00:48.514Z"
}
```

A player line from a box score (`boxScorePlayers`, with **Include box scores**):

```json
{ "team": "PIT", "group": "passing", "athlete": "Aaron Rodgers", "jersey": "8", "stats": { "C/ATT": "19/30", "YDS": "212", "AVG": "7.1", "TD": "1", "INT": "0", "SACKS": "3-17", "QBR": "66.7", "RTG": "95.4" } }
```

A standings row:

```json
{ "type": "standing", "league": "nhl", "season": 2027, "group": "Eastern Conference", "position": 1, "team": "Carolina Hurricanes", "gamesPlayed": 14, "wins": 10, "losses": 2, "otLosses": 2, "points": 22, "pointsFor": 53, "pointsAgainst": 34, "streak": "W2", "homeRecord": "3-1-1", "awayRecord": "7-1-1" }
```

Every row of a type has the same columns; a value ESPN doesn't show is `null`. The `type` column says what a row is (`game`, `standing`, `team`, `player`, `news`), and the dataset has a table view for each.

### Pricing

Pay per result:

- **$1.00 per 1,000 results**: games, standings rows, teams, players or news articles.
- **+$2.00 per 1,000 games with box scores** (only with **Include box scores**, only for games whose box score was read), so a game with its box score is $0.003.
- **$0.002 per run** (start).

Days without games, filtered-out games and failed requests are never charged. **Max results** and your spending limit are always respected.

### Use cases

- **Sports apps and websites**: live scores, schedules and standings for many leagues from one source.
- **Betting and fantasy tools**: DraftKings spreads, totals and moneylines before the game, closing lines after it, player stat lines and injury reports.
- **Sports analytics and data science**: full-season results and box scores for modelling.
- **Automations and integrations**: fresh, structured sports facts on demand for your own tools and workflows.
- **Media and newsletters**: daily results, standings and headlines.

### Tips

- **Live scores**: schedule the actor every few minutes with `"dateFrom": "today"`; set **Game status** to "Live" to get only games in progress.
- **Whole seasons**: use one run per league and season with a date range; days without games are skipped.
- **Betting lines** are on the scoreboard until a game starts; for finished games turn on **Include box scores** to get the closing line.
- **College sports** cover all of FBS football and Division I basketball, not only ranked teams.
- **Leagues not in the list**: ESPN has many more (Chinese Super League `soccer/chn.1`, League One `eng.3`, Women's Champions League `uefa.wchampions` …). Paste them into **Other leagues**.

### FAQ

**Do I need an ESPN account or an API key?** No. The actor reads the same public data that espn.com shows any visitor. Nothing to log into.

**How fresh are live scores?** As fresh as ESPN's own scoreboard. Each run reads the current state; schedule it as often as you need.

**Which time zone are the dates in?** Days follow ESPN's US Eastern scoreboard days ("today" means today in New York). Game start times (`date`) are in UTC.

**Why are some odds empty?** ESPN shows a betting line on the scoreboard before a game; once it's over the line moves to the game page. Turn on **Include box scores** to get the closing line for finished games. Not every league has lines.

**Can I get historical data?** Yes. Any past date or season that ESPN has, up to 366 days per run. For past standings set **Standings season**.

**Is it legal to scrape ESPN?** This actor only collects publicly available data: game scores, schedules, betting lines, standings, team and player information and news headlines that anyone can see on ESPN without an account. Sports results and statistics are facts and are widely republished. Collecting publicly available data is generally legal, but you're responsible for how you use it, including ESPN's terms and any copyright in article text and images (the actor returns headlines, summaries and links, not full articles). If you're unsure, check with a lawyer. More on this: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

**Does it access any private data?** No. Everything comes from data ESPN shows publicly without logging in. Rosters contain professional and college athletes' public sports profiles (team, position, age, height, college, injury status) as ESPN publishes them. It never touches accounts, fantasy leagues or anything behind a login.

*This actor is not affiliated with, endorsed by or sponsored by ESPN.*

# Actor input Schema

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

Leagues to scrape. Empty = NFL, NBA, MLB, NHL and the Premier League. Any other ESPN league goes in "Other leagues" below.

## `customLeagues` (type: `array`):

Any other ESPN league: a sport/league path as ESPN writes it (soccer/chn.1, soccer/ksa.1, basketball/fiba, rugby/164205), a soccer league code (chn.1, eng.3, uefa.wchampions), an espn.com league page URL, or a name such as "Premier League", "Champions League", "NCAAF".

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

What to get for each league. Games = scores, schedules and betting lines for the dates below. Standings = the current table (or the season you pick). Teams = every team with colors and logos. Rosters = every player of every team (or of the teams you pick). News = the latest ESPN headlines.

## `includeGameDetails` (type: `boolean`):

For every game, also read its game page: team and player box score (soccer: line-ups with player stats), officials, injuries and the closing betting line (ESPN removes lines from the scoreboard once a game is over). One extra request per game, charged as "Game details" (see Pricing).

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

First day of games: YYYY-MM-DD, or "today", "yesterday", "tomorrow", "-7" (7 days ago), "+3" (in 3 days). ESPN days are US Eastern days. Empty = today.

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

Last day of games (same formats). Empty = the From date. Up to 366 days per run; days without games and the off-season are skipped using ESPN's own league calendar.

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

Only scheduled (not started), live (in progress) or final games. "Live" always reads today's games.

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

Only these teams (games they play, their standings row, roster and news). A name, nickname, city or abbreviation: "Lakers", "LAL", "Los Angeles Lakers", "Arsenal", "Kansas City Chiefs". Empty = every team.

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

Standings of a past season. ESPN numbers a season by the year it ends for leagues that span two years (NBA / NHL 2025-26 = 2026) and by its calendar year otherwise (NFL 2025 = 2025). Empty = the current standings.

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

How many of the latest headlines to get per league (with "News" selected).

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

Maximum rows for the whole run (games, standings rows, teams, players and articles together). 0 = no limit.

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

Apify Proxy (datacenter) is the default and comes with every Apify plan. If ESPN refuses datacenter IPs for a while, the run switches to residential proxies when your account has them.

## Actor input object example

```json
{
  "leagues": [
    "nfl"
  ],
  "dataTypes": [
    "games"
  ],
  "includeGameDetails": false,
  "dateFrom": "2026-10-25",
  "gameStatus": "all",
  "maxNewsPerLeague": 25,
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All scraped games, standings rows, teams, players and news articles.

## `run` (type: `string`):

Status and statistics for this run.

## `report` (type: `string`):

RUN_REPORT: how the run ended, counts per league, requests and proxy use.

# 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": [
        "nfl"
    ],
    "dataTypes": [
        "games"
    ],
    "dateFrom": "2026-10-25",
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/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": ["nfl"],
    "dataTypes": ["games"],
    "dateFrom": "2026-10-25",
    "maxItems": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("yugenox/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": [
    "nfl"
  ],
  "dataTypes": [
    "games"
  ],
  "dateFrom": "2026-10-25",
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call yugenox/espn-sports-scraper --silent --output-dataset

```

## MCP server setup

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