Skip to main content
Version: 0.2.0

Men's college basketball — KenPom (kenpom.com, subscription) — Other

kenpom_ratings​

GET /index.php - Pomeroy season ratings (AdjEM/AdjO/AdjD/AdjT plus SOS, one row per team). Port of hoopR kp_pomeroy_ratings().

Endpoint URL: GET https://kenpom.com/index.php

Valid URL: https://kenpom.com/index.php?y=2025

API ParameterPythonPatternRequiredNullableDescription
yyearYSeason as a 4-digit ENDING year (2025 = the 2024-25 season). Data begins at 2002.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

ratings_table

col_nametypedescription
rkStringRk.
teamStringTeam-side label or team identifier.
confStringcharacter.
w_lStringW l.
net_rtgString
o_rtgStringO rtg.
o_rtg_rkStringO rtg rk.
d_rtgString
d_rtg_rkString
adj_tStringAdj t.
adj_t_rkStringAdj t rk.
luckStringLuck.
luck_rkStringLuck rk.
strength_of_schedule_net_rtgString
strength_of_schedule_net_rtg_rkString
strength_of_schedule_o_rtgString
strength_of_schedule_o_rtg_rkString
strength_of_schedule_d_rtgString
strength_of_schedule_d_rtg_rkString
ncsos_net_rtgString
ncsos_net_rtg_rkString
ncaa_seedInt64Ncaa seed.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_ratings(year=2025)

kenpom_efficiency​

GET /summary.php - efficiency and tempo summary (adjusted and raw O/D/T, average possession length). Port of hoopR kp_efficiency().

Endpoint URL: GET https://kenpom.com/summary.php

Valid URL: https://kenpom.com/summary.php?y=2025

API ParameterPythonPatternRequiredNullableDescription
yyearYSeason as a 4-digit ENDING year. Columns are narrower before 2010.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

ratings_table

col_nametypedescription
teamStringTeam-side label or team identifier.
confStringcharacter.
off_rating_adjustedFloat64
off_rating_adjusted_rkFloat64
off_rating_adjusted_rk_rkInt64
off_rating_rawFloat64
off_rating_raw_rkInt64
def_rating_adjustedFloat64
def_rating_adjusted_rkFloat64
def_rating_adjusted_rk_rkInt64
def_rating_rawFloat64
def_rating_raw_rkInt64
tempo_adjustedFloat64
tempo_adjusted_rkFloat64
tempo_rawInt64
tempo_raw_rkFloat64
tempo_offInt64
avg_poss_length_offFloat64Avg poss length off.
avg_poss_length_defInt64Avg poss length def.
avg_poss_length_def_rkFloat64Avg poss length def rk.
avg_poss_length_def_rk_rkInt64
ncaa_seedInt64Ncaa seed.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_efficiency(year=2025)

kenpom_four_factors​

GET /stats.php - four-factors rankings (eFG%, TO%, OR%, FTRate on offense and defense). Port of hoopR kp_fourfactors().

Endpoint URL: GET https://kenpom.com/stats.php

Valid URL: https://kenpom.com/stats.php?y=2025

API ParameterPythonPatternRequiredNullableDescription
yyearYSeason as a 4-digit ENDING year.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

ratings_table

col_nametypedescription
teamStringTeam-side label or team identifier.
confStringcharacter.
adj_tempoFloat64
adj_tempo_rkInt64
offense_adj_oeFloat64
offense_adj_oe_rkInt64
offense_e_fg_pctFloat64
offense_e_fg_pct_rkInt64
offense_to_pctFloat64
offense_to_pct_rkInt64
offense_or_pctFloat64
offense_or_pct_rkInt64
offense_ft_rateFloat64
offense_ft_rate_rkInt64
defense_adj_deFloat64
defense_adj_de_rkInt64
defense_e_fg_pctFloat64
defense_e_fg_pct_rkInt64
defense_to_pctFloat64
defense_to_pct_rkInt64
defense_or_pctFloat64
defense_or_pct_rkInt64
defense_ft_rateFloat64
defense_ft_rate_rkInt64
ncaa_seedInt64Ncaa seed.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_four_factors(year=2025)

kenpom_point_distribution​

GET /pointdist.php - share of points scored from 2s, 3s and free throws, offense and defense. Port of hoopR kp_pointdist().

Endpoint URL: GET https://kenpom.com/pointdist.php

Valid URL: https://kenpom.com/pointdist.php?y=2025

API ParameterPythonPatternRequiredNullableDescription
yyearYSeason as a 4-digit ENDING year.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

ratings_table

