# Action Network Odds Scraper - Splits & Line Moves (`bovi/action-scraper`) Actor

Scrape Action Network sports odds: consensus and up to 12 sportsbook lines, public ticket and money splits, opening-line movement, best price per side, no-vig win odds and final results. NFL, NBA, MLB, NHL, college and soccer.

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

## Pricing

from $2.00 / 1,000 action network odds scraper - splits & line moves

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

## Action Network Odds Scraper - Splits & Line Moves

Scrape consensus odds, sportsbook lines, public betting splits, line movement, and final scores from Action Network, with one flat row per game and period. You pay $0.002 per game row on the Free plan.

- Compare the best price on each side of the moneyline, spread, and total.
- Get opening and current consensus lines; scheduled runs add snapshot history.
- Filter public splits with `minSharpGap`, using ticket percent, money percent, and `sharpSide`.
- Review final scores and result grades against the consensus market.
- No Action Network login, API key, or cookies.

### What you get

The Actor reads `https://api.actionnetwork.com/web/v2/scoreboard/{league}` for NFL, NCAAF, NBA, NCAAB, NCAA women's basketball (`ncaaw`), WNBA, MLB, NHL, and soccer. Game pages are at `https://www.actionnetwork.com`. Views are Overview and Public betting & line movement.

A field is `null` when the source does not provide it.

| Group | Fields | Type | When null or empty |
|---|---|---|---|
| Game identifiers | `gameId`, `leagueId` | integer | Never null. |
| Game labels | `url`, `league`, `status`, `matchup`, `period`, `periodLabel` | string | Never null. |
| Game numbers | `season`, `week`, `startTimestamp`, `homeRotationNumber`, `awayRotationNumber`, `betCount` | integer or null | Null when not supplied. `startTimestamp` also requires a parseable `startTime`. |
| Game metadata | `seasonType`, `statusDisplay`, `broadcastNetwork` | string or null | Null when not supplied. |
| Game state | `isFinal`, `isLive`, `isTrending` | boolean | Never null; absent `isTrending` is `false`. |
| Start time | `startTime` | string or null | Passed through unchanged. Null when absent; an unparseable value leaves `startTimestamp` and `hoursUntilStart` null. |
| Scraped at | `scrapedAt` | ISO 8601 string | Never null. |
| Start timing | `hoursUntilStart` | number or null | Null when `startTime` is missing or unparseable; negative after the start. |
| Teams | `homeTeam`, `awayTeam` | object | Missing home team, away team, or game id produces no rows. Each has integer `id` and string `name`; `wins`, `losses`, and `ties` are integer or null; other fields are string or null. `record` and `url` can be null. |
| Consensus lines | `consensusSpreadHome`, `consensusSpreadHomeOdds`, `consensusSpreadAway`, `consensusSpreadAwayOdds`, `consensusMoneylineHome`, `consensusMoneylineAway`, `consensusMoneylineDraw`, `consensusTotal`, `consensusOverOdds`, `consensusUnderOdds` | number or null | Null without the period market or a required price. |
| Holds | `moneylineHoldPercent`, `spreadHoldPercent`, `totalHoldPercent` | number or null | `(sum of implied probabilities − 1) × 100`, rounded to 2 decimals. Moneyline includes a draw when present; spread and total use two prices. |
| Probabilities | `homeWinProbability`, `awayWinProbability`, `homeWinProbabilityNoVig`, `awayWinProbabilityNoVig` | number or null | Fractions from 0 to 1, rounded to 4 decimals. No-vig values require both home and away moneylines. |
| Odds and profit | `homeDecimalOdds`, `awayDecimalOdds`, `homeProfitPer100`, `awayProfitPer100` | number or null | Null when price is missing. Profit is for a 100-unit stake, rounded to 2 decimals. |
| Fractional odds | `homeFractionalOdds`, `awayFractionalOdds` | string or null | Null when moneyline is missing. |
| Public betting | `publicBetting` with `moneylineHome`, `moneylineAway`, `moneylineDraw`, `spreadHome`, `spreadAway`, `over`, `under`, `maxMoneyTicketGap`, `sharpSide` | object or null | Null without a non-zero split or markets. Consensus is preferred, then a book with a non-zero split. `sharpSide` is null unless the gap is above 0; `moneylineDraw` is omitted without a draw split. |
| Best odds | `bestOdds` with `moneylineHome`, `moneylineAway`, `moneylineDraw`, `spreadHome`, `spreadAway`, `over`, `under`, `bookCount` | object or null | Null when no side has a price. Side keys are `{odds, book, value}`; spread and total `value` uses the compared line, moneyline `value` is null. `odds` is the highest price among the 12 sportsbooks. `bookCount` counts sportsbooks with a market, excluding Consensus and Open. |
| Movement | `lineMovement` with `openSpreadHome`, `openTotal`, `openMoneylineHome`, `openMoneylineAway`, `currentSpreadHome`, `currentTotal`, `currentMoneylineHome`, `currentMoneylineAway`, `spreadMove`, `totalMove`, `moneylineHomeMove`, `spreadDirection`, `totalDirection` | object or null | Null when Open or Consensus has no market. Values and moves can be null; directions are `up`, `down`, `flat`, or null. |
| Sportsbooks | `books` with `bookId`, `book`, `period`, `marketId`, `isLive`, `spreadHome`, `spreadHomeOdds`, `spreadAway`, `spreadAwayOdds`, `moneylineHome`, `moneylineAway`, `moneylineDraw`, `total`, `overOdds`, `underOdds`, `moneylineHoldPercent`, `spreadHoldPercent`, `totalHoldPercent` | array of objects, never null | `[]` when no book has a market. Missing books are absent; missing prices are null. |
| Book count | `bookCount` | integer | Never null; length of `books`. |
| Result details | `result` with `homeScore`, `awayScore`, `winner`, `homeCovered`, `totalResult` | object or null | Null on non-`event` rows and on `event` rows unless status is `complete` and a home total is supplied. `winner` is `home`, `away`, or `draw`; `homeCovered` is `true`, `false`, `"push"`, or null; `totalResult` is `over`, `under`, `push`, or null. |
| Linescore | `linescore` with `period`, `home`, `away` | array or null | Null on non-`event` rows, non-final `event` rows, or when no periods are listed. |

