# Sports Data: NFL, NBA, MLB, NHL & Football Scores (`tacps126/sports-data`) Actor

Scores, schedules, player box scores, standings, teams and rosters for NFL, NBA, WNBA, MLB, NHL, college, Premier League, LaLiga, Bundesliga, Serie A, Ligue 1, Champions League, MLS, F1, tennis, golf and UFC. Team and date filters, odds where shown; only-new for finals.

- **URL**: https://apify.com/tacps126/sports-data.md
- **Developed by:** [Tapaswai Choudhary](https://apify.com/tacps126) (community)
- **Categories:** Sports, Automation, Developer tools
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.40 / 1,000 game, standing, team or players

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## Sports Data: NFL, NBA, MLB, NHL & Football Scores

Scores, schedules, **player box scores**, **betting odds**, **standings**, teams and **rosters** for 24 leagues in one Actor: **NFL, NBA, WNBA, MLB, NHL**, college football and basketball, the **Premier League, LaLiga, Bundesliga, Serie A, Ligue 1**, Champions League, Europa League, Eredivisie, Primeira Liga, EFL Championship, MLS and Liga MX, plus **Formula 1, ATP and WTA tennis, PGA Tour golf and UFC**. Pick leagues and dates, filter by team, and schedule it to get each final result once.

**Built for** sports analysts and bettors, fantasy and DFS players, sports media and newsletters, app and bot builders, researchers, and AI agents.

### What you get

**Games** (one row per game, F1 session, tennis match, UFC bout or golf tournament):

| Field | Meaning |
|---|---|
| `league`, `name`, `date`, `endDate`, `season`, `seasonType`, `week`, `session`, `draw` | The game |
| `status`, `state` (pre, in, post), `completed`, `statusDetail` | Where it stands |
| `homeTeam`, `homeScore`, `awayTeam`, `awayScore`, `winner`, `result` | The score |
| `competitors` (team or player, record, line scores by period or set, finishing position, game leaders) | Both sides, or the whole field |
| `keyEvents` (goals, cards, minute, players) | Football match events |
| `venue`, `city`, `country`, `attendance`, `broadcasts`, `odds` (where shown), `headline`, `url` | Around the game |

**Box scores**: one row per player per finished game, with team, opponent, result (W/L/D), starter, position and every stat (points, rebounds, passing yards, tackles, saves, shots, cards...).

**Odds**: one row per game per sportsbook (team sports): moneyline (home, away, draw), point spread and total with their prices, **opening and current lines** (closing lines once the game is over), the favourite now and at open, line movement, fair win probability with the bookmaker margin removed, and for finished games `spreadResult` (home covered, away covered, push), `totalResult` (over, under, push) and `favoriteWon`.

**Standings**: team (or F1 driver and constructor), group (conference, division, table), position, wins, losses, points, goal or point difference, streak, home and road records, playoff seed. For ATP and WTA: **singles rankings** (top 150) with points, previous rank, move, age and country.

**Teams** and **rosters**: team ids, colours and logos; players with position, number, age, date of birth, height, weight, birthplace, college, experience and injury status.

### Why this Actor

- **One Actor, 24 leagues**: US sports, European football, motorsport, tennis, golf and MMA with the same fields.
- **Six data types**: games, box scores, odds, standings, teams, rosters.
- **Odds with history**: opening vs current or closing lines, line movement, implied probability and how each line settled. With *Only new*, a line comes back each time it moves.
- **Schedules too**: days ahead for upcoming fixtures with TV and odds where shown.
- **Team filter**: names or abbreviations, e.g. `Lakers`, `KC`, `Arsenal`.
- **Results once**: *Only new* + a daily schedule returns each game again only when its status changes, so finals arrive once.
- **For AI agents.** Callable as an MCP tool.

### How to use it

Last night's NBA and NHL results:

```json
{ "leagues": ["nba", "nhl"], "daysBack": 1, "gameStatus": "final" }
```

This week's Premier League, LaLiga and Champions League fixtures:

```json
{ "leagues": ["premier-league", "la-liga", "champions-league"], "daysBack": 0, "daysAhead": 7, "gameStatus": "scheduled" }
```

Player lines from the Chiefs' and Eagles' games this season:

```json
{ "leagues": ["nfl"], "dataType": "boxScores", "dateFrom": "2026-09-01", "teams": ["KC", "PHI"] }
```

Sunday's NFL lines, then closing lines and results for last week:

```json
{ "leagues": ["nfl"], "dataType": "odds", "daysBack": 0, "daysAhead": 3 }
```

```json
{ "leagues": ["nfl"], "dataType": "odds", "daysBack": 7, "gameStatus": "final" }
```

NFL and Bundesliga standings:

```json
{ "leagues": ["nfl", "bundesliga"], "dataType": "standings" }
```

### Options

| Option | What it does |
|---|---|
| **Leagues** (`leagues`) | Any of the 24 leagues, e.g. `nba`, `nfl`, `premier-league`, `f1` |
| **Data** (`dataType`) | `games`, `boxScores`, `odds`, `standings`, `teams` or `rosters` |
| **Days back** / **Days ahead** (`daysBack`, `daysAhead`) | Rolling window: `daysBack: 1` = yesterday and today; `daysAhead: 7` = next week's fixtures |
| **From date** / **To date** (`dateFrom`, `dateTo`) | Exact range (`YYYY-MM-DD`), up to about one season per run |
| **Game status** (`gameStatus`) | `any`, `final`, `live` or `scheduled` |
| **Teams** (`teams`) | Team or player names or abbreviations, e.g. `Lakers`, `KC`, `Arsenal`, `Sinner`. Empty = all |
| **Tennis draw** (`matchType`) | `any`, `singles` or `doubles` (tennis matches only) |
| **Season** (`season`) | Standings for a past season, e.g. `2025`; empty = current |
| **Max results** (`maxItems`) | Most rows per run |
| **Only new** (`onlyNew`, `monitorName`) | With a schedule, each run returns only rows earlier runs did not deliver; a game comes again when its status changes |

### Pricing

**$3 per 1,000 games, odds rows, standings rows, teams or players**, and **$1 per 1,000 box-score player lines**, plus a small start fee per run. On the Apify free plan a run returns up to 100 rows.

### Good to know

- Dates follow each league's local game day: a late NBA game on October 29 counts as October 29.
- College leagues cover the whole FBS (football) and Division I (basketball).
- Odds cover team sports. Lines usually appear a few days before a game; some games have none. Attendance appears only where the source shows it.
- Tennis doubles pairs come with both players and their countries.
- Up to about one season (400 days) per run.
- Questions: **tacps126@gmail.com**.

# Actor input Schema

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

One or more leagues. Box scores, teams and rosters cover team sports; standings also cover F1 (drivers, constructors) and ATP/WTA (singles rankings).

## `dataType` (type: `string`):

Games give scores, status, venue, TV, team records, leaders, key events (goals, cards) and odds where shown. Odds give opening and current (closing after the game) moneyline, spread and total per sportsbook, fair win probability, line movement and, for finished games, which side covered and whether the total went over.

## `daysBack` (type: `integer`):

1 = yesterday and today.

## `daysAhead` (type: `integer`):

Upcoming fixtures, e.g. 7 for the next week's schedule.

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

YYYY-MM-DD; replaces Days back.

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

YYYY-MM-DD; replaces Days ahead. Up to about one season per run.

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

Box scores always use finished games.

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

Team or player names or abbreviations, e.g. Lakers, KC, Arsenal, Sinner. Empty = all.

## `matchType` (type: `string`):

Tennis matches only: singles, doubles or both.

## `season` (type: `integer`):

The season's year as ESPN numbers it, e.g. 2026 for the 2025-26 NBA season. Empty = current.

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

Most rows returned per run.

## `onlyNew` (type: `boolean`):

Schedule the Actor and each run returns only what earlier runs did not deliver. A game comes again when its status changes (scheduled, live, final), so a daily run with Game status = Final gives each result once.

## `monitorName` (type: `string`):

Optional name for the "only new" history, so several monitors can run side by side.

## `tenantId` (type: `string`):

Optional label used to keep separate histories for different clients or teams.

## `debug` (type: `boolean`):

Save extra diagnostics with the run (for support requests).

## Actor input object example

```json
{
  "leagues": [
    "nba"
  ],
  "dataType": "games",
  "daysBack": 1,
  "daysAhead": 0,
  "gameStatus": "any",
  "matchType": "any",
  "maxItems": 1000,
  "onlyNew": false,
  "debug": false
}
```

# Actor output Schema

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

The produced items (default dataset items).

# 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"
    ],
    "daysBack": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("tacps126/sports-data").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"],
    "daysBack": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("tacps126/sports-data").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"
  ],
  "daysBack": 1
}' |
apify call tacps126/sports-data --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tacps126/sports-data"
        }
    }
}
```

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/81RcVlRaWWMFUieXv/builds/vJxHhAUxB23hUUITA/openapi.json
