defense_vs_position
ChatGPTGet what each NBA or NFL team allows per game to a position group (NBA: G, F, C + pace; NFL: QB, RB, WR, TE) with league ranks (1 = most allowed). Full-season is free; window="recent" (last 10 games) requires Pro.
find_game
ChatGPTUse this when the user asks about one team's game on a date, its next or last game, or a specific meeting ('Lakers next game', 'Cowboys vs Eagles on November 23') and you need its game_id. Returns the team's game on that date, or its last three finished and next three games, with game_id, start time, state, week (NFL), score, page url and the pair's matchup page. Not for the whole slate (tonight_slate) or the history of a pair (head_to_head).
game_projection
ChatGPTGet an NBA or NFL game's pre-game win probability and projected margin from our model, the teams compared with league ranks, leaders, recent results, meetings and the injury report. A Pro account adds the model's factor weights, absence costs and position matchups.
head_to_head
ChatGPTUse this when the user asks how two teams have fared against each other: the all-time or season series, their last meetings and who led them, their next meeting ('Celtics vs Knicks history', 'Cowboys Eagles record'). Returns the pair's record over every meeting we hold and by season, this season's series, the last ten meetings with each one's top player, the series leaders, and the next game with its projected chance and margin. Not for a single game's preview: use game_projection with the game_id it returns.
injury_consequences
ChatGPTGet what a specific player absence changes (his team's projected win probability and margin with him and without him, plus teammates whose minutes or target/carry share rises when he sits), or omit player_id for the full league injury report.
lineups
ChatGPTUse this when the user asks which five-man units an NBA team plays most and how they rate, its best or worst lineups (also in the clutch), or how a team and each teammate did in the games a player missed. Returns, for a team_id, its five-man units by minutes together with their offensive, defensive and net ratings; with without_player_id, the games with and without him and each teammate's per-game minutes, points and usage on both sides, by the minutes gained. It needs a connected account with access to it, and the answer says so otherwise. Not for one player's on/off: use player_splits_and_on_off.
nfl_usage
ChatGPTUse this when the user asks about NFL usage: who gets the most targets or carries, target and carry shares, opportunity share, red-zone looks, or how a team's shares change without a teammate. Returns, by view: "league" (every player's season and recent shares, biggest roles first), "red_zone" (targets and carries from the opponent's 20 in), "team" (a team_id: its players' shares, the regulars who missed games and, with without_player_id, each player's shares with and without him). Some parts need a connected account with access to them; account.held says what was left out. Not for NBA usage: use stat_forecasts or rankings_and_ratings.
player_comparables
ChatGPTUse this when the user asks which players are most like a given player this season, or how often a player reaches a number (20 points, 10 rebounds, a double-double; with or without a teammate). Returns, for a player_id, the players most like him by Keel Impact and role (NFL: by his group's main numbers) and his milestones (NBA: the share of games reaching each mark). Not for his own averages: use player_profile.
player_profile
ChatGPTGet an NBA or NFL player profile: season averages, efficiency (TS%, eFG%, USG%, BPM or NFL yards/touchdowns), Keel Impact headline, current injury status, and recent 10-game log.
player_splits_and_on_off
ChatGPTGet player splits (Keel Stats Pro): NBA on/off court net rating, clutch and garbage-time splits, and with/without teammate splits; or NFL target, carry and red-zone usage shares with/without a teammate.
rankings_and_ratings
ChatGPTGet NBA Keel Impact player ratings (plus offense/defense, box prior, RAPM, and on/off breakdown for Pro), NFL EPA/play & success rate leaderboards, standings, or weekly power rankings.
search
ChatGPTFind NBA and NFL players or teams by name or abbreviation (accent- and typo-tolerant). Always call this first when you need a player_id or team_id.
shot_quality
ChatGPTUse this when the user asks about the quality of an NBA player's or team's shots, expected field-goal percentage (xFG%), who makes more or fewer shots than expected, or the quality of shots a defense allows. Returns, for a player_id, his season's attempts, FG% against xFG%, eFG% against xeFG%, three-point rate, shot making (points over expected per 100 shots) and his rank in it; for a team_id, the same for its offense and for the shots its defense allowed; with neither, the season's best and worst shot makers (200+ attempts). It needs a connected account with access to it, and the answer says so otherwise. Not for box-score shooting splits: use player_profile.
stat_forecasts
ChatGPTUse this when the user asks how many minutes an NBA player should play tonight, who gets more minutes or shots when a teammate is out, or what a player is expected to score, rebound and assist tonight. Returns tonight's games with each team's players: the minutes they have been playing, the minutes expected after the injury report and how much the absences move them, usage, who is out and the minutes he frees; a connected account with access to them also gets expected points, rebounds and assists, the chances of reaching a number, the team both ways around each player in doubt, and with a player_id who gained when he sat. account.held names what was left out. Not for past games: use player_profile.
team_profile
ChatGPTGet an NBA or NFL team profile: record, offensive/defensive/net ratings or NFL EPA per play & success rate with league ranks, roster, and recent/upcoming games.
tonight_slate
ChatGPTGet tonight's (or a specific date's) NBA or NFL games, live/final scores, pre-game win probabilities, last-game starters (NBA), and recent injury status changes.