Up to 12 sportsbooks are included: DraftKings, FanDuel, BetRivers, BetMGM, bet365, Caesars, Unibet, BetRivers NY, Resorts World Bet, Bally Bet, Fliff, and Fanatics. Consensus and Open are not counted as books.

### Sample output

Shortened row for game 290970. `publicBetting` and `result` are complete and unchanged. Omitted: teams, rotation numbers, consensus total and juice, hold and no-vig fields, `bestOdds`, `lineMovement`, `books` (nine books on this saved row), `linescore`, and other scalars.

```json
{
  "gameId": 290970,
  "url": "https://www.actionnetwork.com/nfl/washington-commanders-vs-new-york-giants-odds/290970",
  "matchup": "Washington Commanders @ New York Giants",
  "status": "complete",
  "period": "event",
  "publicBetting": {"moneylineHome": {"ticketsPercent": 75, "moneyPercent": 54, "moneyMinusTickets": -21}, "moneylineAway": {"ticketsPercent": 25, "moneyPercent": 46, "moneyMinusTickets": 21}, "spreadHome": {"ticketsPercent": 55, "moneyPercent": 35, "moneyMinusTickets": -20}, "spreadAway": {"ticketsPercent": 45, "moneyPercent": 65, "moneyMinusTickets": 20}, "over": {"ticketsPercent": 56, "moneyPercent": 53, "moneyMinusTickets": -3}, "under": {"ticketsPercent": 44, "moneyPercent": 47, "moneyMinusTickets": 3}, "maxMoneyTicketGap": 21, "sharpSide": "moneylineAway"},
  "result": {"homeScore": 21, "awayScore": 24, "winner": "away", "homeCovered": false, "totalResult": "over"}
}
```

### Pricing

Billing is pay per event. These are the Free-plan prices. You pay only for the events listed below. This Actor does not use the Pay per event + usage option, so platform usage of your runs (compute, proxy traffic and storage) is not billed to you separately.

