Skip to main content

NHL — ESPN core API (v2) — Game

espn_nhl_game_competition​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
cidcidYcid 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
$refString
attendanceInt64Game attendance.
boxscore_availableBooleanWhether boxscore data is available.
bracket_availableBoolean
commentary_availableBoolean
competitorsString
conference_competitionBooleanWhether it is a conference competition.
conversation_availableBoolean
dateStringGame date (ISO 8601 datetime string).
division_competitionBoolean
gamecast_availableBoolean
guidStringAthlete global unique identifier.
highlights_availableBoolean
idInt64Unique player identifier.
lineup_availableBoolean
linksString
live_availableBoolean
necessaryBoolean
neutral_siteBooleanWhether the game is at a neutral site.
notesStringNotes flag for the pick.
on_watch_espnBooleanWhether the game is/was on WatchESPN.
pickcenter_availableBoolean
play_by_play_availableBooleanWhether play-by-play data is available.
possession_arrow_availableBoolean
preview_availableBoolean
recap_availableBoolean
recentBooleanWhether the game is recent.
seriesStringNested list of series within the round.
shot_chart_availableBoolean
summary_availableBoolean
tickets_availableBoolean
time_validBooleanWhether the start time is confirmed.
timeouts_availableBoolean
uidStringCompetitor uid string.
wallclock_availableBoolean
boxscore_source_descriptionString
boxscore_source_idInt64
boxscore_source_stateString
broadcasts_$refString
details_$refString
format_overtime_clockFloat64
format_overtime_display_nameString
format_overtime_slugString
format_regulation_clockFloat64
format_regulation_display_nameString
format_regulation_periodsInt64
format_regulation_slugString
game_source_descriptionString
game_source_idInt64
game_source_stateString
linescore_source_descriptionString
linescore_source_idInt64
linescore_source_stateString
odds_$refString
officials_$refString
play_by_play_source_descriptionString
play_by_play_source_idInt64
play_by_play_source_stateString
power_indexes_$refString
predictor_$refString
probabilities_$refString
relevancy_$refString
situation_$refString
stats_source_descriptionString
stats_source_idInt64
stats_source_stateString
status_$refString
type_abbreviationStringPlay type abbreviation.
type_idInt64Play type id.
type_slugStringBroadcast type slug.
type_textStringPlay type label (e.g. "Goal", "Shot", "Face Off").
type_typeString
venue_$refString
venue_address_cityString
venue_address_stateString
venue_full_nameStringVenue full name.
venue_grassBoolean
venue_guidString
venue_idInt64Venue identifier.
venue_imagesString
venue_indoorBooleanWhether the venue is indoors.

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_nhl_game_competition(event_id='401584793')

