Skip to main content

CBS — CBS Sports NAPI (api.cbssports.com/napi) — Team

cbs_team_futures​

Get futures for a team.

Endpoint URL: GET https://api.cbssports.com/napi/resource/team/futures/{team_id}

Valid URL: https://api.cbssports.com/napi/resource/team/futures/404

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYNumerical team ID

Returns​

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_cbs_napi); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

cbs_team_futures(team_id=404)

Last validated n/a.

cbs_team_metadata​

Get a team metadata resource

Endpoint URL: GET https://api.cbssports.com/napi/resource/team/metadata/{team_id}

Valid URL: https://api.cbssports.com/napi/resource/team/metadata/404

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYNumerical team ID
resourcesresourcesYSpecify specific sub-resources to resolve. Defaults to none. Allowed: team.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_cbs_napi); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

cbs_team_metadata(team_id=404)

Last validated n/a.

cbs_team_players​

Get player resources on a team.

Endpoint URL: GET https://api.cbssports.com/napi/resource/team/players/{team_id}

Valid URL: https://api.cbssports.com/napi/resource/team/players/404

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYNumerical team ID
resourcesresourcesYSpecify specific sub-resources to resolve. Defaults to none. Allowed: playerTeamAssociations, injuries, transactions, depthCharts.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
player_idintegerUnique player identifier.
first_namecharacterPlayer's first name.
full_first_namecharacterPlayer's full given name including any middle names CBS records (Kieran James Ricardo); null throughout the US leagues and populated mainly in the soccer leagues.
last_namecharacterPlayer's last name.
full_last_namecharacterPlayer's full family name as CBS records it, which can be longer than the display last_name; null throughout the US leagues and populated mainly in soccer.
nick_namecharacterPlayer nickname.
heightcharacterPlayer height (string e.g. '6-2' or inches).
weightintegerPlayer weight in pounds.
experienceintegerYears of professional experience.
schoolcharacterTeam name.
home_towncharacterHome town of the player.
debutcharacterDate of the player's debut for the team as CBS records it; null for every player in the captured leagues, so the shipped format is unverified.
birth_datecharacterDate of birth (YYYY-MM-DD).
birth_countrycharacterPlayer birth country.
birth_country_codecharacterLowercase three-letter code for the player's country of birth, e.g. eng, wal, fra; populated in the soccer leagues and null in the US ones.
nationality_countrycharacterCountry the player represents internationally, spelled out (England, Wales, France); can differ from birth_country for dual-eligible players.
nationality_country_codecharacterLowercase three-letter code matching nationality_country, e.g. eng.
lockedintegerFlag CBS sets on a player record it treats as locked (0 or 1); 0 for nearly every player in the captures.
player_team_associationscharacterNested list of the player's team associations, JSON-encoded when present; null unless the request named it in the endpoint's resources parameter, which defaults to none.
injuriescharacterNested injury records for the player, JSON-encoded when present; null unless requested through the resources parameter.
transactionscharacterNested transaction records for the player, JSON-encoded when present; null unless requested through the resources parameter.
depth_chartscharacterNested depth-chart entries for the player, JSON-encoded when present; null unless requested through the resources parameter.
position_rankingscharacterNested positional-ranking entries for the player, JSON-encoded when present; null unless requested through the resources parameter.
player_statscharacterNested statistical lines for the player, JSON-encoded when present; null unless requested through the resources parameter.
standingscharacterNested standings sub-resource attached to the player's team, JSON-encoded when present; null unless requested through the resources parameter.
rankingscharacterNested ranking entries for the player, JSON-encoded when present; null unless requested through the resources parameter.
player_outlookcharacterNested fantasy-outlook copy for the player, JSON-encoded when present; null unless requested through the resources parameter.
meta_datacharacterNested metadata block for the player, JSON-encoded when present; null unless requested through the resources parameter.
draft_infocharacterDraft information.
game_statscharacterNested per-game statistical lines for the player, JSON-encoded when present; null unless requested through the resources parameter.
combine_datacharacterNested scouting-combine measurements for the player, JSON-encoded when present; null unless requested through the resources parameter.

return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

cbs_team_players(team_id=404)

Last validated n/a.

cbs_team_polls​

Retrieve team rankings data from our various polls.

Endpoint URL: GET https://api.cbssports.com/napi/resource/team/polls/{team_id}