col_nametypedescription
teamStringTeam-side label or team identifier.
confStringcharacter.
offense_ftFloat64
offense_ft_rkInt64
offense_2_pt_fgFloat64
offense_2_pt_fg_rkInt64
offense_3_pt_fgFloat64
offense_3_pt_fg_rkInt64
defense_ftFloat64
defense_ft_rkInt64
defense_2_pt_fgFloat64
defense_2_pt_fg_rkInt64
defense_3_pt_fgFloat64
defense_3_pt_fg_rkInt64
ncaa_seedInt64Ncaa seed.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_point_distribution(year=2025)

kenpom_height​

GET /height.php - team height, effective height, experience, bench minutes and continuity. Port of hoopR kp_height().

Endpoint URL: GET https://kenpom.com/height.php

Valid URL: https://kenpom.com/height.php?y=2025

API ParameterPythonPatternRequiredNullableDescription
yyearYSeason as a 4-digit ENDING year. Columns are narrower before 2008.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

ratings_table

col_nametypedescription
teamStringTeam-side label or team identifier.
confStringcharacter.
avg_hgtStringAvg hgt.
avg_hgt_rkStringAvg hgt rk.
eff_hgtStringEff hgt.
eff_hgt_rkStringEff hgt rk.
c_hgtStringC hgt.
c_hgt_rkStringC hgt rk.
pf_hgtStringPf hgt.
pf_hgt_rkStringPf hgt rk.
sf_hgtStringSf hgt.
sf_hgt_rkStringSf hgt rk.
sg_hgtStringSg hgt.
sg_hgt_rkStringSg hgt rk.
pg_hgtStringPg hgt.
pg_hgt_rkStringPg hgt rk.
experienceStringYears of professional experience.
experience_rkStringExperience rk.
benchStringBench.
bench_rkStringBench rk.
continuityStringContinuity.
continuity_rkStringContinuity rk.
ncaa_seedInt64Ncaa seed.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_height(year=2025)

kenpom_foul_trouble​

GET /foul_trouble.php - team foul-trouble splits (minutes and efficiency with starters in foul trouble). Port of hoopR kp_foul_trouble().

Endpoint URL: GET https://kenpom.com/foul_trouble.php

Valid URL: https://kenpom.com/foul_trouble.php?y=2025

API ParameterPythonPatternRequiredNullableDescription
yyearYSeason as a 4-digit ENDING year.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

ratings_table

col_nametypedescription
teamStringTeam-side label or team identifier.
confStringcharacter.
2_fp_pctFloat64
2_fp_pct_rkInt64
adj2_fpFloat64
adj2_fp_rkInt64
2_foul_total_timeString
2_foul_total_time_rkInt64
2_foul_time_onString
2_foul_time_on_rkInt64
bench_pctFloat64Bench percentage (0-1 decimal).
bench_pct_rkInt64Bench pct rk.
ncaa_seedInt64Ncaa seed.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_foul_trouble(year=2025)

kenpom_player_stats​

GET /playerstats.php - national player leaderboard for one metric. Port of hoopR kp_playerstats().

Endpoint URL: GET https://kenpom.com/playerstats.php

Valid URL: https://kenpom.com/playerstats.php?y=2025&s=eFG