| Event | When it is charged | Free-plan price |
|---|---|---|
| `apify-actor-start` | On the Free plan, one event per GB of run memory, minimum one event. Default memory is 512 MB, so a default Free-plan run is one start event. | $0.00005 |
| `apify-default-dataset-item` | One scraped result with all fields. | $0.002 |

- 1 result on the Free plan = $0.002 in dataset-item charges.
- 1,000 `apify-actor-start` events on the Free plan = $0.05; 10,000 = $0.50.
- 1,000 `apify-default-dataset-item` events on the Free plan = $2; 10,000 = $20.

The Apify Free plan includes $5 of monthly platform usage credit.

`maxResults` caps saved rows. A charge-limit stop occurs after the row that reaches the limit.

### How to use

1. Open the Actor in the Apify Console and sign in with your Apify account.
2. Choose `leagues` and `periods`.
3. Set `date` for a date-based league, or `week`, `seasonType`, and `season` for NFL or NCAAF.
4. Optionally set `teams`, `gameUrls`, `minSharpGap`, and `maxResults`.
5. Start the run. Residential proxy is used unless Apify Proxy is turned off.
6. Repeat the run with Apify Schedules to build snapshot history; each row carries `scrapedAt`.

```json
{
  "leagues": ["nfl"],
  "periods": ["event"],
  "week": 10,
  "seasonType": "reg",
  "season": 2026,
  "teams": ["NYG"],
  "minSharpGap": 0,
  "maxResults": 50
}
```

Download the dataset as JSON or CSV, or read it through the Apify dataset API.

### Input parameters

| Parameter | What it does | Default |
|---|---|---|
| `leagues` | Accepts `nfl`, `ncaaf`, `nba`, `ncaab`, `ncaaw`, `wnba`, `mlb`, `nhl`, and `soccer`. Unknown values are dropped; if none remain, NFL is used. One scoreboard request is made per league. Free plan requests only the first league. | `["nfl"]` |
| `periods` | Accepts `event`, `firsthalf`, `secondhalf`, `firstquarter`, `secondquarter`, `thirdquarter`, `fourthquarter`, `firstperiod`, `secondperiod`, `thirdperiod`, and `firstfiveinnings`. Each can produce a row. | `["event"]` |
| `date` | Non-digits are stripped. Sent only with eight digits and for leagues other than NFL or NCAAF. Use `YYYY-MM-DD`. | Empty (no date sent) |
| `week` | Integer from 1 to 25; sent on every league request when set. | Empty (no week sent) |
| `seasonType` | Accepts `pre`, `reg`, or `post`; sent only with `week`. Other values are ignored. | Empty |
| `season` | Integer from 2015 to 2030; sent on the scoreboard request. | Empty |
| `gameUrls` | Action Network URLs or numeric IDs. Entries not ending in a number are ignored. Valid IDs keep matching games; if none are valid, the filter is not applied. | Empty |
| `teams` | Keeps games where a home or away name, display name, or abbreviation contains the text, case-insensitive. | Empty |
| `minSharpGap` | Integer from 0 to 100. Above 0, keeps rows with `maxMoneyTicketGap` at least this value; missing gaps are dropped. | `0` |
| `maxResults` | Maximum rows pushed across leagues and periods. Minimum 1. | `50` |
| `proxyConfiguration` | Controls scoreboard-request proxy use. Set `useApifyProxy` to `false` and omit `proxyUrls` to run without a proxy. | Apify Residential (`useApifyProxy` true, group `RESIDENTIAL`) |

### Limits and edge cases

