Skip to main content

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

cbs_game_betting_splits​

Get a BettingSplits resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/bettingSplits/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/bettingSplits

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_betting_splits()

Last validated n/a.

cbs_game_boxscore​

Get boxscore resource

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/boxscore/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/boxscore

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_boxscore()

Last validated n/a.

cbs_game_content_preview​

Get content for game preview

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/content/preview/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/content/preview

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_content_preview()

Last validated n/a.

cbs_game_content_recap​

Get content for game recap

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/content/recap/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/content/recap

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_content_recap()

Last validated n/a.

cbs_game_content_story​

Get content for game story

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/content/story/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/content/story

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game ID
gameIdsStoryTagsgame_ids_story_tagsYThe tags used to retrieve stories

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_game_content_story()

Last validated n/a.

Get a FeaturedGame resource.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/featured/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/featured

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game ID

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.

cbs_game_featured()

Last validated n/a.

cbs_game_lineup​

Get a lineup resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/lineup/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/lineup

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game ID
resourcesresourcesYSpecify specific sub-resources to resolve. Defaults to none. Allowed: playerTeamAssociations, injuries, metaData, playerStats.

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_game_lineup()

Last validated n/a.

cbs_game_odds​

Get an odds resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/odds/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/odds

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game ID
marketIdsmarket_idsYThis value can be used to specify markets, using the marketIds.
bookIdsbook_idsYThis value can be used to specify books, using the bookIds.
statestateYThis value can be used to specify a state.
modelmodelYThis value can be used set the model to be used
showHiddenOddsshow_hidden_oddsYIf set to 1, show the odds that has been hidden within the market and/or consensus nodes

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_game_odds()

Last validated n/a.

cbs_game_odds_hq​

Get an HQ odds resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/odds/hq/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/odds/hq

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_odds_hq()

Last validated n/a.

cbs_game_outcomes​

Get an odds outcome for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/outcomes/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/outcomes

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_outcomes()

Last validated n/a.

cbs_game_probable_players​

Get a list of players who are probably playing in a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/probablePlayers/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/probablePlayers

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game ID
dateFormatdate_formatYOptional. Options here: http://momentjs.com/docs/#/displaying/format/
resourcesresourcesYSpecify specific sub-resources to resolve. Defaults to none. Allowed: player, playerTeamAssociations, injuries, transactions, depthCharts, metaData.

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_game_probable_players()

Last validated n/a.

cbs_game_props​

Get game props for a game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/props/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/props

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game ID
marketIdsmarket_idsYThis value can be used to specify markets, using the marketIds.
bookIdsbook_idsYThis value can be used to specify books, using the bookIds.
propBetTypesprop_bet_typesYThis value can be used to specify prop bet types, using the propBetTypes. Allowed: player, game, team.
statestateYThis value can be used to specify a state.
includeInactiveMarketsinclude_inactive_marketsYThis value can be used to filter out inactive markets.

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_game_props()

Last validated n/a.

cbs_game_rtwp​

Get a rtwp resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/rtwp/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/rtwp

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_rtwp()

Last validated n/a.

cbs_game_ruwt_highlights​

Get the RUWT highlights resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/ruwtHighlights/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/ruwtHighlights

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_ruwt_highlights()

Last validated n/a.

cbs_game_scoring_boxscores​

Get an scoring box scores resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/scoring/boxscores/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/scoring/boxscores

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_scoring_boxscores()

Last validated n/a.

cbs_game_scoring_drives​

Get a drives resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/scoring/drives/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/scoring/drives

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game ID

Returns​

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

col_nametypedescription
idintegerCBS drive number within the game; joins drive_id of the scoring-plays frame.
team_idintegerCBS team id of the offense on the drive.
quarterintegerPeriod in which the drive started.
starting_timecharacterGame clock (m:ss) at the drive's first snap.
ending_timecharacterGame clock (m:ss) at the drive's last play.
time_of_possessioncharacterDrive duration as m:ss.
starting_yardlinecharacterField position where the drive started, team abbreviation plus yard line (e.g. TEXAS 22).
ending_yardlinecharacterField position where the drive ended, team abbreviation plus yard line (e.g. TEXAS 18).
starting_play_idintegerCBS play id of the drive's first play; joins id of the scoring-plays frame.
ending_play_idintegerCBS play id of the drive's last play; joins id of the scoring-plays frame.
drive_playsintegerNumber of plays CBS counts in the drive.
yards_on_driveintegerNet yards gained on the drive.
drive_yards_totalintegerTotal drive yardage as CBS reports it, penalties included.
penalty_yardsintegerPenalty yards assessed on the drive.
first_downs_on_driveintegerFirst downs gained on the drive.
inside_the_20logicalTrue when the drive reached the opponent's 20-yard line (CBS "Yes"/"No" flag).
score_on_drivelogicalTrue when the drive produced a score (CBS "Yes"/"No" flag).
resultcharacterDrive outcome label from CBS (Punt, Touchdown, Field Goal, Downs, Fumble, End of Half, ...).

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