API ParameterPythonPatternRequiredNullableDescription
yyearYSeason as a 4-digit ENDING year. Data begins at 2004.
smetricYMetric slug as KenPom spells it on the wire - one of ORtg, PctMin, eFG, PctPoss, PctShots, ORPct, DRPct, TORate, ARate, PctBlocks, FTRate, PctStls, TS, FCper40, FDper40, FG2Pct, FG3Pct, FTPct. (hoopR's kp_playerstats() takes the display labels - ORtg, Min, eFG, Poss, Shots, OR, DR, TO, ARate, Blk, FTRate, Stl, TS, FC40, FD40, 2P, 3P, FT - and maps them to these.)
fconfYConference filter (KenPom abbreviation, e.g. 'ACC', 'B10'); omit for all of Division I.
cconf_onlyYConference-games-only toggle: 'c' restricts the leaderboard to conference play.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

ratings_table

col_nametypedescription
rkInt64Rk.
playerStringPlayer name.
teamStringTeam-side label or team identifier.
e_fg_pctFloat64E field goals percentage (0-1 decimal).
htStringListed height.
wtInt64Listed weight (lbs).
yrStringYr.
ncaa_seedInt64Ncaa seed.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_player_stats(year=2025, metric='eFG')

kenpom_kpoy​

GET /kpoy.php - KenPom Player of the Year standings and the game-MVP table. Port of hoopR kp_kpoy().

Endpoint URL: GET https://kenpom.com/kpoy.php

Valid URL: https://kenpom.com/kpoy.php?y=2025

API ParameterPythonPatternRequiredNullableDescription
yyearYSeason as a 4-digit ENDING year.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

kpoy_table

col_nametypedescription
column_0Int64
playerStringPlayer name.
k_poy_ratingFloat64

kpoy_table_2

col_nametypedescription
column_0Float64
playerStringPlayer name.
game_mvp_sInt64

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_kpoy(year=2025)

kenpom_game_plan​

GET /gameplan.php - a team's game-plan page (per-game four factors and personnel splits). Port of hoopR kp_gameplan().

Endpoint URL: GET https://kenpom.com/gameplan.php

Valid URL: https://kenpom.com/gameplan.php?team=Duke&y=2025

API ParameterPythonPatternRequiredNullableDescription
teamteamYKenPom team name, spelled as the site does.
yyearYSeason as a 4-digit ENDING year.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

schedule_table

col_nametypedescription
dateStringDate in YYYY-MM-DD format.
opponentInt64Opponent.
opponent_rkStringOpponent rk.
resultStringResult.
result_rkString
paceInt64Possessions per 48 minutes.
offense_effFloat64
offense_eff_1Int64
offense_e_fg_pctFloat64
offense_to_pctFloat64
offense_or_pctFloat64
offense_ftrFloat64
offense_2_p_pctString
offense_2_p_pct_1Float64
offense_3_p_pctString
offense_3_p_pct_1Float64
offense_3_pa_pctFloat64
defense_effFloat64
defense_eff_1Int64
defense_e_fg_pctFloat64
defense_to_pctFloat64
defense_or_pctFloat64
defense_ftrFloat64
defense_2_p_pctString
defense_2_p_pct_1Float64
defense_3_p_pctString
defense_3_p_pct_1Float64
defense_3_pa_pctFloat64

table_1

col_nametypedescription
column_0String
pct_points_cFloat64
pct_points_pfFloat64
pct_points_sfFloat64
pct_points_sgFloat64
pct_points_pgFloat64

table_2

col_nametypedescription
column_0String
pct_off_rebs_cFloat64
pct_off_rebs_pfFloat64
pct_off_rebs_sfFloat64
pct_off_rebs_sgFloat64
pct_off_rebs_pgFloat64

table_3

col_nametypedescription
column_0String
pct_def_rebs_cFloat64
pct_def_rebs_pfFloat64
pct_def_rebs_sfFloat64
pct_def_rebs_sgFloat64
pct_def_rebs_pgFloat64

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_game_plan(team='Duke', year=2025)

kenpom_opponent_tracker​

GET /opptracker.php - opponent tracker; side='o' for offense, 'd' for defense. Port of hoopR kp_opptracker().

Endpoint URL: GET https://kenpom.com/opptracker.php

Valid URL: https://kenpom.com/opptracker.php?team=Duke&y=2025&t=o

API ParameterPythonPatternRequiredNullableDescription
teamteamYKenPom team name, spelled as the site does.
yyearYSeason as a 4-digit ENDING year. Columns are narrower before 2010.
tsideYSide of the ball: 'o' (offense) or 'd' (defense).

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

conf_table

col_nametypedescription
dateStringDate in YYYY-MM-DD format.
teamStringTeam-side label or team identifier.
resultStringResult.
adj_oeFloat64Adjusted offensive efficiency.
adj_oe_1Int64
e_fg_pctFloat64E field goals percentage (0-1 decimal).
e_fg_pct_1Int64
to_pctFloat64To percentage (0-1 decimal).
to_pct_1Int64
or_pctFloat64Or percentage (0-1 decimal).
or_pct_1Int64
ftrFloat64Free-throw rate (offense).
ftr_1Int64
2_p_pctFloat64
2_p_pct_1Int64
3_p_pctFloat64
3_p_pct_1Int64
ft_pctFloat64Free throw percentage (0-1).
ft_pct_1Int64
3_pa_pctFloat64
3_pa_pct_1Int64
aplFloat64
apl_1Int64
ncaa_seedInt64Ncaa seed.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_opponent_tracker(team='Duke', year=2025, side='o')

kenpom_player_career​

GET /player.php - one player's career page (season-by-season stats and game log). Port of hoopR kp_player_career().

Endpoint URL: GET https://kenpom.com/player.php

Valid URL: https://kenpom.com/player.php?p=51234

API ParameterPythonPatternRequiredNullableDescription
pplayer_idYKenPom player id - the p= value on a player-page URL.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

player_table

col_nametypedescription
column_0String
column_0_rkString
htStringListed height.
wtFloat64Listed weight (lbs).
yrStringYr.
gInt64Games played.
pct_minFloat64
o_rtgFloat64O rtg.
pct_possFloat64
pct_shotsFloat64
e_fg_pctFloat64E field goals percentage (0-1 decimal).
ts_pctFloat64True shooting percentage (0-1).
or_pctFloat64Or percentage (0-1 decimal).
dr_pctFloat64Dr percentage (0-1 decimal).
a_rateFloat64A rate.
to_rateFloat64To rate.
blk_pctFloat64Blocks percentage (0-1 decimal).
stl_pctFloat64Steals percentage (0-1 decimal).
fc_40Float64
fd_40Float64
ft_rateFloat64Ft rate.
ftm_aString
pctFloat64Win percentage.
2_pm_aString
pct_1Float64
3_pm_aString
pct_2Float64

schedule_table

col_nametypedescription
column_0Float64
column_0_rkString
column_0_rk_rkInt64
opponentStringOpponent.
resultStringResult.
result_rkFloat64
siteString
site_rkString
site_rk_rkFloat64
stFloat64
mpInt64Minutes played.
o_rtgStringO rtg.
pct_psString
ptsInt64Points scored.
2_ptString
3_ptString
ftString
orInt64Or.
drInt64Dr.
aInt64A.
toInt64To.
blkInt64Blocks.
stlInt64Steals.
pfInt64Personal fouls.
pf_rkFloat64Pf rk.

schedule_table_3

col_nametypedescription
column_0Float64
column_0_rkString
column_0_rk_rkInt64
opponentStringOpponent.
resultStringResult.
result_rkFloat64
siteString
site_rkString
site_rk_rkFloat64
stString
mpInt64Minutes played.
o_rtgInt64O rtg.
pct_psInt64
ptsInt64Points scored.
2_ptString
3_ptString
ftString
orInt64Or.
drInt64Dr.
aInt64A.
toInt64To.
blkInt64Blocks.
stlInt64Steals.
pfInt64Personal fouls.
pf_rkFloat64Pf rk.

schedule_table_4

col_nametypedescription
column_0Float64
column_0_rkString
column_0_rk_rkInt64
opponentStringOpponent.
resultStringResult.
result_rkFloat64
siteString
site_rkString
site_rk_rkString
stString
mpInt64Minutes played.
o_rtgInt64O rtg.
pct_psInt64
ptsInt64Points scored.
2_ptString
3_ptString
ftString
orInt64Or.
drInt64Dr.
aInt64A.
toInt64To.
blkInt64Blocks.
stlInt64Steals.
pfInt64Personal fouls.
pf_rkFloat64Pf rk.

schedule_table_5

col_nametypedescription
column_0Float64
column_0_rkString
column_0_rk_rkInt64
opponentStringOpponent.
resultStringResult.
result_rkFloat64
siteString
site_rkString
site_rk_rkFloat64
stString
mpInt64Minutes played.
o_rtgInt64O rtg.
pct_psInt64
ptsInt64Points scored.
2_ptString
3_ptString
ftString
orInt64Or.
drInt64Dr.
aInt64A.
toInt64To.
blkInt64Blocks.
stlInt64Steals.
pfInt64Personal fouls.
pf_rkFloat64Pf rk.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_player_career(player_id=51234)

kenpom_box​

GET /box.php - box-score detail for one game (per-team four factors, player lines, scoring runs). Port of hoopR kp_box().

Endpoint URL: GET https://kenpom.com/box.php

Valid URL: https://kenpom.com/box.php?g=1097&y=2025

API ParameterPythonPatternRequiredNullableDescription
ggame_idYKenPom game id - the g= value on a FanMatch game link.
yyearYSeason (4-digit ENDING year) the game belongs to.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

linescore_table2

col_nametypedescription
column_0String
q1Int64Q1.
q2Int64Q2.
q3Int64Q3.
q4Int64Q4.
tInt64T.

table_1

col_nametypedescription
column_0String
jerseyStringJersey number worn by the player.
nameStringDisplay name.
minInt64Minutes played.
o_rtgInt64O rtg.
pct_psInt64
ptsInt64Points scored.
2_pm_aString
3_pm_aString
ftm_aString
orInt64Or.
drInt64Dr.
aInt64A.
toInt64To.
blkInt64Blocks.
stlInt64Steals.
pfInt64Personal fouls.

table_2

col_nametypedescription
column_0String
jerseyStringJersey number worn by the player.
nameStringDisplay name.
minInt64Minutes played.
o_rtgInt64O rtg.
pct_psInt64
ptsInt64Points scored.
2_pm_aString
3_pm_aString
ftm_aString
orInt64Or.
drInt64Dr.
aInt64A.
toInt64To.
blkInt64Blocks.
stlInt64Steals.
pfInt64Personal fouls.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_box(game_id=1097, year=2025)

kenpom_win_probability​

GET /winprob.php - in-game win-probability table for one game. Port of hoopR kp_winprob().

Endpoint URL: GET https://kenpom.com/winprob.php

Valid URL: https://kenpom.com/winprob.php?g=3577&y=2025

API ParameterPythonPatternRequiredNullableDescription
ggame_idYKenPom game id.
yyearYSeason (4-digit ENDING year) the game belongs to.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

No returns table is published for this endpoint: parser: KenPom draws this page from an embedded script, and parse_kenpom_page reads HTML tables only, so the captured page parses to no frames.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_win_probability(game_id=3577, year=2025)

kenpom_fan_match​

GET /fanmatch.php - the FanMatch slate for one date (predictions, thrill score, results). Port of hoopR kp_fanmatch().

Endpoint URL: GET https://kenpom.com/fanmatch.php

Valid URL: https://kenpom.com/fanmatch.php?d=2025-02-01

API ParameterPythonPatternRequiredNullableDescription
ddateYSlate date as YYYY-MM-DD.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

fanmatch_table

col_nametypedescription
gameStringGame.
predictionStringPre-game prediction (favorite, score, win %).
timeStringTime / clock value.
locationStringLocation.
thrill_scoreFloat64Thrill score.
come_backInt64
excite_mentFloat64

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_fan_match(date='2025-02-01')

kenpom_coach_history​

GET /history.php?c= - a coach's season-by-season history. Port of hoopR kp_coach_history().

Endpoint URL: GET https://kenpom.com/history.php

Valid URL: https://kenpom.com/history.php?c=Jon+Scheyer

API ParameterPythonPatternRequiredNullableDescription
ccoachYCoach name as KenPom spells it (e.g. 'Jon Scheyer').

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

player_table

col_nametypedescription
column_0Int64
pre_rkString
teamStringTeam-side label or team identifier.
confStringcharacter.
w_lStringW l.
adj_tFloat64Adj t.
adj_oFloat64Adj o.
adj_dFloat64Adj d.
offense_e_fg_pctFloat64
offense_to_pctFloat64
offense_or_pctFloat64
offense_ftrFloat64
offense_2_p_pctFloat64
offense_3_p_pctFloat64
offense_ft_pctFloat64
offense_3_pa_pctFloat64
offense_a_pctFloat64
offense_aplFloat64
defense_e_fg_pctFloat64
defense_to_pctFloat64
defense_or_pctFloat64
defense_ftrFloat64
defense_2_p_pctFloat64
defense_3_p_pctFloat64
defense_blk_pctFloat64
defense_3_pa_pctFloat64
defense_a_pctFloat64
defense_aplFloat64
2_fp_pctFloat64
ncaa_seedInt64Ncaa seed.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_coach_history(coach='Jon Scheyer')

kenpom_program_ratings​

GET /programs.php - program-level ratings across the full KenPom era. Port of hoopR kp_program_ratings().

Endpoint URL: GET https://kenpom.com/programs.php

Valid URL: https://kenpom.com/programs.php

API ParameterPythonPatternRequiredNullableDescription

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

ratings_table

col_nametypedescription
column_0Int64
teamStringTeam-side label or team identifier.
confStringcharacter.
rtgFloat64Rtg.
kenpom_bestInt64
kenpom_best_1Int64
kenpom_worstInt64
kenpom_worst_1Int64
kenpom_medianInt64
kenpom_top_10Int64
kenpom_top_25Int64
kenpom_top_50Int64
ncaa_tourney_chInt64
ncaa_tourney_f4Int64
ncaa_tourney_s16Int64
ncaa_tourney_r1Int64
chgInt64Chg.
ncaa_seedInt64Ncaa seed.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_program_ratings()

kenpom_archive_ratings​

GET /archive.php - the Pomeroy ratings as they stood on a past date. Port of hoopR kp_pomeroy_archive_ratings().

Endpoint URL: GET https://kenpom.com/archive.php

Valid URL: https://kenpom.com/archive.php?d=2025-02-01

API ParameterPythonPatternRequiredNullableDescription
ddateYSnapshot date as YYYY-MM-DD.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

ratings_table

col_nametypedescription
rkStringRk.
teamStringTeam-side label or team identifier.
ratings_on_2025_02_01_confString
ratings_on_2025_02_01_net_rtgString
ratings_on_2025_02_01_o_rtgString
ratings_on_2025_02_01_o_rtg_rkString
ratings_on_2025_02_01_d_rtgString
ratings_on_2025_02_01_d_rtg_rkString
ratings_on_2025_02_01_adj_tString
ratings_on_2025_02_01_adj_t_rkString
final_2025_ratings_rkString
final_2025_ratings_net_rtgString
final_2025_ratings_o_rtgString
final_2025_ratings_o_rtg_rkString
final_2025_ratings_d_rtgString
final_2025_ratings_d_rtg_rkString
final_2025_ratings_adj_tString
final_2025_ratings_adj_t_rkString
rk_chgStringRk chg.
em_chgStringEm chg.
adj_t_chgStringAdj t chg.
ncaa_seedInt64Ncaa seed.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_archive_ratings(date='2025-02-01')

kenpom_conference​

GET /conf.php - one conference's season page (standings, efficiency, per-team splits). Port of hoopR kp_conf().

Endpoint URL: GET https://kenpom.com/conf.php

Valid URL: https://kenpom.com/conf.php?c=ACC&y=2025

API ParameterPythonPatternRequiredNullableDescription
cconfYKenPom conference abbreviation (e.g. 'ACC', 'B10', 'SEC').
yyearYSeason as a 4-digit ENDING year.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

conf_table

col_nametypedescription
teamStringTeam-side label or team identifier.
overallStringOverall pick number.
confStringcharacter.
net_rtgFloat64
net_rtg_1Int64
o_rtgFloat64O rtg.
o_rtg_1Int64
d_rtgFloat64
d_rtg_1Int64
adj_tFloat64Adj t.
adj_t_1Int64
conf_sosFloat64Conf sos.
conf_sos_1Int64
conf_sos_1_rkString
conf_sos_1_rk_rkString
conf_sos_1_rk_rk_rkString
ncaa_seedInt64Ncaa seed.

conf_table_2

col_nametypedescription
teamStringTeam-side label or team identifier.
oeFloat64Raw offensive efficiency (points/100 poss).
oe_1Int64
e_fg_pctFloat64E field goals percentage (0-1 decimal).
e_fg_pct_1Int64
to_pctFloat64To percentage (0-1 decimal).
to_pct_1Int64
or_pctFloat64Or percentage (0-1 decimal).
or_pct_1Int64
ftrFloat64Free-throw rate (offense).
ftr_1Int64
2_p_pctFloat64
2_p_pct_1Int64
3_p_pctFloat64
3_p_pct_1Int64
ft_pctFloat64Free throw percentage (0-1).
ft_pct_1Int64
tempoFloat64Tempo.
tempo_1Int64
ncaa_seedInt64Ncaa seed.

conf_table_3

col_nametypedescription
teamStringTeam-side label or team identifier.
deFloat64Raw defensive efficiency (points allowed/100 poss).
de_1Int64
e_fg_pctFloat64E field goals percentage (0-1 decimal).
e_fg_pct_1Int64
to_pctFloat64To percentage (0-1 decimal).
to_pct_1Int64
or_pctFloat64Or percentage (0-1 decimal).
or_pct_1Int64
ftrFloat64Free-throw rate (offense).
ftr_1Int64
2_p_pctFloat64
2_p_pct_1Int64
3_p_pctFloat64
3_p_pct_1Int64
blk_pctFloat64Blocks percentage (0-1 decimal).
blk_pct_1Int64
stl_pctFloat64Steals percentage (0-1 decimal).
stl_pct_1Int64
ncaa_seedInt64Ncaa seed.

conf_table_4

col_nametypedescription
rankInt64Rank.
playerStringPlayer name.

conf_table_5

col_nametypedescription
statStringStat.
valueFloat64Numeric or string value field.
value_1Int64

conf_table_6

col_nametypedescription
statStringStat.
stat_rkString
valueStringNumeric or string value field.
value_1Int64

conf_table_rank

col_nametypedescription
conferenceInt64Conference name.
conference_1String
ratingFloat64Simple Rating System (SRS) value.
conference_2Float64
conference_3String
rating_1Float64

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_conference(conf='ACC', year=2025)

kenpom_conference_stats​

GET /confstats.php - league-wide conference comparison for one season. Port of hoopR kp_confstats().

Endpoint URL: GET https://kenpom.com/confstats.php

Valid URL: https://kenpom.com/confstats.php?y=2025

API ParameterPythonPatternRequiredNullableDescription
yyearYSeason as a 4-digit ENDING year.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

confrank_table

col_nametypedescription
confStringcharacter.
effFloat64Eff.
eff_1Int64
tempoFloat64Tempo.
tempo_1Int64
e_fg_pctFloat64E field goals percentage (0-1 decimal).
e_fg_pct_1Int64
to_pctFloat64To percentage (0-1 decimal).
to_pct_1Int64
or_pctFloat64Or percentage (0-1 decimal).
or_pct_1Int64
ftrFloat64Free-throw rate (offense).
ftr_1Int64
blk_pctFloat64Blocks percentage (0-1 decimal).
blk_pct_1Int64
stl_pctFloat64Steals percentage (0-1 decimal).
stl_pct_1Int64
2_p_pctFloat64
2_p_pct_1Int64
3_p_pctFloat64
3_p_pct_1Int64
ft_pctFloat64Free throw percentage (0-1).
ft_pct_1Int64
3_pa_pctFloat64
3_pa_pct_1Int64
a_pctFloat64A percentage (0-1 decimal).
a_pct_1Int64
home_w_lStringHome team's wins losses.
home_w_l_1Float64
home_w_l_2Int64
closeStringClose.
close_1Int64
blowoutsStringBlowouts.
blowouts_1Int64

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_conference_stats(year=2025)

kenpom_conference_history​

GET /confhistory.php - one conference's season-by-season history. Port of hoopR kp_confhistory().

Endpoint URL: GET https://kenpom.com/confhistory.php

Valid URL: https://kenpom.com/confhistory.php?c=ACC

API ParameterPythonPatternRequiredNullableDescription
cconfYKenPom conference abbreviation.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

player_table

col_nametypedescription
yearFloat644-digit year.
rankInt64Rank.
paceFloat64Possessions per 48 minutes.
o_rtgFloat64O rtg.
e_fg_pctFloat64E field goals percentage (0-1 decimal).
to_pctFloat64To percentage (0-1 decimal).
or_pctFloat64Or percentage (0-1 decimal).
ftrFloat64Free-throw rate (offense).
2_p_pctFloat64
3_p_pctFloat64
ft_pctFloat64Free throw percentage (0-1).
3_pa_pctFloat64
a_pctFloat64A percentage (0-1 decimal).
blk_pctFloat64Blocks percentage (0-1 decimal).
stl_pctFloat64Steals percentage (0-1 decimal).
home_recordStringHome win-loss record.
bidsInt64Bids.
s16Int64S16.
f4Int64F4.
chInt64Ch.
reg_season_champStringReg season champ.
tourney_champStringTourney champ.
best_teamStringBest team.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_conference_history(conf='ACC')

GET /trends.php - national Division I trends by season (tempo, efficiency, shooting, fouls). Port of hoopR kp_trends().

Endpoint URL: GET https://kenpom.com/trends.php

Valid URL: https://kenpom.com/trends.php

API ParameterPythonPatternRequiredNullableDescription

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

ratings_table

col_nametypedescription
seasonInt64Season year.
efficiencyFloat64Efficiency.
tempoFloat64Tempo.
e_fg_pctFloat64E field goals percentage (0-1 decimal).
to_pctFloat64To percentage (0-1 decimal).
or_pctFloat64Or percentage (0-1 decimal).
ft_rateFloat64Ft rate.
2_p_pctFloat64
3_p_pctFloat64
3_pa_pctFloat64
ft_pctFloat64Free throw percentage (0-1).
a_pctFloat64A percentage (0-1 decimal).
blk_pctFloat64Blocks percentage (0-1 decimal).
stl_pctFloat64Steals percentage (0-1 decimal).
nst_pctFloat64
avg_htFloat64
contFloat64
home_win_pctFloat64Home win percentage (0-1 decimal).
ppgFloat64Points per game.

return_parsed=False — the raw page HTML (str).

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.
kenpom_trends()

kenpom_home_court_advantage​

GET /hca.php - per-team home-court advantage estimates. Port of hoopR kp_hca().

Endpoint URL: GET https://kenpom.com/hca.php

Valid URL: https://kenpom.com/hca.php

API ParameterPythonPatternRequiredNullableDescription

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

ratings_table

col_nametypedescription
teamStringTeam-side label or team identifier.
confStringcharacter.
hcaStringHca.
hca_rkStringHca rk.
model_inputs_based_on_last_60_home_and_road_conf_games_values_are_per_game_differences_between_home_and_road_margin_pfString
model_inputs_based_on_last_60_home_and_road_conf_games_values_are_per_game_differences_between_home_and_road_margin_pf_rkString
model_inputs_based_on_last_60_home_and_road_conf_games_values_are_per_game_differences_between_home_and_road_margin_ptsString
model_inputs_based_on_last_60_home_and_road_conf_games_values_are_per_game_differences_between_home_and_road_margin_pts_rkString
model_inputs_based_on_last_60_home_and_road_conf_games_values_are_per_game_differences_between_home_and_road_margin_nstString
model_inputs_based_on_last_60_home_and_road_conf_games_values_are_per_game_differences_between_home_and_road_margin_nst_rkString
model_inputs_based_on_last_60_home_and_road_conf_games_values_are_per_game_differences_between_home_and_road_margin_blkString
model_inputs_based_on_last_60_home_and_road_conf_games_values_are_per_game_differences_between_home_and_road_margin_blk_rkString
model_inputs_based_on_last_60_home_and_road_conf_games_values_are_per_game_differences_between_home_and_road_margin_elevString
model_inputs_based_on_last_60_home_and_road_conf_games_values_are_per_game_differences_between_home_and_road_margin_elev_rkString
ncaa_seedInt64Ncaa seed.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_home_court_advantage()

kenpom_arenas​

GET /arenas.php - arena reference (name, capacity, average attendance) by team. Port of hoopR kp_arenas().

Endpoint URL: GET https://kenpom.com/arenas.php

Valid URL: https://kenpom.com/arenas.php?y=2025

API ParameterPythonPatternRequiredNullableDescription
yyearYSeason as a 4-digit ENDING year.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

ratings_table

col_nametypedescription
column_0Int64
teamStringTeam-side label or team identifier.
confStringcharacter.
arenaStringArena.
alternateFloat64Alternate.
ncaa_seedInt64Ncaa seed.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_arenas(year=2025)

kenpom_officials​

GET /officials.php - referee ratings for one season. Port of hoopR kp_officials().

Endpoint URL: GET https://kenpom.com/officials.php

Valid URL: https://kenpom.com/officials.php?y=2025

API ParameterPythonPatternRequiredNullableDescription
yyearYSeason as a 4-digit ENDING year.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

ratings_table

col_nametypedescription
column_0Int64
name_faaString
ratingFloat64Simple Rating System (SRS) value.
gmsInt64Gms.
last_gameStringLast game date or score string.
last_game_rkString
last_game_rk_rkString

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_officials(year=2025)

kenpom_referee​

GET /referee.php - one referee's game log and splits for a season. Port of hoopR kp_referee().

Endpoint URL: GET https://kenpom.com/referee.php

Valid URL: https://kenpom.com/referee.php?r=714294&y=2025

API ParameterPythonPatternRequiredNullableDescription
rrefereeYKenPom referee id - the r= value on an officials-table link.
yyearYSeason as a 4-digit ENDING year.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

ratings_table

col_nametypedescription
column_0Int64
dateStringDate in YYYY-MM-DD format.
time_etStringTime et.
gameStringGame.
locationStringLocation.
venueStringVenue name.
venue_rkString
thrill_scoreFloat64Thrill score.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_referee(referee=714294, year=2025)

kenpom_game_attributes​

GET /game_attrs.php - season game leaderboards by attribute (thrill score, comebacks, upsets, ...). Port of hoopR kp_game_attrs().

Endpoint URL: GET https://kenpom.com/game_attrs.php

Valid URL: https://kenpom.com/game_attrs.php?y=2025&s=ThrillScore

API ParameterPythonPatternRequiredNullableDescription
yyearYSeason as a 4-digit ENDING year.
sattributeYAttribute slug, e.g. ThrillScore, Comeback, FanMatch, Upsets, Busts, MinutesPlayed, PossessionLength, LeadChanges.

Returns​

return_parsed=True (default) — A dict of polars DataFrames, one per HTML table on the page, keyed by the table's HTML id (a KenPom page often carries several -- team.php alone holds the schedule, roster, depth chart and lineup tables) (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

ratings_table

col_nametypedescription
column_0Int64
dateStringDate in YYYY-MM-DD format.
gameStringGame.
game_rkString
locationStringLocation.
location_rkString
valueFloat64Numeric or string value field.

return_parsed=False — the raw page HTML (str).

Raises​

ExceptionDescription
RuntimeErrorNo KenPom credentials could be resolved (pass email=/password=, or set KENPOM_EMAIL/KENPOM_PW), or kenpom.com rejected them.
NoDataErrorThe host answered 404 -- the requested resource does not exist.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kenpom_game_attributes(year=2025, attribute='ThrillScore')