Valid URL: https://api.cbssports.com/napi/resource/team/polls/404

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYNumerical team ID
pollspollsYView option. Filter by a certain poll name. Allowed: coaches, ap, fcscoachespoll, statstsnfcspoll, rpi, playoffselectioncommitteepoll, net.
seasonIdseason_idYView option. Filter by seasonId.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_cbs_napi); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

cbs_team_polls(team_id=404)

Last validated n/a.

cbs_team_rankings​

Get rankings for a team (by season)

Endpoint URL: GET https://api.cbssports.com/napi/resource/team/rankings/{team_id}

Valid URL: https://api.cbssports.com/napi/resource/team/rankings/404

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYNumerical team id
seasonYearseason_yearYView option. Filter by seasonYear.
seasonTypeseason_typeYView option. Filter by seasonType. Allowed: regular, pre, post.
seasonIdseason_idYView option. Filter by seasonId.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_cbs_napi); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

cbs_team_rankings(team_id=404)

Last validated n/a.

cbs_team_rankings_sportsline​

Get sportsline rankings for a team

Endpoint URL: GET https://api.cbssports.com/napi/resource/team/rankings/sportsline/{team_id}

Valid URL: https://api.cbssports.com/napi/resource/team/rankings/sportsline/404

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYNumerical team id

Returns​

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_cbs_napi); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

cbs_team_rankings_sportsline(team_id=404)

Last validated n/a.

cbs_team_seasons​

Get a list of Season resources associated to a Team.

Endpoint URL: GET https://api.cbssports.com/napi/resource/team/seasons/{team_id}

Valid URL: https://api.cbssports.com/napi/resource/team/seasons/404

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYNumerical team ID
dateFormatdate_formatYOptional. Options here: http://momentjs.com/docs/#/displaying/format/
seasonYearseason_yearYView option. Filter by seasonYear.
seasonTypeseason_typeYView option. Filter by seasonType. Allowed: regular, pre, post.
seasonIdseason_idYView option. Filter by seasonId.
resourcesresourcesYSpecify specific sub-resources to resolve. Defaults to none. Allowed: league.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_cbs_napi); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

cbs_team_seasons(team_id=404)

Last validated n/a.

cbs_team_standings​

Get standings for a particular team.

Endpoint URL: GET https://api.cbssports.com/napi/resource/team/standings/{team_id}

