# 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, 0 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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Sports Fixtures, Scores & Odds — 335 Leagues (Live)",
        "description": "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.",
        "version": "0.1",
        "x-build-id": "p2Y2FUdjOcYPiH0IQ"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/blockshark~sports-fixtures-odds/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-blockshark-sports-fixtures-odds",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/blockshark~sports-fixtures-odds/runs": {
            "post": {
                "operationId": "runs-sync-blockshark-sports-fixtures-odds",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/blockshark~sports-fixtures-odds/run-sync": {
            "post": {
                "operationId": "run-sync-blockshark-sports-fixtures-odds",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "sports": {
                        "title": "Sports",
                        "type": "array",
                        "description": "Which sports to fetch. Leave empty for ALL active leagues.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "soccer",
                                "basketball",
                                "baseball",
                                "hockey",
                                "tennis",
                                "american_football",
                                "mma",
                                "rugby",
                                "volleyball",
                                "australian_football"
                            ],
                            "enumTitles": [
                                "Soccer / Football",
                                "Basketball (NBA, WNBA...)",
                                "Baseball (MLB...)",
                                "Ice Hockey (NHL...)",
                                "Tennis (ATP/WTA)",
                                "American Football (NFL...)",
                                "MMA / UFC",
                                "Rugby",
                                "Volleyball",
                                "Aussie Rules (AFL)"
                            ]
                        },
                        "default": []
                    },
                    "leagues": {
                        "title": "Specific league keys",
                        "type": "array",
                        "description": "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.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "daysAhead": {
                        "title": "Days ahead",
                        "minimum": 0,
                        "maximum": 14,
                        "type": "integer",
                        "description": "How many days of upcoming fixtures to include.",
                        "default": 3
                    },
                    "daysBack": {
                        "title": "Days back",
                        "minimum": 0,
                        "maximum": 14,
                        "type": "integer",
                        "description": "How many past days to include (for final scores/results).",
                        "default": 0
                    },
                    "includeOdds": {
                        "title": "Include bookmaker odds",
                        "type": "boolean",
                        "description": "Attach moneyline / spread / totals prices (American + decimal) to upcoming events where available.",
                        "default": true
                    },
                    "onlyWithOdds": {
                        "title": "Only events with odds",
                        "type": "boolean",
                        "description": "Skip events that have no bookmaker prices.",
                        "default": false
                    },
                    "includeStandings": {
                        "title": "Include league standings",
                        "type": "boolean",
                        "description": "Also push one standings-table record per league (points, rank, W/D/L).",
                        "default": false
                    },
                    "maxEvents": {
                        "title": "Max event records",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Hard cap on event records pushed (cost control).",
                        "default": 2000
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
