# Sports Fixtures, Scores & Odds — 335 Leagues (Live) (`blockshark/sports-fixtures-odds`) Actor

Upcoming fixtures, live scores, results, bookmaker odds (moneyline/spread/totals) and standings for 335 leagues across 11 sports: soccer, NBA, NFL, MLB, NHL, tennis (ATP/WTA), UFC/MMA, rugby, AFL and more. Clean JSON, MCP-ready.

- **URL**: https://apify.com/blockshark/sports-fixtures-odds.md
- **Developed by:** [BlockShark](https://apify.com/blockshark) (community)
- **Categories:** Sports
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 sports event records

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/platform/actors/running/actors-in-store#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

## Sports Fixtures, Scores & Odds — 335 Leagues, Live

One actor for **upcoming fixtures, live scores, final results, bookmaker odds and league standings** across **335 leagues in 11 sports** — soccer (220+ leagues from the Premier League to Brasileirão), NBA/WNBA, NFL, MLB, NHL, ATP/WTA tennis, UFC and 47 more MMA organizations, rugby, AFL and volleyball.

Pay only for the event records you receive. No API keys, no subscriptions, no rate-limit headaches.

### What you get per event

```json
{
  "type": "event",
  "id": "espn:baseball.mlb:401816119",
  "sport": "baseball",
  "league": "baseball.mlb",
  "leagueName": "Major League Baseball",
  "startsAt": "2026-07-12T18:10Z",
  "status": "scheduled",
  "homeTeam": "Pittsburgh Pirates",
  "awayTeam": "Milwaukee Brewers",
  "homeScore": null,
  "awayScore": null,
  "venue": "PNC Park",
  "round": null,
  "odds": [
    {
      "bookmaker": "draftkings",
      "h2h": { "home": { "american": -118, "decimal": 1.847 },
                "away": { "american": -102, "decimal": 1.98 } },
      "spreads": { "homeLine": -1.5, "home": { "american": 142, "decimal": 2.42 } },
      "totals": { "line": 8.5, "over": { "american": -107, "decimal": 1.935 } },
      "fetchedAt": "2026-07-12T14:30:11.000Z"
    }
  ]
}
```

Statuses: `scheduled` → `live` (with live scores) → `finished` (with final scores + winner), plus `postponed` / `cancelled`.

### Use cases

- **Betting models & odds analysis** — moneyline/spread/totals in American + decimal formats
- **AI agents** — works out of the box as an MCP tool in Claude, Cursor and other agent clients
- **Sports apps & widgets** — fixtures and live scores for any league without an expensive data contract
- **Research** — results + closing prices for backtesting

### Input

| Field | Example | Notes |
|---|---|---|
| `sports` | `["soccer","tennis"]` | empty = all active leagues |
| `leagues` | `["soccer.eng.1","baseball.mlb","mma.ufc"]` | exact keys, overrides `sports` — [full catalog](https://github.com/apify/actor/blob/main/LEAGUES.md) in LEAGUES.md |
| `daysAhead` / `daysBack` | `3` / `1` | date window |
| `includeOdds` | `true` | attach bookmaker prices to upcoming events |
| `onlyWithOdds` | `false` | drop events without prices |
| `includeStandings` | `false` | one standings record per league (rank, points, W/D/L) |
| `maxEvents` | `2000` | hard cost cap |

### Popular league keys

`soccer.eng.1` Premier League · `soccer.esp.1` LaLiga · `soccer.ger.1` Bundesliga · `soccer.ita.1` Serie A · `soccer.uefa.champions` Champions League · `soccer.fifa.world` World Cup · `soccer.bra.1` Brasileirão · `soccer.usa.1` MLS · `basketball.nba` NBA · `football.nfl` NFL · `baseball.mlb` MLB · `hockey.nhl` NHL · `tennis.atp` / `tennis.wta` ATP & WTA · `mma.ufc` UFC

Full list of all 335 keys: **LEAGUES.md** in this repo. Dormant leagues (off-season) wake up automatically.

### Odds coverage

Bookmaker prices (currently DraftKings via ESPN's public betting feed) are available for US sports (MLB, NBA, NFL, NHL, WNBA) and top soccer competitions, on h2h/moneyline, spreads and totals. Tennis and MMA return fixtures/results only.

### FAQ

**Where does the data come from?** Publicly available ESPN endpoints, fetched politely and normalized into one clean schema.

**How fresh is it?** Fetched live at run time. Schedule the actor (e.g. every 30 minutes) to maintain your own always-current dataset.

**Legal?** The actor accesses only publicly available data — the same information anyone sees in a browser. No logins, no paywalls, no personal data.

# Actor input Schema

## `sports` (type: `array`):

Which sports to fetch. Leave empty for ALL active leagues.

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

Exact league keys (overrides Sports), e.g. `soccer.eng.1`, `baseball.mlb`, `basketball.nba`, `tennis.atp`, `mma.ufc`. See the README for the full 335-league catalog.

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

How many days of upcoming fixtures to include.

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

How many past days to include (for final scores/results).

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

Attach moneyline / spread / totals prices (American + decimal) to upcoming events where available.

## `onlyWithOdds` (type: `boolean`):

Skip events that have no bookmaker prices.

## `includeStandings` (type: `boolean`):

Also push one standings-table record per league (points, rank, W/D/L).

## `maxEvents` (type: `integer`):

Hard cap on event records pushed (cost control).

## Actor input object example

```json
{
  "sports": [],
  "leagues": [],
  "daysAhead": 3,
  "daysBack": 0,
  "includeOdds": true,
  "onlyWithOdds": false,
  "includeStandings": false,
  "maxEvents": 2000
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("blockshark/sports-fixtures-odds").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("blockshark/sports-fixtures-odds").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call blockshark/sports-fixtures-odds --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=blockshark/sports-fixtures-odds",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/6JiYaN3tGj0MCYrTI/builds/p2Y2FUdjOcYPiH0IQ/openapi.json