Example​

cbs_game_scoring_drives()

Last validated n/a.

cbs_game_scoring_leaders​

Get an scoring leaders resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/scoring/leaders/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/scoring/leaders

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_scoring_leaders()

Last validated n/a.

cbs_game_scoring_player_stats​

Get an scoring player stats resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/scoring/playerStats/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/scoring/playerStats

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_scoring_player_stats()

Last validated n/a.

cbs_game_scoring_plays​

Get an scoring plays resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/scoring/plays/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/scoring/plays

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game ID

Returns​

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

col_nametypedescription
idintegerCBS play id; the GSIS play id for NFL games, an epoch-style stamp for NCAAF games.
game_idintegerCBS game id (null for older games, which lack it).
drive_idintegerCBS drive number within the game; joins id of the scoring-drives frame.
quarterintegerPeriod of the snap.
time_remainingcharacterGame clock (m:ss) at the snap.
downintegerDown at the snap; 0 on kickoffs and tries.
distancecharacterYards to go for a first down, or the literal "Goal" on goal-to-go downs.
sidecharacterTeam abbreviation naming the half of the field that yardline refers to.
yardlineintegerYard line of the ball on the side team's half of the field.
team_in_possessionintegerCBS team id with the ball at the snap.
descriptioncharacterFull CBS play text, including tacklers and spots.
mediumcharacterMedium-length play summary (e.g. "J. Sayin pass to M. Williams for 6 yds").
shortcharacterShort play summary (e.g. "6 yd pass").
score_on_playlogicalTrue when the play scored (CBS "Yes"/"No" flag).
score_typecharacterScoring type for a scoring play (Touchdown, FieldGoal, ...); null otherwise.
short_scorecharacterShort scoring summary; empty string when the play did not score.
under_reviewlogicalTrue when the play was under replay review (CBS "Yes"/"No" flag).
home_timeouts_remainingintegerHome team's timeouts left after the play (null for older games, which lack it).
away_timeouts_remainingintegerAway team's timeouts left after the play (null for older games, which lack it).
real_clockcharacterUTC wall-clock timestamp of the play in ISO 8601 (null for older games, which lack it).
subplayscharacterSub-events of the play as a list of structs: type, order, and the event fields (player ids and names, yards_on_play, yards_to_endzone, team_in_possession).

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

Example​

cbs_game_scoring_plays()

Last validated n/a.

cbs_game_scoring_rosters​

Get an scoring rosters resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/scoring/rosters/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/scoring/rosters

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_scoring_rosters()

Last validated n/a.

cbs_game_scoring_scoreboard​

Get an scoring scoreboard resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/scoring/scoreboard/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/scoring/scoreboard

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_scoring_scoreboard()

Last validated n/a.

cbs_game_scoring_scores​

Get an scoring scores resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/scoring/scores/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/scoring/scores

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_scoring_scores()

Last validated n/a.

cbs_game_scoring_team_stats​

Get an scoring team stats resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/scoring/teamStats/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/scoring/teamStats

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_scoring_team_stats()

Last validated n/a.

cbs_game_scoring_winprob​

Get an scoring winprob resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/scoring/winprob/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/scoring/winprob

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_scoring_winprob()

Last validated n/a.

cbs_game_scoring_ytd_player_stats​

Get an scoring YTD player stats resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/scoring/ytdPlayerStats/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/scoring/ytdPlayerStats

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_scoring_ytd_player_stats()

Last validated n/a.

cbs_game_scoring_ytd_team_stats​

Get an scoring YTD team stats resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/scoring/ytdTeamStats/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/scoring/ytdTeamStats

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_scoring_ytd_team_stats()

Last validated n/a.

cbs_game_ticket​

Get a ticket resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/ticket/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/ticket

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_ticket()

Last validated n/a.

cbs_game_weather​

Get a Weather resource for a particular game.

Endpoint URL: GET https://api.cbssports.com/napi/resource/game/weather/{game_id}

Valid URL: https://api.cbssports.com/napi/resource/game/weather

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYNumerical game 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_game_weather()

Last validated n/a.