# Sportsbook Odds Scraper - FanDuel & Unibet Lines, Props, Arbs (`rjmacarthy/sportsbook-odds-scraper`) Actor

Betting odds from FanDuel (US) and Kambi books Unibet, LeoVegas and Paf (EU): moneyline/1X2, spreads, totals and props for NFL, NBA, NHL, EPL, La Liga, UCL and more. Line-movement feed plus best-price, no-vig and arbitrage comparison. $0.003/row.

- **URL**: https://apify.com/rjmacarthy/sportsbook-odds-scraper.md
- **Developed by:** [rj](https://apify.com/rjmacarthy) (community)
- **Categories:** Automation, Developer tools, MCP servers
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 80.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 odds rows

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/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

## Sportsbook Odds Scraper: FanDuel & Unibet Odds, Props, Best Price and Arbitrage

**Sportsbook Odds Scraper** pulls live pre-game betting odds from **FanDuel** (US) and the **Kambi** odds platform behind **Unibet, LeoVegas and Paf** (Europe), and normalises them into one row shape so you can compare books: moneyline / 1X2, point spreads and handicaps, totals (over/under) and, on demand, **player props and every other market** of a game. Turn on **Only changed odds** and schedule it every few minutes to get a **line-movement feed** with the previous price, and pick 2+ books to get a **comparison item per game** with the best price per outcome, the no-vig fair probability, each book's margin and an **arbitrage flag**.

Most odds scrapers on the Store are US-only. This one adds **European prices via Kambi** (decimal odds native, UK/EU markets), covers soccer as well as the US leagues, and charges **$0.003 per odds row** with no start fee and no per-request fee. It reads the same public JSON feeds the sportsbook websites load: no login, no browser, no proxy.

### What data can you get?

| Field | Example |
|---|---|
| Book, sport, league | `fanduel`, `basketball`, `nba` |
| Event, home / away team, start time, live flag | `Detroit Pistons vs Washington Wizards`, `2026-11-10T00:10:00Z` |
| Market type and name | `spread` / `Point Spread - Including Overtime`, `prop` / `To Score` |
| Selection, outcome, line | `Detroit Pistons`, `home`, `-11.5` |
| Decimal and American odds | `1.909`, `-110` |
| Implied probability | `0.5238` |
| Previous price / line (line-movement mode) | `1.95`, `-11` |
| Event URL at the book, stable row ID, scrape time | `https://sportsbook.fanduel.com/basketball/nba/...` |
| **Comparison item:** best price + book per outcome, fair (no-vig) probability, overround per book, arbitrage flag and margin | `{"outcome": "away", "book": "unibet", "priceDecimal": 5.3, "fairProbability": 0.189}` |

**Leagues:** NFL, NCAAF, NBA, NCAAB, NHL, MLB, English Premier League, La Liga, Bundesliga, Serie A, Ligue 1, UEFA Champions League, MLS, UFC, ATP tennis.
**Books:** FanDuel (NJ feed by default, other US states selectable), Unibet, LeoVegas, Paf (Kambi; country selectable, default GB).

### Use cases

- **Odds comparison and affiliate sites:** one normalised feed of FanDuel and Unibet prices, with the best price per outcome already worked out.
- **Arbitrage and value-bet tools:** the comparison item flags games where the best prices across books add up to less than 100%, and gives the no-vig fair probability to measure value against.
- **Line-movement tracking:** schedule every 5 minutes with "Only changed odds" and store the moves (you pay only for rows that changed).
- **Betting models and research:** historic snapshots of spreads, totals and player props into your warehouse.
- **US vs European pricing:** see how FanDuel and Unibet price the same NBA or Premier League game.

### How to use

1. Pick **Leagues** and **Sportsbooks**.
2. Optional: choose **Main markets**, turn on **Include props / all markets**, set **Max events per book**.
3. Click **Start**, then export as JSON, CSV or Excel, or use the API.

Compare FanDuel and Unibet on tonight's NBA games:

```json
{
    "leagues": ["nba"],
    "books": ["fanduel", "unibet"],
    "maxEvents": 10
}
```

Premier League 1X2 and total goals from three European books, decimal odds only:

```json
{
    "leagues": ["epl"],
    "books": ["unibet", "leovegas", "paf"],
    "oddsFormat": "decimal",
    "kambiMarket": "GB"
}
```

NFL spread and total line-movement feed (schedule it every 5-10 minutes):

```json
{
    "leagues": ["nfl"],
    "books": ["fanduel", "unibet"],
    "markets": ["spread", "total"],
    "onlyChanged": true,
    "stateKey": "nfl-lines"
}
```

Every market and player prop of the next 2 Premier League games:

```json
{
    "leagues": ["epl"],
    "books": ["unibet"],
    "includeProps": true,
    "maxEvents": 2
}
```

### Output example

Two item types share the dataset. Use the **Odds** and **Comparison** views (or filter on `type`).

`type: "odds"` (one per book x event x market x selection), from a real run:

```json
{
  "type": "odds",
  "id": "fanduel:36290198:734.196427220:237485",
  "book": "fanduel",
  "sport": "basketball",
  "league": "nba",
  "eventId": "36290198",
  "eventName": "Detroit Pistons vs Washington Wizards",
  "homeTeam": "Detroit Pistons",
  "awayTeam": "Washington Wizards",
  "startTime": "2026-11-10T00:10:00.000Z",
  "isLive": false,
  "marketType": "moneyline",
  "marketName": "Moneyline",
  "selection": "Washington Wizards",
  "outcome": "away",
  "line": null,
  "priceDecimal": 4.85,
  "priceAmerican": 385,
  "impliedProbability": 0.2062,
  "previousPrice": null,
  "previousLine": null,
  "url": "https://sportsbook.fanduel.com/basketball/nba/washington-wizards-@-detroit-pistons-36290198",
  "scrapedAt": "2026-11-09T12:34:22.951Z"
}
```

`type: "comparison"` (one per game found at 2+ books; arrays shortened):

```json
{
  "type": "comparison",
  "id": "cmp:nba:fanduel-36290198:unibet-1028754098",
  "league": "nba",
  "eventName": "Detroit Pistons vs Washington Wizards",
  "startTime": "2026-11-10T00:00:00.000Z",
  "books": ["fanduel", "unibet"],
  "marketsCompared": 2,
  "bestPrices": [
    { "marketType": "moneyline", "line": null, "outcome": "away", "selection": "Washington Wizards", "book": "unibet", "priceDecimal": 5.3, "priceAmerican": 430, "fairProbability": 0.189, "booksCompared": 2 },
    { "marketType": "moneyline", "line": null, "outcome": "home", "selection": "Detroit Pistons", "book": "fanduel", "priceDecimal": 1.2, "priceAmerican": -500, "fairProbability": 0.811, "booksCompared": 2 }
  ],
  "overround": [
    { "book": "fanduel", "marketType": "moneyline", "line": null, "overround": 0.0395 },
    { "book": "unibet", "marketType": "moneyline", "line": null, "overround": 0.0507 }
  ],
  "arbitrage": false,
  "arbitrageMargin": null,
  "arbitrageMarket": null
}
```

How the comparison works: games are matched by league, start time (within 3 hours) and team names (abbreviations such as "Man Utd" / "Manchester United" are handled). Moneyline / 1X2 is always compared; a spread or total is compared only when the books offer **the same line**. `fairProbability` is the average no-vig probability across the books; `overround` is a book's margin (sum of implied probabilities minus 1); `arbitrage` is true when 1 / best price summed over a market's outcomes is below 1, and `arbitrageMargin` is that gap (0.012 = 1.2%).

### Pricing

Pay per event, no start fee:

| Event | Price | When |
|---|---|---|
| `odds-row` | $0.003 | Each odds row (one selection of one market at one book) |
| `comparison` | $0.003 | Each cross-book comparison item (only with 2+ books and `compare` on) |

Examples:

- 1,000 odds rows = **$3.00**.
- A 10-game NBA slate at FanDuel + Unibet, main markets: 10 x 6 rows x 2 books = 120 rows + 10 comparisons = **$0.39**.
- The same slate every 5 minutes with "Only changed odds": you pay only for the rows that moved (often a few dozen per run).
- Props are big: one Premier League game with all markets is about 700 rows at Unibet ($2.10) and 350 at FanDuel. Use `maxEvents` and the "Maximum cost per run" setting to cap spend; the Actor stops cleanly at your limit.

### Tips and limits

- **List-level markets differ by book.** Without props, FanDuel soccer gives only the 1X2 and Kambi soccer the 1X2 + total goals (handicaps need "Include props / all markets"). US sports give moneyline, spread and total at both.
- **Props cost requests.** Kambi returns all markets of a game in one request; FanDuel splits them into tabs (about 5-16 requests per game).
- **Max events per book** counts across all selected leagues, soonest games first, in the order you list the leagues. When two books list different games at the cut-off, those games are not compared - raise the limit a little if you need every game compared.
- **Upcoming window, not the full season.** Kambi lists roughly the next few weeks of games (e.g. ~10 EPL and ~13 NBA games in November 2026), and FanDuel similar, so `maxEvents: 50` on one league may return fewer games. That is the book's listing, not a bug.
- **Off-season leagues** return nothing (the run still succeeds and says so). MLB has no games from November to March.
- **Kambi books** (Unibet, LeoVegas, Paf) share one odds feed, so their prices are often identical; LeoVegas sometimes differs by a few cents. FanDuel vs Kambi is where the differences are.
- **Prices move fast.** Odds are a snapshot at `scrapedAt`; always check the book before betting.
- **FanDuel and proxies:** FanDuel's API rejects many Apify Proxy (datacenter) IPs, so FanDuel is always fetched without a proxy. The proxy setting only affects the Kambi books.
- Live (in-play) prices are output when a book lists the game as live at scrape time (`isLive: true`); the Actor is built for pre-game odds.

### FAQ

**Is it legal to scrape betting odds?**
The Actor reads only public odds that each sportsbook publishes to every visitor of its website, without logging in. It collects no personal data. You are responsible for using the data in line with the books' terms and the laws where you operate (including gambling advertising rules).

**Do I need a proxy?**
No. If a Kambi book blocks the run, enable Apify Proxy (datacenter). Residential proxies are not supported: if you pick the RESIDENTIAL group the Actor logs a warning and uses datacenter Apify Proxy instead. FanDuel never uses the proxy (see above).

**Why is DraftKings missing?**
DraftKings blocks requests from cloud servers, so it cannot run reliably on Apify.

**How does "Only changed odds" work?**
Each run stores the last price and line of every row under your **State key**. Later runs output only new rows and rows whose price or line moved, with `previousPrice` and `previousLine`. The first run outputs everything as the baseline. Use a separate key per schedule. In this mode a comparison item is output only for games with at least one changed row.

**American or decimal odds?**
Decimal odds are always in `priceDecimal`; `priceAmerican` is filled unless you choose "Decimal only".

**What does the run summary contain?**
The `RUN_SUMMARY` record in the key-value store lists the status of every book x league feed (ok, empty, failed, blocked), counts and request statistics.

### Integrations

Use the results anywhere: the Apify API and client libraries (JavaScript, Python), webhooks when a run finishes, schedules, **Make**, **Zapier**, **n8n**, Google Sheets, Airbyte, and AI agents through the **Apify MCP server**. A typical setup: a schedule every 5 minutes with "Only changed odds" and a webhook into your database.

### Changelog

- **0.1** (November 2026): first release. FanDuel, Unibet, LeoVegas and Paf; 15 leagues; main markets and props; line-movement mode; cross-book comparison with no-vig probabilities and arbitrage.

### More scrapers by the same developer

- [Apple App Store Scraper: Apps, Search & Reviews](https://apify.com/rjmacarthy/app-store-scraper)
- [Broken Link Checker & SEO Site Audit - 404s & Redirects](https://apify.com/rjmacarthy/broken-link-checker)
- [Bulk File Downloader - PDFs, Images & Files from URL Lists](https://apify.com/rjmacarthy/bulk-file-downloader)
- [ESPN Scraper - Scores, Odds, Standings & Tennis](https://apify.com/rjmacarthy/espn-scraper)
- [Google Play Scraper: Apps, Search & Reviews](https://apify.com/rjmacarthy/google-play-scraper)
- [Image to Text OCR - Extract Text from Images & Screenshots](https://apify.com/rjmacarthy/image-ocr-text-extractor)

Browse all my Actors on [my Apify Store profile](https://apify.com/rjmacarthy).

### Support

Found a bug or need another league or book? Open an issue on the Issues tab with your input and run ID.

# Actor input Schema

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

Leagues to scrape, in priority order (the event limit is filled from the first league onwards). Off-season leagues simply return nothing.

## `books` (type: `array`):

FanDuel (US, New Jersey feed by default) and Kambi-powered books: Unibet, LeoVegas and Paf (European prices, decimal odds native). Pick 2+ books to get the cross-book comparison.

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

Main game markets to output. Moneyline includes the 3-way 1X2 in soccer. Note: the league listing of FanDuel soccer carries only the 1X2, and Kambi soccer only 1X2 + total goals; turn on 'Include props / all markets' for handicaps and everything else.

## `includeProps` (type: `boolean`):

Also output player props and every other market of each event (halves, quarters, corners, alternate lines...). Costs one extra request per event on Kambi and one per market tab on FanDuel, and yields many more rows (hundreds per game).

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

Maximum games per sportsbook across all selected leagues (soonest first). 0 = no limit.

## `oddsFormat` (type: `string`):

Decimal odds are always output. 'american' or 'both' adds American odds (priceAmerican); 'decimal' leaves it null.

## `compare` (type: `boolean`):

With 2+ books: output one comparison item per game found at 2+ books, with the best price per outcome, no-vig fair probabilities, each book's overround and an arbitrage flag/margin.

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

Output only rows that are new or whose price or line moved since the last run with the same state key, with previousPrice / previousLine. The first run outputs everything as the baseline. Ideal for schedules every few minutes - you only pay for movement.

## `stateKey` (type: `string`):

Name of the saved price history. Use a different key for each schedule/task that should track odds independently.

## `kambiMarket` (type: `string`):

Country code passed to Kambi (Unibet, LeoVegas, Paf), e.g. GB, SE, NL, DK. Prices can differ slightly by market.

## `fanduelState` (type: `string`):

US state feed of FanDuel (two-letter code, e.g. nj, pa, ny). Prices are usually the same across states (nj and pa tested).

## `maxRequestsPerSecond` (type: `integer`):

Politeness limit per sportsbook host.

## `proxyConfiguration` (type: `object`):

Not needed normally. Applies to the Kambi books only - FanDuel is always fetched directly because its API rejects Apify Proxy IPs. Residential proxies are not supported (the Actor falls back to datacenter Apify Proxy).

## Actor input object example

```json
{
  "leagues": [
    "epl",
    "nba",
    "mlb"
  ],
  "books": [
    "unibet"
  ],
  "markets": [
    "moneyline",
    "spread",
    "total"
  ],
  "includeProps": false,
  "maxEvents": 3,
  "oddsFormat": "both",
  "compare": true,
  "onlyChanged": false,
  "stateKey": "default",
  "kambiMarket": "GB",
  "fanduelState": "nj",
  "maxRequestsPerSecond": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `odds` (type: `string`):

One row per book x event x market x selection.

## `comparison` (type: `string`):

Best price per outcome, no-vig fair probability and arbitrage per game matched across books.

## `all` (type: `string`):

Every item with every field.

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

Per book x league status, counts and request statistics.

# 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": [
        "epl",
        "nba",
        "mlb"
    ],
    "books": [
        "unibet"
    ],
    "maxEvents": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("rjmacarthy/sportsbook-odds-scraper").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": [
        "epl",
        "nba",
        "mlb",
    ],
    "books": ["unibet"],
    "maxEvents": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("rjmacarthy/sportsbook-odds-scraper").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": [
    "epl",
    "nba",
    "mlb"
  ],
  "books": [
    "unibet"
  ],
  "maxEvents": 3
}' |
apify call rjmacarthy/sportsbook-odds-scraper --silent --output-dataset

```

## MCP server setup

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

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/FtJXUjJLKtuaCshOZ/builds/lzVMlkahDA7EoGiNU/openapi.json
