Skip to content

Guides

How often does an NBA player go over his points line?

One row per game with a player's closing points line, the price, what he scored and whether he went over. Shai Gilgeous-Alexander went over in 28 of 68.

Code verified November 18, 2026. One call to get_prop_history, 10 credits.

The call

player_id comes from search_players. Pass bookmaker for one book's close instead of the median across books. limit goes up to 200; next_from_date says where to continue.

import requests
import pandas as pd

API_KEY = "YOUR_API_KEY"

resp = requests.post(
    "https://mcp.dunkapi.com/v1/get_prop_history",
    headers={"x-api-key": API_KEY},
    json={
        "player_id": "4278073",
        "market": "player_points",
        "from_date": "2025-10-01",
        "to_date": "2026-04-15",
        "limit": 100,
    },
    timeout=60,
)
resp.raise_for_status()
data = resp.json()["data"]

games = pd.DataFrame(data["games"])
s = data["summary"]
print(data["player_name"], data["stat"], "|", s["overs"], "overs,", s["unders"], "unders, over rate", s["over_rate"])
print("average line", s["avg_line"], "average actual", s["avg_actual"])
print(games[["game_date", "open_line", "line", "actual", "result"]].tail(6).to_string(index=False))
# Overs and unders at each line the books set: a high line is not always a harder one.
print(games.groupby("line")["result"].value_counts().unstack(fill_value=0))

Replace YOUR_API_KEY with a key from your dashboard. Python needs requests and pandas (pip install requests pandas). JavaScript runs on Node 18 or newer, or in the browser.

Or use the official client: pip install dunkapi

What comes back

The data object of the response, trimmed to the first rows. Every field is real output from the run above.

{
  "player_id": "4278073",
  "player_name": "Shai Gilgeous-Alexander",
  "market": "player_points",
  "stat": "points",
  "bookmaker": null,
  "games": [
    {
      "game_id": "401809243",
      "game_date": "2025-10-21",
      "line": 32.5,
      "open_line": 32.5,
      "over_odds": -112,
      "under_odds": -115,
      "books": 7,
      "actual": 35,
      "result": "over",
      "margin": 2.5
    },
    {
      "game_id": "401809236",
      "game_date": "2025-10-23",
      "line": 32.5,
      "open_line": 32.5,
      "over_odds": -110,
      "under_odds": -120,
      "books": 7,
      "actual": 55,
      "result": "over",
      "margin": 22.5
    },
    {
      "game_id": "401809956",
      "game_date": "2025-10-25",
      "line": 33.5,
      "open_line": 33.5,
      "over_odds": -115,
      "under_odds": -115,
      "books": 7,
      "actual": 30,
      "result": "under",
      "margin": -3.5
    },
    {
      "game_id": "401809974",
      "game_date": "2025-10-27",
      "line": 32.5,
      "open_line": 32.5,
      "over_odds": -115,
      "under_odds": -115,
      "books": 7,
      "actual": 23,
      "result": "under",
      "margin": -9.5
    }
  ],
  "count": 69,
  "summary": {
    "games": 69,
    "graded": 68,
    "overs": 28,
    "unders": 40,
    "pushes": 0,
    "over_rate": 0.412,
    "avg_line": 31.2,
    "avg_actual": 31.1
  },
  "truncated": false,
  "next_from_date": null
}

The example player is Shai Gilgeous-Alexander. The record against the line, market by market, is on the Shai Gilgeous-Alexander prop history page.

What to do next

  • get_player_props (10 credits). Every sportsbook's line and prices for tonight's game.
  • get_player_games (5 credits). The player's game log behind the numbers the line was set against.

The data this uses

Every row above comes from NBA player props by sportsbook, from 2023. NBA player prop lines by sportsbook since May 2023: the closing line, and the opening line where held, with each player's history against his line. REST or MCP.

More guides

The same guide for other sports

The latest lines from every book are on the odds board. Today's props, with the best price on each side, are on the player props board. Rather ask Claude? 24 free Claude skills call these endpoints for you.

Start with 500 free credits every month

No card. REST or MCP.