Skip to main content
Version: 0.0.70

SOCCER — ESPN site API (v2)

sportsdataverse.soccer — 24 endpoints.

espn_soccer_scoreboard

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/scoreboard

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/scoreboard?dates=20240115

API ParameterPythonPatternRequiredNullableDescription
datesdatesYDate or date range filter (YYYYMMDD or YYYYMMDD-YYYYMMDD).
weekweekYWeek number within the season (football).
seasontypeseason_typeYSeason phase: 1=preseason, 2=regular season, 3=postseason.
groupsgroupsYConference or group id filter (e.g. an ESPN conference id).
limitlimitYMaximum number of items to return.

Returns

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

col_nametypedescription
event_idcharacterESPN event id for the match.
datecharacterMatch start timestamp (ISO 8601, UTC).
namecharacterFull event name (e.g. 'Team A at Team B').
short_namecharacterAbbreviated event name (e.g. 'TA @ TB').
home_teamcharacterHome team display name.
home_team_idcharacterHome team ESPN id.
home_scorecharacterHome team's score. For cricket, the innings string (e.g. '161/5 (18/20 ov, target 156)').
away_teamcharacterAway team display name.
away_team_idcharacterAway team ESPN id.
away_scorecharacterAway team's score. For cricket, the innings string.
statuscharacterStatus type name (e.g. STATUS_FINAL, STATUS_SCHEDULED, STATUS_IN_PROGRESS).
venuecharacterFull name of the venue where the match was played.

return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_scoreboard(dates='20240115')

Last validated n/a.

espn_soccer_summary

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/summary

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/summary

API ParameterPythonPatternRequiredNullableDescription
eventevent_idYevent query parameter.

Returns

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

col_nametypedescription
idcharacterID of the player in the 'name' column.
uidcharacterESPN UID string.
time_validlogicalWhether the start time is confirmed.
season_yearintegerSeason year string ('YYYY-YY' format).
season_typeintegerESPN season-phase numeric code (1=pre-season, 2=regular season, 3=postseason, 4=off-season).
season_slugcharacterSeason slug.
league_idcharacterESPN numeric identifier for the league or competition.
league_namecharacterLeague name.
league_abbreviationcharacterAbbreviation for the league or competition the game belongs to.
competition_idcharacterESPN numeric identifier for the primary competition (game) in the header.
competition_datecharacterDate and time of the competition as recorded in the game header.
neutral_sitelogicalNeutral site.
status_namecharacterStatus label.
status_descriptioncharacterRoster status description (e.g. 'Active').
is_finallogicalBoolean flag indicating whether the game has reached a final or completed status.

lineups

col_nametypedescription
team_idcharacterUnique team identifier.
home_awaycharacterGame venue label ('home' or 'away').
athletecharacterReference or identifier string for the athlete associated with this row in the box score.
athlete_idcharacterUnique athlete identifier (ESPN).
positioncharacterListed roster position (G, F, C, etc.).
starterlogicalTRUE if the player was in the starting lineup; FALSE otherwise.
jerseycharacterJersey number worn by the player.
formation_placecharacterStarting formation position or role assigned to the player within the team lineup for the match.
subbed_inlogicalIndicates whether the player entered the game as a substitute, or the minute of substitution.
subbed_outlogicalIndicates whether the player was substituted out of the game, or the minute of substitution.

key_events

col_nametypedescription
idcharacterID of the player in the 'name' column.
typecharacterRecord type / category.
type_idcharacterType identifier (numeric).
type_slugcharacterBroadcast-type slug (e.g. streaming, tv).
textcharacterText description of the play / record.
short_textcharacterShort play description text.
clockcharacterGame clock value.
clock_valuedoubleClock value in seconds.
periodintegerPeriod of the game (1-4 quarters; 5+ for OT).
team_idcharacterUnique team identifier.
team_namecharacterFull display name of the team.
scoring_playlogicalTRUE if the play resulted in points scored.
athlete_idcharacterUnique athlete identifier (ESPN).
athlete_namecharacterAthlete display name (ESPN).
wallclockcharacterWallclock.

team_stats

