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}
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
cid | cid | Y | cid 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_name | type | description |
|---|---|---|
$ref | String | |
attendance | Int64 | Game attendance. |
boxscore_available | Boolean | Whether boxscore data is available. |
bracket_available | Boolean | |
commentary_available | Boolean | |
competitors | String | |
conference_competition | Boolean | Whether it is a conference competition. |
conversation_available | Boolean | |
date | String | Game date (ISO 8601 datetime string). |
division_competition | Boolean | |
gamecast_available | Boolean | |
guid | String | Athlete global unique identifier. |
highlights_available | Boolean | |
id | Int64 | Unique player identifier. |
lineup_available | Boolean | |
links | String | |
live_available | Boolean | |
necessary | Boolean | |
neutral_site | Boolean | Whether the game is at a neutral site. |
notes | String | Notes flag for the pick. |
on_watch_espn | Boolean | Whether the game is/was on WatchESPN. |
pickcenter_available | Boolean | |
play_by_play_available | Boolean | Whether play-by-play data is available. |
possession_arrow_available | Boolean | |
preview_available | Boolean | |
recap_available | Boolean | |
recent | Boolean | Whether the game is recent. |
series | String | Nested list of series within the round. |
shot_chart_available | Boolean | |
summary_available | Boolean | |
tickets_available | Boolean | |
time_valid | Boolean | Whether the start time is confirmed. |
timeouts_available | Boolean | |
uid | String | Competitor uid string. |
wallclock_available | Boolean | |
boxscore_source_description | String | |
boxscore_source_id | Int64 | |
boxscore_source_state | String | |
broadcasts_$ref | String | |
details_$ref | String | |
format_overtime_clock | Float64 | |
format_overtime_display_name | String | |
format_overtime_slug | String | |
format_regulation_clock | Float64 | |
format_regulation_display_name | String | |
format_regulation_periods | Int64 | |
format_regulation_slug | String | |
game_source_description | String | |
game_source_id | Int64 | |
game_source_state | String | |
linescore_source_description | String | |
linescore_source_id | Int64 | |
linescore_source_state | String | |
odds_$ref | String | |
officials_$ref | String | |
play_by_play_source_description | String | |
play_by_play_source_id | Int64 | |
play_by_play_source_state | String | |
power_indexes_$ref | String | |
predictor_$ref | String | |
probabilities_$ref | String | |
relevancy_$ref | String | |
situation_$ref | String | |
stats_source_description | String | |
stats_source_id | Int64 | |
stats_source_state | String | |
status_$ref | String | |
type_abbreviation | String | Play type abbreviation. |
type_id | Int64 | Play type id. |
type_slug | String | Broadcast type slug. |
type_text | String | Play type label (e.g. "Goal", "Shot", "Face Off"). |
type_type | String | |
venue_$ref | String | |
venue_address_city | String | |
venue_address_state | String | |
venue_full_name | String | Venue full name. |
venue_grass | Boolean | |
venue_guid | String | |
venue_id | Int64 | Venue identifier. |
venue_images | String | |
venue_indoor | Boolean | Whether the venue is indoors. |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
cid | cid | Y | cid 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_name | type | description |
|---|---|---|
$ref | String | |
home_away | String | Home or away indicator. |
id | Int64 | Unique player identifier. |
order | Int64 | Display order within officials list. |
type | String | Competitor type (e.g. "team"). |
uid | String | Competitor uid string. |
winner | Boolean | Whether this competitor won the game. |
leaders_$ref | String | |
linescores_$ref | String | |
record_$ref | String | |
roster_$ref | String | |
score_$ref | String | |
statistics_$ref | String | |
team_$ref | String | |
count | Int64 | Total 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_count | Int64 | Pages 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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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}
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
team_id | team_id | Y | team_id path parameter. | ||
cid | cid | Y | cid 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_name | type | description |
|---|---|---|
$ref | String | |
home_away | String | Home or away indicator. |
id | Int64 | Unique player identifier. |
order | Int64 | Display order within officials list. |
type | String | Competitor type (e.g. "team"). |
uid | String | Competitor uid string. |
winner | Boolean | Whether this competitor won the game. |
leaders_$ref | String | |
linescores_$ref | String | |
record_$ref | String | |
roster_$ref | String | |
score_$ref | String | |
statistics_$ref | String | |
team_$ref | String |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
team_id | team_id | Y | team_id path parameter. | ||
cid | cid | Y | cid 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_name | type | description |
|---|---|---|
$ref | String | |
active | Boolean | Whether athlete is currently active. |
starter | Boolean | Whether the goalie started the game. |
did_not_play | Boolean | |
ejected | Boolean |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
team_id | team_id | Y | team_id path parameter. | ||
cid | cid | Y | cid 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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
team_id | team_id | Y | team_id path parameter. | ||
cid | cid | Y | cid 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_name | type | description |
|---|---|---|
split_name | String | Name of the stat split (Core v2 answers one, "All Splits"). |
category_name | String | ESPN stat category of the row (e.g., "defensive", "general", "offensive"). |
stat_name | String | ESPN stat key in camelCase (e.g., "blocks", "defensiveRebounds"). |
stat_abbreviation | String | Short label of the stat (e.g., "BLK"). |
stat_value | Float64 | Numeric value of the team's stat in this game. |
stat_display_value | String | The value as ESPN displays it (a string, e.g., "7"). |
stat_description | String | ESPN's one-sentence definition of the stat. |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
team_id | team_id | Y | team_id path parameter. | ||
cid | cid | Y | cid 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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
team_id | team_id | Y | team_id path parameter. | ||
cid | cid | Y | cid 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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
cid | cid | Y | cid 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_name | type | description |
|---|---|---|
$ref | String | |
details | String | Odds detail string (e.g. "DET -185"). |
moneyline_winner | Boolean | Whether the moneyline winner was determined. |
over_odds | Float64 | Over moneyline odds (American format). |
over_under | Float64 | Over/under total line. |
spread | Float64 | Point spread. |
spread_winner | Boolean | Whether the spread winner was determined. |
under_odds | Float64 | Under moneyline odds (American format). |
away_team_odds_close_money_line_alternate_display_value | String | |
away_team_odds_close_money_line_american | String | |
away_team_odds_close_money_line_decimal | Float64 | |
away_team_odds_close_money_line_display_value | String | |
away_team_odds_close_money_line_fraction | String | |
away_team_odds_close_money_line_value | Float64 | |
away_team_odds_close_point_spread_alternate_display_value | String | |
away_team_odds_close_point_spread_american | String | |
away_team_odds_close_spread_alternate_display_value | String | |
away_team_odds_close_spread_american | String | |
away_team_odds_close_spread_decimal | Float64 | |
away_team_odds_close_spread_display_value | String | |
away_team_odds_close_spread_fraction | String | |
away_team_odds_close_spread_value | Float64 | |
away_team_odds_current_money_line_alternate_display_value | String | |
away_team_odds_current_money_line_american | String | |
away_team_odds_current_money_line_decimal | Float64 | |
away_team_odds_current_money_line_display_value | String | |
away_team_odds_current_money_line_fraction | String | |
away_team_odds_current_money_line_value | Float64 | |
away_team_odds_current_point_spread_alternate_display_value | String | |
away_team_odds_current_point_spread_american | String | |
away_team_odds_current_spread_alternate_display_value | String | |
away_team_odds_current_spread_american | String | |
away_team_odds_current_spread_decimal | Float64 | |
away_team_odds_current_spread_display_value | String | |
away_team_odds_current_spread_fraction | String | |
away_team_odds_current_spread_value | Float64 | |
away_team_odds_favorite | Boolean | |
away_team_odds_money_line | Int64 | |
away_team_odds_open_favorite | Boolean | |
away_team_odds_open_money_line_alternate_display_value | String | |
away_team_odds_open_money_line_american | String | |
away_team_odds_open_money_line_decimal | Float64 | |
away_team_odds_open_money_line_display_value | String | |
away_team_odds_open_money_line_fraction | String | |
away_team_odds_open_money_line_value | Float64 | |
away_team_odds_open_point_spread_alternate_display_value | String | |
away_team_odds_open_point_spread_american | String | |
away_team_odds_open_spread_alternate_display_value | String | |
away_team_odds_open_spread_american | String | |
away_team_odds_open_spread_decimal | Float64 | |
away_team_odds_open_spread_display_value | String | |
away_team_odds_open_spread_fraction | String | |
away_team_odds_open_spread_value | Float64 | |
away_team_odds_spread_odds | Float64 | |
away_team_odds_team_$ref | String | |
away_team_odds_underdog | Boolean | |
close_over_alternate_display_value | String | |
close_over_american | String | |
close_over_decimal | Float64 | |
close_over_display_value | String | |
close_over_fraction | String | |
close_over_value | Float64 | |
close_total_alternate_display_value | String | |
close_total_american | String | |
close_total_decimal | Float64 | |
close_total_display_value | String | |
close_total_fraction | String | |
close_total_value | Float64 | |
close_under_alternate_display_value | String | |
close_under_american | String | |
close_under_decimal | Float64 | |
close_under_display_value | String | |
close_under_fraction | String | |
close_under_value | Float64 | |
current_over_alternate_display_value | String | |
current_over_american | String | |
current_over_decimal | Float64 | |
current_over_display_value | String | |
current_over_fraction | String | |
current_over_value | Float64 | |
current_total_alternate_display_value | String | |
current_total_american | String | |
current_total_decimal | Float64 | |
current_total_display_value | String | |
current_total_fraction | String | |
current_total_value | Float64 | |
current_under_alternate_display_value | String | |
current_under_american | String | |
current_under_decimal | Float64 | |
current_under_display_value | String | |
current_under_fraction | String | |
current_under_value | Float64 | |
home_team_odds_close_money_line_alternate_display_value | String | |
home_team_odds_close_money_line_american | String | |
home_team_odds_close_money_line_decimal | Float64 | |
home_team_odds_close_money_line_display_value | String | |
home_team_odds_close_money_line_fraction | String | |
home_team_odds_close_money_line_value | Float64 | |
home_team_odds_close_point_spread_alternate_display_value | String | |
home_team_odds_close_point_spread_american | String | |
home_team_odds_close_point_spread_decimal | Float64 | |
home_team_odds_close_point_spread_display_value | String | |
home_team_odds_close_point_spread_fraction | String | |
home_team_odds_close_point_spread_value | Float64 | |
home_team_odds_close_spread_alternate_display_value | String | |
home_team_odds_close_spread_american | String | |
home_team_odds_close_spread_decimal | Float64 | |
home_team_odds_close_spread_display_value | String | |
home_team_odds_close_spread_fraction | String | |
home_team_odds_close_spread_value | Float64 | |
home_team_odds_current_money_line_alternate_display_value | String | |
home_team_odds_current_money_line_american | String | |
home_team_odds_current_money_line_decimal | Float64 | |
home_team_odds_current_money_line_display_value | String | |
home_team_odds_current_money_line_fraction | String | |
home_team_odds_current_money_line_value | Float64 | |
home_team_odds_current_point_spread_alternate_display_value | String | |
home_team_odds_current_point_spread_american | String | |
home_team_odds_current_point_spread_decimal | Float64 | |
home_team_odds_current_point_spread_display_value | String | |
home_team_odds_current_point_spread_fraction | String | |
home_team_odds_current_point_spread_value | Float64 | |
home_team_odds_current_spread_alternate_display_value | String | |
home_team_odds_current_spread_american | String | |
home_team_odds_current_spread_decimal | Float64 | |
home_team_odds_current_spread_display_value | String | |
home_team_odds_current_spread_fraction | String | |
home_team_odds_current_spread_value | Float64 | |
home_team_odds_favorite | Boolean | |
home_team_odds_money_line | Int64 | |
home_team_odds_open_favorite | Boolean | |
home_team_odds_open_money_line_alternate_display_value | String | |
home_team_odds_open_money_line_american | String | |
home_team_odds_open_money_line_decimal | Float64 | |
home_team_odds_open_money_line_display_value | String | |
home_team_odds_open_money_line_fraction | String | |
home_team_odds_open_money_line_value | Float64 | |
home_team_odds_open_point_spread_alternate_display_value | String | |
home_team_odds_open_point_spread_american | String | |
home_team_odds_open_point_spread_decimal | Float64 | |
home_team_odds_open_point_spread_display_value | String | |
home_team_odds_open_point_spread_fraction | String | |
home_team_odds_open_point_spread_value | Float64 | |
home_team_odds_open_spread_alternate_display_value | String | |
home_team_odds_open_spread_american | String | |
home_team_odds_open_spread_decimal | Float64 | |
home_team_odds_open_spread_display_value | String | |
home_team_odds_open_spread_fraction | String | |
home_team_odds_open_spread_value | Float64 | |
home_team_odds_spread_odds | Float64 | |
home_team_odds_team_$ref | String | |
home_team_odds_underdog | Boolean | |
open_over_alternate_display_value | String | |
open_over_american | String | |
open_over_decimal | Float64 | |
open_over_display_value | String | |
open_over_fraction | String | |
open_over_value | Float64 | |
open_total_alternate_display_value | String | |
open_total_american | String | Opening total line in American format (e.g. "5.5"). |
open_total_decimal | Float64 | |
open_total_display_value | String | |
open_total_fraction | String | |
open_total_value | Float64 | |
open_under_alternate_display_value | String | |
open_under_american | String | |
open_under_decimal | Float64 | |
open_under_display_value | String | |
open_under_fraction | String | |
open_under_value | Float64 | |
provider_$ref | String | |
provider_id | Int64 | ESPN provider id parsed from the $ref URL. |
provider_name | String | Betting provider name (e.g. "ESPN BET"). |
provider_priority | Int64 | Provider display priority. |
prop_bets_$ref | String | |
count | Int64 | Total 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_count | Int64 | Pages 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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
cid | cid | Y | cid path parameter. | ||
limit | limit | Y | Maximum 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_name | type | description |
|---|---|---|
$ref | String | |
away_win_percentage | Float64 | Away team win probability (0-1). |
home_win_percentage | Float64 | Home team win probability (0-1). |
last_modified | String | Last-modified datetime (ISO 8601). |
sequence_number | String | Play sequence number within the game. |
spread_cover_prob_home | Float64 | |
spread_push_prob | Float64 | |
tie_percentage | Float64 | Tie probability (0-1; typically 0 for NHL). |
total_over_prob | Float64 | |
away_team_$ref | String | |
competition_$ref | String | |
home_team_$ref | String | |
play_$ref | String | |
source_description | String | |
source_id | Int64 | Data source identifier. |
source_state | String | |
count | Int64 | Total 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_count | Int64 | Pages 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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
cid | cid | Y | cid path parameter. | ||
limit | limit | Y | Maximum 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_name | type | description |
|---|---|---|
$ref | String | |
alternative_text | String | |
away_score | Int64 | Away team final score. |
clock_display_value | String | Game clock display string (e.g. "14:32"). |
clock_value | Float64 | Clock value in seconds. |
coordinate_x | Int64 | X coordinate on the ice surface. |
coordinate_y | Int64 | Y coordinate on the ice surface. |
home_score | Int64 | Home team final score. |
id | Int64 | Unique player identifier. |
modified | String | |
period_display_value | String | Period display label (e.g. "1st Period"). |
period_number | Int64 | Period number (1-3 regulation, 4+ OT). |
points_attempted | Int64 | |
priority | Boolean | Whether this is a priority play for display. |
probability_$ref | String | |
score_value | Int64 | Point value of the scoring play (1 for a goal). |
scoring_play | Boolean | Whether this play resulted in a goal. |
sequence_number | String | Play sequence number within the game. |
shooting_play | Boolean | Whether this is a shot on goal. |
team_$ref | String | |
text | String | Full play description text. |
type_id | Int64 | Play type id. |
type_text | String | Play type label (e.g. "Goal", "Shot", "Face Off"). |
valid | Boolean | |
wallclock | String | Wall-clock UTC timestamp of the play. |
short_alternative_text | String | |
short_text | String | Short play description text. |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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}
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
play_id | play_id | Y | play_id path parameter. | ||
cid | cid | Y | cid 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_name | type | description |
|---|---|---|
$ref | String | |
alternative_text | String | |
away_score | Int64 | Away team final score. |
home_score | Int64 | Home team final score. |
id | Int64 | Unique player identifier. |
modified | String | |
participants | String | |
points_attempted | Int64 | |
priority | Boolean | Whether this is a priority play for display. |
score_value | Int64 | Point value of the scoring play (1 for a goal). |
scoring_play | Boolean | Whether this play resulted in a goal. |
sequence_number | String | Play sequence number within the game. |
shooting_play | Boolean | Whether this is a shot on goal. |
text | String | Full play description text. |
valid | Boolean | |
wallclock | String | Wall-clock UTC timestamp of the play. |
clock_display_value | String | Game clock display string (e.g. "14:32"). |
clock_value | Float64 | Clock value in seconds. |
coordinate_x | Int64 | X coordinate on the ice surface. |
coordinate_y | Int64 | Y coordinate on the ice surface. |
period_display_value | String | Period display label (e.g. "1st Period"). |
period_number | Int64 | Period number (1-3 regulation, 4+ OT). |
probability_$ref | String | |
team_$ref | String | |
type_id | Int64 | Play type id. |
type_text | String | Play type label (e.g. "Goal", "Shot", "Face Off"). |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
play_id | play_id | Y | play_id path parameter. | ||
cid | cid | Y | cid 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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
cid | cid | Y | cid 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_name | type | description |
|---|---|---|
$ref | String | |
away_fouls_bonus_state | String | |
away_fouls_fouls_to_give | Int64 | |
away_fouls_team_fouls | Int64 | |
away_fouls_team_fouls_current | Int64 | |
away_timeouts_timeouts_current | Int64 | |
away_timeouts_timeouts_remaining_current | Int64 | |
home_fouls_bonus_state | String | |
home_fouls_fouls_to_give | Int64 | |
home_fouls_team_fouls | Int64 | |
home_fouls_team_fouls_current | Int64 | |
home_timeouts_timeouts_current | Int64 | |
home_timeouts_timeouts_remaining_current | Int64 | |
last_play_$ref | String |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
cid | cid | Y | cid 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_name | type | description |
|---|---|---|
$ref | String | |
clock | Float64 | Game clock time remaining (MM:SS). |
display_clock | String | Game clock display string (e.g. "0:00"). |
period | Int64 | Period number. |
type_completed | Boolean | Whether the game is complete. |
type_description | String | Status description (e.g. "Final"). |
type_detail | String | Status detail string. |
type_id | Int64 | Play type id. |
type_name | String | Status type name (e.g. "STATUS_FINAL"). |
type_short_detail | String | Short status detail string. |
type_state | String | Status state (e.g. "pre", "in", "post"). |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
cid | cid | Y | cid 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_name | type | description |
|---|---|---|
$ref | String | |
display_name | String | Player display name. |
first_name | String | Player first name. |
full_name | String | Player full name. |
id | Int64 | Unique player identifier. |
last_name | String | Player last name. |
order | Int64 | Display order within officials list. |
position_display_name | String | Position display name. |
position_id | Int64 | Official position identifier. |
position_name | String | Official position name (e.g. "Referee", "Linesman"). |
count | Int64 | Total 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_count | Int64 | Pages 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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
cid | cid | Y | cid 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_name | type | description |
|---|---|---|
channel | Int64 | Channel number identifier. |
lang | String | Broadcast language (e.g. "en"). |
partnered | Boolean | Whether this is a partnered broadcast. |
priority | Int64 | Whether this is a priority play for display. |
region | String | Broadcast region (e.g. "us"). |
slug | String | URL slug. |
station | String | Station full name (e.g. "FanDuel Sports Network Detroit"). |
competition_$ref | String | |
market_id | Int64 | Market identifier. |
market_type | String | Market type. |
media_$ref | String | |
media_call_letters | String | Media outlet call letters. |
media_id | Int64 | Media outlet identifier. |
media_logos | String | |
media_name | String | Media outlet full name. |
media_short_name | String | Media outlet short name. |
media_slug | String | Media outlet slug. |
type_id | Int64 | Play type id. |
type_long_name | String | Broadcast type long name (e.g. "Television"). |
type_short_name | String | Broadcast type short name (e.g. "TV"). |
type_slug | String | Broadcast type slug. |
count | Int64 | Total 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_count | Int64 | Pages 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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
cid | cid | Y | cid 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_name | type | description |
|---|---|---|
$ref | String | |
last_modified | String | Last-modified datetime (ISO 8601). |
name | String | Team mascot name. |
short_name | String | Short game name. |
away_team_statistics | String | |
away_team_team_$ref | String | |
home_team_team_$ref | String |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
cid | cid | Y | cid 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_name | type | description |
|---|---|---|
count | Int64 | Total athlete count matching the filter. |
items | String | |
page_count | Int64 | Total pages in the collection. |
page_index | Int64 | |
page_size | Int64 |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
cid | cid | Y | cid 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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
cid | cid | Y | cid 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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
cid | cid | Y | cid 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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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}
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
event_id | event_id | Y | event_id path parameter. | ||
official_id | official_id | Y | official_id path parameter. | ||
cid | cid | Y | cid 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_name | type | description |
|---|---|---|
$ref | String | |
display_name | String | Player display name. |
first_name | String | Player first name. |
full_name | String | Player full name. |
id | Int64 | Unique player identifier. |
last_name | String | Player last name. |
order | Int64 | Display order within officials list. |
position_display_name | String | Position display name. |
position_id | Int64 | Official position identifier. |
position_name | String | Official position name (e.g. "Referee", "Linesman"). |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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')