Skip to contents

All functions

add_game_details()
Process Game Details
add_schedule_details()
Add Schedule Details
box_score_types
Box Score Options for API Endpoints
calc_days_next_game()
Calculate Days Next Game
calc_days_rest()
Calculate Days Rest
calc_game_count()
Calculate Game Count for a Season
calc_is_b2b()
Determine If Back-to-Back
calc_is_b2b_first()
Determine If B2B First
calc_is_b2b_second()
Determine If B2B Second
calculate_age()
Calculate Age from Birthdate
clean_stats_cols()
Clean NBA Stats Data
combine_team_and_opp_scores()
Combine Team and Opponent Score
consolidate_stats()
Consolidate NBA Statistics
convert_height_to_inches()
Convert Height from Feet-Inches to Inches
convert_inches_to_meters()
Convert Height from Inches to Meters
convert_to_minutes_seconds()
Convert Minutes to Minutes:Seconds
convert_to_seconds()
Convert Time String to Seconds
convert_weight_to_kg()
Convert Weight from Pounds to Kilograms
fetch_box_score()
Fetch Box Score Data from API
fetch_data_play_by_play()
Fetch Play-by-Play Data from data.nba.com API
fetch_fanduel_data()
Fetch FanDuel Data from API
fetch_nba_schedule()
Fetch NBA Schedule
fetch_nba_scores()
Fetch NBA Scores from API
fetch_player_awards_data()
Fetch Player Awards from API
fetch_player_career_data()
Fetch Player Career Data from API
fetch_player_dictionary_data()
Fetch Player Dictionary from API
fetch_player_news()
Fetch Player News from Profile Page
fetch_player_profile_data()
Fetch Player Profile Stats Data from API
fetch_player_splits_data()
Fetch Player Splits Data from API
fetch_player_stats()
Fetch NBA Player Stats from API
fetch_profile_info()
Fetch Player Profile Information from API
fetch_shots_data()
Fetch NBA Shots from API
fetch_standings()
Fetch and Process NBA Standings Data
fetch_stats_play_by_play()
Fetch Play-by-Play Data from stats.nba.com API
fetch_team_dictionary_data()
Fetch Team Dictionary from API
fetch_team_stats()
Fetch NBA Team Stats from API
fetch_win_probability_data()
Fetch Win Probability Play-by-Play Data from API
generate_headers_cdn()
Generate HTTP Headers for cdn.nba.com
generate_headers_stats()
Generate HTTP Headers for stats.nba.com
generate_params_box_scores()
Generate Query Parameters for Box Score API Requests
generate_params_box_scores_fix()
Generate Query Parameters for Box Score API Requests for PBP Fix
generate_params_career()
Generate Query Parameters for Player Career API Requests
generate_params_player_dict()
Generate Query Parameters for Player Dictionary API Requests
generate_params_profile()
Generate Query Parameters for Player Profile Stats API Requests
generate_params_shots()
Generate Query Parameters for Shots API Requests
generate_params_splits()
Generate Query Parameters for Player Splits API Requests
generate_params_standings()
Generate Query Parameters for Standings API Requests
generate_params_stats()
Generate Query Parameters for Stats API Requests
generate_params_team_dict()
Generate Query Parameters for Team Dictionary API Requests
get_all_players_for_league()
Fetch all players for a league from the pbpstats API
get_all_season_stats()
Fetch all-season stats from the pbpstats API
get_assist_combo_summary()
Fetch assist combo summary from the pbpstats API
get_assist_networks()
Fetch assist networks from the pbpstats API
get_current_season()
Get Current Season
get_data()
Get Data from a URL
get_data_no_params()
Get Data from a URL with no Parameters
get_endgame_breakeven_2_pct()
Fetch endgame breakeven two-point percentage from the pbpstats API
get_four_factor_on_off()
Fetch four-factor on/off metrics from the pbpstats API
get_game_logs()
Fetch game logs from the pbpstats API
get_game_stats()
Fetch game stats from the pbpstats API
get_games()
Fetch games from the pbpstats API
get_leverage()
Fetch leverage data from the pbpstats API
get_lineup_opponent_summary()
Fetch lineup opponent summary from the pbpstats API
get_lineup_player_stats()
Fetch lineup player stats from the pbpstats API
get_lineup_subunit_stats()
Fetch lineup subunit stats from the pbpstats API
get_live_game()
Fetch live game data from the pbpstats API
get_live_games()
Fetch live games from the pbpstats API
get_number_of_starter_stats_by_team()
Fetch number of starter stats by team from the pbpstats API
get_on_off()
Fetch on/off metrics from the pbpstats API
get_pace_efficiency_by_season()
Fetch pace efficiency by season from the pbpstats API
get_pace_efficiency_summary()
Fetch pace efficiency summary from the pbpstats API
get_player_headshot()
Generate NBA Player Headshot URL
get_playing_time_distribution()
Fetch playing time distribution from the pbpstats API
get_possession_length_frequency()
Fetch possession length frequency from the pbpstats API
get_possessions()
Fetch possessions from the pbpstats API
get_relative_off_def_efficiency()
Fetch relative offensive/defensive efficiency from the pbpstats API
get_scatter_plots()
Fetch scatter plots from the pbpstats API
get_score_margin_breakdown()
Fetch score margin breakdown from the pbpstats API
get_score_time_summary()
Fetch score-time summary from the pbpstats API
get_season_start_year()
Get Season Start Year
get_shot_query_summary()
Fetch shot query summary from the pbpstats API
get_shots()
Fetch shots from the pbpstats API
get_team_leverage_summary()
Fetch team leverage summary from the pbpstats API
get_team_logo()
Generate NBA Team Logo URL
get_team_players_for_season()
Fetch team players for a season from the pbpstats API
get_teams()
Fetch teams from the pbpstats API
get_top_results()
Fetch top results from the pbpstats API
get_totals()
Fetch totals from the pbpstats API
get_win_probability()
Fetch win probability from the pbpstats API
get_wowy_combination_stats()
Fetch WOWY (With Or Without You) combination stats from the pbpstats API
get_wowy_combo_playing_time_distribution()
Fetch WOWY (With Or Without You) combo playing time distribution from the pbpstats API
get_wowy_stats()
Fetch WOWY (With Or Without You) statistics from the pbpstats API
get_year_over_year_plots()
Fetch league year-over-year plots from the pbpstats API
join_data_frames()
Join Multiple Data Frames by Removing Duplicate Columns
join_scores()
Join Scores
nba_box_scores()
Get NBA Box Scores
nba_box_scores_matchups()
Get NBA Box Score Matchups
nba_career_rankings()
Get Player Career Rankings
nba_career_splits()
Get Player Splits
nba_career_stats()
Get Player Career Totals
nba_data_play_by_play()
Get NBA Play-by-Play Data from data.nba.com API
nba_fanduel()
Get NBA FanDuel Data
nba_half_court()
NBA Half‑Court Plot
nba_player_awards()
Get NBA Player Awards History
nba_player_dictionary()
Get NBA Player Dictionary
nba_player_headshot()
Get NBA Player Headshot Photo
nba_player_highs()
Get Player Highs
nba_player_lookup()
NBA Player Lookup
nba_player_news()
Get NBA Player News
nba_player_stats()
Get NBA Player Stats
nba_profile_info()
Get NBA Player Profile Descriptive Information
nba_profile_stats()
Get Player Profile Stats
nba_schedule()
Get NBA Schedule Data
nba_scores()
Get NBA Scores
nba_shot_chart()
NBA Shot Chart
nba_shots()
Get NBA Shots
nba_shots_league_avg()
Get League Average NBA Shots
nba_standings()
Get NBA Standings Data
nba_stats_play_by_play()
Get NBA Play-by-Play Data from stats.nba.com API
nba_team_colors()
Get Team Colors for Active NBA Teams
nba_team_dictionary()
Get NBA Team Dictionary
nba_team_logo()
Get NBA Team Logo
nba_team_stats()
Get NBA Team Stats
nba_win_probability()
Get NBA Win Probability Play-by-Play Data
pbp_column_map
PBP Column Name Map
pbpstats_api()
Generic helper to call any pbpstats API endpoint
player_measure_types
Measure Types for NBA Player Stats
process_career_data()
Process Career List
process_nba_schedule()
Process NBA Schedule Data
process_opp_all_stats()
Process Opponent All Stats
process_opp_team_games()
Process Opponent Team Games
process_player_measures()
Process Player Data
process_profile_data()
Process Profile Stats List
process_shots()
Process NBA Shots Data
process_splits_data()
Process Splits List
process_team_games()
Process Team Games
process_team_measures()
Process Team Data
process_win_probability_data()
Process Win Probability Play-by-Play Data
seconds_passed()
Calculate Seconds Passed in Game
team_measure_types
Measure Types for NBA Team Stats