# Sports Odds Scraper - NFL, NBA & Soccer Lines, Scores, No Login (`locaihost/sports-odds`) Actor

Sports odds scraper at $1.50 per 1,000 games. Moneyline, spread and total from Pinnacle, Unibet and DraftKings for NFL, NBA, MLB, NHL, soccer, tennis, UFC and cricket: best price, implied and margin-free probability, line movement, live and final scores. No login.

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

## Pricing

from $0.83 / 1,000 games

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 Odds Scraper - NFL, NBA & Soccer Lines, Scores, No Login

Odds from three bookmakers and official scores, merged into **one row per game**: moneyline, spread and total from
Pinnacle, Unibet and DraftKings, the best price for every outcome, margin-free probabilities, the opening line, what
moved since your last run, and live and final scores. NFL, NCAA, NBA, WNBA, MLB, NHL, 12 soccer competitions, ATP and
WTA tennis, UFC and cricket.

**$1.50 per 1,000 games.** No login, no API key, no setup.

### Try it

Paste this into the input (JSON tab) and press Start. It takes a few seconds.

```json
{
    "leagues": ["nfl", "epl"],
    "daysAhead": 3
}
```

Or from code:

```bash
curl -X POST "https://api.apify.com/v2/acts/locaihost~sports-odds/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"leagues": ["nba", "nhl"], "markets": ["moneyline", "total"], "daysAhead": 1}'
```

### What you get

One row per game. The columns people use most come first:

| Field | Example |
|---|---|
| `startTime`, `league`, `homeTeam`, `awayTeam`, `status` | `2026-10-16T00:15:00Z`, `nfl`, `Denver Broncos`, `Seattle Seahawks`, `upcoming` |
| `homeBestDecimal`, `homeBestAmerican`, `homeBestBookmaker` | `2.25`, `125`, `Unibet` |
| `drawBest...`, `awayBest...` | the same for the draw (soccer, cricket) and the away side |
| `homeFairProbability`, `drawFairProbability`, `awayFairProbability` | `0.4345`: the book's margin taken out, averaged across books |
| `spreadLine`, `spreadHomeBestDecimal`, `spreadAwayBestDecimal` | `2.5`, `1.9346`, `1.9524` (best prices at the line most books quote) |
| `totalLine`, `overBestDecimal`, `underBestDecimal` | `40.5`, `1.93`, `1.9524` |
| `homeScore`, `awayScore`, `winner`, `periodScores` | live and final scores, by quarter, period, inning, half or set |
| `odds` | every price from every book (below) |
| `oddsChangedSinceLastRun`, `lastRunSeenAt` | did anything move since this task last ran |
| `venue`, `statusDetail`, `espnUrl`, `sourceIds` | `Empower Field at Mile High`, `Thu, October 15th at 8:15 PM EDT` |

Each entry in `odds`:

```json
{
    "bookmaker": "draftkings", "bookmakerName": "DraftKings",
    "market": "spread", "outcome": "home", "line": 2.5,
    "decimal": 1.9259, "american": -108, "impliedProbability": 0.5192,
    "fairProbability": 0.4957, "margin": 0.0475,
    "openDecimal": 1.8696, "openLine": 2.5,
    "previousDecimal": 1.9091, "previousLine": 2.5, "change": 0.0168,
    "updatedAt": null
}
```

- `market` is `moneyline` (match result; 1X2 in soccer), `spread` (handicap) or `total` (over/under). Full game, main
  lines.
- `outcome` is `home`, `draw`, `away`, `over` or `under`. A spread `line` belongs to its side (`-2.5` for the
  favourite).
- `fairProbability` and `margin` come from that book's own prices in that market.
- `openDecimal` / `openLine`: the opening line (DraftKings).
- `previousDecimal` / `previousLine` / `change`: the value at your last run of the same task, so you can track line
  movement over time. `change` is empty when the line itself moved.

Dataset views: **Best prices**, **American odds**, **Scores**, and **All prices and movement**. Export as JSON, CSV,
Excel or through the API.

### Where the data comes from

| Source | What it adds |
|---|---|
| **Pinnacle** | The sharpest market in the world: low margins, widely used as the reference price. All sports above |
| **Unibet** | A large European book. All sports above; soccer comes with 1X2 and total goals |
| **DraftKings (via ESPN)** | US book, with the opening line. NFL, NCAA, NBA, WNBA, MLB, NHL and the major soccer leagues |
| **ESPN** | Official schedules, venues, live scores, final scores and scores by period |

The three listings of a game are matched by start time and team names (with the usual spellings handled: "Man Utd",
"Manchester United"). A game only one source lists still gets its own row.

### Common setups

**Line movement tracker.** Save a task with your leagues, turn on `onlyChanged`, and schedule it every 15 minutes or
every hour. Each run returns only the games whose prices, lines, status or score changed, with the previous value next
to every price. You pay only for those rows.

**Results feed.** `"eventStatus": ["finished"], "daysBack": 1, "bookmakers": []` returns yesterday's and today's final
scores with scores by period.

**One team.** `"teams": ["Chiefs"]` keeps only games involving the Chiefs. Part of a name is enough.

**Market comparison for a model.** All three books, all three markets, then use `odds` for each book's price and
margin, or the `*FairProbability` columns as a consensus.

### Input

