Skip to content

get_player_props

10 creditsMulti-tablePOST /v1/get_player_props

Player prop lines by sportsbook, opening and closing

Use it when you are backtesting or shopping player props: every book's over and under on points and the other markets for a game, or one player's lines across a range of dates, with the opening or closing price. From May 2023.

Parameters

game_idstringoptional
Game id: every player's props for that game.
player_idstringoptional
Player id (e.g. 3945274) from search_players. With from_date: that player's props across games.
from_datestringoptional
With player_id: first date, YYYY-MM-DD (the game's date).
to_datestringoptional
With player_id: last date (default: no end), YYYY-MM-DD (the game's date).
marketenum: player_points | player_rebounds | player_assists | player_threes | player_points_rebounds_assists | player_blocks | player_stealsoptional
One market: player_points (points), player_rebounds (rebounds), player_assists (assists), player_threes (three-pointers made), player_points_rebounds_assists (points + rebounds + assists), player_blocks (blocks), player_steals (steals)
bookmakerstringoptional
Bookmaker key, e.g. draftkings, fanduel, pinnacle.
snapshot_typeenum: opening | closingoptional
closing (default): the last line before the game starts. opening: the first one captured.
estimate_onlybooleanoptional
Return what this call would cost, without charging or running it.

Notes

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

Response

json
{
  "snapshot_type": "closing",
  "games": 1,
  "props": [
    {
      "game_id": "401585601",
      "game_date": "2023-10-24",
      "player_name": "Example Player",
      "player_id": "0000001",
      "market": "player_points",
      "bookmaker": "draftkings",
      "line": 24.5,
      "over_odds": -115,
      "under_odds": -105,
      "captured_at": "2023-10-24T22:30:00.000Z",
      "source": "the_odds_api"
    },
    {
      "game_id": "401585601",
      "game_date": "2023-10-24",
      "player_name": "Example Player",
      "player_id": "0000001",
      "market": "player_points",
      "bookmaker": "fanduel",
      "line": 24.5,
      "over_odds": -110,
      "under_odds": -110,
      "captured_at": "2023-10-24T22:31:00.000Z",
      "source": "the_odds_api"
    },
    {
      "game_id": "401585601",
      "game_date": "2023-10-24",
      "player_name": "Example Player",
      "player_id": "0000001",
      "market": "player_points",
      "bookmaker": "pinnacle",
      "line": 24.5,
      "over_odds": -108,
      "under_odds": -104,
      "captured_at": "2023-10-24T22:29:00.000Z",
      "source": "the_odds_api"
    }
  ],
  "count": 3,
  "note": "Illustrative example: made-up player and numbers, to show the shape of a response."
}

Response fields

snapshot_typestring
gamesnumber
props[]array
List of objects
props[].game_idstring
props[].game_datestring
props[].player_namestring
props[].player_idstring
props[].marketstring
props[].bookmakerstring
props[].linenumber
props[].over_oddsnumber
props[].under_oddsnumber
props[].captured_atstring
props[].sourcestring
countnumber
notestring

Related endpoints

Try it

500 credits free on signup: 50 calls to get_player_props, and no card.