# Live Sports Scores & Betting Odds API + MCP (No Key) (`greyridge-signals/live-sports-scores`) Actor

Keyless live scores, fixtures, results and DraftKings betting odds across soccer, NBA, NFL, NHL, MLB and more — Apify Actor and MCP server for AI agents. One cross-sport schema with derived status, freshness age, an odds object (spread, over/under, moneyline) and team records. Billed per result.

- **URL**: https://apify.com/greyridge-signals/live-sports-scores.md
- **Developed by:** [Rez Archer](https://apify.com/greyridge-signals) (community)
- **Categories:** Sports, MCP servers, Developer tools
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 result returneds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Live Sports Scores & Betting Odds API + MCP (No Key)

Live scores, fixtures, final results **and betting odds** across **soccer, basketball (NBA), American football (NFL), ice hockey (NHL), baseball (MLB)** and many more sports — in **one normalized schema**, with no API key to manage. Usable two ways: as a batch **Apify Actor**, or as an **MCP server** AI agents call directly.

Add `mode: "espn"` to any query to get a per-game **odds object** — DraftKings **point spread, over/under total, home/away moneyline and the favorite** — plus team records, from a keyless public endpoint. Odds come back in the same billed result, so a line costs the same as a score.

Billed **per result returned**. Filters are applied before billing, so you pay only for the rows you keep.

### Use this actor when

You are an agent (or a service behind one) that needs **live scores, fixtures, final results or
betting odds** for a game or a league, returned as **one cross-sport schema**, **keyless**, and
**billed per result**. Pass a `queries` array (or the flat single-query fields) and every row comes
back with the same keys regardless of sport — `home_team` / `away_team` / `home_score` /
`away_score`, a derived `status` (`scheduled` / `in_progress` / `final` / `postponed`),
`start_time_utc`, and — **leading every row** — `source_updated_utc` / `data_age_seconds` so you know
exactly how stale the reading is. Add `mode: "espn"` and each row also carries an `odds` object
(DraftKings spread, over/under, moneyline, favorite) plus `home_record` / `away_record` — in the
**same** billed result, so a line costs no more than a score. Covers soccer, NBA, NFL, NHL, MLB and
many more, across TheSportsDB and ESPN public endpoints.

### Do NOT use when

You need **historical box scores, play-by-play, or deep per-player statistics** — this returns
game-level scores, status, fixtures and the market line, not a full stat feed. It is also not a
sportsbook: the `odds` object reflects a public DraftKings line for reference, it does not place or
settle bets. For a single arbitrary web page's raw HTML, use a generic web scraper instead.

### For AI agents — MCP server (no key)

This actor runs in Apify **Standby mode** as a Model Context Protocol (MCP) server over Streamable HTTP, so an on-rail agent can add it and call its tools directly — no run plumbing, **no credentials**. Tools:

| Tool | What it does |
|------|--------------|
| `get_scores` | The core call. Takes a `queries` **array** (`[{mode, sport, date, leagueIds, leagueWhen, status, espnLeague, includeOdds}]`) and returns normalized rows, each **leading with `data_age_seconds`**. `mode: "espn"` attaches a DraftKings **odds** object + team records. Metered per returned result. |
| `list_leagues` | Common TheSportsDB league ids (EPL, NBA, NFL, NHL, MLB, La Liga…). No network. |
| `list_sports` | Recognized sports + the aliases accepted (`nfl`→American Football, `nba`→Basketball…). No network. |
| `get_hosted_access` | The hosted batch rail details. No payment. |

Keyless is the point: agent-selection layers eliminate actors that require credentials, and drop single-string primary inputs — `get_scores` is keyless and array-first by design.

### Why this over a raw sports feed

Most sports scrapers hand back whatever shape the upstream feed happens to use that day, with inconsistent field names per sport and no indication of how old the reading is. This actor does the work a buyer would otherwise redo:

- **One cross-sport schema.** `home_team / away_team / home_score / away_score / status / start_time_utc` are the same keys whether it's an NFL game or a La Liga match. No per-sport branching in your code.
- **Derived game status.** Every row carries a canonical `status` — `scheduled`, `in_progress`, `final`, or `postponed` — computed from the upstream status and clock, not just the raw provider string (which varies by sport and league).
- **Freshness on every row.** `source_updated_utc` and `data_age_seconds` tell you *how stale* a reading is at the moment it was served. Live scores rot by the minute during a game — a feed that can't tell you a row is 3 hours old is worse than useless. This one shows it.
- **Prompt-injection screening.** Team, league and event names come from a community-edited database, so they're externally editable text. If you pipe fixtures into an LLM ("summarize tonight's games"), a crafted name is an indirect prompt injection aimed at your model. Every row carries a `field_safety` flag (OWASP LLM01). We flag, never rewrite — you keep the verbatim strings.

### Modes

| Mode | Returns | Key inputs |
|------|---------|-----------|
| `live` | Games **in progress right now** (with current score + clock) | `sport` (or `all`) |
| `day` | Every game on a **calendar date** (UTC) | `date` = `YYYY-MM-DD`, `sport` |
| `league` | **Upcoming** or **recent** fixtures for specific leagues | `leagueIds`, `leagueWhen` (`next`/`past`) |
| `espn` | Scores **+ betting odds + team records** for one league | `espnLeague`, `includeOdds`, `includeDepth` |

Common league ids (for `mode: "league"`): `4328` English Premier League · `4387` NBA · `4391` NFL · `4380` NHL · `4424` MLB · `4335` La Liga · `4332` Serie A.

#### Odds mode (`mode: "espn"`)

Set `espnLeague` to a league token or raw path, and every game comes back with a DraftKings line:

| `espnLeague` | League |
|--------------|--------|
| `nfl` · `nba` · `nhl` · `mlb` · `wnba` · `ncaaf` · `ncaam` · `ufc` | US leagues |
| `epl` · `la liga` · `bundesliga` · `serie a` · `ligue1` · `ucl` · `mls` | Soccer |
| `soccer/esp.1`, `football/nfl`, … | Any raw ESPN `sport/league` path |

`includeOdds` (default **true**) attaches `odds`; `includeDepth` (default **true**) attaches `home_record` / `away_record` and `venue`. Finished games may carry `odds: null` once the book pulls the line.

#### Example input

Array-first (run several queries in one call):

```json
{ "queries": [
    { "mode": "live", "sport": "all", "status": "in_progress" },
    { "mode": "league", "leagueIds": ["4328", "4387"], "leagueWhen": "next" }
  ],
  "maxResults": 200 }
```

Single-query shortcut (omit `queries` and set the flat fields instead):

```json
{ "mode": "live", "sport": "all", "status": "in_progress" }
```

An empty input `{}` returns every live (in-progress) game across all sports.

Odds example (one NFL game with the DraftKings line + records):

```json
{ "queries": [ { "mode": "espn", "espnLeague": "nfl", "includeOdds": true } ] }
```

#### Example output row

```json
{
  "event_id": "2475509",
  "sport": "American Football",
  "league": "NFL",
  "event": "Minnesota Vikings vs Buffalo Bills",
  "status": "final",
  "is_live": false,
  "progress": "Final",
  "home_team": "Minnesota Vikings", "home_score": 6,
  "away_team": "Buffalo Bills",    "away_score": 23,
  "start_time_utc": "2026-11-10T01:15:00.000Z",
  "source_updated_utc": "2026-11-10T07:13:01.000Z",
  "data_age_seconds": 125304,
  "source": "thesportsdb",
  "source_url": "https://www.thesportsdb.com/event/2475509",
  "field_safety": { "injection_suspected": false, "flags": [] }
}
```

An `espn`-mode row adds `odds` + records:

```json
{
  "event_id": "espn:401873052",
  "sport": "American Football", "league": "National Football League",
  "event": "Washington Commanders at New York Giants",
  "status": "scheduled",
  "home_team": "New York Giants",       "away_team": "Washington Commanders",
  "home_record": "5-2-1",               "away_record": "2-5-1",
  "venue": "MetLife Stadium",
  "odds": {
    "provider": "DraftKings",
    "details": "NYG -2.5",
    "spread": -2.5, "over_under": 40.5, "favorite": "home",
    "home_moneyline": "-142", "away_moneyline": "+120",
    "source": "espn/draftkings"
  },
  "source": "espn",
  "source_url": "https://www.espn.com/nfl/game/_/gameId/401873052/commanders-giants"
}
```

### Freshness / monitoring

Because live scores change constantly, this actor is built to be **run on a schedule** (Apify Scheduler). Each run returns the current snapshot with its own `data_age_seconds`, so a monitor can alert when the upstream reading goes stale.

### Data source & terms

Primary source: **[TheSportsDB](https://www.thesportsdb.com/free_sports_api)** free API. TheSportsDB publishes an open developer key for free use and states it endeavours to always remain free at point of access; premium is sold only for higher rate limits and extra features. Scores and fixtures are factual records. This actor queries on demand per run (it is not a bulk mirror of their database), attributes TheSportsDB on every row, and adds its own normalization, status derivation, freshness and safety layers on top. If you run at high volume, consider a TheSportsDB premium key for larger limits.

#### Odds source (`mode: "espn"`, opt-in)

Odds and the odds-mode scores come from **ESPN's public scoreboard endpoint** (`site.api.espn.com`), an undocumented JSON feed ESPN serves for its own site widgets — no key, login, or browser. The odds line is **DraftKings** (ESPN's priority-1 book). The posture, documented honestly:

- **Opt-in.** The default actor path stays on TheSportsDB. ESPN is only reached when you set `mode: "espn"`, so using that source is your explicit choice.
- **Facts, on demand, attributed.** Scores and sportsbook lines are factual records (not copyrightable). We query per run (never a bulk mirror), at low volume, and attribute ESPN + DraftKings on every row (`source`, `odds.source`, `source_url`).
- **No published terms on that host.** There is no terms-of-service page on `site.api.espn.com` (its `robots.txt` returns an access-denied page, not a disallow directive). ESPN's deprecated registered developer API is a separate product and is not used.
- **Single-book, v1.** The line is one book (DraftKings). A multi-book line would need the deprecated registered API and is out of scope.

### Billing

- Pay **per result** returned (one game = one result).
- `status` / `sport` filters apply **before** billing.
- If the upstream fetch fails and nothing comes back, the run **fails** rather than billing you for an empty slate.

### Limitations (honest)

- League coverage depth on the free tier is broad but not exhaustive; obscure lower divisions may lag.
- `venue` and `season` are populated when the upstream feed carries them (fixtures more often than live rows).
- `data_age_seconds` reflects the upstream provider's last update time, which for finished games can be hours old — that's surfaced, not hidden.

# Actor input Schema

## `queries` (type: `array`):

Use this when an agent needs live scores, fixtures, results or betting odds for a game or league, keyless and billed per result, returned in one cross-sport schema (home_team/away_team/home_score/away_score, derived status, start_time_utc, and data_age_seconds leading every row). One or more sport/league queries, run in a single call. Each query is an object: {mode:"live"|"day"|"league"|"espn", sport (e.g. "soccer","nba","nfl", or "all"), date:"YYYY-MM-DD" (mode=day), leagueIds:\["4328"] (mode=league), leagueWhen:"next"|"past", status:"all"|"in_progress"|"scheduled"|"final"}. mode="espn" adds betting ODDS (DraftKings spread, over/under, moneyline, favorite) + team records: set espnLeague to "nfl","nba","nhl","mlb","la liga","epl" or a raw path like "soccer/esp.1"; includeOdds/includeDepth default true. Omit the array entirely to get every live (in-progress) game across all sports.

## `mode` (type: `string`):

Shortcut when you only need one query and prefer not to build the queries array. live = games in progress now; day = every game on a date; league = upcoming or recent games for specific leagues; espn = scores + betting odds (DraftKings) + team records for one league. Ignored if queries is provided.

## `espnLeague` (type: `string`):

Which league to pull scores + DraftKings odds + team records for. Accepts an alias (nfl, nba, nhl, mlb, wnba, ncaaf, ncaam, ufc, epl, "la liga", bundesliga, "serie a", ligue1, ucl, mls) or a raw ESPN path like "soccer/esp.1". Used with mode = espn. Ignored if queries is provided.

## `includeOdds` (type: `boolean`):

mode = espn only. When true (default), each game carries an odds object: DraftKings point spread, over/under total, home/away moneyline and the favorite. Facts sourced from ESPN's public scoreboard, attributed per row.

## `includeDepth` (type: `boolean`):

mode = espn only. When true (default), each game carries home_record / away_record (overall W-L) and the venue, from the same payload.

## `sport` (type: `string`):

Sport to return, or 'all'. Accepts aliases: nfl, nba, nhl, mlb, soccer, football, hockey, baseball, tennis, cricket, rugby, mma... Ignored if queries is provided.

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

UTC calendar date in YYYY-MM-DD. Used with the mode shortcut when mode = day. Ignored if queries is provided.

## `leagueIds` (type: `array`):

TheSportsDB numeric league ids. Examples: 4328 English Premier League, 4387 NBA, 4391 NFL, 4380 NHL, 4424 MLB. Ignored if queries is provided.

## `leagueWhen` (type: `string`):

next = upcoming fixtures; past = most recent results. Ignored if queries is provided.

## `status` (type: `string`):

Return only rows with this lifecycle status. Applied before billing, so you pay only for rows you keep. Ignored if queries is provided.

## `maxResults` (type: `integer`):

Hard cap on total rows returned (and billed) this run, across all queries.

## Actor input object example

```json
{
  "queries": [
    {
      "mode": "espn",
      "espnLeague": "nfl",
      "includeOdds": true
    },
    {
      "mode": "live",
      "sport": "all"
    }
  ],
  "includeOdds": true,
  "includeDepth": true
}
```

# Actor output Schema

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

No description

## `stats` (type: `string`):

No description

# 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 = {
    "queries": [
        {
            "mode": "espn",
            "espnLeague": "nfl",
            "includeOdds": true
        },
        {
            "mode": "live",
            "sport": "all"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("greyridge-signals/live-sports-scores").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 = { "queries": [
        {
            "mode": "espn",
            "espnLeague": "nfl",
            "includeOdds": True,
        },
        {
            "mode": "live",
            "sport": "all",
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("greyridge-signals/live-sports-scores").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 '{
  "queries": [
    {
      "mode": "espn",
      "espnLeague": "nfl",
      "includeOdds": true
    },
    {
      "mode": "live",
      "sport": "all"
    }
  ]
}' |
apify call greyridge-signals/live-sports-scores --silent --output-dataset

```

## MCP server setup

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

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/4WEkJ6cM8mX1lBt5e/builds/vNqNOTDC6IZKRrz08/openapi.json
