# ESPN Sports Scraper (`sheshinmcfly/espn-sports-scraper`) Actor

Scrape live scores, standings, team rosters, and full box scores from ESPN across NFL, NBA, MLB, NHL, college sports, and major soccer leagues. Get records, win percentages, playoff seeding, and per-game statistics for any date or team. Export results as JSON, CSV, or Excel.

- **URL**: https://apify.com/sheshinmcfly/espn-sports-scraper.md
- **Developed by:** [Sheshinmcfly](https://apify.com/sheshinmcfly) (community)
- **Categories:** News
- **Stats:** 6 total users, 2 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## ESPN Sports Scraper

Get live scores, standings, teams, and full box scores from ESPN — across NFL, NBA, MLB, NHL, college football/basketball, and major soccer leagues. No login, no account, no API key.

Give it one or more leagues and choose what to fetch: today's scoreboard, current standings, the full team list, or a detailed box score for a specific game — including team stats, win probability, odds, and injury reports.

### Data you get

**Games (scoreboard)**

| Field | Description |
|---|---|
| eventId / name / shortName | Game identifiers |
| date / statusState / statusDetail / period / clock | Game timing and live status |
| venue / attendance | Venue info |
| homeTeam / awayTeam | Team names and abbreviations |
| homeScore / awayScore | Live or final scores |
| homeWinner / awayWinner | Winner flag |
| homeRecord / awayRecord | Season record at time of game |
| broadcast | TV/streaming broadcast info |
| odds | Betting odds, if available |

**Standings**

| Field | Description |
|---|---|
| teamName / teamAbbrev | Team |
| wins / losses / ties / winPercent | Record |
| gamesBehind / playoffSeed / streak / clincher | Standing context |
| pointsFor / pointsAgainst / pointDifferential | Scoring stats |

**Teams**

| Field | Description |
|---|---|
| name / shortName / abbreviation / location | Team identity |
| color / alternateColor / logo | Branding |
| venue / isActive | Venue and active status |

**Game summary (box score)**

| Field | Description |
|---|---|
| teamStatistics | Full team-level game stats (shooting %, rebounds, turnovers, etc.) |
| winProbability | Win probability chart data |
| odds | Betting odds and pick center data |
| injuries | Injury report |
| gameInfo | Venue, officials, attendance |

### How to use

1. Add one or more **leagues** — use a shortcut (`nfl`, `nba`, `mlb`, `nhl`, `ncaaf`, `ncaab`, `epl`, `laliga`) or any ESPN league path (e.g. `soccer/ger.1`).
2. Choose **modes**: `scoreboard`, `standings`, `teams`, and/or `gameSummary`.
3. For `scoreboard`, optionally set a **date** (defaults to today/current games).
4. For `gameSummary`, provide specific **event IDs** (get these from a scoreboard run first).

### Use cases

- **Live score tracking:** monitor games across multiple leagues in one run.
- **Standings & playoff race analysis:** track team records, seeding, and streaks.
- **Sports betting research:** pull odds and win probability alongside team stats.
- **Fantasy sports:** track team and game context for roster decisions.
- **Sports content & media:** power scoreboards, standings widgets, or recap content.

### Input

| Field | Type | Description |
|---|---|---|
| leagues | array | Leagues to scrape (required) |
| modes | array | `scoreboard`, `standings`, `teams`, `gameSummary` (required) |
| date | string | Date for scoreboard, format YYYY-MM-DD |
| eventIds | array | Specific game IDs for `gameSummary` mode |

### Output example

```json
{
  "recordType": "game",
  "league": "basketball/nba",
  "name": "New York Knicks at Boston Celtics",
  "homeTeam": "Boston Celtics",
  "homeScore": 112,
  "awayTeam": "New York Knicks",
  "awayScore": 104,
  "statusDetail": "Final",
  "date": "2026-07-12T23:30Z"
}
```

### Performance & cost

Runs on lightweight requests (no browser), so it is fast and cheap: dozens of games, standings, or teams in seconds.

### Pricing

This actor uses **pay-per-result** pricing — you are charged per record returned. See the pricing shown on the actor page.

### Keywords

espn scraper, sports data api, live scores scraper, sports standings, box score scraper, nfl scraper, nba scraper, sports betting data, fantasy sports data

### Related actors

- [TradingView Screener](https://apify.com/sheshinmcfly/tradingview-screener)
- [Eventbrite Events Scraper](https://apify.com/sheshinmcfly/eventbrite-scraper)
- [Reddit Thread Scraper](https://apify.com/sheshinmcfly/reddit-thread-scraper)

### Disclaimer

This actor collects only publicly available sports data. It does not constitute betting or financial advice. Use the data in compliance with the applicable terms and regulations in your jurisdiction.

### Changelog

| Version | Date | Changes |
|---|---|---|
| 1.0 | 2026-07-13 | Initial release — scoreboard, standings, teams, and box score modes across major leagues |

# Actor input Schema

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

Leagues to scrape. Shortcuts: nfl, nba, mlb, nhl, ncaaf, ncaab, epl, laliga. Or any ESPN sport/league path, e.g. 'soccer/ger.1'.

## `modes` (type: `array`):

Which data types to fetch per league.

## `date` (type: `string`):

Date for the scoreboard, format YYYY-MM-DD. Leave empty for today/current games.

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

Specific game/event IDs to fetch a full box score for. Get IDs from a scoreboard run first.

## Actor input object example

```json
{
  "leagues": [
    "nfl"
  ],
  "modes": [
    "scoreboard"
  ]
}
```

# Actor output Schema

## `dataset` (type: `string`):

All extracted sports records.

# 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"
    ],
    "modes": [
        "scoreboard"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("sheshinmcfly/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"],
    "modes": ["scoreboard"],
}

# Run the Actor and wait for it to finish
run = client.actor("sheshinmcfly/espn-sports-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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"
  ],
  "modes": [
    "scoreboard"
  ]
}' |
apify call sheshinmcfly/espn-sports-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=sheshinmcfly/espn-sports-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Gg9RlxK9VGEQ3XGi0/builds/qMjbxSpMkJ9vtNXQR/openapi.json
