Skip to content

get_line_movement

10 creditsTime-seriesPOST /v1/get_line_movement

Data refreshed · changelog

Snapshots of each sportsbook's line before tip-off

Use it when you want how a game's line moved in the days before tip-off, from our snapshots.

Parameters

game_idstringrequired
Game id.
providerstringoptional
One sportsbook, e.g. DraftKings.
all_snapshotsbooleanoptional
Every hourly capture. By default a capture identical to the one before it is left out (the latest is always kept), which keeps every move and its time.
leagueenum: nba | wnba | ncaam | ncaaw | nbloptional
League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.

Notes

  • Over MCP, ask for it in plain English and the client calls get_line_movement itself. Point any MCP client at https://mcp.dunkapi.com/mcp?key=YOUR_API_KEY.
  • Each call costs 10 credits, taken before it runs and refunded if the server errors.
  • Not the call you need? Find the right call by what you are trying to answer.

Request

curl -X POST https://mcp.dunkapi.com/v1/get_line_movement \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "game_id": "401585601"
}'

Response

json
{
  "game": {
    "game_id": "401585601",
    "season": 2024,
    "season_type": "regular",
    "date": "2024-03-16",
    "starts_at": "2024-03-17T00:30:00.000Z",
    "status": "final",
    "home": {
      "team_id": "13",
      "abbrev": "LAL",
      "name": "Los Angeles Lakers",
      "score": 121
    },
    "away": {
      "team_id": "9",
      "abbrev": "GS",
      "name": "Golden State Warriors",
      "score": 128
    },
    "periods": 4,
    "overtime_periods": 0,
    "neutral_site": false,
    "conference_game": true,
    "venue": "crypto.com Arena",
    "city": "Los Angeles",
    "attendance": 18997
  },
  "movement": {
    "BetMGM": [
      {
        "captured_at": "2024-03-16T11:55:39.000Z",
        "home_ml": -155,
        "away_ml": 125,
        "home_spread": null,
        "total": 235.5
      },
      {
        "captured_at": "2024-03-16T20:50:38.000Z",
        "home_ml": -135,
        "away_ml": 110,
        "home_spread": -1.5,
        "total": 233.5
      },
      {
        "captured_at": "2024-03-16T23:50:38.000Z",
        "home_ml": -115,
        "away_ml": -105,
        "home_spread": -1.5,
        "total": 233.5
      }
    ],
    "DraftKings": [
      {
        "captured_at": "2024-03-16T11:55:39.000Z",
        "home_ml": -155,
        "away_ml": 130,
        "home_spread": -3,
        "total": 236
      },
      {
        "captured_at": "2024-03-16T20:50:38.000Z",
        "home_ml": -130,
        "away_ml": 110,
        "home_spread": -2,
        "total": 233
      },
      {
        "captured_at": "2024-03-16T22:50:38.000Z",
        "home_ml": -125,
        "away_ml": 105,
        "home_spread": -2,
        "total": 233
      }
    ],
    "ESPN BET": [
      {
        "captured_at": "2024-03-16T11:55:39.000Z",
        "home_ml": -145,
        "away_ml": 125,
        "home_spread": -3.5,
        "total": 236.5
      },
      {
        "captured_at": "2024-03-16T20:50:38.000Z",
        "home_ml": -130,
        "away_ml": 110,
        "home_spread": -2.5,
        "total": 233.5
      },
      {
        "captured_at": "2024-03-16T23:50:38.000Z",
        "home_ml": -120,
        "away_ml": 100,
        "home_spread": -1.5,
        "total": 232.5
      }
    ],
    "FanDuel": [
      {
        "captured_at": "2024-03-16T11:55:39.000Z",
        "home_ml": -156,
        "away_ml": 132,
        "home_spread": -3.5,
        "total": 236.5
      },
      {
        "captured_at": "2024-03-16T20:50:38.000Z",
        "home_ml": -134,
        "away_ml": 114,
        "home_spread": -2.5,
        "total": 233.5
      },
      {
        "captured_at": "2024-03-16T22:50:38.000Z",
        "home_ml": -126,
        "away_ml": 108,
        "home_spread": -2,
        "total": 233.5
      }
    ],
    "Pinnacle": [
      {
        "captured_at": "2024-03-16T11:55:39.000Z",
        "home_ml": -145,
        "away_ml": 131,
        "home_spread": -3,
        "total": 236
      },
      {
        "captured_at": "2024-03-16T20:50:38.000Z",
        "home_ml": -127,
        "away_ml": 115,
        "home_spread": -2.5,
        "total": 233
      },
      {
        "captured_at": "2024-03-16T22:50:38.000Z",
        "home_ml": -124,
        "away_ml": 112,
        "home_spread": -2,
        "total": 233
      }
    ]
  },
  "snapshots": 35
}

Response fields

gameobject
game.game_idstring
game.seasonnumber
game.season_typestring
game.datestring
game.starts_atstring
game.statusstring
game.homeobject
game.home.team_idstring
game.home.abbrevstring
game.home.namestring
game.home.scorenumber
game.awayobject
game.away.team_idstring
game.away.abbrevstring
game.away.namestring
game.away.scorenumber
game.periodsnumber
game.overtime_periodsnumber
game.neutral_siteboolean
game.conference_gameboolean
game.venuestring
game.citystring
game.attendancenumber
movementobject
movement.BetMGM[]array
List of objects
movement.BetMGM[].captured_atstring
movement.BetMGM[].home_mlnumber
movement.BetMGM[].away_mlnumber
movement.BetMGM[].home_spreadnull
movement.BetMGM[].totalnumber

Used in

Related endpoints

Try it

500 free credits every month: 50 calls to get_line_movement, and no card.