# Get ESPN box scores, player stats and betting odds

**Use case:** 

Export finished games of the last three days with the full box score: team stats, every player's stats, spread, total and moneyline with opening and closing numbers, officials and the recap. The example reads NBA, NHL, MLB and NFL games.

## Input

```json
{
  "dataType": "games",
  "leagues": [
    "nba",
    "nhl",
    "mlb",
    "nfl"
  ],
  "dateFrom": "-3",
  "dateTo": "-1",
  "gameStatus": "finished",
  "includeDetails": true,
  "includePlays": false,
  "newsLimit": 25,
  "maxItems": 20,
  "onlyNew": false,
  "monitorKey": "default",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "leagueName": {
    "label": "League",
    "format": "text"
  },
  "date": {
    "label": "Start (UTC)",
    "format": "date"
  },
  "name": {
    "label": "Game",
    "format": "text"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "scoreLine": {
    "label": "Score",
    "format": "text"
  },
  "winner": {
    "label": "Winner",
    "format": "text"
  },
  "venue": {
    "label": "Venue",
    "format": "text"
  },
  "broadcast": {
    "label": "TV",
    "format": "text"
  },
  "odds": {
    "label": "Odds",
    "format": "object"
  },
  "details": {
    "label": "Details",
    "format": "object"
  },
  "url": {
    "label": "ESPN page",
    "format": "link"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The ESPN Scraper: Scores, Standings, Injuries, Odds & Stats Actor is ready to run with the inputs already set for "Get ESPN box scores, player stats and betting odds". [Sign up or log in](https://console.apify.com/create-task-from-example/RXBdLl5ctjzeuOY55) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Get ESPN box scores, player stats and betting odds" task

The ESPN Scraper: Scores, Standings, Injuries, Odds & Stats Actor will start running based on the input automatically. You can also change all the input fields, like what do you want?, leagues, and more, to match your specific use case.

### 3. Receive the "Get ESPN box scores, player stats and betting odds" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as league, start (utc), game, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Get ESPN box scores, player stats and betting odds" task via API](https://apify.com/panix/espn-sports-scraper.md).

## FAQ

### What does the ESPN box score task return?

One row per finished game with a details block: team stats, every player's stat line, the betting lines of ESPN's odds partner with opening and closing numbers, officials, injuries and the game recap.

### Do all games have odds?

No. ESPN lists lines for many NFL, NBA, NHL, college basketball and soccer games, but not for every game. Games without odds still return the box score.

### Does the box score cost extra?

Yes, $3.50 per 1,000 games on Starter ($4.00 on Free). It is charged only for games where ESPN had details.

### How much does the ESPN box score task cost?

The ESPN tasks cost $1.80 per 1,000 rows on the Apify Free plan and $1.50 on Starter, less on bigger plans, plus $0.001 per run.

### Do I need an ESPN account or API key?

No. The task reads the public data that ESPN shows on its own pages and apps. There is no login, cookie or key.

## About this Actor

This example demonstrates how to use [ESPN Scraper: Scores, Standings, Injuries, Odds & Stats](https://apify.com/panix/espn-sports-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/panix/espn-sports-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/panix/espn-sports-scraper.md

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`).
