Skip to main content
Version: 0.2.0

MLB — ESPN site API (v2)

sportsdataverse.mlb — 24 endpoints.

espn_mlb_scoreboard​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/scoreboard

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/scoreboard?dates=20240115&limit=500

API ParameterPythonPatternRequiredNullableDescription
datesdatesYOne day (YYYYMMDD) or one calendar year (YYYY). A range (YYYYMMDD-YYYYMMDD) is rejected with HTTP 400; request each day, or use the Core v2 events wrapper.
weekweekYWeek number within the season.
seasontypeseason_typeYSeason phase: 1=preseason, 2=regular season, 3=postseason.
groupsgroupsYConference or group id filter (e.g. an ESPN conference id).
limitlimitYMaximum number of items to return.

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_scoreboard(dates='20240115')

espn_mlb_summary​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/summary

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/summary

API ParameterPythonPatternRequiredNullableDescription
eventevent_idYevent query parameter.

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

espn_mlb_calendar_site​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/calendar

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/calendar

API ParameterPythonPatternRequiredNullableDescription

Returns​

return_parsed=True (default) — the output of parse_items; pass return_as_pandas=True for a pandas.DataFrame.

No returns table is published for this endpoint: no capture: 404 in nba, nfl, mlb, nhl, wnba, cfb, mbb, wbb with the documented example arguments (2026-10-07).

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

espn_mlb_news​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/news

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/news?limit=50

API ParameterPythonPatternRequiredNullableDescription
limitlimitYMaximum number of items to return.

Returns​

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

col_nametypedescription
idInt64ESPN numeric identifier for the article.
now_idStringESPN 'now' feed id.
content_keyStringInternal content key.
data_source_identifierStringSource-system identifier.
typeStringArticle type (Story, Media, HeadlineNews, etc.).
headlineStringArticle headline.
descriptionStringArticle summary/description.
last_modifiedStringLast-modified timestamp (ISO 8601).
publishedStringPublish timestamp (ISO 8601).
imagesStringArticle images (list, stringified).
categoriesStringArticle categories (list, stringified).
premiumBooleanWhether the article is premium/paywalled.
links_web_hrefStringWeb article URL.
links_mobile_hrefStringMobile article URL.
links_api_self_hrefStringESPN API canonical self-link for the article resource.
links_app_sportscenter_hrefStringSportsCenter app deep link.
links_web_self_hrefStringPrimary canonical web URL for this news article on ESPN.com.
links_web_self_dsi_hrefStringAlternate canonical web URL for this news article using ESPN's DSI routing.
links_api_artwork_hrefStringESPN API URL for the artwork image associated with this news article.
links_sportscenter_hrefStringDeep-link URL to this news article within the ESPN SportsCenter app or web experience.

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

espn_mlb_injuries​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/injuries

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/injuries

API ParameterPythonPatternRequiredNullableDescription

Returns​

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

col_nametypedescription
idInt64ESPN numeric identifier for the athlete.
display_nameStringAthlete's full display name as shown on ESPN.
injuriesStringInjury entries for the athlete (list of dicts, stringified): status, type, details, dates.

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

espn_mlb_transactions​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/transactions

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/transactions?limit=500

API ParameterPythonPatternRequiredNullableDescription
limitlimitYMaximum number of items to return.

Returns​

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

col_nametypedescription
dateStringDate in YYYY-MM-DD format.
descriptionStringLong-form description text.
team_abbreviationStringShort team abbreviation (e.g. 'NYY').
team_alternate_colorStringTeam alternate color (hex).
team_colorStringTeam primary color (hex, no leading '#').
team_display_nameStringFull team display name (e.g. 'New York Yankees').
team_idInt64Unique ESPN team identifier.
team_linksString
team_locationStringTeam city / location.
team_logosString
team_nameStringTeam name.

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

espn_mlb_conferences​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/groups

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/groups

API ParameterPythonPatternRequiredNullableDescription

Returns​

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

col_nametypedescription
group_idInt64ESPN group id.
nameStringDisplay name.
abbreviationStringShort abbreviation.
short_nameStringShort display name.
is_conferenceBooleanWhether this group is a conference.
parent_group_idInt64Unique identifier for parent group.
depthInt64
children_countInt64

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