espn_nhl_game_teams​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/competitors

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/competitors

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
cidcidYcid 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
$refString
home_awayStringHome or away indicator.
idInt64Unique player identifier.
orderInt64Display order within officials list.
typeStringCompetitor type (e.g. "team").
uidStringCompetitor uid string.
winnerBooleanWhether this competitor won the game.
leaders_$refString
linescores_$refString
record_$refString
roster_$refString
score_$refString
statistics_$refString
team_$refString
countInt64Total items in the ESPN collection across every page (the page envelope's count), the same on every row; more than the row count means this is one page of several (pass the wrapper's limit= or page=).
page_countInt64Pages the collection spans at the requested limit (the page envelope's pageCount), the same on every row; above 1 means rows are missing from this frame.

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_nhl_game_teams(event_id='401584793')

espn_nhl_game_team​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/competitors/{team_id}

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/competitors/4

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
team_idteam_idYteam_id path parameter.
cidcidYcid 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
$refString
home_awayStringHome or away indicator.
idInt64Unique player identifier.
orderInt64Display order within officials list.
typeStringCompetitor type (e.g. "team").
uidStringCompetitor uid string.
winnerBooleanWhether this competitor won the game.
leaders_$refString
linescores_$refString
record_$refString
roster_$refString
score_$refString
statistics_$refString
team_$refString

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_nhl_game_team(event_id='401584793', team_id='4')

espn_nhl_game_team_roster​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/competitors/{team_id}/roster

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/competitors/4/roster

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
team_idteam_idYteam_id path parameter.
cidcidYcid 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
$refString
activeBooleanWhether athlete is currently active.
starterBooleanWhether the goalie started the game.
did_not_playBoolean
ejectedBoolean

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_nhl_game_team_roster(event_id='401584793', team_id='4')

espn_nhl_game_team_linescores​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/competitors/{team_id}/linescores

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/competitors/4/linescores

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
team_idteam_idYteam_id path parameter.
cidcidYcid path parameter.

Returns​

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

No returns table is published for this endpoint: no capture: the page holds zero items (count 0) in nba 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_nhl_game_team_linescores(event_id='401584793', team_id='4')

espn_nhl_game_team_statistics​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/competitors/{team_id}/statistics

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/competitors/4/statistics

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
team_idteam_idYteam_id path parameter.
cidcidYcid 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
split_nameStringName of the stat split (Core v2 answers one, "All Splits").
category_nameStringESPN stat category of the row (e.g., "defensive", "general", "offensive").
stat_nameStringESPN stat key in camelCase (e.g., "blocks", "defensiveRebounds").
stat_abbreviationStringShort label of the stat (e.g., "BLK").
stat_valueFloat64Numeric value of the team's stat in this game.
stat_display_valueStringThe value as ESPN displays it (a string, e.g., "7").
stat_descriptionStringESPN's one-sentence definition of the stat.

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_nhl_game_team_statistics(event_id='401584793', team_id='4')

espn_nhl_game_team_record​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/competitors/{team_id}/record

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/competitors/4/record

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
team_idteam_idYteam_id path parameter.
cidcidYcid 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_nhl_game_team_record(event_id='401584793', team_id='4')

espn_nhl_game_team_leaders​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/competitors/{team_id}/leaders

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/competitors/4/leaders

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
team_idteam_idYteam_id path parameter.
cidcidYcid 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, 2026-10-07); its rows sit under keys it does not read (top level: $ref, abbreviation, categories, id, name, type).

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_nhl_game_team_leaders(event_id='401584793', team_id='4')

