# ESPN Sports Scores, Schedules, Standings, Odds & News (`arthursbuisness/espn-sports-scores-schedules-standings`) Actor

- **URL**: https://apify.com/arthursbuisness/espn-sports-scores-schedules-standings.md
- **Developed by:** [Arthur](https://apify.com/arthursbuisness) (community)
- **Categories:** Sports, News, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 stored row (game, standing, team or article)s

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?

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

Get **scores, schedules, results, betting lines, standings, team directories and news** for the major US and European leagues straight from ESPN's public JSON endpoints — the same data the ESPN site and app show. One run covers any mix of leagues and any date window. **No API key, no browser, no proxies**; runs take seconds and cost a fraction of a cent per row.

Covered: **NBA, WNBA, NFL, MLB, NHL, college basketball & football, Premier League, La Liga, Bundesliga, Serie A, Ligue 1, Eredivisie, MLS, Champions League, Europa League, World Cup, ATP/WTA tennis, PGA/LPGA golf** — plus any other ESPN league via an explicit `sport/league` path (UFC, F1, cup competitions, …).

Typical uses: sports betting models and odds tracking, live score widgets and Discord/Slack bots, fantasy tools, results archives and datasets for analysis or LLMs, schedule feeds for calendars, news monitoring per league.

### What you get

**`scoreboard` → one `game` row per fixture** (tennis: one `match` row per match; golf: one `tournament` row with the leaderboard):

| field | description |
|---|---|
| `league`, `sport`, `league_name`, `event_id`, `date` (UTC ISO), `name`, `short_name` | Identity — e.g. `Tampa Bay Rays at Detroit Tigers`, `TB @ DET` |
| `status`, `status_state`, `status_detail`, `completed`, `period`, `clock` | `STATUS_SCHEDULED` / `STATUS_IN_PROGRESS` / `STATUS_FINAL`, `pre`/`in`/`post`, `Final`, `Q3 4:12`, `90'+6'` |
| `home_team`, `home_team_name`, `home_team_id`, `home_score`, `home_winner`, `home_record`, `home_form`, `home_logo`, `home_linescores` | Home side; same set for `away_*`. `home_form` = last-5 results in soccer; linescores = per period/inning/set |
| `spread`, `over_under`, `moneyline_home`, `moneyline_away`, `moneyline_draw`, `odds_details`, `odds_provider` | Betting lines (DraftKings via ESPN) — present for upcoming and live games, `null` after the final whistle |
| `venue`, `venue_city`, `venue_state`, `venue_country`, `attendance`, `neutral_site` | Venue |
| `season_year`, `season_type`, `week`, `broadcasts`, `headline`, `url` | Context: `regular-season`/`postseason`, NFL week, TV networks, ESPN recap headline, ESPN game page |

**`standings` → one `standing` row per team**: `group` (conference/division/table), `rank`, `team`, `abbreviation`, `wins`, `losses`, `ties`, `ot_losses`, `win_percent`, `games_played`, `games_behind`, `points`, `points_for`, `points_against`, `point_differential`, `streak`, `home_record`, `away_record`, `last_ten`, `playoff_seed`, `note` (e.g. "Champions League" qualification zone) plus `stats` / `stats_display` objects with every stat ESPN publishes for that league.

**`teams` → one `team` row per team**: `team_id`, `abbreviation`, `display_name`, `short_name`, `location`, `name`, `color`, `alternate_color`, `logo`, `is_active`, `url`.

**`news` → one `news` row per article**: `article_id`, `headline`, `description`, `published`, `last_modified`, `kind` (Story/Media/…), `byline`, `premium`, `url`, `image`, `categories`.

Unknown league codes or endpoints ESPN does not serve return a `type: "error"` row (free) and the run continues.

Export as JSON, CSV or Excel, or push rows to Google Sheets, Make, Zapier, webhooks or your code through the Apify API.

### Input

| field | default | meaning |
|---|---|---|
| `leagues` | — | `nba`, `nfl`, `mlb`, `nhl`, `wnba`, `ncaab`, `ncaaf`, `atp`, `wta`, `pga`, soccer codes like `eng.1`, `esp.1`, `ger.1`, `ita.1`, `ned.1`, `usa.1`, `uefa.champions`, aliases (`epl`, `laliga`, `mls`, `ucl`), or explicit paths like `soccer/eng.fa`, `mma/ufc` |
| `dataTypes` | `["scoreboard"]` | any of `scoreboard`, `standings`, `teams`, `news` |
| `dateFrom`, `dateTo` | today | scoreboard window (UTC days, inclusive); past = results, future = schedule + lines |
| `maxItems` | 500 | hard cap on stored rows across everything |
| `maxNewsPerLeague` | 25 | articles per league for `news` |

Example — NFL week-1 schedule with lines, plus current NBA and Premier League tables:

```json
{
  "leagues": ["nfl", "nba", "eng.1"],
  "dataTypes": ["scoreboard", "standings"],
  "dateFrom": "2026-09-10",
  "dateTo": "2026-09-15",
  "maxItems": 1000
}
```

Schedule the actor (every 5–15 minutes on match days) and deduplicate on `event_id` to build a live feed; `status_state` tells you whether a game is `pre`, `in` or `post`.

### Pricing

Pay per event: **$0.001 per stored row** ($1 per 1,000 games, standings lines, teams or articles). Error rows are free. Apify platform usage (a few seconds of compute per run) is billed separately by Apify.

### Limitations — please read

- ESPN's public endpoints are undocumented; field availability varies by league (e.g. no `over_under` for golf, no `attendance` for soccer in some leagues, no standings for tennis/golf/MMA). Rows contain `null` where ESPN has no value.
- Betting lines come from one provider (currently DraftKings) as shown on ESPN, only for upcoming/live games. Not every league has lines.
- One request per league per day in the window; a 365-day window for 5 leagues is ~1,800 requests (≈ 15 minutes at the polite rate this actor uses). Tennis matches are filtered to the window; golf returns the tournaments active in it.
- Player-level box scores, play-by-play and injuries are not included (open an issue if you need them).

Not affiliated with ESPN. Uses only publicly accessible endpoints; data is for informational use — check ESPN's terms for redistribution.

# Actor input Schema

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

League codes: nba, wnba, nfl, mlb, nhl, ncaab (men's college basketball), ncaaw, ncaaf (college football), atp, wta, pga, lpga; soccer by ESPN code: eng.1 (Premier League), esp.1 (La Liga), ger.1 (Bundesliga), ita.1 (Serie A), fra.1 (Ligue 1), ned.1 (Eredivisie), usa.1 (MLS), por.1, mex.1, uefa.champions, uefa.europa, fifa.world. Aliases: epl, laliga, bundesliga, seriea, ligue1, eredivisie, mls, ucl. Any other ESPN league works as an explicit 'sport/league' path (e.g. 'soccer/eng.fa', 'mma/ufc', 'racing/f1'). Unknown codes give a free error row.

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

What to fetch per league: 'scoreboard' (games/matches with scores, status, venue, odds; tennis = matches, golf = tournaments with leaderboard), 'standings' (league table), 'teams' (team directory), 'news' (latest articles).

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

First day of the scoreboard window (UTC). Empty = today. Past dates give final results, future dates give the schedule with betting lines.

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

Last day of the scoreboard window (inclusive). Empty = same as 'Date from'. One request per league per day; windows are capped at 366 days.

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

Stops after this many stored rows — your cost ceiling.

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

Only used with data type 'news'. ESPN returns at most ~50 recent articles per league.

## Actor input object example

```json
{
  "leagues": [
    "nba",
    "nfl",
    "eng.1"
  ],
  "dataTypes": [
    "scoreboard"
  ],
  "maxItems": 500,
  "maxNewsPerLeague": 25
}
```

# Actor output Schema

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

All items as JSON

## `resultsCsv` (type: `string`):

Same dataset as CSV — open in Excel/Sheets

# 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",
        "eng.1"
    ],
    "dataTypes": [
        "scoreboard"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("arthursbuisness/espn-sports-scores-schedules-standings").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",
        "eng.1",
    ],
    "dataTypes": ["scoreboard"],
}

# Run the Actor and wait for it to finish
run = client.actor("arthursbuisness/espn-sports-scores-schedules-standings").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",
    "eng.1"
  ],
  "dataTypes": [
    "scoreboard"
  ]
}' |
apify call arthursbuisness/espn-sports-scores-schedules-standings --silent --output-dataset

```

## MCP server setup

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

```

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/LIqWhmMTcbx9DhMRZ/builds/gt21lviUN5ky77sf4/openapi.json