espn_mlb_statistics_league​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/statistics

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/statistics

API ParameterPythonPatternRequiredNullableDescription

Returns​

return_parsed=True (default) — the output of parse_items; pass return_as_pandas=True for a pandas.DataFrame.

No returns table is published for this endpoint: parser: parse_items returns no columns on the live payload (nba, nfl, mlb, nhl, wnba, cfb, mbb, wbb, 2026-10-07); its rows sit under keys it does not read (top level: league, season, status, timestamp).

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

espn_mlb_draft​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/draft

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/draft

API ParameterPythonPatternRequiredNullableDescription

Returns​

return_parsed=True (default) — the output of parse_items; pass return_as_pandas=True for a pandas.DataFrame.

No returns table is published for this endpoint: parser: parse_items returns no columns on the live payload (nba, nfl, nhl, wnba, 2026-10-07); its rows sit under keys it does not read (top level: breakingNews, broadcasts, displayName, picks, positions, rounds, shortDisplayName, status).

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

espn_mlb_teams_site​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams?limit=1000

API ParameterPythonPatternRequiredNullableDescription
limitlimitYMaximum number of items to return.

Returns​

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

col_nametypedescription
team_abbreviationStringShort team abbreviation (e.g. "BOS").
team_alternate_colorStringSecondary team color as a hex string (no leading '#').
team_colorStringPrimary team color as a hex string (no leading '#').
team_display_nameStringFull team display name (location + nickname).
team_idInt64ESPN team id (stable join key across ESPN endpoints).
team_is_activeBooleanWhether the team is currently active.
team_is_all_starBooleanWhether the entry is an all-star squad rather than a franchise.
team_locationStringTeam location / city (e.g. "Boston").
team_logosStringPipe-delimited logo image URLs.
team_nameStringTeam nickname/mascot (e.g. "Celtics").
team_nicknameStringTeam nickname as ESPN labels it (often equals team_name).
team_short_display_nameStringAbbreviated display name for compact UIs.
team_slugStringURL slug used in ESPN web paths.
team_uidStringESPN global UID (encodes sport/league/team).

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

espn_mlb_team​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/{team_id}

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/4

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.

Returns​

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

col_nametypedescription
team_abbreviationStringShort team abbreviation (e.g. 'NYY').
team_alternate_colorStringTeam alternate color (hex).
team_colorStringTeam primary color (hex, no leading '#').
team_display_nameStringFull team display name (e.g. 'New York Yankees').
team_franchise_$refString
team_franchise_abbreviationString
team_franchise_colorString
team_franchise_display_nameString
team_franchise_idInt64
team_franchise_is_activeBoolean
team_franchise_locationString
team_franchise_nameStringFranchise name.
team_franchise_short_display_nameString
team_franchise_slugString
team_franchise_team_$refString
team_franchise_uidString
team_franchise_venue_$refString
team_franchise_venue_address_cityString
team_franchise_venue_address_stateString
team_franchise_venue_full_nameString
team_franchise_venue_grassBoolean
team_franchise_venue_guidString
team_franchise_venue_idInt64
team_franchise_venue_imagesString
team_franchise_venue_indoorBoolean
team_franchise_venue_short_nameString
team_groups_idInt64
team_groups_is_conferenceBoolean
team_groups_parent_idInt64
team_idInt64Unique ESPN team identifier.
team_is_activeBooleanTeam is active.
team_linksString
team_locationStringTeam city / location.
team_logosString
team_nameStringTeam name.
team_next_eventString
team_record_itemsString
team_short_display_nameStringShort team display name.
team_slugStringURL-safe team identifier.
team_standing_summaryString
team_uidStringESPN universal team identifier (UID).

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_team(team_id='4')

espn_mlb_team_roster​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/{team_id}/roster

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/4/roster?limit=500

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.
limitlimitYMaximum number of items to return.

Returns​

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