Valid URL: https://api.cbssports.com/napi/resource/team/standings/404

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYNumerical team ID
yearyearYOptional year in YYYY format
seasonTypeseason_typeYView option. Filter by seasonType. v3 only! Allowed: regular, pre, post.
seasonIdseason_idYView option. Filter by seasonId. v3 only!

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
season_yearintegerSeason year string ('YYYY-YY' format).
season_typecharacterSeason type (1=pre-season, 2=regular season, 3=postseason, 4=off-season for ESPN; or string label for WNBA Stats).
streakcharacterCurrent streak (e.g. 'W3' for three-game win streak).
win_loss_recordcharacterJSON-encoded array of the team's split records, one object per split carrying wins, losses, ties (plus shootout and overtime splits in the NHL) with a name and a type such as home, away, division, conference or last5.
season_idintegerUnique season identifier.
wins_numberintegerWins the team recorded over the season and season type of this row.
goals_for_goalsintegerGoals the team scored, on the soccer and hockey standings shapes.
last_results_r2characterSecond of the five form-guide slots CBS publishes for a soccer team, reported as Win, Loss or Draw.
last_results_r3characterThird of the five form-guide slots CBS publishes for a soccer team, reported as Win, Loss or Draw.
last_results_r4characterFourth of the five form-guide slots CBS publishes for a soccer team, reported as Win, Loss or Draw.
last_results_r5characterFifth of the five form-guide slots CBS publishes for a soccer team, reported as Win, Loss or Draw.
last_results_r1characterOne of the team's five most recent results in the soccer standings form guide, reported as Win, Loss or Draw; CBS labels the five slots r1 through r5 without documenting which end is the most recent match.
winning_percentage_percentagecharacterWinning percentage as CBS formats it, a leading-dot three-decimal string such as .706.
goals_against_goalsintegerGoals conceded by the team, on the soccer and hockey standings shapes.
losses_numberintegerLosses the team recorded over the season and season type of this row.
points_penalty_pointsintegerTable points deducted from the team as a sanction, on the soccer standings shape; 0 for teams with no deduction.
points_points_per_gamecharacterTable points per game played, on the soccer standings shape, e.g. 2.33.
points_pointsintegerLeague table points the team has earned, on the soccer standings shape (three per win, one per draw).
ties_numbercharacterTies (draws) the team recorded; 0 in the leagues that no longer play to a tie, and typed as text because CBS emits an empty string where the concept does not apply.
games_played_gamesintegerGames the team has played in the season and season type of this row.
place_previousintegerPosition the team held in the previously published version of the same table, so movement can be shown; equal to place_place when the team did not move.
place_season_end_idcharacterNumeric code paired with place_season_end (7 for Europa League, 4 for Champions League, 9 for Relegation); an empty string when no end-of-season label applies.
place_season_endcharacterEnd-of-season outcome CBS attaches to the team's finishing position on the soccer standings shape, e.g. Champions League, Europa League Qualifying, Relegation Playoffs; an empty string when the finish carries no label.
place_placeintegerPosition the team occupies in the standings table it is ranked within, 1 being top.
clinch_status_idintegerNumeric code for the qualification or clinch status CBS assigns the team on the soccer standings shape, paired with clinch_status_status.
clinch_status_statuscharacterQualification or clinch status spelled out on the soccer standings shape, e.g. Advanced to Knockout Stage or Europa League.
team_info_display_namecharacterDisplay name CBS uses for the team on the soccer standings shape, e.g. Arsenal.
team_info_namecharacterNickname portion of the team's name on the soccer standings shape; an empty string for the soccer clubs, which carry their identity in team_info_display_name.
team_info_aliascharacterShort alias CBS uses for the team on the soccer standings shape, e.g. ARS.
team_info_locationcharacterLocation portion of the team's name on the soccer standings shape, which for many clubs repeats the club name rather than a city.
team_info_idintegerCBS team identifier carried on the soccer standings shape's team-info block; league-scoped rather than global, and paired with team_info_global_id.
team_info_global_idintegerCBS global team identifier on the soccer standings shape, stable across leagues and seasons where team_info_id is not.
season_season_idintegerCBS season identifier for the standings row, an eight-digit id on modern rows (29444245 for the 2025 NFL regular season) and a small legacy number on the oldest ones.
season_sport_idintegerCBS sport identifier for the season (1 football, 2 baseball, 3 basketball, 4 hockey, 5 soccer).
season_league_idintegerCBS league identifier for the season, e.g. 59 for the NFL, 60 for the NHL, 52 for MLB.
season_leaguecharacterLeague record nested inside the season block; CBS returns it as null on every captured standings payload.
season_teamscharacterTeam list nested inside the season block; CBS returns it as an empty array on standings payloads, JSON-encoded to [].
season_season_yearintegerCalendar year CBS keys the season by, matching the year key the standings block was nested under.
season_is_currentintegerFlag marking the season as the one currently under way (1 current, 0 historical).
season_season_typecharacterPortion of the season the row covers, one of pre, regular or post.
season_season_type_desccharacterHuman-readable label for season_season_type, e.g. Regular season.
season_season_start_datecharacterFirst day of the season formatted MM-DD-YYYY HH:MM:SS with a UTC offset, e.g. 09-04-2025 00:00:00 -0400.
season_season_end_datecharacterLast day of the season in the same MM-DD-YYYY HH:MM:SS plus UTC-offset format, e.g. 01-04-2026 23:59:59 -0500.
goal_differential_differentialintegerGoals scored minus goals conceded, on the soccer standings shape.
clinched_division_clinched_idintegerNumeric mirror of clinched_division_clinched (1 clinched, 0 not).
clinched_division_clinchedcharacterWhether the team has clinched its division.
team_code_idintegerLeague-scoped team code on the US-league standings shape, a small per-league sequence (3 for the Angels, 34 for the Texans) rather than the global id.
team_code_global_idintegerCBS global team identifier on the US-league standings shape, e.g. 227 for the Angels and 325 for the Texans.
team_city_citycharacterCity CBS attributes the team to on the US-league standings shape, e.g. Houston.
clinched_playoff_spot_clinched_idintegerNumeric mirror of clinched_playoff_spot_clinched (1 clinched, 0 not).
clinched_playoff_spot_clinchedcharacterWhether the team has clinched a playoff berth, on the MLB standings shape.
games_back_numbercharacterGames behind the leader of the team's standings group; typed as text because CBS emits a dash on rows where it does not compute one.
division_rank_tiedcharacterWhether the team's division rank is shared with another team.
division_rank_rankintegerTeam's rank within its division, 1 being best.
division_rank_tied_idintegerNumeric mirror of division_rank_tied (1 tied, 0 not).
streak_kindcharacterDirection of the team's current run when CBS returns a single streak object, e.g. winning or losing (the NHL returns an array instead, kept in the streak column).
streak_gamesintegerLength in games of the current run described by streak_kind.
wild_card_rank_tiedcharacterWhether the team's wild-card rank is shared with another team.
wild_card_rank_rankintegerTeam's rank in the wild-card race, on the MLB and NHL standings shapes.
wild_card_rank_tied_idintegerNumeric mirror of wild_card_rank_tied (1 tied, 0 not).
today_games_included_throughcharacterWhether the standings figures already account for games played today.
today_games_included_through_idintegerNumeric mirror of today_games_included_through (1 included, 0 not).
eliminated_from_playoffs_eliminatedcharacterWhether the team has been eliminated from playoff contention.
wc_games_back_numbercharacterGames behind the last wild-card position, on the MLB standings shape.
team_name_namecharacterNickname CBS uses for the team on the US-league standings shape, e.g. Texans or Angels.
team_name_aliascharacterShort alias for the team on the US-league standings shape, e.g. Hou or LAA.
elimination_number_numbercharacterElimination number for the team, the combined team losses and rival wins that would end its contention; 0 once the outcome is settled, and typed as text because CBS emits an empty string where it does not compute one.
wc_elimination_number_numberintegerElimination number for the team's wild-card contention specifically, on the MLB standings shape.
runs_allowedintegerRuns the team conceded, on the MLB standings shape.
runs_scoredintegerRuns the team scored, on the MLB standings shape.
league_rank_tiedcharacterWhether the team's league rank is shared with another team.
league_rank_rankintegerTeam's rank across the whole league, 1 being best.
league_rank_tied_idintegerNumeric mirror of league_rank_tied (1 tied, 0 not).
place_conference_rankintegerRank the team holds within its conference, carried on the place block of the MLS standings shape.
place_division_rankcharacterRank the team holds within its division, carried on the place block of the MLS standings shape; an empty string for leagues or seasons without divisions.
conference_conference_idintegerCBS conference identifier for the team's conference, paired with the conference name and abbreviation on the same block.
conference_namecharacterFull conference name.
conference_abbreviationcharacterConference abbreviation.
basketball_nba_playoffs_indicatorcharacterJSON-encoded array of the NBA clinching markers CBS attaches to the team, each an object with a type such as clinched-playoffs, division-first or conference-first.
points_for_per_game_pointsnumericPoints the team scored per game, on the NBA standings shape, e.g. 120.5.
magic_number_numbercharacterMagic number CBS publishes for the team's clinching scenario; 0 or negative once the scenario no longer applies to a clinched team, and an empty string on rows where CBS computes none (preseason blocks).
conference_games_back_gamesintegerGames behind the conference leader, on the NBA standings shape.
points_against_per_game_pointsnumericPoints the team conceded per game, on the NBA standings shape, e.g. 107.6.
conference_seed_seedcharacterTeam's current seeding within its conference bracket.
conference_eos_seed_seedintegerTeam's end-of-season conference seed, CBS's settled bracket position once the regular season is complete.
points_forcharacterGoals/points scored.
points_againstcharacterPoints allowed.
won_conference_tournament_wonlogicalWhether the team won its conference tournament, on the NCAA standings shape.
rpi_rankintegerTeam's national rank by the rpi_rpi rating, 1 being best.
rpi_rpicharacterRatings Percentage Index for the team on the NCAA standings shape, a leading-dot four-decimal string such as .4021.
sequence_sequenceintegerSort position CBS assigns the team within its standings group; it tracks place_place closely but can sit one higher where teams are tied.
clinched_conference_clinchedlogicalWhether the team has clinched its conference.
college_code_idintegerCBS college identifier for the school on the NCAA standings shape, e.g. 2120 for USC Upstate.
ineligible_ineligiblelogicalWhether the team is ineligible for postseason play, on the NCAA standings shape.
sos_soscharacterStrength-of-schedule rating on the NCAA standings shape, a leading-dot four-decimal string such as .4528.
sos_rankintegerTeam's rank by the sos_sos rating, 1 being the toughest schedule.
college_name_namecharacterSchool name CBS uses on the NCAA standings shape, e.g. USC Upstate.
ranking_rankingintegerPoll ranking CBS carries for the team on the NCAA standings shape; 0 across the captured rows, which is CBS's stand-in for unranked.
net_ranking_rankintegerTeam's NET ranking on the NCAA basketball standings shape, 1 being best.
conference_games_back_numberintegerGames behind the conference leader, on the NCAA standings shape, where CBS names the same quantity number rather than games.
ranking_playoff_rankingintegerPlayoff-committee ranking CBS carries for the team on the NCAA football standings shape; 0 across the captured rows, which is CBS's stand-in for unranked.
clinched_playoffs_clinchedlogicalWhether the team has clinched a playoff berth, on the NFL standings shape.
strength_of_schedule_rankcharacterTeam's rank by strength of schedule on the NFL standings shape; typed as text because CBS emits a dash on rows where it publishes none.
points_for_numberintegerPoints the team scored, on the NFL standings shape.
points_against_numberintegerPoints the team conceded, on the NFL standings shape.
clinched_home_field_clinchedlogicalWhether the team has clinched home-field advantage through the playoffs, on the NFL standings shape.
clinched_first_round_bye_clinchedcharacterWhether the team has clinched a first-round playoff bye, on the NFL standings shape.
contentcharacterRaw markup fragment CBS emits on some NFL standings blocks; the captured rows carry only the string /> and it holds no standings meaning.
clinched_playoffs_date_dateintegerDay of the month on which the team clinched a playoff berth.
clinched_playoffs_date_monthintegerMonth of the date on which the team clinched a playoff berth, 1 through 12.
clinched_playoffs_date_yearintegerYear of the date on which the team clinched a playoff berth, on the NFL standings shape.
clinched_playoffs_date_dayintegerDay-of-week component CBS emits alongside the clinch date; the one captured NFL row pairs 6 with Saturday 12-27-2025, an ISO Monday-is-1 index.
overtime_losses_numberintegerLosses the team took in overtime, on the NHL standings shape.
regulation_plus_overtime_wins_numberintegerWins the team earned in regulation or overtime, excluding shootout wins, on the NHL standings shape.
shootout_losses_numberintegerLosses the team took in a shootout, on the NHL standings shape.
overtime_wins_numberintegerWins the team earned in overtime, on the NHL standings shape.
team_points_numberintegerStandings points the team has accumulated on the NHL shape (two per win, one per overtime or shootout loss).
shootout_wins_numberintegerWins the team earned in a shootout, on the NHL standings shape.
team_city_alternatecharacterAlternate city spelling CBS carries for the team on the NHL standings shape, which usually repeats team_city_city.
hockey_nhl_conference_ranking_rankingcharacterTeam's ranking within its NHL conference; typed as text because CBS emits both integers and zero-padded strings such as 05.
hockey_nhl_playoffs_indicator_typecharacterSingle NHL clinching marker for rows where CBS sends one object rather than an array, e.g. clinched-playoffs.
regulation_wins_numberintegerWins the team earned in regulation time, on the NHL standings shape.
hockey_nhl_playoffs_indicatorcharacterJSON-encoded array of the NHL clinching markers CBS attaches to the team, each an object with a type such as clinched-playoffs, division-first, conference-first or presidents' trophy; rows where CBS sends a single object instead land in hockey_nhl_playoffs_indicator_type.

return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

cbs_team_standings(team_id=404)

Last validated n/a.

cbs_team_standings_sportsline​

Get SportsLine standings for a particular team.

Endpoint URL: GET https://api.cbssports.com/napi/resource/team/standings/sportsline/{team_id}

Valid URL: https://api.cbssports.com/napi/resource/team/standings/sportsline/404

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYNumerical team ID
dateFormatdate_formatYOptional. Options here: http://momentjs.com/docs/#/displaying/format/

Returns​

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_cbs_napi); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

cbs_team_standings_sportsline(team_id=404)

Last validated n/a.

cbs_team_stats​

Get all statistics for a team.

Endpoint URL: GET https://api.cbssports.com/napi/resource/team/stats/{team_id}

Valid URL: https://api.cbssports.com/napi/resource/team/stats/404

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYNumerical team ID
seasonYearseason_yearYView option. Filter by seasonYear.
seasonTypeseason_typeYView option. Filter by seasonType. Allowed: regular, pre, post.
seasonIdseason_idYView option. Filter by seasonId.
isCurrentis_currentYView option. Only show stats for seasons where isCurrent is true. Allowed: 1.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_cbs_napi); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

cbs_team_stats(team_id=404)

Last validated n/a.