col_nametypedescription
team_idcharacterUnique team identifier.
team_namecharacterFull display name of the team.
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
home_awaycharacterGame venue label ('home' or 'away').
fouls_committedcharacterTotal number of fouls committed by the team during the match.
yellow_cardscharacterTotal number of yellow cards received by the team during the match.
red_cardscharacterTotal number of red cards received by the team during the match.
offsidescharacterTotal number of offside calls against the team during the match.
won_cornerscharacterTotal number of corner kicks earned by the team during the match.
savescharacterSaves made.
possession_pctcharacterPercentage of total ball possession time held by the team during the match.
total_shotscharacterTotal number of shot attempts taken by the team during the match.
shots_on_targetcharacterNumber of the team's shot attempts that were on target, requiring a save or resulting in a goal.
shot_pctcharacterPercentage of the team's shot attempts that were on target during the match.
penalty_kick_goalscharacterNumber of goals scored by the team from penalty kicks during the match.
penalty_kick_shotscharacterNumber of penalty kick attempts taken by the team during the match.
accurate_passescharacterNumber of passes completed successfully by the team during the match.
total_passescharacterTotal number of passes attempted by the team during the match.
pass_pctcharacterPercentage of passes attempted by the team that were completed successfully.
accurate_crossescharacterNumber of crosses into the opponent's area completed successfully by the team.
total_crossescharacterTotal number of crossing attempts made by the team during the match.
cross_pctcharacterPercentage of the team's crossing attempts that were accurate during the match.
total_long_ballscharacterTotal number of long-ball passes attempted by the team during the match.
accurate_long_ballscharacterNumber of long-ball passes completed successfully by the team during the match.
longball_pctcharacterPercentage of long-ball attempts by the team that were accurate during the match.
blocked_shotscharacterBlocked shots.
effective_tacklescharacterNumber of tackles by the team that successfully dispossessed the opposing player.
total_tacklescharacterTotal tackles recorded by the player, including both solo and assisted tackles.
tackle_pctcharacterPercentage of the team's tackle attempts that were effective in winning possession.
interceptionscharacterThe number of interceptions thrown.
effective_clearancecharacterNumber of defensive clearances that successfully removed the ball from the danger area for the team.
total_clearancecharacterTotal number of defensive clearances made by the team during the match.

commentary

col_nametypedescription
sequenceintegerSequence order of the season row.
time_displaycharacterHuman-readable game clock time at which a match event occurred.
time_valuedoubleNumeric game clock value at which a match event occurred.
textcharacterText description of the play / record.

leaders

col_nametypedescription
team_idcharacterUnique team identifier.
team_namecharacterFull display name of the team.
categorycharacterCategory label.
category_slugcharacterMachine-readable slug identifying the statistical category the player entry belongs to in the box score.
athlete_idcharacterUnique athlete identifier (ESPN).
athletecharacterReference or identifier string for the athlete associated with this row in the box score.
athlete_positioncharacterPlayer position name; athlete_detail = TRUE only.
valuecharacterNumeric or string value field.
main_stat_labelcharacterHuman-readable label for the primary statistic displayed for the player in the box score.
main_stat_valuecharacterValue of the primary statistic displayed for the player in the box score.
summarycharacterRecord summary string (e.g. "25-15-10").

standings

col_nametypedescription
groupcharacterGroup identifier (e.g. conference 'group_id').
teamcharacterTeam-side label or team identifier.
team_idcharacterUnique team identifier.
team_uidcharacterESPN universal team identifier (UID format 's:40~l:...~t:...').
games_playeddoubleGames played.
lossesdoubleTotal losses.
point_differentialdoublePoint differential.
pointsdoublePoints scored.
tiesdoubleNumber of ties in the series.
winsdoubleTotal wins.
rankdoublePosition of the school within the poll for the given week (1 = top-ranked).
overallcharacterOverall.

head_to_head

col_nametypedescription
event_idcharacterUnique event / game identifier (ESPN).
game_datecharacterGame date (YYYY-MM-DD).
at_vscharacter"at" or "vs" home/away indicator.
scorecharacterFinal score string.
home_team_idcharacterUnique identifier for the home team.
away_team_idcharacterUnique identifier for the away team.
home_team_scorecharacterHome team final score.
away_team_scorecharacterAway team final score.
home_aggregate_scorecharacterAggregate score for the home team across both legs of the two-legged tie.
away_aggregate_scorecharacterAggregate score for the away team across both legs of the two-legged tie.
home_shootout_scorecharacterNumber of penalties scored by the home team in a shootout to decide the tie.
away_shootout_scorecharacterNumber of penalties scored by the away team in a shootout to decide the tie.
game_resultcharacterGame result for the player's team (W/L).
match_notecharacterOptional editorial note or special circumstance annotation attached to this match in the series.
competition_namecharacterFull name of the competition or tournament to which this series match belongs.
round_namecharacterName or label for the round or stage of the competition in which this series match is played.
league_namecharacterLeague name.
league_abbreviationcharacterAbbreviation for the league or competition the game belongs to.
opponentintegerOpposing team of player
perspective_team_idcharacterESPN identifier for the team whose perspective is used to orient the series or match result display.

