- Public names are sportsdataverse-py's —
athlete→player,event→gameon every ESPN league; sdv-py'sname_patternon the native families (nhlApiWeb*→nhl*,nflApi*→nfl*, CBS's 16 shorts, the 3.0.0 file-stem names). Every pre-v4 name still works as a deprecated alias that warns once. (changelog) - Integer id columns are decimal strings — Every id column of integers (
id,*_id,game_pk,playerId, …) comes back as exact decimal strings on every surface — parsers, producers, loaders, HockeyTech analytics. Compare and join ids as strings;Number(row.game_id)for a safe number back. (changelog) - 400 / 422 raise
InvalidParameterError— For every family (it wasAssetFetchError), never retried; the message names host, path and status with a redacted excerpt of the body. (changelog) - Typed returns — generated row types for
parsed: true— TypeScript only. A wrapper's raw payload resolves tounknown(wasany); verified endpoints resolve to their row interfaces; the summary dispatchers toParsedTables. Narrow or cast a raw payload. (changelog) - Typed wrapper params and loader rows;
strictmode — TypeScript only. A param the endpoint does not have, a missing required path param or a non-booleanboolparam is a type error; parser rows areRecord<string, unknown>; loader rows are their generated row types. (changelog) - Wrapper failures raise
NoDataError/AssetFetchError— Instead of raw axios errors.NoDataError= the fetch worked and there is nothing there (404, ESPN{ code: 404 });AssetFetchError= the fetch failed (403 / 429 / 5xx after retries, network). Retries followDEFAULT_RETRY_STATUSESwith backoff. (changelog)
golf — Site API
9 endpoints on sdv.golf. Each is exposed under a camelCase canonical name and a snake_case alias (py/R parity), accepts snake_case or camelCase params, and returns raw ESPN JSON by default ({ parsed: true } for tidy rows).
espnGolfConferences
GOLF — conferences (ESPN site.api.espn.com).
Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/golf/{league}/groups
| API param | JS | required | description |
|---|---|---|---|
league | league | no | ESPN league slug override (default pga) |
| — | parsed | no | boolean — return tidy rows instead of raw JSON |
Returns: raw ESPN Dict by default. With { parsed: true } the payload is routed through its parser (parse_groups); the column set varies by league and payload, so no fixed table is published. This endpoint is exposed on 42 leagues (nba, wnba, nbagl, nbl, fiba, olympics_mbk, olympics_wbk, nbasl_lv, nbasl_ut, nbasl_ca, nbasl_sac, nbasl_orl, nbasl_gs, mbb, wbb, cfb, nfl, mlb, nhl, mch, wch, college_baseball, college_softball, ufl, xfl, cfl, soccer, epl, laliga, bundesliga, seriea, ligue1, mls, ligamx, ucl, uel, nwsl, wwc, wc, cricket, lacrosse, golf) — see parse_groups for the shared parser note.
Rows are untyped Row[] (not parity-verified yet).
Example:
await sdv.golf.espnGolfConferences({ league: 'pga' });
// snake_case alias (py/R parity): sdv.golf.espn_golf_conferences(...)
espnGolfLeaderboard
GOLF — leaderboard (ESPN site.api.espn.com).
Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/golf/leaderboard
| API param | JS | required | description |
|---|---|---|---|
league | league | no | ESPN league slug override (default pga) |
event | event_id | no | number | string — ESPN event (tournament) id; omitted, the tour's current or most recent event |
| — | parsed | no | boolean — return tidy rows instead of raw JSON |
Returns (with { parsed: true }, via parse_leaderboard):
| col_name | type | description |
|---|---|---|
event_id | character | ESPN event (tournament) id, as a string. |
event_name | character | Tournament name (e.g. "Masters Tournament"). |
event_date | character | Tournament start date, ISO 8601 UTC as ESPN sends it. |
event_status | character | Tournament status name (e.g. "STATUS_FINAL", "STATUS_IN_PROGRESS", "STATUS_SCHEDULED"). |
player_id | character | ESPN golfer (athlete) id, as a string. |
player_name | character | Golfer's display name. |
player_short_name | character | Golfer's short name (e.g. "R. McIlroy"). |
country | character | Country the golfer represents, from the flag ESPN shows beside the name. |
amateur | logical | True for an amateur in the field. Null on the scoreboard, which does not carry it. |
sort_order | integer | Leaderboard order (1 = leader). Players tied on score keep distinct values here. |
position | character | Displayed position, with a "T" prefix for a tie (e.g. "1", "T3"). Null for a player off the board (missed cut, withdrawn) and on the scoreboard. |
position_is_tie | logical | True when the position is shared. Null for a player off the board and on the scoreboard. |
player_status | character | Player status name (e.g. "STATUS_FINISH", "STATUS_CUT", "STATUS_IN_PROGRESS"). ESPN files a withdrawal and a disqualification under "STATUS_CUT" too; player_status_abbr separates them. Null on the scoreboard. |
player_status_abbr | character | Player status as ESPN abbreviates it ("F" finished, "CUT" missed cut, "WD" withdrawn, "DQ" disqualified). Null on the scoreboard. |
playoff | logical | True for a player who was in the event's playoff, False otherwise. Null on the scoreboard. |
thru | integer | Holes completed in the current round (18 when the round is done), whatever hole the round started on. 18 for a playoff player (playoff holes are not a round). Null on the scoreboard. |
to_par | integer | Total score relative to par as an integer ("E" is 0, "-12" is -12); null when no score is posted. |
to_par_display | character | Total score relative to par as ESPN displays it (e.g. "-12", "E", "+3"). |
total_strokes | integer | Total strokes over the rounds played. On the scoreboard it is summed from round_1 to round_4. |
round_1 | integer | Strokes in round 1; null when the round was not played. A round in progress holds the strokes so far (see thru); a playoff is never a round. |
round_2 | integer | Strokes in round 2; null when the round was not played. |
round_3 | integer | Strokes in round 3; null when the round was not played (a missed cut, or not started). |
round_4 | integer | Strokes in round 4; null when the round was not played (a missed cut, a 54-hole event, or not started). |
round_1_to_par | character | Round 1 score relative to par as ESPN displays it (e.g. "-5"); null when the round was not played. |
round_2_to_par | character | Round 2 score relative to par as ESPN displays it; null when the round was not played. |
round_3_to_par | character | Round 3 score relative to par as ESPN displays it; null when the round was not played. |
round_4_to_par | character | Round 4 score relative to par as ESPN displays it; null when the round was not played. |
earnings | numeric | Prize money won, in the tour's currency (0.0 for a missed cut). Null on the scoreboard. |
cup_points | numeric | Season-long points earned at the event (FedExCup on the PGA Tour, the Race to the CME Globe on the LPGA). Null on the scoreboard. |
Rows are untyped Row[] (not parity-verified yet).
Example:
await sdv.golf.espnGolfLeaderboard({ league: 'pga' });
// snake_case alias (py/R parity): sdv.golf.espn_golf_leaderboard(...)
espnGolfNews
GOLF — news (ESPN site.api.espn.com).
Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/golf/{league}/news
| API param | JS | required | description |
|---|---|---|---|
league | league | no | ESPN league slug override (default pga) |
limit | limit | no | number | string — the maximum number of items to return; default 50 |
| — | parsed | no | boolean — return tidy rows instead of raw JSON |
Returns (with { parsed: true }, via parse_news):
| col_name | type | description |
|---|---|---|
id | integer | ESPN numeric identifier for the article. |
now_id | character | ESPN 'now' feed id. |
content_key | character | Internal content key. |
data_source_identifier | character | Source-system identifier. |
type | character | Article type (Story, Media, HeadlineNews, etc.). |
headline | character | Article headline. |
description | character | Article summary/description. |
last_modified | character | Last-modified timestamp (ISO 8601). |
published | character | Publish timestamp (ISO 8601). |
images | character | Article images (list, stringified). |
categories | character | Article categories (list, stringified). |
premium | logical | Whether the article is premium/paywalled. |
links_web_href | character | Web article URL. |
links_mobile_href | character | Mobile article URL. |
links_api_self_href | character | ESPN API canonical self-link for the article resource. |
links_app_sportscenter_href | character | SportsCenter app deep link. |
byline | character | Author byline string as published by ESPN. |
Rows are untyped Row[] (not parity-verified yet).
Example:
await sdv.golf.espnGolfNews({ league: 'pga' });
// snake_case alias (py/R parity): sdv.golf.espn_golf_news(...)
espnGolfScoreboard
GOLF — scoreboard (ESPN site.api.espn.com).
Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/golf/{league}/scoreboard
| API param | JS | required | description |
|---|---|---|---|
league | league | no | ESPN league slug override (default pga) |
dates | dates | no | number | string — One day (YYYYMMDD) or one calendar year (YYYY). A range (YYYYMMDD-YYYYMMDD) is rejected with HTTP 400; request each day, or use the Core v2 events wrapper |
week | week | no | number | string — the week of the season (football) |
seasontype | season_type | no | number | string — the season type: 1 preseason, 2 regular season, 3 postseason |
groups | groups | no | number | string — an ESPN group (conference / division) id, e.g. 50 for all of men's college basketball |
limit | limit | no | number | string — the maximum number of items to return; default 500 |
| — | parsed | no | boolean — return tidy rows instead of raw JSON |
Returns (with { parsed: true }, via parse_leaderboard):
| col_name | type | description |
|---|---|---|
event_id | character | ESPN event (tournament) id, as a string. |
event_name | character | Tournament name (e.g. "Masters Tournament"). |
event_date | character | Tournament start date, ISO 8601 UTC as ESPN sends it. |
event_status | character | Tournament status name (e.g. "STATUS_FINAL", "STATUS_IN_PROGRESS", "STATUS_SCHEDULED"). |
player_id | character | ESPN golfer (athlete) id, as a string. |
player_name | character | Golfer's display name. |
player_short_name | character | Golfer's short name (e.g. "R. McIlroy"). |
country | character | Country the golfer represents, from the flag ESPN shows beside the name. |
amateur | logical | True for an amateur in the field. Null on the scoreboard, which does not carry it. |
sort_order | integer | Leaderboard order (1 = leader). Players tied on score keep distinct values here. |
position | character | Displayed position, with a "T" prefix for a tie (e.g. "1", "T3"). Null for a player off the board (missed cut, withdrawn) and on the scoreboard. |
position_is_tie | logical | True when the position is shared. Null for a player off the board and on the scoreboard. |
player_status | character | Player status name (e.g. "STATUS_FINISH", "STATUS_CUT", "STATUS_IN_PROGRESS"). ESPN files a withdrawal and a disqualification under "STATUS_CUT" too; player_status_abbr separates them. Null on the scoreboard. |
player_status_abbr | character | Player status as ESPN abbreviates it ("F" finished, "CUT" missed cut, "WD" withdrawn, "DQ" disqualified). Null on the scoreboard. |
playoff | logical | True for a player who was in the event's playoff, False otherwise. Null on the scoreboard. |
thru | integer | Holes completed in the current round (18 when the round is done), whatever hole the round started on. 18 for a playoff player (playoff holes are not a round). Null on the scoreboard. |
to_par | integer | Total score relative to par as an integer ("E" is 0, "-12" is -12); null when no score is posted. |
to_par_display | character | Total score relative to par as ESPN displays it (e.g. "-12", "E", "+3"). |
total_strokes | integer | Total strokes over the rounds played. On the scoreboard it is summed from round_1 to round_4. |
round_1 | integer | Strokes in round 1; null when the round was not played. A round in progress holds the strokes so far (see thru); a playoff is never a round. |
round_2 | integer | Strokes in round 2; null when the round was not played. |
round_3 | integer | Strokes in round 3; null when the round was not played (a missed cut, or not started). |
round_4 | integer | Strokes in round 4; null when the round was not played (a missed cut, a 54-hole event, or not started). |
round_1_to_par | character | Round 1 score relative to par as ESPN displays it (e.g. "-5"); null when the round was not played. |
round_2_to_par | character | Round 2 score relative to par as ESPN displays it; null when the round was not played. |
round_3_to_par | character | Round 3 score relative to par as ESPN displays it; null when the round was not played. |
round_4_to_par | character | Round 4 score relative to par as ESPN displays it; null when the round was not played. |
earnings | numeric | Prize money won, in the tour's currency (0.0 for a missed cut). Null on the scoreboard. |
cup_points | numeric | Season-long points earned at the event (FedExCup on the PGA Tour, the Race to the CME Globe on the LPGA). Null on the scoreboard. |
Rows are untyped Row[] (not parity-verified yet).
Example:
await sdv.golf.espnGolfScoreboard({ league: 'pga' });
// snake_case alias (py/R parity): sdv.golf.espn_golf_scoreboard(...)
espnGolfStandings
GOLF — standings (ESPN site.api.espn.com (v2)).
Endpoint URL: GET https://site.api.espn.com/apis/v2/sports/golf/{league}/standings
| API param | JS | required | description |
|---|---|---|---|
league | league | no | ESPN league slug override (default pga) |
season | season | no | number | string — the season year (the year the season ends for winter sports, e.g. 2025 for 2024-25) |
group | group | no | number | string — an ESPN group (conference / division) id |
type | standings_type | no | number | string — the type ESPN query parameter |
| — | parsed | no | boolean — return tidy rows instead of raw JSON |
Returns (with { parsed: true }, via parse_standings):
| col_name | type | description |
|---|---|---|
group_name | character | |
group_abbreviation | character | |
team_id | character | ESPN team id |
team_name | character | |
team_abbreviation | character | Team abbreviation |
team_display_name | character | Team display name |
team_location | character | |
team_logo | character | |
avg_points_against | number | |
avg_points_for | number | |
clincher | integer | |
differential | integer | |
division_win_percent | number | |
games_behind | integer | |
league_win_percent | number | |
losses | integer | Number of matches the team has lost. |
playoff_seed | integer | |
point_differential | integer | Goal difference (for minus against). |
points | integer | Competition points. |
points_against | integer | Goals conceded. |
points_for | integer | Goals (or runs) scored by the team. |
streak | integer | |
win_percent | number | |
wins | integer | Number of matches the team has won. |
games_ahead | integer | |
overall | character | Overall record summary as published by ESPN. |
home | character | |
road | character | |
vs_div | character | |
vs_conf | character | |
last_ten_games | character |
Rows are untyped Row[] (not parity-verified yet).
Example:
await sdv.golf.espnGolfStandings({ league: 'pga' });
// snake_case alias (py/R parity): sdv.golf.espn_golf_standings(...)
espnGolfStatisticsLeague
GOLF — statistics league (ESPN site.api.espn.com).
Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/golf/{league}/statistics
| API param | JS | required | description |
|---|---|---|---|
league | league | no | ESPN league slug override (default pga) |
| — | parsed | no | boolean — return tidy rows instead of raw JSON |
Returns (with { parsed: true }, via parse_items):
| col_name | type | description |
|---|---|---|
$ref | character | Core v2 $ref URL to the resource |
Rows are untyped Row[] (not parity-verified yet).
Example:
await sdv.golf.espnGolfStatisticsLeague({ league: 'pga' });
// snake_case alias (py/R parity): sdv.golf.espn_golf_statistics_league(...)
espnGolfTeam
GOLF — team (ESPN site.api.espn.com).
Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/golf/{league}/teams/{team_id}
| API param | JS | required | description |
|---|---|---|---|
league | league | no | ESPN league slug override (default pga) |
{team_id} | team_id | yes | number | string — the ESPN team id (see espn_<league>_teams) |
| — | parsed | no | boolean — return tidy rows instead of raw JSON |
Returns: raw ESPN Dict by default. With { parsed: true } the payload is routed through its parser (parse_single_entity); the column set varies by league and payload, so no fixed table is published. This endpoint is exposed on 42 leagues (nba, wnba, nbagl, nbl, fiba, olympics_mbk, olympics_wbk, nbasl_lv, nbasl_ut, nbasl_ca, nbasl_sac, nbasl_orl, nbasl_gs, mbb, wbb, cfb, nfl, mlb, nhl, mch, wch, college_baseball, college_softball, ufl, xfl, cfl, soccer, epl, laliga, bundesliga, seriea, ligue1, mls, ligamx, ucl, uel, nwsl, wwc, wc, cricket, lacrosse, golf) — see parse_single_entity for the shared parser note.
Rows are untyped Row[] (not parity-verified yet).
Example:
await sdv.golf.espnGolfTeam({ team_id: '…' });
// snake_case alias (py/R parity): sdv.golf.espn_golf_team(...)
espnGolfTeamSchedule
GOLF — team schedule (ESPN site.api.espn.com).
Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/golf/{league}/teams/{team_id}/schedule
| API param | JS | required | description |
|---|---|---|---|
league | league | no | ESPN league slug override (default pga) |
{team_id} | team_id | yes | number | string — the ESPN team id (see espn_<league>_teams) |
season | season | no | number | string — the season year (the year the season ends for winter sports, e.g. 2025 for 2024-25) |
| — | parsed | no | boolean — return tidy rows instead of raw JSON |
Returns: raw ESPN Dict by default. With { parsed: true } the payload is routed through its parser (parse_team_schedule); the column set varies by league and payload, so no fixed table is published. This endpoint is exposed on 42 leagues (nba, wnba, nbagl, nbl, fiba, olympics_mbk, olympics_wbk, nbasl_lv, nbasl_ut, nbasl_ca, nbasl_sac, nbasl_orl, nbasl_gs, mbb, wbb, cfb, nfl, mlb, nhl, mch, wch, college_baseball, college_softball, ufl, xfl, cfl, soccer, epl, laliga, bundesliga, seriea, ligue1, mls, ligamx, ucl, uel, nwsl, wwc, wc, cricket, lacrosse, golf) — see parse_team_schedule for the shared parser note.
Rows are untyped Row[] (not parity-verified yet).
Example:
await sdv.golf.espnGolfTeamSchedule({ team_id: '…' });
// snake_case alias (py/R parity): sdv.golf.espn_golf_team_schedule(...)
espnGolfTeamsSite
GOLF — teams site (ESPN site.api.espn.com).
Endpoint URL: GET https://site.api.espn.com/apis/site/v2/sports/golf/{league}/teams
| API param | JS | required | description |
|---|---|---|---|
league | league | no | ESPN league slug override (default pga) |
limit | limit | no | number | string — the maximum number of items to return; default 1000 |
| — | parsed | no | boolean — return tidy rows instead of raw JSON |
Returns: raw ESPN Dict by default. With { parsed: true } the payload is routed through its parser (parse_teams); the column set varies by league and payload, so no fixed table is published. This endpoint is exposed on 42 leagues (nba, wnba, nbagl, nbl, fiba, olympics_mbk, olympics_wbk, nbasl_lv, nbasl_ut, nbasl_ca, nbasl_sac, nbasl_orl, nbasl_gs, mbb, wbb, cfb, nfl, mlb, nhl, mch, wch, college_baseball, college_softball, ufl, xfl, cfl, soccer, epl, laliga, bundesliga, seriea, ligue1, mls, ligamx, ucl, uel, nwsl, wwc, wc, cricket, lacrosse, golf) — see parse_teams for the shared parser note.
Rows are untyped Row[] (not parity-verified yet).
Example:
await sdv.golf.espnGolfTeamsSite({ league: 'pga' });
// snake_case alias (py/R parity): sdv.golf.espn_golf_teams_site(...)
Generated by tools/codegen/generate.mjs from tools/codegen/endpoints/espn*.yaml (vendored from sdv-py) — see How this library is built._