Skip to main content

Golf — ESPN core API (v2)

sportsdataverse.golf — 25 endpoints.

espn_golf_league_root​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/golf/leagues/pga

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga

API ParameterPythonPatternRequiredNullableDescription

Returns​

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

col_nametypedescription
$refString
abbreviationString
colorString
display_nameString
genderString
guidString
idInt64
is_tournamentBoolean
linksString
logosString
nameString
short_nameString
slugString
uidString
athletes_$refString
awards_$refString
calendar_$refString
draft_$refString
events_$refString
franchises_$refString
group_$refString
groups_$refString
leaders_$refString
notes_$refString
rankings_$refString
season_$refString
season_athletes_$refString
season_coaches_$refString
season_display_nameString
season_end_dateString
season_futures_$refString
season_power_index_leaders_$refString
season_power_indexes_$refString
season_rankings_$refString
season_start_dateString
season_type_$refString
season_type_abbreviationString
season_type_corrections_$refString
season_type_end_dateString
season_type_groups_$refString
season_type_has_groupsBoolean
season_type_has_legsBoolean
season_type_has_standingsBoolean
season_type_idInt64
season_type_nameString
season_type_slugString
season_type_start_dateString
season_type_typeInt64
season_type_weeks_$refString
season_type_yearInt64
season_types_$refString
season_types_countInt64
season_types_itemsString
season_types_page_countInt64
season_types_page_indexInt64
season_types_page_sizeInt64
season_yearInt64
seasons_$refString
teams_$refString
transactions_$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_golf_league_root(league='pga')

espn_golf_season_pointer​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/season

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/season

API ParameterPythonPatternRequiredNullableDescription

Returns​

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

col_nametypedescription
$refString
display_nameString
end_dateString
start_dateString
yearInt64
athletes_$refString
coaches_$refString
futures_$refString
power_index_leaders_$refString
power_indexes_$refString
rankings_$refString
type_$refString
type_abbreviationString
type_corrections_$refString
type_end_dateString
type_groups_$refString
type_has_groupsBoolean
type_has_legsBoolean
type_has_standingsBoolean
type_idInt64
type_nameString
type_slugString
type_start_dateString
type_typeInt64
type_weeks_$refString
type_yearInt64
types_$refString
types_countInt64
types_itemsString
types_page_countInt64
types_page_indexInt64
types_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_golf_season_pointer(league='pga')

espn_golf_seasons​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/seasons

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/seasons?limit=200

API ParameterPythonPatternRequiredNullableDescription
limitlimitYMaximum number of items to return.

Returns​

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

col_nametypedescription
$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_golf_seasons(league='pga')

espn_golf_season_info​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/seasons/{season}

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/seasons/2024

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYseason 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_nameString
end_dateString
start_dateString
yearInt64
awards_$refString
futures_$refString
leaders_$refString
power_index_leaders_$refString
power_indexes_$refString
rankings_$refString
type_$refString
type_abbreviationString
type_corrections_$refString
type_end_dateString
type_groups_$refString
type_has_groupsBoolean
type_has_legsBoolean
type_has_standingsBoolean
type_idInt64
type_leaders_$refString
type_nameString
type_slugString
type_start_dateString
type_typeInt64
type_weeks_$refString
type_yearInt64
types_$refString
types_countInt64
types_itemsString
types_page_countInt64
types_page_indexInt64
types_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_golf_season_info(league='pga', season=2024)

espn_golf_season_types​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/seasons/{season}/types

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/seasons/2024/types

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYseason 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
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_golf_season_types(league='pga', season=2024)

espn_golf_season_type​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/seasons/{season}/types/{season_type}

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/seasons/2024/types/2

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYseason path parameter.
season_typeseason_typeYseason_type 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
abbreviationString
end_dateString
has_groupsBoolean
has_legsBoolean
has_standingsBoolean
idInt64
nameString
slugString
start_dateString
typeInt64
yearInt64
corrections_$refString
groups_$refString
leaders_$refString
weeks_$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_golf_season_type(league='pga', season=2024, season_type=2)

