Skip to contents

Get ESPN MLB's Betting information

Usage

espn_mlb_betting(game_id)

Arguments

game_id

Game ID

Value

Returns a named list of data frames: pickcenter, againstTheSpread, predictor

pickcenter

col_nametypesdescription
detailscharacterDetails.
over_undernumericOver under.
spreadnumericSpread.
provider_idintegerUnique identifier for provider.
provider_namecharacterProvider name.
provider_priorityintegerProvider priority.
away_team_odds_favoritelogicalAway team's team odds favorite.
away_team_odds_underdoglogicalAway team's team odds underdog.
away_team_odds_money_lineintegerAway team's team odds money line.
away_team_odds_spread_oddsnumericAway team's team odds spread odds.
away_team_odds_team_idintegerUnique identifier for away team odds team.
away_team_odds_win_percentagenumericAway team odds win percentage (0-1 decimal).
away_team_odds_average_scorenumericAway team's team odds average score.
away_team_odds_money_line_oddsnumericAway team's team odds money line odds.
away_team_odds_spread_returnnumericAway team's team odds spread return.
away_team_odds_spread_record_winsintegerAway team's team odds spread record wins.
away_team_odds_spread_record_lossesintegerAway team's team odds spread record losses.
away_team_odds_spread_record_pushesintegerAway team's team odds spread record pushes.
away_team_odds_spread_record_summarycharacterAway team's team odds spread record summary.
home_team_odds_favoritelogicalHome team's team odds favorite.
home_team_odds_underdoglogicalHome team's team odds underdog.
home_team_odds_money_lineintegerHome team's team odds money line.
home_team_odds_spread_oddsnumericHome team's team odds spread odds.
home_team_odds_team_idintegerUnique identifier for home team odds team.
home_team_odds_win_percentagenumericHome team odds win percentage (0-1 decimal).
home_team_odds_average_scorenumericHome team's team odds average score.
home_team_odds_money_line_oddsnumericHome team's team odds money line odds.
home_team_odds_spread_returnnumericHome team's team odds spread return.
home_team_odds_spread_record_winsintegerHome team's team odds spread record wins.
home_team_odds_spread_record_lossesintegerHome team's team odds spread record losses.
home_team_odds_spread_record_pushesintegerHome team's team odds spread record pushes.
home_team_odds_spread_record_summarycharacterHome team's team odds spread record summary.
game_idintegerUnique game identifier.

againstTheSpread

col_nametypesdescription
idintegerId.
uidcharacterESPN UID string (universal identifier).
display_namecharacterDisplay name.
abbreviationcharacterShort abbreviation.
logocharacterTeam or league logo URL.
logoslistLogos.
recordslistRecords.
game_idintegerUnique game identifier.
team_idintegerUnique team identifier.

predictor

col_nametypesdescription
game_idintegerUnique game identifier.
home_team_idintegerUnique identifier for the home team.
away_team_idintegerUnique identifier for the away team.
away_team_game_projectionnumericAway team's team game projection.
away_team_chance_lossnumericAway team's team chance loss.

See also

Other ESPN MLB Functions: espn_mlb, espn_mlb_athletes_index(), espn_mlb_award(), espn_mlb_calendar(), espn_mlb_coach(), espn_mlb_coach_record(), espn_mlb_coach_season(), espn_mlb_coaches(), espn_mlb_conferences(), espn_mlb_draft(), espn_mlb_draft_athlete_detail(), espn_mlb_draft_athletes(), espn_mlb_draft_pick(), espn_mlb_draft_rounds(), espn_mlb_draft_status(), espn_mlb_franchise(), espn_mlb_franchises(), espn_mlb_freeagents(), espn_mlb_futures(), espn_mlb_game_all(), espn_mlb_game_broadcasts(), espn_mlb_game_endpoints, espn_mlb_game_info(), espn_mlb_game_odds(), espn_mlb_game_official_detail(), espn_mlb_game_officials(), espn_mlb_game_play(), espn_mlb_game_play_personnel(), espn_mlb_game_player_box(), espn_mlb_game_powerindex(), espn_mlb_game_predictor(), espn_mlb_game_probabilities(), espn_mlb_game_probables(), espn_mlb_game_propbets(), espn_mlb_game_rosters(), espn_mlb_game_situation(), espn_mlb_game_team_leaders(), espn_mlb_game_team_linescores(), espn_mlb_game_team_records(), espn_mlb_game_team_roster(), espn_mlb_game_team_roster_entry(), espn_mlb_game_team_score(), espn_mlb_game_team_statistics(), espn_mlb_injuries(), espn_mlb_leaders(), espn_mlb_news(), espn_mlb_pbp(), espn_mlb_player_awards(), espn_mlb_player_box(), espn_mlb_player_career_stats(), espn_mlb_player_contract(), espn_mlb_player_contracts(), espn_mlb_player_endpoints, espn_mlb_player_eventlog(), espn_mlb_player_eventlog_v2(), espn_mlb_player_gamelog(), espn_mlb_player_info(), espn_mlb_player_overview(), espn_mlb_player_seasons(), espn_mlb_player_splits(), espn_mlb_player_statisticslog(), espn_mlb_player_stats(), espn_mlb_player_stats_v3(), espn_mlb_position(), espn_mlb_positions(), espn_mlb_powerindex(), espn_mlb_scoreboard(), espn_mlb_season_awards(), espn_mlb_season_draft(), espn_mlb_season_group(), espn_mlb_season_group_children(), espn_mlb_season_group_teams(), espn_mlb_season_groups(), espn_mlb_season_info(), espn_mlb_season_leaders(), espn_mlb_season_ranking(), espn_mlb_season_rankings(), espn_mlb_season_type(), espn_mlb_season_types(), espn_mlb_season_week(), espn_mlb_season_weeks(), espn_mlb_seasons(), espn_mlb_standings(), espn_mlb_team(), espn_mlb_team_box(), espn_mlb_team_current_roster(), espn_mlb_team_depthchart(), espn_mlb_team_endpoints, espn_mlb_team_injuries(), espn_mlb_team_leaders(), espn_mlb_team_news(), espn_mlb_team_odds_records(), espn_mlb_team_record(), espn_mlb_team_record_detail(), espn_mlb_team_roster(), espn_mlb_team_schedule(), espn_mlb_team_season_profile(), espn_mlb_team_season_roster(), espn_mlb_team_season_statistics(), espn_mlb_team_stats(), espn_mlb_teams(), espn_mlb_tournament(), espn_mlb_tournament_season(), espn_mlb_tournament_seasons(), espn_mlb_tournaments(), espn_mlb_transactions(), espn_mlb_venues(), espn_mlb_week_ranking(), espn_mlb_week_rankings(), espn_mlb_wp()

Examples

# \donttest{
try(espn_mlb_betting(game_id = 401283399))
#>  2026-06-08 11:07:31.487973: Invalid arguments or no betting data available!
#>  Args: game_id = 401283399
#>  Error: The API returned an error, HTTP Response Code 404
#> $pickcenter
#> data frame with 0 columns and 0 rows
#> 
#> $againstTheSpread
#> data frame with 0 columns and 0 rows
#> 
#> $predictor
#> data frame with 0 columns and 0 rows
#> 
# }