col_nametypedescription
position_groupString
idInt64Id.
uidStringUid.
guidStringGuid.
first_nameStringFirst name.
last_nameStringLast name.
full_nameStringFull name.
display_nameStringDisplay name.
nicknameStringTeam nickname.
short_nameStringShort name.
weightFloat64Weight.
display_weightStringDisplay weight.
heightFloat64Height.
display_heightStringDisplay height.
ageInt64Age.
date_of_birthStringDate of birth.
debut_yearInt64Debut year.
linksStringLinks.
slugStringSlug.
jerseyStringJersey.
positionsStringPositions.
injuriesStringInjuries.
teamsStringTeams.
contractsStringContracts.
alternate_ids_sdrStringAlternate ids sdr.
birth_place_cityStringBirth place city.
birth_place_stateStringBirth place state.
birth_place_countryStringBirth place country.
birth_place_display_textString
college_idInt64College id.
college_guidStringCollege guid.
college_mascotStringCollege mascot.
college_nameStringCollege name.
college_short_nameStringCollege short name.
college_abbrevStringCollege abbrev.
college_logosStringCollege logos.
headshot_hrefStringHeadshot href.
headshot_altStringHeadshot alt.
position_idInt64Position id.
position_nameStringPosition name.
position_display_nameStringPosition display name.
position_abbreviationStringPosition abbreviation.
position_leafBooleanPosition leaf.
position_parent_idInt64
position_parent_nameString
position_parent_display_nameString
position_parent_abbreviationString
position_parent_leafBoolean
experience_yearsInt64Experience years.
status_idInt64Status id.
status_nameStringStatus name.
status_typeStringStatus type.
status_abbreviationStringStatus abbreviation.
bats_typeStringBats type.
bats_abbreviationStringBats abbreviation.
bats_display_valueStringBats display value.
throws_typeStringThrows type.
throws_abbreviationStringThrows abbreviation.
throws_display_valueStringThrows display value.

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_team_roster(team_id='4')

espn_mlb_team_schedule​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/{team_id}/schedule

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/4/schedule

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.
seasonseasonYSeason year (e.g. 2024).

Returns​

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

col_nametypedescription
idInt64ESPN numeric event identifier.
dateStringEvent timestamp (ISO 8601, UTC).
nameStringFull event name (e.g. 'Team A at Team B').
short_nameStringAbbreviated event name (e.g. 'TA @ TB').
time_validBooleanWhether the event time is confirmed.
competitionsStringCompetition detail (list of dicts, stringified): competitors, venue, status.
linksStringRelated links (list, stringified).
season_yearInt64Four-digit season year.
season_display_nameStringHuman-readable season label (e.g. '2024-25').
season_type_idInt64ESPN numeric identifier for the season type.
season_type_typeInt64Season type numeric code.
season_type_nameStringSeason type name (e.g. Regular Season).
season_type_abbreviationStringSeason type abbreviation.
week_numberFloat64
week_textStringHuman-readable label for the week or scheduling block in which the event falls (e.g., 'Week 3', 'Bowl Week'), as returned by the ESPN schedule API.

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_team_schedule(team_id='4')

espn_mlb_team_record​

Deprecated: ESPN answers this team route with an empty object.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/{team_id}/record

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/4/record

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.

Returns​

return_parsed=True (default) — the output of parse_items; pass return_as_pandas=True for a pandas.DataFrame.

No returns table is published for this endpoint: no capture: ESPN answers an empty object in nba, nfl, mlb, nhl, wnba, cfb, mbb, wbb with the documented example arguments (2026-10-07).

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_team_record(team_id='4')

espn_mlb_team_depthcharts​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/{team_id}/depthcharts

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/4/depthcharts

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.

Returns​

return_parsed=True (default) — the output of parse_items; pass return_as_pandas=True for a pandas.DataFrame.

No returns table is published for this endpoint: parser: parse_items returns no columns on the live payload (nba, nfl, mlb, nhl, wnba, cfb, mbb, wbb, 2026-10-07); its rows sit under keys it does not read (top level: depthchart, season, status, team, timestamp).

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_team_depthcharts(team_id='4')

espn_mlb_team_injuries​

Deprecated: ESPN answers this team route with an empty object.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/{team_id}/injuries

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/4/injuries

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.

Returns​

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

