{"sport":"nba","brand":"DunkAPI","base_url":"https://mcp.dunkapi.com","mcp_url":"https://mcp.dunkapi.com/mcp","tools":[{"name":"list_teams","description":"Use to find team ids and abbreviations for a season (default: the latest). Every other tool takes a team as an id or abbreviation. Pass league for the WNBA (wnba), college (ncaam, ncaaw) or Australia's NBL (nbl); default NBA. Costs 1 credit.","credits":1,"category":"Static reference","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"season":{"description":"Season by the year it ends: 2025 = 2024-25. WNBA: the calendar year.","type":["number","string"]},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.","type":"string","enum":["nba","wnba","ncaam","ncaaw","nbl"]}},"additionalProperties":false}},{"name":"list_games","description":"Use to list games with scores by season, date, date range or team, newest first. For upcoming games with lines use get_schedule; for one game's box score use get_game. Costs 2 credits.","credits":2,"category":"Basic lookup","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"season":{"description":"Season by the year it ends: 2025 = 2024-25.","type":["number","string"]},"season_type":{"description":"regular, postseason, play_in or preseason.","type":"string","enum":["regular","postseason","play_in","preseason"]},"team":{"description":"Team id or abbreviation.","type":"string"},"date":{"description":"One date, YYYY-MM-DD (US Eastern).","type":"string"},"from":{"description":"From date, YYYY-MM-DD.","type":"string"},"to":{"description":"To date, YYYY-MM-DD.","type":"string"},"status":{"type":"string","enum":["scheduled","final"]},"limit":{"description":"Max games (default 50).","type":"integer","minimum":1,"maximum":200},"offset":{"description":"Page offset; use next_offset.","type":"integer","minimum":0,"maximum":9007199254740991},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.","type":"string","enum":["nba","wnba","ncaam","ncaaw","nbl"]}},"additionalProperties":false}},{"name":"get_schedule","description":"Use for upcoming games (next 1-30 days, default 7) with the median line across posted sportsbooks: spread, total and moneylines. For every book's line use get_odds. Costs 2 credits. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":2,"category":"Basic lookup","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"days":{"description":"Days ahead (default 7).","type":"integer","minimum":1,"maximum":30},"team":{"description":"Team id or abbreviation.","type":"string"},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.","type":"string","enum":["nba","wnba","ncaam","ncaaw","nbl"]}},"additionalProperties":false}},{"name":"get_game","description":"Use for one game in full: score, both teams' box scores, every player's line, each sportsbook's opening and closing line, and the win-probability range. For the play-by-play use get_plays. Costs 5 credits. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":5,"category":"Stats + aggregation","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"type":"string","description":"Game id, from list_games or get_schedule."},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.","type":"string","enum":["nba","wnba","ncaam","ncaaw","nbl"]}},"required":["game_id"],"additionalProperties":false}},{"name":"get_standings","description":"Use for a season's regular-season standings computed from every final game: overall, conference, home and away records, points for and against, margin and last 10. Costs 2 credits.","credits":2,"category":"Basic lookup","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"season":{"description":"Season by the year it ends (default: the latest).","type":["number","string"]},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.","type":"string","enum":["nba","wnba","ncaam","ncaaw","nbl"]}},"additionalProperties":false}},{"name":"get_injuries","description":"Use for the injury report: every listed player's status (out, day-to-day), injury and expected return, as captured on the latest day (or the latest on or before date). NBA and WNBA. Costs 2 credits.","credits":2,"category":"Basic lookup","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"team":{"description":"One team (id or abbreviation).","type":"string"},"date":{"description":"The report as of this day, YYYY-MM-DD (default: the latest).","type":"string"},"league":{"description":"League. Defaults to nba. One of: nba, wnba.","type":"string","enum":["nba","wnba"]}},"additionalProperties":false}},{"name":"search_players","description":"Use to find a player's id by name (partial names work), most recent players first. Pass league for the WNBA (wnba), college (ncaam, ncaaw) or Australia's NBL (nbl); default NBA. Costs 1 credit.","credits":1,"category":"Static reference","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","description":"Full or partial name."},"limit":{"type":"integer","minimum":1,"maximum":50},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.","type":"string","enum":["nba","wnba","ncaam","ncaaw","nbl"]}},"required":["name"],"additionalProperties":false}},{"name":"get_player","description":"Use for a player's profile, per-season averages and shooting splits (regular season and postseason separately) and last 10 games. For every game use get_player_games. Costs 5 credits.","credits":5,"category":"Stats + aggregation","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"player_id":{"type":"string","description":"Player id, from search_players."},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.","type":"string","enum":["nba","wnba","ncaam","ncaaw","nbl"]}},"required":["player_id"],"additionalProperties":false}},{"name":"get_player_games","description":"Use for a player's game log: every game's box-score line with opponent and result, newest first, optionally one season. Costs 5 credits.","credits":5,"category":"Stats + aggregation","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"player_id":{"type":"string","description":"Player id."},"season":{"description":"Season by the year it ends: 2025 = 2024-25 (default: the latest).","type":["number","string"]},"season_type":{"type":"string","enum":["regular","postseason","play_in","preseason"]},"limit":{"description":"Max games (default 100).","type":"integer","minimum":1,"maximum":200},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.","type":"string","enum":["nba","wnba","ncaam","ncaaw","nbl"]}},"required":["player_id"],"additionalProperties":false}},{"name":"get_leaders","description":"Use for a season's statistical leaders (per game, shooting percentages with a volume floor, or totals) from every box score. Costs 5 credits.","credits":5,"category":"Stats + aggregation","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"stat":{"type":"string","enum":["pts","reb","ast","stl","blk","tpm","min","plus_minus","fg_pct","tp_pct","ft_pct","ts_pct","total_pts"],"description":"Stat to rank by."},"season":{"description":"Season by the year it ends: 2025 = 2024-25 (default: the latest).","type":["number","string"]},"season_type":{"description":"Default regular.","type":"string","enum":["regular","postseason","play_in","preseason"]},"min_games":{"description":"Minimum games played (default: a quarter of the season).","type":"integer","minimum":1,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.","type":"string","enum":["nba","wnba","ncaam","ncaaw","nbl"]}},"required":["stat"],"additionalProperties":false}},{"name":"get_team_stats","description":"Use for team efficiency for a season: pace, offensive, defensive and net rating per 100 possessions, the four factors (eFG%, turnover %, offensive rebound %, free throw rate) and three-point rate, plus per-game box score averages (shooting, rebounds, steals, blocks and blocks against, fouls and fouls drawn, point margin, overtime periods), from every box score. Pass before (a date) for the numbers as they stood going into that day, for models that must not see later games. Costs 5 credits.","credits":5,"category":"Stats + aggregation","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"season":{"description":"Season by the year it ends: 2025 = 2024-25 (default: the latest).","type":["number","string"]},"season_type":{"type":"string","enum":["regular","postseason","play_in","preseason"]},"team":{"description":"One team (id or abbreviation).","type":"string"},"before":{"description":"YYYY-MM-DD: only games played before this date (point-in-time stats).","type":"string"},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.","type":"string","enum":["nba","wnba","ncaam","ncaaw","nbl"]}},"additionalProperties":false}},{"name":"get_plays","description":"Use for play-by-play: every event of a game, or a player's or team's plays across a season, with shot location (feet), zone, our expected points, the score and the home win probability after each play (our model, on every game we hold). Filter to shots, makes or misses, a zone, a period or clutch time. Pass league for the WNBA (wnba), college (ncaam, ncaaw) or Australia's NBL (nbl); default NBA. Costs 10 credits.","credits":10,"category":"Multi-table","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"description":"One game: every play in order.","type":"string"},"player_id":{"description":"A player's plays (with season).","type":"string"},"team":{"description":"A team's plays (id or abbreviation).","type":"string"},"season":{"description":"Season by the year it ends (default: the latest; ignored with game_id).","type":["number","string"]},"season_type":{"type":"string","enum":["regular","postseason","play_in","preseason"]},"shots_only":{"description":"Field goal and free throw attempts only.","type":"boolean"},"made":{"description":"Only made (true) or missed (false) shots.","type":"boolean"},"zone":{"description":"One shot zone.","type":"string","enum":["restricted_area","paint","midrange","corner_3","above_break_3","free_throw"]},"period":{"type":"integer","minimum":1,"maximum":10},"clutch":{"description":"Last 5 minutes of the 4th quarter (college men: 2nd half) or overtime, score within 5.","type":"boolean"},"limit":{"description":"Max plays (default 200).","type":"integer","minimum":1,"maximum":1000},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.","type":"string","enum":["nba","wnba","ncaam","ncaaw","nbl"]}},"additionalProperties":false}},{"name":"get_shot_chart","description":"Use for a shot profile: attempts, makes, percentage, points per shot and expected points per shot in each zone (restricted area, paint, midrange, corner three, above-the-break three, free throws) for a player, a team, a team's opponents or one game. include_shots adds every located shot's x/y and result for drawing a chart. Costs 10 credits.","credits":10,"category":"Multi-table","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"player_id":{"type":"string"},"team":{"description":"Team id or abbreviation.","type":"string"},"opponent":{"description":"With team: the shots its opponents took (its defence).","type":"boolean"},"game_id":{"type":"string"},"season":{"description":"Season by the year it ends (default: the latest).","type":["number","string"]},"season_type":{"type":"string","enum":["regular","postseason","play_in","preseason"]},"include_shots":{"description":"Add each shot's x, y and result (up to 3,000).","type":"boolean"},"league":{"description":"League. Defaults to nba. One of: nba, wnba, nbl.","type":"string","enum":["nba","wnba","nbl"]}},"additionalProperties":false}},{"name":"get_odds","description":"Use for betting lines: each sportsbook's moneyline, spread and total for a game (opening and closing per book from July 2020; before that, each book's final pregame line only), with implied probabilities and, for finished games, whether the home side covered and the total went over against the median close. Pass game_id for one game (5 credits) or date for a day's games (10 credits). Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":5,"category":"Stats + aggregation","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"description":"One game.","type":"string"},"date":{"description":"A day's games, YYYY-MM-DD (US Eastern).","type":"string"},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.","type":"string","enum":["nba","wnba","ncaam","ncaaw","nbl"]}},"additionalProperties":false}},{"name":"get_line_movement","description":"Use to see how a game's line moved before tip-off: our pre-game snapshots of each sportsbook's moneyline, spread and total (captured once a day, and every hour for games in the next four days). Costs 10 credits. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":10,"category":"Time-series","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"type":"string","description":"Game id."},"provider":{"description":"One sportsbook, e.g. DraftKings.","type":"string"},"all_snapshots":{"description":"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.","type":"boolean"},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.","type":"string","enum":["nba","wnba","ncaam","ncaaw","nbl"]}},"required":["game_id"],"additionalProperties":false}},{"name":"get_ratings","description":"Use for our team power ratings (Elo from every final game in our data), ranked, as of the end of a season or today. Costs 2 credits.","credits":2,"category":"Basic lookup","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"season":{"description":"Season by the year it ends (default: the latest).","type":["number","string"]},"limit":{"description":"Teams to return, best first (default 100; college has more than 300).","type":"integer","minimum":1,"maximum":500},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.","type":"string","enum":["nba","wnba","ncaam","ncaaw","nbl"]}},"additionalProperties":false}},{"name":"get_player_props","description":"Use for player prop lines by sportsbook: over/under on points, rebounds, assists, threes, blocks, steals, the combos (points + rebounds + assists, points + rebounds, points + assists, rebounds + assists) and double- and triple-doubles (the NBA has them all; the WNBA has no blocks, steals or triple-doubles and college basketball has points, rebounds, assists and the combos), from May 2023 for the NBA and WNBA and the 2023-24 season for men's college basketball (DraftKings, FanDuel, BetMGM, ESPN BET, Pinnacle and others). Pass game_id for every player's props in one game, or player_id with from_date (and to_date) for one player across games (up to 100). A game costs 10 credits before it starts and 20 once it has (accounts opened before October 30 2026 pay 10 for every game). Returns the closing line by default (the last before the game starts) or the opening line, with each book's over and under prices. Each row has captured_at, scheduled_start and minutes_before_scheduled_start (negative when captured after the scheduled start); a row is kept when it was captured before the sportsbooks' listed start, which in the NBA is usually about 10 minutes after the scheduled one, so filter on minutes_before_scheduled_start > 0 for a strictly before-schedule backtest. Outside football the archive mostly holds one pre-game capture per line, so the opening and closing lines are usually the same; the opening line differs only where a second capture was taken (live capture from October 2026, and wherever else it is held). Set estimate_only to get the price without being charged. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":10,"category":"Multi-table","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"description":"Game id: every player's props for that game.","type":"string"},"player_id":{"description":"Player id (e.g. 3945274) from search_players. With from_date: that player's props across games.","type":"string"},"from_date":{"description":"With player_id: first date, YYYY-MM-DD (the game's date).","type":"string"},"to_date":{"description":"With player_id: last date (default: no end), YYYY-MM-DD (the game's date).","type":"string"},"market":{"description":"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), player_points_rebounds (points + rebounds), player_points_assists (points + assists), player_rebounds_assists (rebounds + assists), player_double_double (double-double (over = yes)), player_triple_double (triple-double (over = yes))","type":"string","enum":["player_points","player_rebounds","player_assists","player_threes","player_points_rebounds_assists","player_blocks","player_steals","player_points_rebounds","player_points_assists","player_rebounds_assists","player_double_double","player_triple_double"]},"bookmaker":{"description":"Bookmaker key, e.g. draftkings, fanduel, pinnacle.","type":"string"},"snapshot_type":{"description":"closing (default): the last line before the game starts. opening: the first one captured, which is the same capture as the close wherever only one was taken.","type":"string","enum":["opening","closing"]},"estimate_only":{"description":"Return what this call would cost, without charging or running it.","type":"boolean"},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam.","type":"string","enum":["nba","wnba","ncaam"]}},"additionalProperties":false}},{"name":"get_prop_history","description":"Use to see how a player did against his prop line over time: for one market (points, rebounds, assists, threes, blocks, steals, one of the combos (points + rebounds + assists, points + rebounds, points + assists, rebounds + assists), double-double or triple-double), one row per game with the closing line (the median across books, or one book's), the opening line (the same as the close wherever only one capture was taken), the prices, what the player actually recorded from our box scores and the result against the line, plus the over rate, up to 200 games a call. Costs 10 credits for every 25 games already played that a call covers, and at least 10 a call (accounts opened before November 1 2026 pay 10 a call). Set estimate_only to get the price without being charged. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":10,"category":"Multi-table","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"player_id":{"type":"string","description":"Player id (e.g. 3945274) from search_players."},"market":{"type":"string","enum":["player_points","player_rebounds","player_assists","player_threes","player_points_rebounds_assists","player_blocks","player_steals","player_points_rebounds","player_points_assists","player_rebounds_assists","player_double_double","player_triple_double"],"description":"The 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), player_points_rebounds (points + rebounds), player_points_assists (points + assists), player_rebounds_assists (rebounds + assists), player_double_double (double-double (over = yes)), player_triple_double (triple-double (over = yes))"},"from_date":{"description":"First date, YYYY-MM-DD (the game's date).","type":"string"},"to_date":{"description":"Last date, YYYY-MM-DD (the game's date).","type":"string"},"bookmaker":{"description":"One book's closing line instead of the median across books, e.g. draftkings.","type":"string"},"limit":{"description":"Games to return, oldest first (default 50, max 200). next_from_date says where to continue.","type":"integer","minimum":1,"maximum":200},"estimate_only":{"description":"Return what this call would cost, without charging or running it.","type":"boolean"},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam.","type":"string","enum":["nba","wnba","ncaam"]}},"required":["player_id","market"],"additionalProperties":false}},{"name":"get_prop_movement","description":"Use to see how one player's prop line moved before a game: every capture we hold, book by book and oldest first, with the line, both prices and the minutes before the start. line_change is the last capture's line minus the first's. The number of captures varies by game and book. Costs 10 credits. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":10,"category":"Time-series","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"type":"string","description":"Game id."},"player_id":{"type":"string","description":"Player id (e.g. 3945274) from search_players."},"market":{"type":"string","enum":["player_points","player_rebounds","player_assists","player_threes","player_points_rebounds_assists","player_blocks","player_steals","player_points_rebounds","player_points_assists","player_rebounds_assists","player_double_double","player_triple_double"],"description":"The 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), player_points_rebounds (points + rebounds), player_points_assists (points + assists), player_rebounds_assists (rebounds + assists), player_double_double (double-double (over = yes)), player_triple_double (triple-double (over = yes))"},"bookmaker":{"description":"One book's captures, e.g. draftkings.","type":"string"},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam.","type":"string","enum":["nba","wnba","ncaam"]}},"required":["game_id","player_id","market"],"additionalProperties":false}},{"name":"get_market_odds","description":"Use for the extra betting markets of a game as history: the 1st half and 1st quarter winner, point spread and total, and the 2nd, 3rd and 4th quarter totals (NBA only). Pass game_id (from list_games or get_schedule) and market. For each sportsbook it returns the opening line (the first one we captured) and the closing line (the last one before the game started), each as the list of outcomes with their point and American price, plus captured_at and minutes_before_start (negative when the last capture came after our scheduled start, which the sportsbooks' listed start can run past). Most books were captured once, so opening and closing are often the same line. Held from May 2023 for the larger sportsbooks only; not every game has every market. Each game's lines are added the morning after it is played. Costs 10 credits a call; a game with no lines is refunded. Set estimate_only to get the price without being charged. For the full-game moneyline, spread and total use get_odds. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":10,"category":"Time-series","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"type":"string","description":"Game id from list_games or get_schedule."},"market":{"type":"string","enum":["h2h_h1","spreads_h1","totals_h1","h2h_q1","spreads_q1","totals_q1","totals_q2","totals_q3","totals_q4"],"description":"The market: h2h_h1 (1st half winner), spreads_h1 (1st half point spread), totals_h1 (1st half total points), h2h_q1 (1st quarter winner), spreads_q1 (1st quarter point spread), totals_q1 (1st quarter total points), totals_q2 (2nd quarter total points), totals_q3 (3rd quarter total points), totals_q4 (4th quarter total points)"},"bookmaker":{"description":"One bookmaker key, e.g. draftkings, fanduel, pinnacle.","type":"string"},"estimate_only":{"description":"Return what this call would cost, without charging or running it.","type":"boolean"}},"required":["game_id","market"],"additionalProperties":false}},{"name":"get_game_probabilities","description":"Use for what the market thinks of one game, not any one book's price: the average implied probability (margin in) and the fair probability (margin out) for the moneyline, each spread and each total, with how many books each rests on. Only identical lines are combined. Each book's last pre-game prices by default (snapshot_type reads latest until the start, closing after it); opening on request. For each book's prices use get_odds. Costs 5 credits. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":5,"category":"Stats + aggregation","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"type":"string","description":"Game id, e.g. 401859967."},"snapshot_type":{"description":"closing (default): each book's last pre-game price so far. opening: each book's first.","type":"string","enum":["opening","closing"]},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.","type":"string","enum":["nba","wnba","ncaam","ncaaw","nbl"]}},"required":["game_id"],"additionalProperties":false}},{"name":"get_prop_probabilities","description":"Use for what the market thinks of the player props in one game, not any one book's price: for each player and each line, the average implied probability (margin in) and the fair probability (margin out), with how many books each rests on. Only identical lines are combined, and a yes/no market whose books post only the yes price has no fair probability. Latest pre-game prices. For each book's prices use get_player_props. Costs 10 credits. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":10,"category":"Multi-table","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"type":"string","description":"Game id, e.g. 401859967."},"market":{"description":"One market, e.g. player_points. Default every market.","type":"string","enum":["player_points","player_rebounds","player_assists","player_threes","player_points_rebounds_assists","player_blocks","player_steals","player_points_rebounds","player_points_assists","player_rebounds_assists","player_double_double","player_triple_double"]},"player_id":{"description":"One player's id (e.g. 3945274, from search_players). Default every player.","type":"string"},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam.","type":"string","enum":["nba","wnba","ncaam"]}},"required":["game_id"],"additionalProperties":false}},{"name":"get_prop_backtest","description":"Use to test an idea about player props without pulling every row: how often a kind of prop went over or under against what the market implied, across every finished game we hold prices for that fits your filters. Returns the hit rate, its 95% interval, the average implied and fair probabilities, and each season on its own. For example, points overs for players whose team was the road underdog. One result per player per game at the median closing line. It describes the past and recommends nothing. For one player game by game use get_prop_history. Costs 25 credits.","credits":25,"category":"Backtests","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"market":{"type":"string","enum":["player_points","player_rebounds","player_assists","player_threes","player_points_rebounds_assists","player_blocks","player_steals","player_points_rebounds","player_points_assists","player_rebounds_assists","player_double_double","player_triple_double"],"description":"The market, e.g. player_points."},"side":{"description":"over (default) or under. Yes/no markets are graded on the yes price: over only.","type":"string","enum":["over","under"]},"from_date":{"description":"First game date, YYYY-MM-DD. Default all held.","type":"string"},"to_date":{"description":"Last game date, YYYY-MM-DD. Default all held.","type":"string"},"player_id":{"description":"One player's id (e.g. 3945274, from search_players).","type":"string"},"team":{"description":"The player's team, e.g. BOS.","type":"string"},"opponent":{"description":"The team he played.","type":"string"},"home_away":{"description":"Whether his team was at home.","type":"string","enum":["home","away"]},"team_role":{"description":"Whether his team was favored, by the books' closing moneylines.","type":"string","enum":["favorite","underdog"]},"line_min":{"description":"Lowest median closing line to include.","type":"number"},"line_max":{"description":"Highest median closing line to include.","type":"number"},"fair_min":{"description":"Lowest fair probability of this side to include, 0 to 1.","type":"number","minimum":0,"maximum":1},"fair_max":{"description":"Highest fair probability of this side to include, 0 to 1.","type":"number","minimum":0,"maximum":1},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam.","type":"string","enum":["nba","wnba","ncaam"]}},"required":["market"],"additionalProperties":false}},{"name":"get_alt_lines","description":"Use for alternate spreads and totals by sportsbook: every point on each book's ladder with its price (e.g. -8.5 at +240, over 230.5 at +165), for one game. Held for the NBA, the WNBA and men's college basketball from the 2023-24 season on, from up to five books (DraftKings, Pinnacle, Bovada and BetMGM on nearly every game, FanDuel on some). Games before Nov 12 2026 were captured once shortly before the start, so their opening and closing ladders are the same; from Nov 12 2026 upcoming games are captured up to three times a day before the start. Games not yet priced have none. Returns each book's closing ladder by default (its last before the start) or its opening one. side is home or away for spreads (point is that side's spread) and over or under for totals. For the main line use get_odds. 10 credits. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":10,"category":"Multi-table","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"type":"string","description":"Game id, e.g. 401585183 (from list_games or get_schedule)."},"league":{"description":"League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.","type":"string","enum":["nba","wnba","ncaam","ncaaw","nbl"]},"market":{"description":"One market (default both).","type":"string","enum":["alternate_spreads","alternate_totals"]},"bookmaker":{"description":"One bookmaker key, e.g. draftkings, fanduel.","type":"string"},"snapshot_type":{"description":"Closing (default) or opening ladder.","type":"string","enum":["opening","closing"]}},"required":["game_id"],"additionalProperties":false}}]}