# VegasInsider Odds Scraper: NFL, NBA, MLB & NHL Lines as JSON (`getascraper/vegasinsider-odds-scraper`) Actor

Extract spread, total, and moneyline odds from VegasInsider for NFL, NBA, MLB, and NHL. Compare bet365, BetMGM, DraftKings, FanDuel, Caesars, and 3 more books plus the site's own Consensus line, per game. Flat $0.0069/game, not an 11-event maze. Optional consensus picks and line-movement tracking.

- **URL**: https://apify.com/getascraper/vegasinsider-odds-scraper.md
- **Developed by:** [GetAScraper](https://apify.com/getascraper) (community)
- **Categories:** Automation, Developer tools, Other
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.17 / 1,000 game odds

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

## 🎲 VegasInsider Odds Scraper: NFL, NBA, MLB & More Betting Lines

<table width="100%"><tr><td style="padding:24px 28px;background:#FDF3E7;border:1px solid #F0D9B5;border-top:4px solid #B45309;border-radius:12px"><span style="font-size:23px;font-weight:800;color:#1C1917;line-height:1.3">Every book's line, one flat price per game</span><br><span style="font-size:15px;color:#57534E;line-height:1.6">Pull spread, total, and moneyline odds from VegasInsider across 8 real sportsbooks, plus the site's own consensus and opening line, all in one row per game.</span></td></tr></table>

<table width="100%"><tr><td style="padding:14px 12px;width:25%;background:#FFFFFF;border:1px solid #F0D9B5;border-radius:10px 0 0 10px;vertical-align:top"><span style="font-size:15px;font-weight:800;color:#B45309">🎯 8 books, one row</span><br><span style="font-size:12px;color:#57534E">Bet365, BetMGM, DraftKings, Caesars, FanDuel, Hard Rock Bet, Fanatics, and BetRivers, lined up for every game.</span></td><td style="padding:14px 12px;width:25%;background:#FFFFFF;border:1px solid #F0D9B5;border-left:none;vertical-align:top"><span style="font-size:15px;font-weight:800;color:#B45309">🏆 Best price flagged</span><br><span style="font-size:12px;color:#57534E">The best spread, total, and moneyline price is already picked out per game, no manual comparison.</span></td><td style="padding:14px 12px;width:25%;background:#FFFFFF;border:1px solid #F0D9B5;border-left:none;vertical-align:top"><span style="font-size:15px;font-weight:800;color:#B45309">📈 Line movement, not noise</span><br><span style="font-size:12px;color:#57534E">Monitor mode only returns games whose line actually moved since the last run.</span></td><td style="padding:14px 12px;width:25%;background:#FFFFFF;border:1px solid #F0D9B5;border-left:none;border-radius:0 10px 10px 0;vertical-align:top"><span style="font-size:15px;font-weight:800;color:#B45309">💵 Flat price per game</span><br><span style="font-size:12px;color:#57534E">One price per game no matter how many books you keep, never billed per book.</span></td></tr></table>

VegasInsider Odds Scraper reads live odds boards from [VegasInsider](https://www.vegasinsider.com) across NFL, NBA, MLB, NHL, college football, college basketball, and WNBA. Run it once for a snapshot before kickoff, or on a schedule to catch line moves as they happen.

### 🎯 What this Actor does

Sports betting content and media sites use it to publish a live odds table without maintaining eight separate sportsbook integrations. Line-shopping tools and comparison apps use it to surface the best available price per book automatically, already flagged in every row. Sports analytics and betting-model builders use it to feed spread, total, and moneyline history into their own models, one clean row per game.

**Every game comes back with the site's own consensus line, each book's opening line, and every tracked sportsbook's current spread, total, and moneyline, already matched to the same game.** Optionally, attach expert consensus pick percentages for the same game, or switch on monitor mode to only see games whose lines actually moved between scheduled runs.

### 🚀 How to use it

<table width="100%"><tr><td style="padding:16px 14px;width:33%;background:#FDF3E7;border:1px solid #F0D9B5;border-radius:10px 0 0 10px;vertical-align:top"><span style="font-size:12px;font-weight:800;color:#B45309;letter-spacing:1px">STEP 1</span><br><span style="font-size:14px;font-weight:700;color:#1C1917">Pick your leagues and books</span><br><span style="font-size:12px;color:#57534E">NFL is on by default. Add NBA, MLB, NHL, college football, college basketball, or WNBA, and any of the 8 books.</span></td><td style="padding:16px 14px;width:33%;background:#FDF3E7;border:1px solid #F0D9B5;border-left:none;vertical-align:top"><span style="font-size:12px;font-weight:800;color:#B45309;letter-spacing:1px">STEP 2</span><br><span style="font-size:14px;font-weight:700;color:#1C1917">Run it once, or schedule it</span><br><span style="font-size:12px;color:#57534E">Turn on monitor mode to catch line moves automatically on a schedule.</span></td><td style="padding:16px 14px;width:33%;background:#FDF3E7;border:1px solid #F0D9B5;border-left:none;border-radius:0 10px 10px 0;vertical-align:top"><span style="font-size:12px;font-weight:800;color:#B45309;letter-spacing:1px">STEP 3</span><br><span style="font-size:14px;font-weight:700;color:#1C1917">Get every game, fully priced</span><br><span style="font-size:12px;color:#57534E">Spread, total, and moneyline for every book, plus consensus and opening line, ready to export.</span></td></tr></table>

### 🧩 Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| Leagues | array of enum | No | Which odds boards to scrape: NFL, NBA, MLB, NHL, college football, college basketball, or WNBA. |
| Max games per league | integer | No | Maximum number of upcoming games to return for each selected league. |
| Sportsbooks | array of enum | No | Which tracked sportsbook lines, plus the site's own consensus line, to include for each game. |
| Bet types | array of enum | No | Which markets to include: spread, total, moneyline. |
| Include opening line | boolean | No | Include each book's opening line alongside its current line. |
| Fetch expert consensus picks | boolean | No | Attach the percentage breakdown of expert handicapper selections for each game. |
| Monitor mode (line movement) | boolean | No | Only return games whose spread, total, or moneyline has moved since the last run with the same monitor state name. |
| Monitor state name | string | No | Name of the store used to remember each game's lines between scheduled runs when monitor mode is on. |
| Proxy configuration | object | No | Residential proxy is required and set by default for reliable access. |

### 📤 Output

```json
{
  "league": "nfl",
  "eventId": "35546920",
  "eventUrl": "/nfl/matchups/patriots-vs-seahawks/",
  "homeTeam": "Seattle Seahawks",
  "awayTeam": "New England Patriots",
  "homeTeamAbbr": "SEA",
  "awayTeamAbbr": "NE",
  "commenceTime": "2026-09-10T00:20:00Z",
  "consensusSpreadHome": -3.5,
  "consensusSpreadOdds": -105,
  "consensusTotal": 44.5,
  "consensusTotalOdds": -105,
  "consensusMoneylineHome": -180,
  "consensusMoneylineAway": 150,
  "bestSpreadBook": "bet365",
  "bestSpreadHome": -3.5,
  "bestTotalOverBook": "betmgm",
  "bestTotalOver": 4.5,
  "bestMoneylineHomeBook": "hardrock",
  "bestMoneylineHome": 165,
  "books": [
    {
      "book": "bet365",
      "spreadHome": -3.5,
      "spreadHomeOdds": -105,
      "spreadAway": 3.5,
      "spreadAwayOdds": -115,
      "totalOver": 44.5,
      "totalOverOdds": -105,
      "totalUnder": 44.5,
      "totalUnderOdds": -115,
      "moneylineHome": -185,
      "moneylineAway": 155
    }
  ],
  "openingLine": {
    "book": "open",
    "spreadHome": -3.5,
    "spreadAway": 3.5,
    "totalOver": 44.5,
    "totalUnder": 44.5,
    "moneylineHome": -198,
    "moneylineAway": 164
  },
  "scrapedAt": "2026-09-07T07:13:09.537Z"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### 📊 Data table

| Field | Type | Description |
| --- | --- | --- |
| `league` | string | Which league this game belongs to. |
| `homeTeam` / `awayTeam` | string | Full team names. |
| `homeTeamAbbr` / `awayTeamAbbr` | string | Team abbreviations. |
| `commenceTime` | string | Scheduled kickoff or start time. |
| `eventUrl` | string | Link to the game's own VegasInsider page. |
| `consensusSpreadHome` / `consensusSpreadOdds` | number | The site's own consensus spread and its odds. |
| `consensusTotal` / `consensusTotalOdds` | number | The site's own consensus total and its odds. |
| `consensusMoneylineHome` / `consensusMoneylineAway` | number | The site's own consensus moneyline for each side. |
| `bestSpreadBook` / `bestSpreadHome` | string / number | Which tracked book has the best home spread, and its value. |
| `bestTotalOverBook` / `bestTotalOver` | string / number | Which tracked book has the best over price, and its value. |
| `bestMoneylineHomeBook` / `bestMoneylineHome` | string / number | Which tracked book has the best home moneyline, and its value. |
| `books` | array | Every tracked sportsbook's own spread, total, and moneyline for this game. |
| `openingLine` | object | Each market's opening line before it moved. |
| `consensusPicks` | object | Expert handicapper pick percentages, present only when that enrichment is turned on. |
| `lineChanged` | boolean | Whether this game's lines moved since the last run, present only in monitor mode. |
| `scrapedAt` | string | When this game's odds were captured. |

### 💰 Pricing

This Actor uses pay per event pricing. Empty runs cost nothing, and there are no subscriptions.

### ⭐ Enjoying VegasInsider Odds Scraper?

<table width="100%" style="display:table;width:100%"><tr><td style="padding:20px 24px 14px;background:#FDF3E7;border:1px solid #F0D9B5;border-left:5px solid #B45309;border-radius:10px 10px 0 0"><span style="font-size:20px;letter-spacing:4px">⭐ ⭐ ⭐ ⭐ ⭐</span><br><span style="font-size:17px;font-weight:800;color:#1C1917">If this saved you from checking eight sportsbook tabs by hand, that's worth a rating.</span><br><span style="font-size:14px;color:#57534E">Your feedback tells us which leagues and books to add next.</span></td></tr><tr><td style="padding:0;background:#B45309;border:1px solid #F0D9B5;border-top:none;border-radius:0 0 10px 10px;text-align:center"><a href="https://apify.com/getascraper/vegasinsider-odds-scraper/reviews" style="display:block;padding:13px 16px;color:#FFFFFF;text-decoration:none;font-weight:800;font-size:15px;letter-spacing:0.3px">★&nbsp;&nbsp;Rate this Actor on Apify</a></td></tr></table>

### ❓ FAQ

#### Does this return real, live odds?

Yes. Every game comes back with real spread, total, and moneyline prices from the tracked sportsbooks and the site's own consensus line, captured at run time, not cached or estimated.

#### Do I need my own proxy?

No, the default proxy setting handles this. VegasInsider requires a residential proxy for reliable access, and the default is already configured for that.

#### Can I run this on a schedule and only get games whose lines moved?

Yes. Turn on monitor mode and set up an Apify schedule. Each run only returns a game when its spread, total, or moneyline has actually changed since the previous run with the same monitor state name.

#### Does this charge me separately per sportsbook?

No. Pricing is per game, not per book, so narrowing or widening the sportsbooks list only changes what shows up in your output, not your cost.

### 🔗 Other actors

- [Betano Odds Scraper: Full Match Odds & Price-Move Monitor](https://apify.com/getascraper/betano-odds-scraper) ↗ - Full match odds boards and a price-move monitor across 11 Betano country books.
- [SofaScore Scraper: Live scores, stats and fixtures](https://apify.com/getascraper/sofascore-live-events-scraper) ↗ - Track live scores, stats, and fixtures across 13 sports.
- [Tennis Live Scores Scraper: ATP, WTA, Sets & Stats](https://apify.com/getascraper/tennis-live-scores-scraper) ↗ - Live tennis scores, sets, and match stats for ATP and WTA.

# Changelog

This Actor's version history is a separate document: https://apify.com/getascraper/vegasinsider-odds-scraper/changelog.md

# Actor input Schema

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

Which VegasInsider odds boards to scrape. Each league maps to its own odds board, for example vegasinsider.com/nfl/odds/las-vegas/.

## `maxGamesPerLeague` (type: `integer`):

Maximum number of upcoming games to return for each selected league. Kept low by default so a first run finishes in minutes; raise it once you know how long a full slate takes.

## `sportsbooks` (type: `array`):

Which of the tracked sportsbook lines (plus the site's own Consensus line) to include for each game. Unlike the closest existing VegasInsider Actor on the Store, this does not charge separately per book, so narrowing this list is purely about trimming output, not saving money.

## `betTypes` (type: `array`):

Which pregame bet markets to include for each game: point spread, total (over/under), and moneyline.

## `includeOpeningLine` (type: `boolean`):

Include each book's opening line alongside its current line. This adds no extra requests since the opening line is already present on the same odds board page.

## `fetchConsensusPicks` (type: `boolean`):

For each league, also visit its Consensus Picks page and attach the percentage breakdown of expert handicapper selections per game. This is a separate page render per league, so it is off by default to keep the default run fast.

## `monitorMode` (type: `boolean`):

Only output games whose spread, total, or moneyline has moved since the last run that used the same Monitor State Name. Pregame lines move constantly, so this is the natural way to run this Actor on a schedule instead of as a one-off lookup.

## `monitorStateName` (type: `string`):

Name of the key-value store used to remember each game's lines between scheduled runs when Monitor Mode is on. Only change this if you are running multiple independent schedules and need separate line-movement histories for each.

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

vegasinsider.com returned HTTP 403 Forbidden to both a plain HTTP request and a real headless Chrome browser from a datacenter-class IP in live testing, so Residential proxy is the required default here. Do not switch this to Datacenter unless you have separately confirmed it still works.

## Actor input object example

```json
{
  "leagues": [
    "nfl"
  ],
  "maxGamesPerLeague": 15,
  "sportsbooks": [
    "bet365",
    "betmgm",
    "draftkings",
    "caesars",
    "fanduel",
    "hardrock",
    "fanatics",
    "betrivers",
    "consensus"
  ],
  "betTypes": [
    "spread",
    "total",
    "moneyline"
  ],
  "includeOpeningLine": true,
  "fetchConsensusPicks": false,
  "monitorMode": false,
  "monitorStateName": "vegasinsider-line-monitor",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `games` (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 = {
    "leagues": [
        "nfl"
    ],
    "maxGamesPerLeague": 15,
    "sportsbooks": [
        "bet365",
        "betmgm",
        "draftkings",
        "caesars",
        "fanduel",
        "hardrock",
        "fanatics",
        "betrivers",
        "consensus"
    ],
    "betTypes": [
        "spread",
        "total",
        "moneyline"
    ],
    "includeOpeningLine": true,
    "fetchConsensusPicks": false,
    "monitorMode": false,
    "monitorStateName": "vegasinsider-line-monitor",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getascraper/vegasinsider-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": ["nfl"],
    "maxGamesPerLeague": 15,
    "sportsbooks": [
        "bet365",
        "betmgm",
        "draftkings",
        "caesars",
        "fanduel",
        "hardrock",
        "fanatics",
        "betrivers",
        "consensus",
    ],
    "betTypes": [
        "spread",
        "total",
        "moneyline",
    ],
    "includeOpeningLine": True,
    "fetchConsensusPicks": False,
    "monitorMode": False,
    "monitorStateName": "vegasinsider-line-monitor",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("getascraper/vegasinsider-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": [
    "nfl"
  ],
  "maxGamesPerLeague": 15,
  "sportsbooks": [
    "bet365",
    "betmgm",
    "draftkings",
    "caesars",
    "fanduel",
    "hardrock",
    "fanatics",
    "betrivers",
    "consensus"
  ],
  "betTypes": [
    "spread",
    "total",
    "moneyline"
  ],
  "includeOpeningLine": true,
  "fetchConsensusPicks": false,
  "monitorMode": false,
  "monitorStateName": "vegasinsider-line-monitor",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call getascraper/vegasinsider-odds-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getascraper/vegasinsider-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/B2YKX3s4pW4PSbcAD/builds/kSXehI7CfKecq17cY/openapi.json