last_five

col_nametypedescription
team_idcharacterUnique team identifier.
team_namecharacterFull display name of the team.
display_orderintegerNumeric order in which the team or entry is displayed within the box score table.
event_idcharacterUnique event / game identifier (ESPN).
game_datecharacterGame date (YYYY-MM-DD).
at_vscharacter"at" or "vs" home/away indicator.
scorecharacterFinal score string.
home_team_idcharacterUnique identifier for the home team.
away_team_idcharacterUnique identifier for the away team.
home_team_scorecharacterHome team final score.
away_team_scorecharacterAway team final score.
game_resultcharacterGame result for the player's team (W/L).
competition_namecharacterFull name of the competition or tournament to which this series match belongs.
league_namecharacterLeague name.
league_abbreviationcharacterAbbreviation for the league or competition the game belongs to.
opponentintegerOpposing team of player

game_info

col_nametypedescription
venue_idcharacterUnique venue identifier.
venue_full_namecharacterVenue full name.
venue_short_namecharacterAbbreviated or shortened display name for the venue where the game was played.
venue_citycharacterVenue city.
venue_countrycharacterCountry name for the venue where the game was played.
attendanceintegerReported attendance.
officialscharacterWhether officials data is available.

shootout

col_nametypedescription
team_entry_idcharacterESPN identifier for the team entry associated with this shootout or penalty record.
team_namecharacterFull display name of the team.
shot_idcharacterESPN identifier for an individual shootout or penalty kick attempt.
player_idcharacterUnique player identifier.
playercharacterPenalized player name.
shot_numberintegerSequential number of the penalty kick or shootout attempt within the series.
did_scorelogicalBoolean flag indicating whether the penalty kick or shootout attempt resulted in a goal.

return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_summary()

Last validated n/a.

espn_soccer_calendar

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/calendar

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/calendar

API ParameterPythonPatternRequiredNullableDescription

Returns

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_items); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_calendar()

Last validated n/a.

espn_soccer_news

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/news

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/news

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
idintegerESPN numeric identifier for the article.
now_idcharacterESPN 'now' feed id.
content_keycharacterInternal content key.
data_source_identifiercharacterSource-system identifier.
typecharacterArticle type (Story, Media, HeadlineNews, etc.).
headlinecharacterArticle headline.
descriptioncharacterArticle summary/description.
last_modifiedcharacterLast-modified timestamp (ISO 8601).
publishedcharacterPublish timestamp (ISO 8601).
imagescharacterArticle images (list, stringified).
categoriescharacterArticle categories (list, stringified).
premiumlogicalWhether the article is premium/paywalled.
bylinecharacterAuthor byline string as published by ESPN.
links_web_hrefcharacterWeb article URL.
links_mobile_hrefcharacterMobile article URL.
links_api_self_hrefcharacterESPN API canonical self-link for the article resource.
links_app_sportscenter_hrefcharacterSportsCenter app deep link.

return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_news()

Last validated n/a.

espn_soccer_injuries

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/injuries

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/injuries

API ParameterPythonPatternRequiredNullableDescription

Returns

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

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

return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_injuries()

Last validated n/a.

espn_soccer_transactions

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/transactions

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/transactions

API ParameterPythonPatternRequiredNullableDescription

Returns

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_items); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_transactions()

Last validated n/a.

espn_soccer_conferences

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/groups

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/groups

API ParameterPythonPatternRequiredNullableDescription

Returns

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_groups); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_conferences()

Last validated n/a.

espn_soccer_statistics_league

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/statistics

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/statistics

API ParameterPythonPatternRequiredNullableDescription

Returns

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_items); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_statistics_league()

Last validated n/a.

espn_soccer_draft

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/draft

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/draft

API ParameterPythonPatternRequiredNullableDescription

