# NBA box scores for yesterday's games

**Use case:** 

Returns yesterday's finished NBA games with full box scores from ESPN: team statistics, player stat lines and scoring plays, alongside the final score, venue and game link. Schedule it each morning to collect the previous night's games.

## Input

```json
{
  "mode": "scoreboard",
  "leagues": [
    "nba"
  ],
  "daysBack": 1,
  "daysAhead": 0,
  "statusFilter": "finished",
  "includeDetails": true,
  "newsLimit": 25,
  "monitorMode": false,
  "monitorStoreName": "espn-sports-monitor",
  "maxResults": 20
}
```

## Output

```json
{
  "leagueName": {
    "label": "League",
    "format": "text"
  },
  "startTime": {
    "label": "Start",
    "format": "date"
  },
  "shortName": {
    "label": "Game",
    "format": "text"
  },
  "away.name": {
    "label": "Away",
    "format": "text"
  },
  "away.score": {
    "label": "Away score",
    "format": "number"
  },
  "home.name": {
    "label": "Home",
    "format": "text"
  },
  "home.score": {
    "label": "Home score",
    "format": "number"
  },
  "result": {
    "label": "Winner",
    "format": "text"
  },
  "status.detail": {
    "label": "Status",
    "format": "text"
  },
  "venue.name": {
    "label": "Venue",
    "format": "text"
  },
  "broadcasts": {
    "label": "TV",
    "format": "array"
  },
  "gameUrl": {
    "label": "ESPN",
    "format": "link"
  }
}
```

## How it works

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

The ESPN Scraper & API: Scores, Box Scores, Standings, Schedules Actor is ready to run with the inputs already set for "NBA box scores for yesterday's games". [Sign up or log in](https://console.apify.com/create-task-from-example/iWSI9o3CQa7hXX6lR) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "NBA box scores for yesterday's games" task

The ESPN Scraper & API: Scores, Box Scores, Standings, Schedules Actor will start running based on the input automatically. You can also change all the input fields, like what to get, leagues, and more, to match your specific use case.

### 3. Receive the "NBA box scores for yesterday's games" 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, 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 "NBA box scores for yesterday's games" task via API](https://apify.com/localwire/espn-sports.md).

## FAQ

### What does the "NBA box scores for yesterday's games" task return?

The "NBA box scores for yesterday's games" task returns one record per game: league, start time, teams and scores, result, status, venue, broadcasters and game link.

### Are box scores charged differently in the NBA box scores task?

Yes. In the NBA box scores task a game returned with its box score is charged as a game with details, which costs more than a plain scoreboard game.

### How do I run the "NBA box scores for yesterday's games" task on a schedule or from code?

Copy the "NBA box scores for yesterday's games" task to your Apify account, then add a schedule in Apify Console or start it with the Run task API endpoint. Results download as JSON, CSV or Excel.

## About this Actor

This example demonstrates how to use [ESPN Scraper & API: Scores, Box Scores, Standings, Schedules](https://apify.com/localwire/espn-sports.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/localwire/espn-sports.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/localwire/espn-sports.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`).