espn_nhl_game_odds​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/odds

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/odds

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
cidcidYcid 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
$refString
detailsStringOdds detail string (e.g. "DET -185").
moneyline_winnerBooleanWhether the moneyline winner was determined.
over_oddsFloat64Over moneyline odds (American format).
over_underFloat64Over/under total line.
spreadFloat64Point spread.
spread_winnerBooleanWhether the spread winner was determined.
under_oddsFloat64Under moneyline odds (American format).
away_team_odds_close_money_line_alternate_display_valueString
away_team_odds_close_money_line_americanString
away_team_odds_close_money_line_decimalFloat64
away_team_odds_close_money_line_display_valueString
away_team_odds_close_money_line_fractionString
away_team_odds_close_money_line_valueFloat64
away_team_odds_close_point_spread_alternate_display_valueString
away_team_odds_close_point_spread_americanString
away_team_odds_close_spread_alternate_display_valueString
away_team_odds_close_spread_americanString
away_team_odds_close_spread_decimalFloat64
away_team_odds_close_spread_display_valueString
away_team_odds_close_spread_fractionString
away_team_odds_close_spread_valueFloat64
away_team_odds_current_money_line_alternate_display_valueString
away_team_odds_current_money_line_americanString
away_team_odds_current_money_line_decimalFloat64
away_team_odds_current_money_line_display_valueString
away_team_odds_current_money_line_fractionString
away_team_odds_current_money_line_valueFloat64
away_team_odds_current_point_spread_alternate_display_valueString
away_team_odds_current_point_spread_americanString
away_team_odds_current_spread_alternate_display_valueString
away_team_odds_current_spread_americanString
away_team_odds_current_spread_decimalFloat64
away_team_odds_current_spread_display_valueString
away_team_odds_current_spread_fractionString
away_team_odds_current_spread_valueFloat64
away_team_odds_favoriteBoolean
away_team_odds_money_lineInt64
away_team_odds_open_favoriteBoolean
away_team_odds_open_money_line_alternate_display_valueString
away_team_odds_open_money_line_americanString
away_team_odds_open_money_line_decimalFloat64
away_team_odds_open_money_line_display_valueString
away_team_odds_open_money_line_fractionString
away_team_odds_open_money_line_valueFloat64
away_team_odds_open_point_spread_alternate_display_valueString
away_team_odds_open_point_spread_americanString
away_team_odds_open_spread_alternate_display_valueString
away_team_odds_open_spread_americanString
away_team_odds_open_spread_decimalFloat64
away_team_odds_open_spread_display_valueString
away_team_odds_open_spread_fractionString
away_team_odds_open_spread_valueFloat64
away_team_odds_spread_oddsFloat64
away_team_odds_team_$refString
away_team_odds_underdogBoolean
close_over_alternate_display_valueString
close_over_americanString
close_over_decimalFloat64
close_over_display_valueString
close_over_fractionString
close_over_valueFloat64
close_total_alternate_display_valueString
close_total_americanString
close_total_decimalFloat64
close_total_display_valueString
close_total_fractionString
close_total_valueFloat64
close_under_alternate_display_valueString
close_under_americanString
close_under_decimalFloat64
close_under_display_valueString
close_under_fractionString
close_under_valueFloat64
current_over_alternate_display_valueString
current_over_americanString
current_over_decimalFloat64
current_over_display_valueString
current_over_fractionString
current_over_valueFloat64
current_total_alternate_display_valueString
current_total_americanString
current_total_decimalFloat64
current_total_display_valueString
current_total_fractionString
current_total_valueFloat64
current_under_alternate_display_valueString
current_under_americanString
current_under_decimalFloat64
current_under_display_valueString
current_under_fractionString
current_under_valueFloat64
home_team_odds_close_money_line_alternate_display_valueString
home_team_odds_close_money_line_americanString
home_team_odds_close_money_line_decimalFloat64
home_team_odds_close_money_line_display_valueString
home_team_odds_close_money_line_fractionString
home_team_odds_close_money_line_valueFloat64
home_team_odds_close_point_spread_alternate_display_valueString
home_team_odds_close_point_spread_americanString
home_team_odds_close_point_spread_decimalFloat64
home_team_odds_close_point_spread_display_valueString
home_team_odds_close_point_spread_fractionString
home_team_odds_close_point_spread_valueFloat64
home_team_odds_close_spread_alternate_display_valueString
home_team_odds_close_spread_americanString
home_team_odds_close_spread_decimalFloat64
home_team_odds_close_spread_display_valueString
home_team_odds_close_spread_fractionString
home_team_odds_close_spread_valueFloat64
home_team_odds_current_money_line_alternate_display_valueString
home_team_odds_current_money_line_americanString
home_team_odds_current_money_line_decimalFloat64
home_team_odds_current_money_line_display_valueString
home_team_odds_current_money_line_fractionString
home_team_odds_current_money_line_valueFloat64
home_team_odds_current_point_spread_alternate_display_valueString
home_team_odds_current_point_spread_americanString
home_team_odds_current_point_spread_decimalFloat64
home_team_odds_current_point_spread_display_valueString
home_team_odds_current_point_spread_fractionString
home_team_odds_current_point_spread_valueFloat64
home_team_odds_current_spread_alternate_display_valueString
home_team_odds_current_spread_americanString
home_team_odds_current_spread_decimalFloat64
home_team_odds_current_spread_display_valueString
home_team_odds_current_spread_fractionString
home_team_odds_current_spread_valueFloat64
home_team_odds_favoriteBoolean
home_team_odds_money_lineInt64
home_team_odds_open_favoriteBoolean
home_team_odds_open_money_line_alternate_display_valueString
home_team_odds_open_money_line_americanString
home_team_odds_open_money_line_decimalFloat64
home_team_odds_open_money_line_display_valueString
home_team_odds_open_money_line_fractionString
home_team_odds_open_money_line_valueFloat64
home_team_odds_open_point_spread_alternate_display_valueString
home_team_odds_open_point_spread_americanString
home_team_odds_open_point_spread_decimalFloat64
home_team_odds_open_point_spread_display_valueString
home_team_odds_open_point_spread_fractionString
home_team_odds_open_point_spread_valueFloat64
home_team_odds_open_spread_alternate_display_valueString
home_team_odds_open_spread_americanString
home_team_odds_open_spread_decimalFloat64
home_team_odds_open_spread_display_valueString
home_team_odds_open_spread_fractionString
home_team_odds_open_spread_valueFloat64
home_team_odds_spread_oddsFloat64
home_team_odds_team_$refString
home_team_odds_underdogBoolean
open_over_alternate_display_valueString
open_over_americanString
open_over_decimalFloat64
open_over_display_valueString
open_over_fractionString
open_over_valueFloat64
open_total_alternate_display_valueString
open_total_americanStringOpening total line in American format (e.g. "5.5").
open_total_decimalFloat64
open_total_display_valueString
open_total_fractionString
open_total_valueFloat64
open_under_alternate_display_valueString
open_under_americanString
open_under_decimalFloat64
open_under_display_valueString
open_under_fractionString
open_under_valueFloat64
provider_$refString
provider_idInt64ESPN provider id parsed from the $ref URL.
provider_nameStringBetting provider name (e.g. "ESPN BET").
provider_priorityInt64Provider display priority.
prop_bets_$refString
countInt64Total items in the ESPN collection across every page (the page envelope's count), the same on every row; more than the row count means this is one page of several (pass the wrapper's limit= or page=).
page_countInt64Pages the collection spans at the requested limit (the page envelope's pageCount), the same on every row; above 1 means rows are missing from this frame.

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_nhl_game_odds(event_id='401584793')

espn_nhl_game_probabilities​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/probabilities

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/probabilities?limit=300

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
cidcidYcid 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
$refString
away_win_percentageFloat64Away team win probability (0-1).
home_win_percentageFloat64Home team win probability (0-1).
last_modifiedStringLast-modified datetime (ISO 8601).
sequence_numberStringPlay sequence number within the game.
spread_cover_prob_homeFloat64
spread_push_probFloat64
tie_percentageFloat64Tie probability (0-1; typically 0 for NHL).
total_over_probFloat64
away_team_$refString
competition_$refString
home_team_$refString
play_$refString
source_descriptionString
source_idInt64Data source identifier.
source_stateString
countInt64Total items in the ESPN collection across every page (the page envelope's count), the same on every row; more than the row count means this is one page of several (pass the wrapper's limit= or page=).
page_countInt64Pages the collection spans at the requested limit (the page envelope's pageCount), the same on every row; above 1 means rows are missing from this frame.

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_nhl_game_probabilities(event_id='401584793')

espn_nhl_game_plays​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/plays

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/plays?limit=1000

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
cidcidYcid 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
$refString
alternative_textString
away_scoreInt64Away team final score.
clock_display_valueStringGame clock display string (e.g. "14:32").
clock_valueFloat64Clock value in seconds.
coordinate_xInt64X coordinate on the ice surface.
coordinate_yInt64Y coordinate on the ice surface.
home_scoreInt64Home team final score.
idInt64Unique player identifier.
modifiedString
period_display_valueStringPeriod display label (e.g. "1st Period").
period_numberInt64Period number (1-3 regulation, 4+ OT).
points_attemptedInt64
priorityBooleanWhether this is a priority play for display.
probability_$refString
score_valueInt64Point value of the scoring play (1 for a goal).
scoring_playBooleanWhether this play resulted in a goal.
sequence_numberStringPlay sequence number within the game.
shooting_playBooleanWhether this is a shot on goal.
team_$refString
textStringFull play description text.
type_idInt64Play type id.
type_textStringPlay type label (e.g. "Goal", "Shot", "Face Off").
validBoolean
wallclockStringWall-clock UTC timestamp of the play.
short_alternative_textString
short_textStringShort play description text.

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_nhl_game_plays(event_id='401584793')

espn_nhl_game_play​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/plays/{play_id}

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/plays/1

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
play_idplay_idYplay_id path parameter.
cidcidYcid 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
$refString
alternative_textString
away_scoreInt64Away team final score.
home_scoreInt64Home team final score.
idInt64Unique player identifier.
modifiedString
participantsString
points_attemptedInt64
priorityBooleanWhether this is a priority play for display.
score_valueInt64Point value of the scoring play (1 for a goal).
scoring_playBooleanWhether this play resulted in a goal.
sequence_numberStringPlay sequence number within the game.
shooting_playBooleanWhether this is a shot on goal.
textStringFull play description text.
validBoolean
wallclockStringWall-clock UTC timestamp of the play.
clock_display_valueStringGame clock display string (e.g. "14:32").
clock_valueFloat64Clock value in seconds.
coordinate_xInt64X coordinate on the ice surface.
coordinate_yInt64Y coordinate on the ice surface.
period_display_valueStringPeriod display label (e.g. "1st Period").
period_numberInt64Period number (1-3 regulation, 4+ OT).
probability_$refString
team_$refString
type_idInt64Play type id.
type_textStringPlay type label (e.g. "Goal", "Shot", "Face Off").

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_nhl_game_play(event_id='401584793', play_id='1')

espn_nhl_game_play_personnel​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/plays/{play_id}/personnel

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/plays/1/personnel

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
play_idplay_idYplay_id path parameter.
cidcidYcid 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, 2026-10-07); its rows sit under keys it does not read (top level: $ref, playPersonnel).

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_nhl_game_play_personnel(event_id='401584793', play_id='1')

espn_nhl_game_situation​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/situation

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/situation

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
cidcidYcid 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
$refString
away_fouls_bonus_stateString
away_fouls_fouls_to_giveInt64
away_fouls_team_foulsInt64
away_fouls_team_fouls_currentInt64
away_timeouts_timeouts_currentInt64
away_timeouts_timeouts_remaining_currentInt64
home_fouls_bonus_stateString
home_fouls_fouls_to_giveInt64
home_fouls_team_foulsInt64
home_fouls_team_fouls_currentInt64
home_timeouts_timeouts_currentInt64
home_timeouts_timeouts_remaining_currentInt64
last_play_$refString

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_nhl_game_situation(event_id='401584793')

espn_nhl_game_status​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/status

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/status

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
cidcidYcid 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
$refString
clockFloat64Game clock time remaining (MM:SS).
display_clockStringGame clock display string (e.g. "0:00").
periodInt64Period number.
type_completedBooleanWhether the game is complete.
type_descriptionStringStatus description (e.g. "Final").
type_detailStringStatus detail string.
type_idInt64Play type id.
type_nameStringStatus type name (e.g. "STATUS_FINAL").
type_short_detailStringShort status detail string.
type_stateStringStatus state (e.g. "pre", "in", "post").

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_nhl_game_status(event_id='401584793')

espn_nhl_game_officials​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/officials

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/officials

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
cidcidYcid 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
$refString
display_nameStringPlayer display name.
first_nameStringPlayer first name.
full_nameStringPlayer full name.
idInt64Unique player identifier.
last_nameStringPlayer last name.
orderInt64Display order within officials list.
position_display_nameStringPosition display name.
position_idInt64Official position identifier.
position_nameStringOfficial position name (e.g. "Referee", "Linesman").
countInt64Total items in the ESPN collection across every page (the page envelope's count), the same on every row; more than the row count means this is one page of several (pass the wrapper's limit= or page=).
page_countInt64Pages the collection spans at the requested limit (the page envelope's pageCount), the same on every row; above 1 means rows are missing from this frame.

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_nhl_game_officials(event_id='401584793')

espn_nhl_game_broadcasts​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/broadcasts

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/broadcasts

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
cidcidYcid 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
channelInt64Channel number identifier.
langStringBroadcast language (e.g. "en").
partneredBooleanWhether this is a partnered broadcast.
priorityInt64Whether this is a priority play for display.
regionStringBroadcast region (e.g. "us").
slugStringURL slug.
stationStringStation full name (e.g. "FanDuel Sports Network Detroit").
competition_$refString
market_idInt64Market identifier.
market_typeStringMarket type.
media_$refString
media_call_lettersStringMedia outlet call letters.
media_idInt64Media outlet identifier.
media_logosString
media_nameStringMedia outlet full name.
media_short_nameStringMedia outlet short name.
media_slugStringMedia outlet slug.
type_idInt64Play type id.
type_long_nameStringBroadcast type long name (e.g. "Television").
type_short_nameStringBroadcast type short name (e.g. "TV").
type_slugStringBroadcast type slug.
countInt64Total items in the ESPN collection across every page (the page envelope's count), the same on every row; more than the row count means this is one page of several (pass the wrapper's limit= or page=).
page_countInt64Pages the collection spans at the requested limit (the page envelope's pageCount), the same on every row; above 1 means rows are missing from this frame.

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_nhl_game_broadcasts(event_id='401584793')

espn_nhl_game_predictor​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/predictor

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/predictor

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
cidcidYcid 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
$refString
last_modifiedStringLast-modified datetime (ISO 8601).
nameStringTeam mascot name.
short_nameStringShort game name.
away_team_statisticsString
away_team_team_$refString
home_team_team_$refString

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_nhl_game_predictor(event_id='401584793')

espn_nhl_game_powerindex​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/powerindex

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/powerindex

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
cidcidYcid 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
countInt64Total athlete count matching the filter.
itemsString
page_countInt64Total pages in the collection.
page_indexInt64
page_sizeInt64

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_nhl_game_powerindex(event_id='401584793')

espn_nhl_game_propbets​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/propbets

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/propbets

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
cidcidYcid 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: 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_nhl_game_propbets(event_id='401584793')

espn_nhl_game_leaders​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/leaders

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/leaders

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
cidcidYcid 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: 404 in nfl, mlb, nhl, wnba, cfb, mbb, wbb; 400 in nba 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_nhl_game_leaders(event_id='401584793')

espn_nhl_game_scoringplays​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/scoringplays

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/scoringplays

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
cidcidYcid 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: 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_nhl_game_scoringplays(event_id='401584793')

espn_nhl_game_official_detail​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/{event_id}/competitions/{cid}/officials/{official_id}

Valid URL: https://sports.core.api.espn.com/v2/sports/hockey/leagues/nhl/events/401584793/competitions/401584793/officials/1

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.
official_idofficial_idYofficial_id path parameter.
cidcidYcid 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
$refString
display_nameStringPlayer display name.
first_nameStringPlayer first name.
full_nameStringPlayer full name.
idInt64Unique player identifier.
last_nameStringPlayer last name.
orderInt64Display order within officials list.
position_display_nameStringPosition display name.
position_idInt64Official position identifier.
position_nameStringOfficial position name (e.g. "Referee", "Linesman").

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_nhl_game_official_detail(event_id='401584793', official_id='1')