Returns

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_items); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_draft()

Last validated n/a.

espn_soccer_teams_site

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams

API ParameterPythonPatternRequiredNullableDescription
limitlimitYMaximum number of items to return.

Returns

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

col_nametypedescription
team_idcharacterESPN numeric identifier for the team.
display_namecharacterFull display name of the team (e.g. 'Los Angeles Lakers').
abbreviationcharacterTeam abbreviation.
locationcharacterTeam location/city.
namecharacterShort team name, typically the mascot (e.g. 'Lakers').
short_display_namecharacterShort team display name.
nicknamecharacterAlternative nickname used by ESPN for the team.
slugcharacterURL slug for the team.
uidcharacterESPN universal id for the team.
colorcharacterPrimary team color (hex).
alternate_colorcharacterSecondary team color (hex).
is_activelogicalWhether the team is currently active.
is_all_starlogicalWhether the team is an all-star side.

return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_teams_site()

Last validated n/a.

espn_soccer_team

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/{team_id}

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/4

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.

Returns

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_single_entity); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_team(team_id='4')

Last validated n/a.

espn_soccer_team_roster

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/{team_id}/roster

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/4/roster

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.

Returns

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

col_nametypedescription
athlete_idcharacterESPN numeric identifier for the athlete.
uidcharacterESPN universal id for the athlete.
first_namecharacterAthlete's first (given) name.
last_namecharacterAthlete's last (family) name.
display_namecharacterAthlete's full display name as shown on ESPN.
short_namecharacterAthlete's abbreviated display name (e.g. 'L. James').
jerseycharacterAthlete's jersey number as a string.
ageintegerAthlete age in years.
date_of_birthcharacterAthlete date of birth (ISO 8601).
heightdoubleAthlete height in inches.
display_heightcharacterAthlete height, formatted for display.
weightdoubleAthlete weight in pounds.
display_weightcharacterAthlete weight, formatted for display.
positioncharacterPosition abbreviation.
position_namecharacterFull position name (e.g. 'Point Guard', 'Goalkeeper').
birth_citycharacterAthlete birth city.
birth_countrycharacterAthlete birth country.
citizenshipcharacterAthlete citizenship.
gendercharacterAthlete gender.
slugcharacterURL slug for the athlete.
statuscharacterRoster status (e.g. Active).

return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_team_roster(team_id='4')

Last validated n/a.

espn_soccer_team_schedule

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/{team_id}/schedule

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/4/schedule

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

Returns

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

col_nametypedescription
idcharacterESPN numeric event identifier.
datecharacterEvent timestamp (ISO 8601, UTC).
namecharacterFull event name (e.g. 'Team A at Team B').
short_namecharacterAbbreviated event name (e.g. 'TA @ TB').
time_validlogicalWhether the event time is confirmed.
competitionscharacterCompetition detail (list of dicts, stringified): competitors, venue, status.
linkscharacterRelated links (list, stringified).
season_yearintegerFour-digit season year.
season_display_namecharacterHuman-readable season label (e.g. '2024-25').
season_type_idcharacterESPN numeric identifier for the season type.
season_type_typeintegerSeason type numeric code.
season_type_namecharacterSeason type name (e.g. Regular Season).
season_type_abbreviationcharacterSeason type abbreviation.

return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_team_schedule(team_id='4')

Last validated n/a.

espn_soccer_team_record

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/{team_id}/record

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/4/record

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.

Returns

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_items); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_team_record(team_id='4')

Last validated n/a.

espn_soccer_team_depthcharts

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/{team_id}/depthcharts

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/4/depthcharts

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.

Returns

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_items); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_team_depthcharts(team_id='4')

Last validated n/a.

espn_soccer_team_injuries

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/{team_id}/injuries

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/4/injuries

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.

Returns

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

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

return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_team_injuries(team_id='4')

Last validated n/a.

espn_soccer_team_transactions

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/{team_id}/transactions

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/4/transactions

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.

Returns

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_items); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_team_transactions(team_id='4')

Last validated n/a.

espn_soccer_team_history

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/{team_id}/history

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/4/history

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.

Returns

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_items); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_team_history(team_id='4')

Last validated n/a.

espn_soccer_team_news

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/{team_id}/news

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/4/news

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

Returns

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

