# ESPN Scraper - Scores, Schedules, Box Scores & Stats (`scrolahdata/espn-sports-scraper`) Actor

ESPN sports scraper: live scores, schedules, results and box scores with player stats, plus standings, teams, rosters and news. NFL, NBA, MLB, NHL, Premier League, Champions League, F1, UFC, golf, tennis. Point spread, moneyline. Football fixtures. ESPN API.

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

## Pricing

from $0.80 / 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 Scraper — Live Scores, Box Scores, Standings & Player Stats

Get **ESPN sports data** as clean JSON / CSV: **live scores, schedules, results, box scores with every player's stat line, standings, teams, rosters and news** — for the big US leagues, college sports and the main soccer leagues, plus **F1, UFC, golf and tennis results**.

- 🏈 **Leagues** — NFL, NBA, WNBA, MLB, NHL, college football, men's and women's college basketball, Premier League, Championship, La Liga, Bundesliga, Serie A, Ligue 1, Eredivisie, Primeira Liga, MLS, Liga MX, Brasileirão, Saudi Pro League, Champions League, Europa League, FA Cup, World Cup qualifiers
- 📅 **Scores & schedules** — any date range: final scores, **live games** and upcoming fixtures, score by quarter / period, stat leaders, venue, attendance, TV, betting line and over/under
- 💰 **Betting odds** — **point spread**, **moneyline** and **over/under** with prices for NFL, NHL, college football and soccer games, plus the **opening line** for line-movement tracking (source: the sportsbook ESPN shows, e.g. DraftKings)
- 📊 **Box scores** — team stats and **player stats** (points, rebounds, assists, passing / rushing yards, shots ...) for every finished or live game
- 🏆 **Standings** — wins, losses, draws, points, win %, games behind, streak, conference / division / table position
- 👥 **Teams & rosters** — every player with position, jersey, age, height, weight, nationality, college and injury status
- 📰 **News** — latest ESPN headlines per league
- 🏎️ **F1, UFC, golf & tennis** — **F1 results** for every session (practice, qualifying, race) plus IndyCar and NASCAR; every **UFC fight** with winner, records and the round it ended; **PGA, LPGA and LIV golf** leaderboards with score to par and round scores; **ATP and WTA tennis** matches with set scores and seeds

**From $1 per 1,000 games.** Standings, players and news $0.50 per 1,000.

### Use cases

- **Sports apps, bots and websites** — live scores and fixtures without an expensive sports data API
- **Fantasy sports & betting models** — daily box scores and player stats for projections and backtests
- **Sports betting** — NFL odds, NHL odds and college football lines with opening vs current spread, moneyline and total
- **Sports analytics & data science** — full seasons of results and player stat lines in one dataset
- **Dashboards & spreadsheets** — standings and results to Google Sheets, Looker Studio or Excel
- **Newsletters & social media** — last night's scores, top performers and headlines
- **AI agents** — fresh sports data for chatbots and assistants via MCP
- **F1 & motorsport data** — race and qualifying finishing order for every Grand Prix weekend
- **UFC & MMA results** — fight cards, winners and fighter records for betting and fan sites

### Input

Last night's NBA and NHL games with box scores:

```json
{
  "leagues": ["nba", "nhl"],
  "dateFrom": "yesterday",
  "dateTo": "yesterday",
  "includeBoxScore": true
}
```

Premier League and Champions League fixtures for the next 2 weeks, plus the table:

```json
{
  "leagues": ["premier-league", "champions-league"],
  "dataTypes": ["games", "standings"],
  "dateFrom": "today",
  "dateTo": "14 days",
  "gameStatus": "scheduled"
}
```

F1 and UFC results from the last 3 weeks:

```json
{
  "leagues": ["f1", "ufc"],
  "dateFrom": "-21 days",
  "dateTo": "today",
  "gameStatus": "final"
}
```

- **Dates** — `YYYY-MM-DD`, `today`, `yesterday`, `tomorrow`, or relative like `-7 days` / `14 days`. Up to 400 days per run, e.g. a whole season.
- **Teams** — only games, standings and players of given teams (`Lakers`, `BOS`, `Arsenal`) — or given drivers, fighters and players for F1, UFC, golf and tennis (`Verstappen`, `Gane`, `Sinner`).
- **Game status** — all, final, live or scheduled.

### Output

```json
{
  "type": "game",
  "league": "nba",
  "date": "2026-11-17T00:00Z",
  "status": "Final",
  "awayTeam": "Orlando Magic",
  "awayScore": 115,
  "homeTeam": "Boston Celtics",
  "homeScore": 105,
  "winner": "Orlando Magic",
  "homeLinescores": [17, 24, 36, 28],
  "awayLinescores": [20, 30, 25, 40],
  "awayLeaders": {"points": "Desmond Bane 24", "assists": "Franz Wagner 9"},
  "venue": "TD Garden",
  "attendance": 19156,
  "headline": "Bane scores 24, Magic rally in 4th quarter to beat Celtics 115-105",
  "teamStats": {"ORL": {"FG": "41-82", "3PT": "13-34", "Rebounds": "46", "Assists": "31"}},
  "playerStats": [{"team": "ORL", "player": "Desmond Bane", "starter": true, "MIN": "35", "PTS": "24", "REB": "8", "AST": "4"}]
}
```

