# DraftKings Line Movement Tracker & Historical Odds (`pp-api/draftkings-line-movement`) Actor

Track every DraftKings Sportsbook line move: moneyline, spread and total with old and new line, price and direction, opening vs current lines, and the full line history of DraftKings player props. Schedule it for a gap-free move log. Free preview with no key.

- **URL**: https://apify.com/pp-api/draftkings-line-movement.md
- **Developed by:** [PP API Inc.](https://apify.com/pp-api) (community)
- **Categories:** Sports, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.10 / 1,000 results

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

### DraftKings Line Movement Tracker and Historical Odds

Track DraftKings Sportsbook line movement. Every time a DraftKings moneyline, spread or total moves, this Actor records the game, market, side, old line, new line, old price, new price and which way it went. Schedule it and you keep a complete, gap-free log of every DraftKings line move.

It also gives you **opening vs current lines** for every side of every upcoming game, and the **full line history of DraftKings player props** (points, rebounds, passing yards, shots on goal and the rest): every recorded change of the main line and both prices, with the opening and closing line.

**Try it with no key.** Run it empty to get real DraftKings line and price moves from the last few hours.

#### Modes

| Mode | What it returns |
|---|---|
| Line moves (tracker) | One row per move: `event`, `market` (moneyline, spread, total), `side`, `team`, `previous_line`, `line`, `line_move`, `direction` (up/down), `previous_american`, `american`, implied probability before and after, `price_direction` (shorter/longer), `observed_at`. Filter to line moves or price moves only. |
| Opening vs current line | One row per side: `open_line`, `open_american`, current `line` and `american`, how far it moved, `line_moves`, `price_moves`, `opened_at`. For closing line value, steam and reverse line movement checks. |
| Player prop line history | Every recorded change of DraftKings player over/unders in one state: `player`, `stat`, `line`, `over_american`, `under_american`, `kind` (line or price move), with the prop's opening line. Or one summary row per prop. |

Sports: NBA, NFL, NHL, MLB, college basketball, college football, Premier League and MLS. Player props follow what DraftKings lists in season.

#### How the tracker works

The first run returns the moves of the last 24 hours (you choose the window). Each later run returns only the moves recorded since the run before, so a schedule (every 5 to 15 minutes) never misses or repeats a move. Use a separate **Tracker name** for each sport or strategy.

#### Why not a DraftKings scraper

A scraper only sees the board at the moment it runs, so it cannot tell you where a line opened or when it moved, and DraftKings blocks it without residential proxies. This Actor reads a continuously collected record from [draftkingsapi.com](https://draftkingsapi.com), so moves between your runs are never lost and nothing gets blocked. Runs take seconds.

The same data is a REST API ([docs](https://draftkingsapi.com/docs)) and a remote MCP server for Claude, ChatGPT and Cursor at `https://draftkingsapi.com/api/mcp`.

#### How to use it

1. Run it once with no key to see real recent moves.
2. Get a free API key at [draftkingsapi.com/sign-up](https://draftkingsapi.com/sign-up). There is a free plan and it needs no card.
3. Paste the key, pick a mode and a sport, and run. For tracking, add a schedule in Apify.
4. Export as JSON, CSV or Excel, or send each run to a webhook, Google Sheets, Slack or your database through Apify integrations.

Each page of up to 100 quotes, each sportsbook snapshot and each prop history is one request on your draftkingsapi.com plan. "Max API requests" caps how many a run uses. See [pricing](https://draftkingsapi.com/pricing).

#### Example row (illustrative values)

```json
{
  "observed_at": "2026-11-17T15:17:37.110Z",
  "sport": "NBA",
  "event": "Portland Trail Blazers @ Minnesota Timberwolves",
  "market": "spread",
  "side": "home",
  "team": "Minnesota Timberwolves",
  "kind": "line",
  "previous_line": -6.5,
  "line": -7.5,
  "line_move": -1,
  "direction": "down",
  "previous_american": -110,
  "american": -108,
  "price_direction": "longer"
}
```

#### FAQ

**Does DraftKings have a public odds API?** No public odds API. This Actor and draftkingsapi.com give you DraftKings Sportsbook lines and their history as structured data.

**How fresh is the data?** Every row carries `observed_at`. The free preview is delayed and capped; a key gives the full record.

**Can I get DraftKings closing lines?** Yes. Opening vs current gives the last captured line before each game, and player prop line history marks the close with `closed: true` once the game has started.

For current DraftKings odds, Pick6 lines and DFS salaries, use the companion **DraftKings Odds API** and **DraftKings Pick6 API** Actors by the same publisher.

Information only, not betting advice.

Independent data service operated by Stunning Couches LLC, not affiliated with or endorsed by DraftKings.

# Actor input Schema

## `apiKey` (type: `string`):

Your draftkingsapi.com key (starts with dk\_). Free plan, no card: https://draftkingsapi.com/sign-up. Leave empty for a free preview of real recent DraftKings line moves.

## `mode` (type: `string`):

Line moves returns every moneyline, spread and total move with old and new line and price. Opening vs current gives one row per side with where it opened, where it is now and how often it moved. Player prop line history returns every recorded change of DraftKings player over/unders.

## `sport` (type: `string`):

Sport to track. Player prop line history covers the sports DraftKings lists player over/unders for (NBA, NFL, NHL and others in season).

## `market` (type: `string`):

Line moves and opening vs current: which game market to include.

## `moveType` (type: `string`):

A line move changes the spread or total number; a price move changes only the odds.

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

Line moves and opening vs current: which games to read. Every retained game also includes finished games and uses more requests.

## `search` (type: `string`):

Optional part of a team name, for example Lakers.

## `eventId` (type: `string`):

Optional draftkingsapi.com event id (the event_id field) to follow a single game.

## `lookbackHours` (type: `integer`):

Line moves, first run only: return moves from this many hours back. Later runs continue after the last move they saw.

## `resumeFromLastRun` (type: `boolean`):

Line moves: scheduled runs return only moves recorded since the previous run, so nothing is missed or repeated.

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

Keep separate trackers apart (each sport and market filter also keeps its own position).

## `state` (type: `string`):

Player prop line history: the DraftKings Sportsbook state to read. Lines can differ by state.

## `marketIds` (type: `array`):

Player prop line history: DraftKings market ids to follow. Leave empty to pick up the sport's current player over/under markets automatically.

## `player` (type: `string`):

Player prop line history: optional part of a player name.

## `stat` (type: `string`):

Player prop line history: optional stat, for example Points, Rebounds, Passing Yards or Shots on Goal.

## `propOutput` (type: `string`):

Player prop line history: every change of line and price, or one row per prop with opening line, current line and move counts.

## `maxMarkets` (type: `integer`):

Player prop line history: read at most this many props. Each prop is one API request.

## `maxRequests` (type: `integer`):

Stop after this many requests on your draftkingsapi.com plan. Each page of up to 100 quotes, each snapshot and each prop history is one request.

## `maxItems` (type: `integer`):

Stop after this many rows.

## Actor input object example

```json
{
  "mode": "moves",
  "sport": "NBA",
  "market": "all",
  "moveType": "all",
  "games": "upcoming",
  "lookbackHours": 24,
  "resumeFromLastRun": true,
  "stateKey": "default",
  "state": "NJ",
  "propOutput": "points",
  "maxMarkets": 20,
  "maxRequests": 50,
  "maxItems": 200
}
```

# Actor output Schema

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

All rows from this run as a dataset.

# 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 = {
    "mode": "moves",
    "sport": "NBA",
    "market": "all",
    "moveType": "all",
    "games": "upcoming",
    "state": "NJ",
    "propOutput": "points",
    "maxItems": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("pp-api/draftkings-line-movement").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 = {
    "mode": "moves",
    "sport": "NBA",
    "market": "all",
    "moveType": "all",
    "games": "upcoming",
    "state": "NJ",
    "propOutput": "points",
    "maxItems": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("pp-api/draftkings-line-movement").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 '{
  "mode": "moves",
  "sport": "NBA",
  "market": "all",
  "moveType": "all",
  "games": "upcoming",
  "state": "NJ",
  "propOutput": "points",
  "maxItems": 200
}' |
apify call pp-api/draftkings-line-movement --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pp-api/draftkings-line-movement"
        }
    }
}
```

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/gKaL14BfeXDmsi4dA/builds/9NbdO3eFUc1z6cmNg/openapi.json