| Condition | What you see | What to do |
|---|---|---|
| Free plan | With more than one league, only the first listed league is requested; no placeholder rows are added. Status is the Free-plan preview line. `OUTPUT` holds `free_plan_preview`, `items_returned`, `items_requested`, `limits_applied`, `upgrade_url`, and `message`; `items_requested` is `maxResults`. With one league, there is no `OUTPUT`; status is `Collected N game rows.` and rows are saved up to `maxResults`. | Use one league per run; `maxResults` sets the row limit. |
| A scoreboard request fails | Each league gets 6 attempts with a 40-second timeout and pauses of 1, 2, 4, 8, and 16 seconds. The league is skipped after the last failure. If all fail, the run succeeds with an empty or short dataset; the failure reason is only in the log. | Check the log and re-run that league. |
| Rows are pushed during a run | Already-pushed rows remain after an abort, timeout, failure, or charge-limit stop. Charge limit is detected on push and stops after that row. An aborted Free-plan run has no final status or `OUTPUT`. | Re-run for rows not pushed. |
| `minSharpGap`, `teams`, or `gameUrls` match nothing | The log shows `0 rows after filters`; without a preview, status is `Collected 0 game rows.` | Set `minSharpGap` to 0, clear filters, and check the slate. |
| `date` not sent for football | `date` is not sent for `nfl` and `ncaaf`; it is ignored for these leagues. | Use `week`, `seasonType`, and `season`. |
| Period other than `event` not posted | That period has no row, so fewer rows than games × periods can be returned. Individual missing prices are `null`. | Request `event`, or accept fewer rows. |
| Game with no markets | The `event` row is produced with consensus, odds, `publicBetting`, `bestOdds`, and `lineMovement` as `null`, `books` as `[]`, and `bookCount` as 0. | None needed. |
| Periods other than `event` | `result` and `linescore` are `null` even when the game is final. | Use the `event` row for the final score. |
| Game scheduled or live on an `event` row | `result` and `linescore` are null, and `isFinal` is false. | Run again after the game is final. |

> **Note:** Odds and splits are what Action Network shows at run time. Results are graded against the consensus spread and total at the time of the run.

### FAQ

#### How much does it cost to scrape Action Network odds?

The Free plan charges $0.002 per result. Actor starts are charged at $0.00005 each on the Free plan. 1 result costs $0.002 in dataset-item charges on the Free plan.

#### Why did the run return no rows?

Filters can clear the slate, the game can be absent from that week or date, or a scoreboard request can fail. Check the log for `rows after filters` and scoreboard warnings.

#### Is it legal to scrape this public odds data?

The Actor reads public Action Network scoreboard data and does not ask for an Action Network login, API key, or cookies. Whether a use is allowed depends on Action Network's terms and the law applicable to your use case. This page does not decide that a use is lawful.

### Usage statistics

This Actor creates a small, content-free summary at the end of each run, used only to monitor reliability and improve this Actor. No input values, credentials or scraped data are sent.

A copy of the exact record for your run is saved as `USAGE_STATS` in your own Apify key-value store.

To opt out, set `disableUsageStats` to `true` in the input. Nothing is sent then.

[Full list of collected fields](https://api.apify.com/v2/key-value-stores/v9rgHjMKLDGtHf8tD/records/index.html)

# Actor input Schema

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

League slates to read. Each league is one scoreboard request. Leave empty for NFL.

## `periods` (type: `array`):

Which segment of the game to price. Each period is a separate row per game. Not every league posts every period.

## `date` (type: `string`):

Slate date as YYYY-MM-DD for the date-scheduled leagues (NBA, NHL, MLB, WNBA, college basketball, soccer). NFL and NCAAF use Week instead. Leave empty for today's board.

## `week` (type: `integer`):

Week number for NFL and NCAAF. Leave empty for the current week.

## `seasonType` (type: `string`):

Part of the season the week belongs to. Only used with Week.

## `season` (type: `integer`):

Season year, for pulling a past slate (combine with Week or Date).

## `gameUrls` (type: `array`):

Action Network game URLs or numeric game IDs. When set, only these games are kept out of their league's slate.

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

Keep only games involving one of these teams. Matches full name, nickname or abbreviation, case-insensitive (e.g. Chiefs, NYG).

## `minSharpGap` (type: `integer`):

Keep only games where the money percentage beats the ticket percentage on some side by at least this many points. 0 keeps everything.

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

Maximum number of game rows to collect.

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

Proxy settings. A residential proxy is used by default for reliable access.

## Actor input object example

```json
{
  "leagues": [
    "nfl"
  ],
  "periods": [
    "event"
  ],
  "minSharpGap": 0,
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset with the collected records.

# 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"
    ],
    "periods": [
        "event"
    ],
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/action-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"],
    "periods": ["event"],
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("bovi/action-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"
  ],
  "periods": [
    "event"
  ],
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call bovi/action-scraper --silent --output-dataset

```

## MCP server setup

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