Skip to main content

MLB — ESPN CDN API (cdn.espn.com)

sportsdataverse.mlb — 4 endpoints.

espn_mlb_cdn_playbyplay​

One game's espn.com play-by-play page data. The gamepackageJSON block is a Site v2 summary (header, boxscore, plays or drives, win probability, ...), so the parsed result is the same dict of frames that parse_summary returns.

Endpoint URL: GET https://cdn.espn.com/core/mlb/playbyplay

Valid URL: https://cdn.espn.com/core/mlb/playbyplay?xhr=1&gameId=401696358

API ParameterPythonPatternRequiredNullableDescription
gameIdgame_idYESPN game (event) id.

Returns​

return_parsed=True (default) — a dict of polars.DataFrames keyed by summary section (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

boxscore_player

col_nametypedescription
team_idInt64Team id.
team_abbreviationStringTeam abbreviation.
team_display_nameStringTeam display name.
team_locationStringTeam location.
athlete_idInt64Athlete id.
athlete_display_nameStringAthlete display name.
athlete_short_nameStringAthlete short name.
athlete_jerseyStringAthlete jersey.
athlete_positionStringAthlete position.
starterBooleanStarter.
activeBooleanActive.
did_not_playStringDid not play.
ejectedStringEjected.
reasonStringReason.
hits_at_batsStringHitting performance ratio expressed as hits divided by at-bats for the player in the box score.
at_batsStringAt bats.
runsStringRuns scored.
hitsStringHits.
rb_isStringRuns batted in and other secondary hitting statistics for the player in the box score.
home_runsStringHome runs.
walksStringNumber of base-on-balls (walks) recorded by the player in the box score.
strikeoutsStringNumber of strikeouts recorded by the player, either as a batter or pitcher, in the box score.
pitchesStringTotal number of pitches thrown or faced by the player in the box score.
avgStringBatting average.
on_base_pctStringPercentage of plate appearances in which the player reached base safely in the game.
slug_avgStringSlugging average reflecting the total bases per at-bat recorded by the player in the box score.
full_innings.part_inningsStringInnings pitched expressed as full innings and fractional partial innings for the pitcher in the box score.
earned_runsStringEarned runs allowed.
pitches_strikesStringCombined count of pitches thrown and strikes recorded for the pitcher in the box score.
eraStringEarned run average.

boxscore_team

col_nametypedescription
team_idInt64Team id.
team_abbreviationStringTeam abbreviation.
team_display_nameStringTeam display name.
home_awayStringHome away.
display_orderInt64Display order.
stat_nameStringStat name.
stat_labelStringStat label.
stat_display_valueStringStat display value.
stat_valueStringStat value.

plays

col_nametypedescription
idInt64Id.
sequence_numberStringSequence number.
textStringText.
away_scoreInt64Away score.
home_scoreInt64Home score.
scoring_playBooleanScoring play.
score_valueInt64Score value.
wallclockStringWallclock.
at_bat_idInt64Identifier of the at-bat the play belongs to.
summary_typeStringPlay summary type.
outsInt64Outs in the inning after the play.
type_idInt64Type id.
type_textStringType text.
type_typeStringPlay type category.
period_typeStringPeriod type ('inning').
period_numberInt64Period number.
period_display_valueStringPeriod display value.
team_idInt64Team id.
pitch_count_ballsInt64Balls in the count when the pitch was thrown.
pitch_count_strikesInt64Strikes in the count when the pitch was thrown.
result_count_ballsInt64Balls in the count after the pitch.
result_count_strikesInt64Strikes in the count after the pitch.
participantsStringParticipants.
bat_orderFloat64Spot in the batting order (1-9; NA if not applicable).
type_alternative_textStringAlternative play type text.
bats_typeStringBats type.
bats_abbreviationStringBats abbreviation.
bats_display_valueStringBats display value.
at_bat_pitch_numberFloat64Pitch number within the at-bat.
pitch_velocityFloat64Pitch velocity (mph).
trajectoryStringBatted-ball trajectory.
type_abbreviationStringPlay type abbreviation.
pitch_coordinate_xFloat64Pitch location x-coordinate.
pitch_coordinate_yFloat64Pitch location y-coordinate.
pitch_type_idInt64Pitch type identifier.
pitch_type_textStringPitch type description (e.g. 'Four-seam FB').
pitch_type_abbreviationStringPitch type abbreviation.
hit_coordinate_xFloat64Batted-ball location x-coordinate.
hit_coordinate_yFloat64Batted-ball location y-coordinate.
alternative_playStringAlternative play flag.
alternative_type_idInt64Alternative play type id.
alternative_type_textStringAlternative play type text.
alternative_type_abbreviationStringAlternative play type abbreviation.
alternative_type_alternative_textStringAlternative type alternative text.
alternative_type_typeStringAlternative play type category.
on_first_athlete_idInt64Athlete id of the runner on first base.
on_second_athlete_idInt64Athlete id of the runner on second base.
on_third_athlete_idInt64Athlete id of the runner on third base.

winprobability

col_nametypedescription
home_win_percentageFloat64Home win percentage.
tie_percentageFloat64Tie percentage.
play_idInt64Play id.

game_info

col_nametypedescription
attendanceInt64Attendance.
venue_idInt64Venue id.
venue_full_nameStringVenue full name.
venue_short_nameStringVenue short name.
venue_address_cityStringVenue address city.
venue_address_stateStringVenue address state.
venue_address_zip_codeStringPostal zip code of the venue where the game was played.

officials

col_nametypedescription
display_nameStringDisplay name.
orderInt64Order.
position_nameStringPosition name.
position_display_nameStringPosition display name.
position_idInt64Position id.

header

col_nametypedescription
idInt64Id.
uidStringUid.
time_validBooleanTime valid.
competitionsStringCompetitions.
linksStringLinks.
game_noteStringOptional editorial note or context annotation attached to the game in the header.
season_yearInt64Season year.
season_currentBooleanSeason current.
season_typeInt64Season type.
league_idInt64League id.
league_uidStringLeague uid.
league_nameStringLeague name.
league_abbreviationStringLeague abbreviation.
league_midsize_nameStringMedium-length display name for the league or competition as shown in the game header.
league_slugStringLeague slug.
league_is_tournamentBooleanLeague is tournament.
league_linksStringLeague links.
league_logosStringLeague logos.

season_series

col_nametypedescription
typeStringType.
titleStringTitle.
descriptionStringDescription.
summaryStringSummary.
completedBooleanCompleted.
total_competitionsInt64Total competitions.
series_scoreStringSeries score.
eventsStringEvents.
series_labelStringSeries label.
short_summaryStringShort summary.
roundStringDraft round number.

standings

col_nametypedescription
group_headerStringGroup header.
conference_headerStringConference header.
division_headerStringDivision header.
team_idInt64Team id.
team_uidStringTeam uid.
team_locationStringTeam location.
games_behindStringGames behind.
lossesStringLosses.
streakStringStreak.
win_percentStringWin percent.
winsStringWins.

broadcasts

col_nametypedescription
stationString
station_keyStringMachine-readable key identifying the broadcasting station airing the game.
langString
regionStringRegion label.
is_nationalBooleanBoolean flag indicating whether the broadcast is a nationally distributed feed.
type_idInt64Type id.
type_short_nameString
type_long_nameString
type_slugString
market_idInt64ESPN futures-market identifier.
market_typeStringMarket type code (winLeague, winConference, winDivision, ...).
media_call_lettersString
media_nameString
media_short_nameString

format

col_nametypedescription
regulation_periodsInt64Regulation periods.
regulation_display_nameStringRegulation display name.
regulation_slugStringRegulation slug.

article

col_nametypedescription
idInt64Id.
now_idStringNow id.
content_keyStringContent key.
data_source_identifierStringData source identifier.
publishedkeyStringPublishedkey.
typeStringType.
game_idInt64Game id.
headlineStringHeadline.
descriptionStringDescription.
link_textStringLink text.
categorizedStringCategorized.
originally_postedStringOriginally posted.
last_modifiedStringLast modified.
publishedStringPublished.
sectionStringSection.
sourceStringSource.
imagesStringImages.
videoStringVideo.
categoriesStringCategories.
keywordsStringKeywords.
storyStringStory.
premiumBooleanPremium.
is_live_blogBooleanIs live blog.
allow_commentsBooleanAllow comments.
allow_searchBooleanAllow search.
allow_content_reactionsBooleanAllow content reactions.
links_web_hrefStringLinks web href.
links_mobile_hrefStringLinks mobile href.
links_api_self_hrefStringLinks api self href.
links_app_sportscenter_hrefStringLinks app sportscenter href.

injuries

col_nametypedescription
injuriesStringInjuries.
team_idInt64Team id.
team_uidStringTeam uid.
team_display_nameStringTeam display name.
team_abbreviationStringTeam abbreviation.
team_linksStringTeam links.
team_logoStringTeam logo.
team_logosStringTeam logos.

news

col_nametypedescription
idInt64Id.
now_idStringNow id.
content_keyStringContent key.
data_source_identifierStringData source identifier.
typeStringType.
headlineStringHeadline.
descriptionStringDescription.
last_modifiedStringLast modified.
publishedStringPublished.
imagesStringImages.
categoriesStringCategories.
premiumBooleanPremium.
links_web_hrefStringLinks web href.
links_mobile_hrefStringLinks mobile href.
links_api_self_hrefStringLinks api self href.
links_app_sportscenter_hrefStringLinks app sportscenter href.
links_web_self_hrefStringURL for the canonical web page of the associated article or editorial content.
links_web_self_dsi_hrefStringData-source-identified URL for the web page of the associated article content.
links_api_artwork_hrefStringAPI endpoint URL for artwork or imagery associated with the article.
links_sportscenter_hrefStringURL for the article's page on ESPN's SportsCenter platform.

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

Raises​

ExceptionDescription
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​

espn_mlb_cdn_playbyplay(game_id='401696358')

espn_mlb_cdn_boxscore​

One game's espn.com box-score page data, parsed like a Site v2 summary. For football the drives and scoring plays are only on the playbyplay page.

Endpoint URL: GET https://cdn.espn.com/core/mlb/boxscore

Valid URL: https://cdn.espn.com/core/mlb/boxscore?xhr=1&gameId=401696358

API ParameterPythonPatternRequiredNullableDescription
gameIdgame_idYESPN game (event) id.

Returns​

return_parsed=True (default) — a dict of polars.DataFrames keyed by summary section (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

boxscore_player

col_nametypedescription
team_idInt64Team id.
team_abbreviationStringTeam abbreviation.
team_display_nameStringTeam display name.
team_locationStringTeam location.
athlete_idInt64Athlete id.
athlete_display_nameStringAthlete display name.
athlete_short_nameStringAthlete short name.
athlete_jerseyStringAthlete jersey.
athlete_positionStringAthlete position.
starterBooleanStarter.
activeBooleanActive.
did_not_playStringDid not play.
ejectedStringEjected.
reasonStringReason.
hits_at_batsStringHitting performance ratio expressed as hits divided by at-bats for the player in the box score.
at_batsStringAt bats.
runsStringRuns scored.
hitsStringHits.
rb_isStringRuns batted in and other secondary hitting statistics for the player in the box score.
home_runsStringHome runs.
walksStringNumber of base-on-balls (walks) recorded by the player in the box score.
strikeoutsStringNumber of strikeouts recorded by the player, either as a batter or pitcher, in the box score.
pitchesStringTotal number of pitches thrown or faced by the player in the box score.
avgStringBatting average.
on_base_pctStringPercentage of plate appearances in which the player reached base safely in the game.
slug_avgStringSlugging average reflecting the total bases per at-bat recorded by the player in the box score.
full_innings.part_inningsStringInnings pitched expressed as full innings and fractional partial innings for the pitcher in the box score.
earned_runsStringEarned runs allowed.
pitches_strikesStringCombined count of pitches thrown and strikes recorded for the pitcher in the box score.
eraStringEarned run average.

boxscore_team

col_nametypedescription
team_idInt64Team id.
team_abbreviationStringTeam abbreviation.
team_display_nameStringTeam display name.
home_awayStringHome away.
display_orderInt64Display order.
stat_nameStringStat name.
stat_labelStringStat label.
stat_display_valueStringStat display value.
stat_valueStringStat value.

plays

col_nametypedescription
idInt64Id.
sequence_numberStringSequence number.
textStringText.
away_scoreInt64Away score.
home_scoreInt64Home score.
scoring_playBooleanScoring play.
score_valueInt64Score value.
wallclockStringWallclock.
at_bat_idInt64Identifier of the at-bat the play belongs to.
summary_typeStringPlay summary type.
outsInt64Outs in the inning after the play.
type_idInt64Type id.
type_textStringType text.
type_typeStringPlay type category.
period_typeStringPeriod type ('inning').
period_numberInt64Period number.
period_display_valueStringPeriod display value.
team_idInt64Team id.
pitch_count_ballsInt64Balls in the count when the pitch was thrown.
pitch_count_strikesInt64Strikes in the count when the pitch was thrown.
result_count_ballsInt64Balls in the count after the pitch.
result_count_strikesInt64Strikes in the count after the pitch.
participantsStringParticipants.
bat_orderFloat64Spot in the batting order (1-9; NA if not applicable).
type_alternative_textStringAlternative play type text.
bats_typeStringBats type.
bats_abbreviationStringBats abbreviation.
bats_display_valueStringBats display value.
at_bat_pitch_numberFloat64Pitch number within the at-bat.
pitch_velocityFloat64Pitch velocity (mph).
trajectoryStringBatted-ball trajectory.
type_abbreviationStringPlay type abbreviation.
pitch_coordinate_xFloat64Pitch location x-coordinate.
pitch_coordinate_yFloat64Pitch location y-coordinate.
pitch_type_idInt64Pitch type identifier.
pitch_type_textStringPitch type description (e.g. 'Four-seam FB').
pitch_type_abbreviationStringPitch type abbreviation.
hit_coordinate_xFloat64Batted-ball location x-coordinate.
hit_coordinate_yFloat64Batted-ball location y-coordinate.
alternative_playStringAlternative play flag.
alternative_type_idInt64Alternative play type id.
alternative_type_textStringAlternative play type text.
alternative_type_abbreviationStringAlternative play type abbreviation.
alternative_type_alternative_textStringAlternative type alternative text.
alternative_type_typeStringAlternative play type category.
on_first_athlete_idInt64Athlete id of the runner on first base.
on_second_athlete_idInt64Athlete id of the runner on second base.
on_third_athlete_idInt64Athlete id of the runner on third base.

winprobability

col_nametypedescription
home_win_percentageFloat64Home win percentage.
tie_percentageFloat64Tie percentage.
play_idInt64Play id.

game_info

col_nametypedescription
attendanceInt64Attendance.
venue_idInt64Venue id.
venue_full_nameStringVenue full name.
venue_short_nameStringVenue short name.
venue_address_cityStringVenue address city.
venue_address_stateStringVenue address state.
venue_address_zip_codeStringPostal zip code of the venue where the game was played.

officials

col_nametypedescription
display_nameStringDisplay name.
orderInt64Order.
position_nameStringPosition name.
position_display_nameStringPosition display name.
position_idInt64Position id.

header

col_nametypedescription
idInt64Id.
uidStringUid.
time_validBooleanTime valid.
competitionsStringCompetitions.
linksStringLinks.
game_noteStringOptional editorial note or context annotation attached to the game in the header.
season_yearInt64Season year.
season_currentBooleanSeason current.
season_typeInt64Season type.
league_idInt64League id.
league_uidStringLeague uid.
league_nameStringLeague name.
league_abbreviationStringLeague abbreviation.
league_midsize_nameStringMedium-length display name for the league or competition as shown in the game header.
league_slugStringLeague slug.
league_is_tournamentBooleanLeague is tournament.
league_linksStringLeague links.
league_logosStringLeague logos.

season_series

col_nametypedescription
typeStringType.
titleStringTitle.
descriptionStringDescription.
summaryStringSummary.
completedBooleanCompleted.
total_competitionsInt64Total competitions.
series_scoreStringSeries score.
eventsStringEvents.
series_labelStringSeries label.
short_summaryStringShort summary.
roundStringDraft round number.

standings

col_nametypedescription
group_headerStringGroup header.
conference_headerStringConference header.
division_headerStringDivision header.
team_idInt64Team id.
team_uidStringTeam uid.
team_locationStringTeam location.
games_behindStringGames behind.
lossesStringLosses.
streakStringStreak.
win_percentStringWin percent.
winsStringWins.

broadcasts

col_nametypedescription
stationString
station_keyStringMachine-readable key identifying the broadcasting station airing the game.
langString
regionStringRegion label.
is_nationalBooleanBoolean flag indicating whether the broadcast is a nationally distributed feed.
type_idInt64Type id.
type_short_nameString
type_long_nameString
type_slugString
market_idInt64ESPN futures-market identifier.
market_typeStringMarket type code (winLeague, winConference, winDivision, ...).
media_call_lettersString
media_nameString
media_short_nameString

format

col_nametypedescription
regulation_periodsInt64Regulation periods.
regulation_display_nameStringRegulation display name.
regulation_slugStringRegulation slug.

article

col_nametypedescription
idInt64Id.
now_idStringNow id.
content_keyStringContent key.
data_source_identifierStringData source identifier.
publishedkeyStringPublishedkey.
typeStringType.
game_idInt64Game id.
headlineStringHeadline.
descriptionStringDescription.
link_textStringLink text.
categorizedStringCategorized.
originally_postedStringOriginally posted.
last_modifiedStringLast modified.
publishedStringPublished.
sectionStringSection.
sourceStringSource.
imagesStringImages.
videoStringVideo.
categoriesStringCategories.
keywordsStringKeywords.
storyStringStory.
premiumBooleanPremium.
is_live_blogBooleanIs live blog.
allow_commentsBooleanAllow comments.
allow_searchBooleanAllow search.
allow_content_reactionsBooleanAllow content reactions.
links_web_hrefStringLinks web href.
links_mobile_hrefStringLinks mobile href.
links_api_self_hrefStringLinks api self href.
links_app_sportscenter_hrefStringLinks app sportscenter href.

injuries

col_nametypedescription
injuriesStringInjuries.
team_idInt64Team id.
team_uidStringTeam uid.
team_display_nameStringTeam display name.
team_abbreviationStringTeam abbreviation.
team_linksStringTeam links.
team_logoStringTeam logo.
team_logosStringTeam logos.

news

col_nametypedescription
idInt64Id.
now_idStringNow id.
content_keyStringContent key.
data_source_identifierStringData source identifier.
typeStringType.
headlineStringHeadline.
descriptionStringDescription.
last_modifiedStringLast modified.
publishedStringPublished.
imagesStringImages.
categoriesStringCategories.
premiumBooleanPremium.
links_web_hrefStringLinks web href.
links_mobile_hrefStringLinks mobile href.
links_api_self_hrefStringLinks api self href.
links_app_sportscenter_hrefStringLinks app sportscenter href.
links_web_self_hrefStringURL for the canonical web page of the associated article or editorial content.
links_web_self_dsi_hrefStringData-source-identified URL for the web page of the associated article content.
links_api_artwork_hrefStringAPI endpoint URL for artwork or imagery associated with the article.
links_sportscenter_hrefStringURL for the article's page on ESPN's SportsCenter platform.

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

Raises​

ExceptionDescription
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​

espn_mlb_cdn_boxscore(game_id='401696358')

espn_mlb_cdn_schedule​

espn.com schedule page data, one row per game: up to 7 days starting at date (mbb and wbb: that day only; cfb and nfl: one week).

Endpoint URL: GET https://cdn.espn.com/core/mlb/schedule

Valid URL: https://cdn.espn.com/core/mlb/schedule?xhr=1&date=20250415

API ParameterPythonPatternRequiredNullableDescription
datedateYSingle date (YYYYMMDD). Ignored by cfb and nfl, which are week-oriented. Defaults to today.
weekweekYWeek number (cfb and nfl).
yearseasonYSeason year that week belongs to (cfb and nfl).
seasontypeseason_typeYSeason phase for week: 1=preseason, 2=regular season, 3=postseason (cfb and nfl).

Returns​

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

col_nametypedescription
game_idInt64ESPN event id.
uidStringESPN UID string.
dateStringMatch start timestamp (ISO 8601, UTC).
nameStringFull event name (e.g. 'Team A at Team B').
short_nameStringAbbreviated event name (e.g. 'TA @ TB').
season_yearInt64Integer season year ESPN assigns the event (e.g. 2025 for the 2025-26 season).
season_typeInt64ESPN season-type id of the event's season: 1 preseason, 2 regular season, 3 postseason, 4 offseason for the US leagues; soccer competitions carry their own competition-specific ids (e.g. 13481).
season_slugStringESPN slug of the event's season type (e.g. 'regular-season', 'post-season'; soccer competitions use their own, such as 'final' or 'torneo-apertura').
status_type_idInt64
status_type_nameString
status_type_stateString
status_type_completedBoolean
status_type_descriptionString
status_type_detailString
status_type_short_detailString
status_clockFloat64Game clock in seconds as ESPN reports it: time remaining in the period for clock sports, elapsed seconds for soccer (e.g. 5400.0 at full time); 0.0 once a game has ended.
status_display_clockString
status_periodInt64Current or final period number (quarter, half, inning or period, depending on the sport).
neutral_siteBooleanWhether the match is played at a neutral venue.
conference_competitionBooleanConference competition.
attendanceInt64Reported attendance (NA on the redesigned page).
venue_idInt64MLBAM venue ID.
venue_full_nameString
venue_cityStringVenue city.
venue_stateStringVenue state / province.
venue_indoorBoolean
broadcastStringEvery network name of the competition in feed order, deduped and ", "-joined (an entry with no names gives its market); "" when the game lists no broadcast.
noteStringEvent note text from the competition (e.g. a series or game label such as 'World Series - Game 1', or a shootout result); an empty string when there is none.
home_idInt64
home_nameString
home_abbreviationString
home_display_nameString
home_locationString
home_colorString
home_alternate_colorString
home_logoString
home_scoreStringHome team's score. For cricket, the innings string (e.g. '161/5 (18/20 ov, target 156)').
home_winnerBoolean
home_rankString
away_idInt64
away_nameString
away_abbreviationString
away_display_nameString
away_locationString
away_colorString
away_alternate_colorString
away_logoString
away_scoreStringAway team's score. For cricket, the innings string.
away_winnerBoolean
away_rankString

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

Raises​

ExceptionDescription
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​

espn_mlb_cdn_schedule(date='20250415')

espn_mlb_cdn_scoreboard​

espn.com scoreboard page data for one day (one week for football), one row per game. The page's sbData block is a Site v2 scoreboard payload.

Endpoint URL: GET https://cdn.espn.com/core/mlb/scoreboard

Valid URL: https://cdn.espn.com/core/mlb/scoreboard?xhr=1&date=20250415

API ParameterPythonPatternRequiredNullableDescription
datedateYSingle date (YYYYMMDD). Ignored by cfb and nfl, which are week-oriented. Defaults to today.
weekweekYWeek number (cfb and nfl).
yearseasonYSeason year that week belongs to (cfb and nfl).
seasontypeseason_typeYSeason phase for week: 1=preseason, 2=regular season, 3=postseason (cfb and nfl).

Returns​

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

col_nametypedescription
game_idInt64ESPN event id.
uidStringESPN UID string.
dateStringMatch start timestamp (ISO 8601, UTC).
nameStringFull event name (e.g. 'Team A at Team B').
short_nameStringAbbreviated event name (e.g. 'TA @ TB').
season_yearInt64Integer season year ESPN assigns the event (e.g. 2025 for the 2025-26 season).
season_typeInt64ESPN season-type id of the event's season: 1 preseason, 2 regular season, 3 postseason, 4 offseason for the US leagues; soccer competitions carry their own competition-specific ids (e.g. 13481).
season_slugStringESPN slug of the event's season type (e.g. 'regular-season', 'post-season'; soccer competitions use their own, such as 'final' or 'torneo-apertura').
status_type_idInt64
status_type_nameString
status_type_stateString
status_type_completedBoolean
status_type_descriptionString
status_type_detailString
status_type_short_detailString
status_clockFloat64Game clock in seconds as ESPN reports it: time remaining in the period for clock sports, elapsed seconds for soccer (e.g. 5400.0 at full time); 0.0 once a game has ended.
status_display_clockString
status_periodInt64Current or final period number (quarter, half, inning or period, depending on the sport).
neutral_siteBooleanWhether the match is played at a neutral venue.
conference_competitionBooleanConference competition.
attendanceInt64Reported attendance (NA on the redesigned page).
venue_idInt64MLBAM venue ID.
venue_full_nameString
venue_cityStringVenue city.
venue_stateStringVenue state / province.
venue_indoorBoolean
broadcastStringEvery network name of the competition in feed order, deduped and ", "-joined (an entry with no names gives its market); "" when the game lists no broadcast.
noteStringEvent note text from the competition (e.g. a series or game label such as 'World Series - Game 1', or a shootout result); an empty string when there is none.
home_idInt64
home_nameString
home_abbreviationString
home_display_nameString
home_locationString
home_colorString
home_alternate_colorString
home_logoString
home_scoreStringHome team's score. For cricket, the innings string (e.g. '161/5 (18/20 ov, target 156)').
home_winnerBoolean
home_rankString
away_idInt64
away_nameString
away_abbreviationString
away_display_nameString
away_locationString
away_colorString
away_alternate_colorString
away_logoString
away_scoreStringAway team's score. For cricket, the innings string.
away_winnerBoolean
away_rankString

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

Raises​

ExceptionDescription
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​

espn_mlb_cdn_scoreboard(date='20250415')