Skip to main content
Version: 0.2.0

Golf — ESPN core API (v2) — Game

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')