col_nametypedescription
idInt64ESPN numeric identifier for the athlete.
display_nameStringAthlete's full display name as shown on ESPN.
injuriesStringInjury entries for the athlete (list of dicts, stringified): status, type, details, dates.

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_team_injuries(team_id='4')

espn_mlb_team_transactions​

Deprecated: ESPN answers this team route with an empty object.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/{team_id}/transactions

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/4/transactions

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.

Returns​

return_parsed=True (default) — the output of parse_items; pass return_as_pandas=True for a pandas.DataFrame.

No returns table is published for this endpoint: no capture: ESPN answers an empty object in nba, nfl, mlb, nhl, wnba, cfb, mbb, wbb with the documented example arguments (2026-10-07).

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_team_transactions(team_id='4')

espn_mlb_team_history​

Deprecated: ESPN answers this team route with an empty object.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/{team_id}/history

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/4/history

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.

Returns​

return_parsed=True (default) — the output of parse_items; pass return_as_pandas=True for a pandas.DataFrame.

No returns table is published for this endpoint: no capture: ESPN answers an empty object in nba, nfl, mlb, nhl, wnba, mbb, wbb; 400 in cfb with the documented example arguments (2026-10-07).

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_team_history(team_id='4')

espn_mlb_team_news​

Deprecated: ESPN answers this team route with an empty object.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/{team_id}/news

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/4/news?limit=50

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.
limitlimitYMaximum number of items to return.

Returns​

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

col_nametypedescription
idInt64ESPN numeric identifier for the article.
now_idStringESPN 'now' feed id.
content_keyStringInternal content key.
data_source_identifierStringSource-system identifier.
typeStringArticle type (Story, Media, HeadlineNews, etc.).
headlineStringArticle headline.
descriptionStringArticle summary/description.
last_modifiedStringLast-modified timestamp (ISO 8601).
publishedStringPublish timestamp (ISO 8601).
imagesStringArticle images (list, stringified).
categoriesStringArticle categories (list, stringified).
premiumBooleanWhether the article is premium/paywalled.
links_web_hrefStringWeb article URL.
links_mobile_hrefStringMobile article URL.
links_api_self_hrefStringESPN API canonical self-link for the article resource.
links_app_sportscenter_hrefStringSportsCenter app deep link.
links_web_self_hrefStringPrimary canonical web URL for this news article on ESPN.com.
links_web_self_dsi_hrefStringAlternate canonical web URL for this news article using ESPN's DSI routing.
links_api_artwork_hrefStringESPN API URL for the artwork image associated with this news article.
links_sportscenter_hrefStringDeep-link URL to this news article within the ESPN SportsCenter app or web experience.

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_team_news(team_id='4')

espn_mlb_team_leaders​

Deprecated: ESPN answers this team route with an empty object.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/{team_id}/leaders

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/teams/4/leaders

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.

Returns​

return_parsed=True (default) — the output of parse_items; pass return_as_pandas=True for a pandas.DataFrame.

No returns table is published for this endpoint: no capture: ESPN answers an empty object in nba, nfl, mlb, nhl, wnba, cfb, mbb, wbb with the documented example arguments (2026-10-07).

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_team_leaders(team_id='4')

espn_mlb_player_info​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/athletes/{athlete_id}

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/athletes/4239

API ParameterPythonPatternRequiredNullableDescription
athlete_idathlete_idYathlete_id path parameter.

Returns​

return_parsed=True (default) — the output of parse_single_entity; pass return_as_pandas=True for a pandas.DataFrame.

No returns table is published for this endpoint: no capture: 404 in nba, nfl, mlb, nhl, wnba, cfb, mbb, wbb with the documented example arguments (2026-10-07).

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_player_info(athlete_id='4239')

espn_mlb_player_bio​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/athletes/{athlete_id}/bio

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/athletes/4239/bio

API ParameterPythonPatternRequiredNullableDescription
athlete_idathlete_idYathlete_id path parameter.

Returns​

return_parsed=True (default) — the output of parse_single_entity; pass return_as_pandas=True for a pandas.DataFrame.

No returns table is published for this endpoint: no capture: 404 in nba, nfl, mlb, nhl, wnba, cfb, mbb, wbb with the documented example arguments (2026-10-07).

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_player_bio(athlete_id='4239')

