Skip to content

get_alt_lines

10 creditsMulti-tablePOST /v1/get_alt_lines

Alternate spreads and totals by sportsbook: every point on each book's ladder, opening and closing, NBA, WNBA and men's college from 2023-24

Use it when you are pricing or backtesting alternate spreads and totals: every point on each book's ladder for a game with its price. NBA, WNBA and men's college from 2023-24.

Parameters

game_idstringrequired
Game id, e.g. 401585183 (from list_games or get_schedule).
leagueenum: nba | wnba | ncaam | ncaaw | nbloptional
League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.
marketenum: alternate_spreads | alternate_totalsoptional
One market (default both).
bookmakerstringoptional
One bookmaker key, e.g. draftkings, fanduel.
snapshot_typeenum: opening | closingoptional
Closing (default) or opening ladder.

Notes

  • Over MCP, ask for it in plain English and the client calls get_alt_lines 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_alt_lines \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "game_id": "401808177",
  "league": "ncaam",
  "market": "alternate_spreads"
}'

Response

json
{
  "game_id": "401808177",
  "league": "ncaam",
  "snapshot_type": "closing",
  "lines": [
    {
      "bookmaker": "betmgm",
      "market": "alternate_spreads",
      "side": "away",
      "point": 10.5,
      "price": 135,
      "captured_at": "2026-01-17T22:30:52.000Z",
      "source": "archive"
    },
    {
      "bookmaker": "betmgm",
      "market": "alternate_spreads",
      "side": "away",
      "point": 11.5,
      "price": 118,
      "captured_at": "2026-01-17T22:30:52.000Z",
      "source": "archive"
    },
    {
      "bookmaker": "betmgm",
      "market": "alternate_spreads",
      "side": "away",
      "point": 12.5,
      "price": 100,
      "captured_at": "2026-01-17T22:30:52.000Z",
      "source": "archive"
    }
  ],
  "count": 140
}