espn_golf_season_type_leaders​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/seasons/{season}/types/{season_type}/leaders

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/seasons/2024/types/2/leaders

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYseason path parameter.
season_typeseason_typeYseason_type path parameter.

Returns​

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

No returns table is published for this endpoint: parser: parse_items returns no columns on the live payload (nba, nfl, mlb, nhl, wnba, cfb, mbb, wbb, 2026-10-07); its rows sit under keys it does not read (top level: $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_golf_season_type_leaders(league='pga', season=2024, season_type=2)

espn_golf_season_players​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/seasons/{season}/athletes

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/seasons/2024/athletes?limit=100&page=1

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYseason path parameter.
limitlimitYMaximum number of items to return.
pagepageYpage query 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
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_golf_season_players(league='pga', season=2024)

espn_golf_players_index​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/athletes

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/athletes?active=true&limit=100&page=1

API ParameterPythonPatternRequiredNullableDescription
activeactiveYactive query parameter.
limitlimitYMaximum number of items to return.
pagepageYpage query 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
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_golf_players_index(league='pga')

espn_golf_player_core​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/athletes/{athlete_id}

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/athletes/4239

API ParameterPythonPatternRequiredNullableDescription
athlete_idathlete_idYathlete_id path parameter.

Returns​

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

col_nametypedescription
$refString
activeBoolean
ageInt64
date_of_birthString
debut_yearInt64
display_heightString
display_nameString
display_weightString
first_nameString
full_nameString
guidString
heightFloat64
idInt64
jerseyString
last_nameString
linkedBoolean
linksString
short_nameString
slugString
typeString
uidString
weightFloat64
alternate_ids_sdrString
birth_place_cityString
birth_place_stateString
college_$refString
college_athlete_$refString
contracts_$refString
draft_display_textString
draft_pick_$refString
draft_roundInt64
draft_selectionInt64
draft_team_$refString
draft_yearInt64
experience_yearsInt64
hand_abbreviationString
hand_display_valueString
hand_typeString
headshot_altString
headshot_hrefString
position_$refString
position_abbreviationString
position_display_nameString
position_idInt64
position_leafBoolean
position_nameString
seasons_$refString
statistics_$refString
statisticslog_$refString
status_abbreviationString
status_idInt64
status_nameString
status_typeString
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_golf_player_core(league='pga', athlete_id='4239')

espn_golf_player_statisticslog​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/athletes/{athlete_id}/statisticslog

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/athletes/4239/statisticslog

API ParameterPythonPatternRequiredNullableDescription
athlete_idathlete_idYathlete_id path parameter.

Returns​

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

col_nametypedescription
statisticsString
season_$refString
countInt64Always null, since the statisticslog payload ships its rows under entries with no page envelope.
page_countInt64Always null, since the statisticslog payload ships its rows under entries with no page envelope.

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_golf_player_statisticslog(league='pga', athlete_id='4239')

espn_golf_player_seasons​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/athletes/{athlete_id}/seasons

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/athletes/4239/seasons

API ParameterPythonPatternRequiredNullableDescription
athlete_idathlete_idYathlete_id path parameter.

Returns​

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

col_nametypedescription
$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_golf_player_seasons(league='pga', athlete_id='4239')

espn_golf_games​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/events

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/events?limit=500

API ParameterPythonPatternRequiredNullableDescription
datesdatesYDate or date range filter (YYYYMMDD or YYYYMMDD-YYYYMMDD).
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
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_golf_games(league='pga')

espn_golf_game​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/events/{event_id}

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/events/401584793

API ParameterPythonPatternRequiredNullableDescription
event_idevent_idYevent_id path parameter.

Returns​

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

col_nametypedescription
$refString
competitionsString
dateString
idInt64
linksString
nameString
short_nameString
time_validBoolean
uidString
venuesString
league_$refString
season_$refString
season_type_$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_golf_game(league='pga', event_id='401584793')

espn_golf_game_competition​

ESPN endpoint.

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

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/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
attendanceInt64
boxscore_availableBoolean
bracket_availableBoolean
commentary_availableBoolean
competitorsString
conference_competitionBoolean
conversation_availableBoolean
dateString
division_competitionBoolean
gamecast_availableBoolean
guidString
highlights_availableBoolean
idInt64
lineup_availableBoolean
linksString
live_availableBoolean
necessaryBoolean
neutral_siteBoolean
notesString
on_watch_espnBoolean
pickcenter_availableBoolean
play_by_play_availableBoolean
possession_arrow_availableBoolean
preview_availableBoolean
recap_availableBoolean
recentBoolean
seriesString
shot_chart_availableBoolean
summary_availableBoolean
tickets_availableBoolean
time_validBoolean
timeouts_availableBoolean
uidString
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_abbreviationString
type_idInt64
type_slugString
type_textString
type_typeString
venue_$refString
venue_address_cityString
venue_address_stateString
venue_full_nameString
venue_grassBoolean
venue_guidString
venue_idInt64
venue_imagesString
venue_indoorBoolean

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_golf_game_competition(league='pga', event_id='401584793')

espn_golf_game_teams​

ESPN endpoint.

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

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/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_awayString
idInt64
orderInt64
typeString
uidString
winnerBoolean
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_golf_game_teams(league='pga', event_id='401584793')

espn_golf_game_team​

ESPN endpoint.

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

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/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_awayString
idInt64
orderInt64
typeString
uidString
winnerBoolean
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_golf_game_team(league='pga', event_id='401584793', team_id='4')

espn_golf_game_team_linescores​

ESPN endpoint.

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

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/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_golf_game_team_linescores(league='pga', event_id='401584793', team_id='4')

espn_golf_game_team_statistics​

ESPN endpoint.

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

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/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_golf_game_team_statistics(league='pga', event_id='401584793', team_id='4')

espn_golf_game_status​

ESPN endpoint.

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

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/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
clockFloat64
display_clockString
periodInt64
type_completedBoolean
type_descriptionString
type_detailString
type_idInt64
type_nameString
type_short_detailString
type_stateString

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_golf_game_status(league='pga', event_id='401584793')

espn_golf_game_broadcasts​

ESPN endpoint.

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

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/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
channelInt64
langString
partneredBoolean
priorityInt64
regionString
slugString
stationString
competition_$refString
market_idInt64
market_typeString
media_$refString
media_call_lettersString
media_idInt64
media_logosString
media_nameString
media_short_nameString
media_slugString
type_idInt64
type_long_nameString
type_short_nameString
type_slugString
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_golf_game_broadcasts(league='pga', event_id='401584793')

espn_golf_game_leaders​

ESPN endpoint.

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

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/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_golf_game_leaders(league='pga', event_id='401584793')

espn_golf_venues​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/venues

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/venues?limit=1000

API ParameterPythonPatternRequiredNullableDescription
limitlimitYMaximum number of items to return.

Returns​

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

col_nametypedescription
$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_golf_venues(league='pga')

espn_golf_venue​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/venues/{venue_id}

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/venues/3663

API ParameterPythonPatternRequiredNullableDescription
venue_idvenue_idYvenue_id path parameter.

Returns​

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

col_nametypedescription
$refString
full_nameString
grassBoolean
guidString
idInt64
imagesString
indoorBoolean

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_golf_venue(league='pga', venue_id='3663')

espn_golf_tournaments​

ESPN endpoint.

Endpoint URL: GET https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/tournaments

Valid URL: https://sports.core.api.espn.com/v2/sports/golf/leagues/pga/tournaments?limit=200

API ParameterPythonPatternRequiredNullableDescription
limitlimitYMaximum number of items to return.

Returns​

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

col_nametypedescription
$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_golf_tournaments(league='pga')