col_nametypedescription
idintegerESPN numeric identifier for the article.
now_idcharacterESPN 'now' feed id.
content_keycharacterInternal content key.
data_source_identifiercharacterSource-system identifier.
typecharacterArticle type (Story, Media, HeadlineNews, etc.).
headlinecharacterArticle headline.
descriptioncharacterArticle summary/description.
last_modifiedcharacterLast-modified timestamp (ISO 8601).
publishedcharacterPublish timestamp (ISO 8601).
imagescharacterArticle images (list, stringified).
categoriescharacterArticle categories (list, stringified).
premiumlogicalWhether the article is premium/paywalled.
bylinecharacterAuthor byline string as published by ESPN.
links_web_hrefcharacterWeb article URL.
links_mobile_hrefcharacterMobile article URL.
links_api_self_hrefcharacterESPN API canonical self-link for the article resource.
links_app_sportscenter_hrefcharacterSportsCenter app deep link.

return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_team_news(team_id='4')

Last validated n/a.

espn_soccer_team_leaders

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/{team_id}/leaders

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/teams/4/leaders

API ParameterPythonPatternRequiredNullableDescription
team_idteam_idYteam_id path parameter.

Returns

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_items); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_team_leaders(team_id='4')

Last validated n/a.

espn_soccer_player_info

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/athletes/{athlete_id}

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/athletes/4239

API ParameterPythonPatternRequiredNullableDescription
athlete_idathlete_idYathlete_id path parameter.

Returns

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_single_entity); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_player_info(athlete_id='4239')

Last validated n/a.

espn_soccer_player_bio

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/athletes/{athlete_id}/bio

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/athletes/4239/bio

API ParameterPythonPatternRequiredNullableDescription
athlete_idathlete_idYathlete_id path parameter.

Returns

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_single_entity); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_player_bio(athlete_id='4239')

Last validated n/a.

espn_soccer_player_news

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/athletes/{athlete_id}/news

Valid URL: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/athletes/4239/news

API ParameterPythonPatternRequiredNullableDescription
athlete_idathlete_idYathlete_id path parameter.

Returns

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

col_nametypedescription
idintegerESPN numeric identifier for the article.
now_idcharacterESPN 'now' feed id.
content_keycharacterInternal content key.
data_source_identifiercharacterSource-system identifier.
typecharacterArticle type (Story, Media, HeadlineNews, etc.).
headlinecharacterArticle headline.
descriptioncharacterArticle summary/description.
last_modifiedcharacterLast-modified timestamp (ISO 8601).
publishedcharacterPublish timestamp (ISO 8601).
imagescharacterArticle images (list, stringified).
categoriescharacterArticle categories (list, stringified).
premiumlogicalWhether the article is premium/paywalled.
bylinecharacterAuthor byline string as published by ESPN.
links_web_hrefcharacterWeb article URL.
links_mobile_hrefcharacterMobile article URL.
links_api_self_hrefcharacterESPN API canonical self-link for the article resource.
links_app_sportscenter_hrefcharacterSportsCenter app deep link.

return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_player_news(athlete_id='4239')

Last validated n/a.

espn_soccer_standings

ESPN endpoint.

Endpoint URL: GET https://site.api.espn.com/apis/v2/sports/soccer/eng.1/standings

Valid URL: https://site.api.espn.com/apis/v2/sports/soccer/eng.1/standings

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

Returns

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

col_nametypedescription
groupcharacterConference/group/table the row belongs to, flattened from the standings children hierarchy.
teamcharacterDisplay name of the team in this standings row.
team_idcharacterESPN numeric identifier for the team.
team_abbreviationcharacterTeam abbreviation.
notecharacterStandings note (e.g. qualification/relegation marker).
games_playeddoubleMatches played.
lossesdoubleNumber of matches the team has lost.
point_differentialdoubleGoal difference (for minus against).
pointsdoubleCompetition points.
points_againstdoubleGoals conceded.
points_fordoubleGoals (or runs) scored by the team.
tiesdoubleNumber of matches the team has drawn.
winsdoubleNumber of matches the team has won.
advanceddoubleWhether the team has advanced/qualified.
deductionsdoublePoints deducted.
ppgdoublePoints per game.
rankdoublePosition within the group/table.
rank_changedoubleChange in rank versus the previous update.
overallcharacterOverall record summary as published by ESPN.

return_parsed=False — the raw JSON Dict payload, unparsed.

Example

espn_soccer_standings()

Last validated n/a.