Standings row: `team`, `position`, `wins`, `losses`, `draws`, `points`, `winPercent`, `gamesBehind`, `streak`, `note` (e.g. "Champions League"). Player row: `player`, `team`, `position`, `jersey`, `age`, `height`, `weight`, `nationality`, `injuries`.

F1, UFC, golf and tennis come as `result` rows — one per race session, fight, tournament or match:

```json
{
  "type": "result",
  "league": "ufc",
  "name": "UFC 334: Gane vs. Hokit",
  "weightClass": "Heavyweight",
  "mainEvent": true,
  "winner": "Ciryl Gane",
  "endingRound": 5,
  "endingTime": "5:00",
  "venue": "Madison Square Garden",
  "results": [
    {"place": 1, "name": "Ciryl Gane", "country": "France", "winner": true, "record": "15-2-0"},
    {"place": 2, "name": "Josh Hokit", "country": "USA", "winner": false, "record": "10-1-0"}
  ]
}
```

For F1 `session` is FP1 / FP2 / FP3 / Qual / Race and `results` is the finishing order; for golf `results` has score to par and round scores (`leader` while the tournament is running); for tennis `draw`, `round`, seeds and set scores.

The *Games* table view shows date, teams, score, status and venue.

### Pricing

- **Game** (score or fixture) or **result** (F1 session, UFC fight, golf tournament, tennis match) — $1 per 1,000
- **Game with box score** — $3 per 1,000
- **Standings, team, player or news row** — $0.50 per 1,000

Discounts for Apify Silver, Gold and higher plans.

### Integrations & API

- **Schedules** — run every morning for yesterday's results, or every few minutes during games for live scores
- **API** — Python, Node.js or any language via the Apify API / `apify-client`
- **Google Sheets, Zapier, Make, n8n, Slack, Discord, webhooks**
- **AI agents (MCP)** — use it from Claude, ChatGPT or Cursor through the Apify MCP server

### FAQ

**Where does the data come from?** ESPN's public scoreboard, standings, team and news feeds — the data shown on espn.com. No login or API key.

**Which sports are not included?** Individual sports (tennis, golf, F1, UFC) have a different format and are not supported yet.

**How live is "live"?** Each run reads the current ESPN data; schedule it every 1–5 minutes during games.

### More from ScrolahData

- [Sports Injury Report Scraper](https://apify.com/scrolahdata/sports-injury-report-scraper) — NFL, NBA, MLB and NHL injury reports with a change monitor
- [Cricket Scores Scraper](https://apify.com/scrolahdata/cricket-scores-scraper) — live cricket scores and full scorecards
- [Google News Scraper](https://apify.com/scrolahdata/google-news-scraper) — sports news from every outlet
- [YouTube Scraper](https://apify.com/scrolahdata/youtube-scraper) — highlights and channel stats
- [Google Trends Scraper](https://apify.com/scrolahdata/google-trends-scraper) — interest in teams and players over time
- [Telegram Channel Scraper](https://apify.com/scrolahdata/telegram-channel-scraper)
- [Discord Server Scraper](https://apify.com/scrolahdata/discord-server-scraper)

# Actor input Schema

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

NFL, NBA, WNBA, MLB, NHL, college football and basketball, Premier League, La Liga, Bundesliga, Serie A, Ligue 1, MLS, Champions League and more, plus F1, IndyCar, NASCAR, UFC, PGA / LPGA / LIV golf and ATP / WTA tennis (results per race session, fight, tournament or match).

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

games = scores and schedule, standings = league table, teams, players = team rosters, news = ESPN headlines.

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

YYYY-MM-DD, today, yesterday or relative like -7 days. Default: yesterday.

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

YYYY-MM-DD, today, tomorrow or relative like 14 days (future = schedule). Default: tomorrow.

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

final = results only, live = in progress, scheduled = upcoming fixtures.

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

Optional: only these teams (name or abbreviation, e.g. Lakers, BOS, Arsenal) - or drivers, fighters, golfers and tennis players for F1, UFC, golf and tennis (e.g. Verstappen, Sinner).

## `includeBoxScore` (type: `boolean`):

For finished and live games: team stats and every player's stat line, plus officials. Charged as a box score.

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

When news is selected.

## Actor input object example

```json
{
  "leagues": [
    "nba"
  ],
  "dataTypes": [
    "games"
  ],
  "dateFrom": "yesterday",
  "dateTo": "tomorrow",
  "gameStatus": "all",
  "includeBoxScore": false,
  "maxNewsPerLeague": 50
}
```

# 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": [
        "games"
    ],
    "dateFrom": "yesterday",
    "dateTo": "tomorrow"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrolahdata/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"],
    "dataTypes": ["games"],
    "dateFrom": "yesterday",
    "dateTo": "tomorrow",
}

# Run the Actor and wait for it to finish
run = client.actor("scrolahdata/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"
  ],
  "dataTypes": [
    "games"
  ],
  "dateFrom": "yesterday",
  "dateTo": "tomorrow"
}' |
apify call scrolahdata/espn-sports-scraper --silent --output-dataset

```

## MCP server setup

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