espn_mlb_player_news​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/athletes/{athlete_id}/news

Valid URL: https://site.api.espn.com/apis/site/v2/sports/baseball/mlb/athletes/4239/news

API ParameterPythonPatternRequiredNullableDescription
athlete_idathlete_idYathlete_id path parameter.

Returns​

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

col_nametypedescription
idInt64ESPN numeric identifier for the article.
now_idStringESPN 'now' feed id.
content_keyStringInternal content key.
data_source_identifierStringSource-system identifier.
typeStringArticle type (Story, Media, HeadlineNews, etc.).
headlineStringArticle headline.
descriptionStringArticle summary/description.
last_modifiedStringLast-modified timestamp (ISO 8601).
publishedStringPublish timestamp (ISO 8601).
imagesStringArticle images (list, stringified).
categoriesStringArticle categories (list, stringified).
premiumBooleanWhether the article is premium/paywalled.
links_web_hrefStringWeb article URL.
links_mobile_hrefStringMobile article URL.
links_api_self_hrefStringESPN API canonical self-link for the article resource.
links_app_sportscenter_hrefStringSportsCenter app deep link.
links_web_self_hrefStringPrimary canonical web URL for this news article on ESPN.com.
links_web_self_dsi_hrefStringAlternate canonical web URL for this news article using ESPN's DSI routing.
links_api_artwork_hrefStringESPN API URL for the artwork image associated with this news article.
links_sportscenter_hrefStringDeep-link URL to this news article within the ESPN SportsCenter app or web experience.

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_player_news(athlete_id='4239')

espn_mlb_standings​

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/v2/sports/baseball/mlb/standings

Valid URL: https://site.api.espn.com/apis/v2/sports/baseball/mlb/standings

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYSeason year (e.g. 2024).
groupgroupYConference or group id filter (e.g. an ESPN conference id).
typestandings_typeYStandings variant (e.g. 'by-division' or 'by-conference').

Returns​

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

col_nametypedescription
group_nameStringGroup name.
group_abbreviationStringGroup abbreviation.
team_idInt64Team id.
team_nameStringTeam name.
team_abbreviationStringTeam abbreviation.
team_display_nameStringTeam display name.
team_locationStringTeam location.
team_logoStringTeam logo.
ot_lossesFloat64
ot_winsFloat64
avg_points_againstFloat64Avg points against.
avg_points_forFloat64Avg points for.
clincherFloat64Clincher.
differentialFloat64Differential.
division_win_percentFloat64Division win percent.
games_behindFloat64Games behind.
games_playedFloat64Matches played.
league_win_percentFloat64League win percent.
lossesFloat64Losses.
playoff_seedFloat64Playoff seed.
point_differentialFloat64Point differential.
pointsFloat64Points.
points_againstFloat64Points against.
points_forFloat64Points for.
streakFloat64Streak.
tiesFloat64Number of matches the team has drawn.
win_percentFloat64Win percent.
winsFloat64Wins.
division_games_behindFloat64Number of games the team trails the division leader in the standings, expressed as a decimal (e.g., 0.5 for half a game back).
division_percentFloat64The team's winning percentage in division games, calculated as division wins divided by total division games played.
division_tiedFloat64Number of games the team has tied against opponents within their own division.
home_lossesFloat64
home_tiesFloat64
home_winsFloat64
magic_number_divisionFloat64Combination of wins needed by the team (or losses needed by the division leader) for the team to clinch a division title.
magic_number_wildcardFloat64Combination of wins needed by the team (or losses needed by the next wildcard team) for the team to clinch a wildcard playoff berth.
playoff_percentFloat64Estimated or model-derived probability that the team will qualify for the playoffs, expressed as a decimal between 0 and 1.
road_lossesFloat64
road_tiesFloat64
road_winsFloat64
wild_card_percentFloat64The team's winning percentage in games that count toward wildcard standings positioning.
overallStringOverall.
homeStringHome.
roadStringRoad.
intradivisionStringIntradivision.
intraleagueStringIntraleague.
last ten gamesStringLast ten games.

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