| Field | Default | What it does |
|---|---|---|
| `leagues` | `nfl, nba, epl` | `nfl`, `ncaaf`, `nba`, `wnba`, `ncaab`, `euroleague`, `mlb`, `nhl`, `epl`, `championship`, `laliga`, `seriea`, `bundesliga`, `ligue1`, `eredivisie`, `primeira`, `ucl`, `uel`, `mls`, `ligamx`, `atp`, `wta`, `ufc`, `cricket` |
| `eventStatus` | `upcoming, live` | add `finished` for final scores |
| `daysAhead` | 7 | 0 to 14 |
| `daysBack` | 1 | finished games, 0 to 7 days |
| `bookmakers` | all three | `pinnacle`, `unibet`, `draftkings`; empty for scores only |
| `markets` | all three | `moneyline`, `spread`, `total` |
| `teams` | | only games with these teams or players |
| `includeEventsWithoutOdds` | off | also return scheduled games no book prices yet |
| `onlyChanged` | off | only games that are new or moved since the last run |
| `onlyNew` | off | each game once, the first time it appears |
| `maxResults` | 0 (no limit) | stop after this many games |

### Price

**$1.50 per 1,000 games** (one game = one row, with every book and market in it), less on higher Apify plans. A run
that finds nothing, input that can't work, and games skipped by `onlyChanged` cost nothing. Typical runs: one league
for the week is 10 to 100 rows; all 24 competitions for the next two weeks is around 400 to 600 rows, under $1.

Free Apify plan: up to 1,000 games per run. Any paid plan removes the cap.

### Honest limits

- **Main lines only**: full-game moneyline, spread and total. No player props, alternate lines, halves or quarters.
- **Bookmakers stop listing a game when it ends**, so finished games come with scores, not closing odds. To keep the
  last prices before kick-off, run on a schedule with `onlyChanged`.
- DraftKings lines are the ones ESPN shows, so they cover US sports and the major soccer leagues only.
- Unibet's soccer feed has no handicap; Pinnacle and DraftKings cover the soccer spread.
- Cricket and EuroLeague have odds but no score feed. Tennis covers tour-level singles (ATP, WTA), not Challenger,
  ITF or doubles.
- In tennis and MMA, "home" and "away" are just the order the players or fighters are listed.
- Prices change constantly. A row is a snapshot at `scrapedAt`.

### Lawful use

This is odds and results data for analysts, apps, media and research: market comparison, model inputs, historical
records. It does not place bets, use betting accounts or give tips, and it is not meant for anyone under the legal
age for gambling where they live. Respect each source's terms and the laws where you are. The data comes from public
pages a logged-out visitor can see.

### Questions

Open an issue on this Actor's Issues tab. We read every one and usually reply within a day.

### Did it help?

If this saved you time, a quick rating on the Store helps other people find it. Something not working? Open an issue on the Issues tab and we usually reply within a day.

# Actor input Schema

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

Competitions to read. Soccer leagues, tennis and UFC included. Cricket covers international and T20 leagues with odds only (no score feed).

## `eventStatus` (type: `array`):

Upcoming games, games in progress (with the live score), and finished games (with the final score, from ESPN). Odds come only for upcoming and live games: bookmakers stop listing a game once it ends.

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

How far ahead to look for upcoming games, 0 to 14. 0 means today only.

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

With Finished selected: how many past days of final scores to include, 0 to 7. 0 means today only.

## `bookmakers` (type: `array`):

Whose prices to include. Pinnacle is the sharpest market; Unibet is a large European book; DraftKings lines (with the opening line) come from ESPN for US sports and the major soccer leagues. Leave empty for schedules and scores only.

## `markets` (type: `array`):

Moneyline (match result, with the draw in soccer and cricket), spread (handicap) and total (over/under). Full game, main lines.

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

Only games involving these teams or players. Part of a name is enough, e.g. "Chiefs", "Arsenal", "Djokovic".

## `includeEventsWithoutOdds` (type: `boolean`):

Off: upcoming and live games are returned only when at least one chosen bookmaker prices them. On: every scheduled game in the window is returned.

## `onlyChanged` (type: `boolean`):

For scheduled runs: return (and pay for) only games that are new, or whose prices, lines, status or score moved since this task last ran. Every row also shows each price's previous value and change, whether or not this is on.

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

Return each game once, the first time it appears (for building a fixture list). onlyChanged is usually what you want for odds.

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

Stop after this many games (rows). 0 = no limit.

## Actor input object example

```json
{
  "leagues": [
    "nfl",
    "epl"
  ],
  "eventStatus": [
    "upcoming",
    "live"
  ],
  "daysAhead": 3,
  "daysBack": 1,
  "bookmakers": [
    "pinnacle",
    "unibet",
    "draftkings"
  ],
  "markets": [
    "moneyline",
    "spread",
    "total"
  ],
  "teams": [
    "Chiefs",
    "Arsenal"
  ],
  "includeEventsWithoutOdds": false,
  "onlyChanged": false,
  "onlyNew": false,
  "maxResults": 0
}
```

# Actor output Schema

## `games` (type: `string`):

One row per game: best price per outcome, margin-free probabilities, consensus spread and total.

## `scores` (type: `string`):

Status, live and final scores, score by period.

## `summary` (type: `string`):

Games per feed, what was left out and why, and the run's cost.

# 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": [
        "nfl",
        "epl"
    ],
    "eventStatus": [
        "upcoming",
        "live"
    ],
    "daysAhead": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("locaihost/sports-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 = {
    "leagues": [
        "nfl",
        "epl",
    ],
    "eventStatus": [
        "upcoming",
        "live",
    ],
    "daysAhead": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("locaihost/sports-odds").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": [
    "nfl",
    "epl"
  ],
  "eventStatus": [
    "upcoming",
    "live"
  ],
  "daysAhead": 3
}' |
apify call locaihost/sports-odds --silent --output-dataset

```

## MCP server setup

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

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/zmcYytiHoURY4nPUj/builds/Me8B1xo7GW1bazsSb/openapi.json
