Skip to main content

asa — native provider reference

  • namespace: sdv.asa (standalone — not an ESPN league)
  • families: American Soccer Analysis
  • wrappers: 15 native

asa is a Soccer provider namespace (no ESPN {sport}/{league} nesting). Every method is exposed under BOTH its snake_case name (<family>_<endpoint>, py/R parity) and a camelCase canonical name (<family><Endpoint>) on sdv.asa. Pass { parsed: true } to any endpoint to get tidy rows instead of raw JSON.

import sdv from 'sportsdataverse';

// American Soccer Analysis is keyless; league_slug is mls | nwsl | uslc | usl1 | mlsnp:
await sdv.asa.asa_teams({ league_slug: 'mls', parsed: true });

Native API — American Soccer Analysis​

Flat (non-ESPN) wrappers for the American Soccer Analysis public API. Host: https://app.americansocceranalysis.com/api/v1. Each method is exposed under BOTH its snake_case name asa_<endpoint> (sdv-py's name, py/R parity) and its camelCase form (canonical) on sdv.asa. Pass { parsed: true } to run the payload through its tidy.js parser; omit it for the raw response. Endpoints marked multi-table parse to several frames in sdv-py; with parsed: true they return the default shown in the Parser column (one sub-frame, or every table as a dict), and section: "<name>" selects any other (an unknown name throws, listing the valid ones).

MethodHTTPPath paramsQuery paramsParserAuth
asa_games / asaGameshttps://app.americansocceranalysis.com/api/v1/{league_slug}/gamesleague_slug*—parse_asa—
asa_games_xgoals / asaGamesXgoalshttps://app.americansocceranalysis.com/api/v1/{league_slug}/games/xgoalsleague_slug*season_name, stage_name, minimum_minutes, general_position, split_by_teams, split_by_seasons, split_by_games, start_date, end_dateparse_asa—
asa_goalkeepers_goals_added / asaGoalkeepersGoalsAddedhttps://app.americansocceranalysis.com/api/v1/{league_slug}/goalkeepers/goals-addedleague_slug*season_name, stage_name, minimum_minutes, general_position, split_by_teams, split_by_seasons, split_by_games, start_date, end_dateparse_asa_goals_added — multi-table: section = summary (default), actions—
asa_goalkeepers_xgoals / asaGoalkeepersXgoalshttps://app.americansocceranalysis.com/api/v1/{league_slug}/goalkeepers/xgoalsleague_slug*season_name, stage_name, minimum_minutes, general_position, split_by_teams, split_by_seasons, split_by_games, start_date, end_dateparse_asa—
asa_managers / asaManagershttps://app.americansocceranalysis.com/api/v1/{league_slug}/managersleague_slug*—parse_asa—
asa_players / asaPlayershttps://app.americansocceranalysis.com/api/v1/{league_slug}/playersleague_slug*—parse_asa—
asa_players_goals_added / asaPlayersGoalsAddedhttps://app.americansocceranalysis.com/api/v1/{league_slug}/players/goals-addedleague_slug*season_name, stage_name, minimum_minutes, general_position, split_by_teams, split_by_seasons, split_by_games, start_date, end_dateparse_asa_goals_added — multi-table: section = summary (default), actions—
asa_players_salaries / asaPlayersSalarieshttps://app.americansocceranalysis.com/api/v1/{league_slug}/players/salariesleague_slug*season_name, stage_name, minimum_minutes, general_position, split_by_teams, split_by_seasons, split_by_games, start_date, end_dateparse_asa—
asa_players_xgoals / asaPlayersXgoalshttps://app.americansocceranalysis.com/api/v1/{league_slug}/players/xgoalsleague_slug*season_name, stage_name, minimum_minutes, general_position, split_by_teams, split_by_seasons, split_by_games, start_date, end_dateparse_asa—
asa_referees / asaRefereeshttps://app.americansocceranalysis.com/api/v1/{league_slug}/refereesleague_slug*—parse_asa—
asa_stadia / asaStadiahttps://app.americansocceranalysis.com/api/v1/{league_slug}/stadialeague_slug*—parse_asa—
asa_teams / asaTeamshttps://app.americansocceranalysis.com/api/v1/{league_slug}/teamsleague_slug*—parse_asa—
asa_teams_goals_added / asaTeamsGoalsAddedhttps://app.americansocceranalysis.com/api/v1/{league_slug}/teams/goals-addedleague_slug*season_name, stage_name, minimum_minutes, general_position, split_by_teams, split_by_seasons, split_by_games, start_date, end_dateparse_asa_goals_added — multi-table: section = summary (default), actions—
asa_teams_xgoals / asaTeamsXgoalshttps://app.americansocceranalysis.com/api/v1/{league_slug}/teams/xgoalsleague_slug*season_name, stage_name, minimum_minutes, general_position, split_by_teams, split_by_seasons, split_by_games, start_date, end_dateparse_asa—
asa_teams_xpass / asaTeamsXpasshttps://app.americansocceranalysis.com/api/v1/{league_slug}/teams/xpassleague_slug*season_name, stage_name, minimum_minutes, general_position, split_by_teams, split_by_seasons, split_by_games, start_date, end_dateparse_asa—

Returns — asa_games / asaGames​

col_nametypedescription
game_idcharacterASA game id (base62 string; Utf8 join key).
date_time_utccharacterKickoff timestamp (UTC, ISO 8601).
home_scoreintegerHome goals (regulation + extra time).
away_scoreintegerAway goals (regulation + extra time).
home_team_idcharacterFK -> Team (home side).
away_team_idcharacterFK -> Team (away side).
referee_idcharacterASA referee id (base62 string; Utf8 join key).
stadium_idcharacterASA stadium id (base62 string; Utf8 join key).
home_manager_idcharacterFK -> Manager (home side; nullable).
away_manager_idcharacterFK -> Manager (away side; nullable).
expanded_minutesintegerTotal match minutes incl. stoppage (data coverage window).
season_namecharacterSeason(s) the player appears in; may serialize as a scalar, a list, or an object across the leagues.
matchdayintegerRound/matchday number.
knockout_gamelogicalTrue if a knockout/playoff fixture.
statuscharacterGame status (e.g. final).
last_updated_utccharacterLast-updated timestamp (UTC, ISO 8601).
attendancenumericReported attendance (nullable).

Returns — asa_games_xgoals / asaGamesXgoals​

col_nametypedescription
game_idcharacterASA game id (base62 string; Utf8 join key).
date_time_utccharacterKickoff timestamp (UTC, ISO 8601).
home_team_idcharacterFK -> Team (home side).
home_goalsintegerHome goals scored.
home_team_xgoalsnumericHome expected goals (team model).
home_player_xgoalsnumericHome expected goals (player-shot model).
away_team_idcharacterFK -> Team (away side).
away_goalsintegerAway goals scored.
away_team_xgoalsnumericAway expected goals (team model).
away_player_xgoalsnumericAway expected goals (player-shot model).
goal_differenceintegergoals_for - goals_against.
team_xgoal_differencenumericHome minus away team xGoals.
player_xgoal_differencenumericHome minus away player xGoals.
final_score_differenceintegerFinal goal margin (home perspective).
home_xpointsnumericHome expected points from the match.
away_xpointsnumericAway expected points from the match.

Returns — asa_goalkeepers_goals_added / asaGoalkeepersGoalsAdded​

col_nametypedescription
player_idcharacterASA player id (base62 string; Utf8 join key).
team_idcharacterASA team id (base62 string; Utf8 join key, never numeric).
minutes_playedintegerMinutes played in the filtered window.

Returns — asa_goalkeepers_xgoals / asaGoalkeepersXgoals​

col_nametypedescription
player_idcharacterASA player id (base62 string; Utf8 join key).
team_idcharacterASA team id (base62 string; Utf8 join key, never numeric).
minutes_playedintegerMinutes played in the filtered window.
shots_facedintegerShots faced.
goals_concededintegerGoals conceded.
savesintegerSaves made.
share_headed_shotsnumericShare of faced shots that were headers.
xgoals_gk_facednumericPost-shot expected goals faced.
goals_minus_xgoals_gknumericGoals conceded minus post-shot xG (negative = shots saved above expectation).
goals_divided_by_xgoals_gknumericGoals conceded / post-shot xG faced.

Returns — asa_managers / asaManagers​

col_nametypedescription
manager_idcharacterASA manager id (base62 string; Utf8 join key).
manager_namecharacterManager display name.
nationalitycharacterPlayer nationality (country name).

Returns — asa_players / asaPlayers​

col_nametypedescription
player_idcharacterASA player id (base62 string; Utf8 join key).
player_namecharacterPlayer display name.
birth_datecharacterDate of birth (YYYY-MM-DD; may be null).
height_ftintegerListed height, feet component.
height_inintegerListed height, inches component.
weight_lbintegerListed weight in pounds.
nationalitycharacterPlayer nationality (country name).
primary_broad_positioncharacterBroad position bucket (Goalkeeper/Defender/Midfielder/Forward).
primary_general_positioncharacterGeneral position code (GK/CB/FB/DM/CM/AM/W/ST).
season_namecharacterSeason(s) the player appears in; may serialize as a scalar, a list, or an object across the leagues.
secondary_general_positioncharacterSecondary general position code (nullable).

Returns — asa_players_goals_added / asaPlayersGoalsAdded​

col_nametypedescription
player_idcharacterASA player id (base62 string; Utf8 join key).
team_idcharacterASA team id (base62 string; Utf8 join key, never numeric).
general_positioncharacterGeneral position code (GK/CB/FB/DM/CM/AM/W/ST).
minutes_playedintegerMinutes played in the filtered window.

Returns — asa_players_salaries / asaPlayersSalaries​

col_nametypedescription
player_idcharacterASA player id (base62 string; Utf8 join key).
team_idcharacterASA team id (base62 string; Utf8 join key, never numeric).
season_nameintegerSeason(s) the player appears in; may serialize as a scalar, a list, or an object across the leagues.
positioncharacterRoster position designation (string; distinct from general_position).
base_salaryintegerBase salary (USD).
guaranteed_compensationintegerGuaranteed compensation (USD).
mlspa_releasecharacterMLSPA salary-release label/date the row is sourced from.

Returns — asa_players_xgoals / asaPlayersXgoals​

col_nametypedescription
player_idcharacterASA player id (base62 string; Utf8 join key).
team_idcharacterASA team id (base62 string; Utf8 join key, never numeric).
general_positioncharacterGeneral position code (GK/CB/FB/DM/CM/AM/W/ST).
minutes_playedintegerMinutes played in the filtered window.
shotsintegerShots taken.
shots_on_targetintegerShots on target.
goalsintegerGoals scored.
xgoalsnumericExpected goals (pre-shot xG).
xplacenumericExpected goals added by shot placement (post-shot minus pre-shot).
goals_minus_xgoalsnumericFinishing over expectation (goals - xG).
key_passesintegerPasses that led to a shot.
primary_assistsintegerPrimary assists.
xassistsnumericExpected assists.
primary_assists_minus_xassistsnumericAssists over expectation.
goals_plus_primary_assistsintegerGoals + primary assists (G+A).
xgoals_plus_xassistsnumericxGoals + xAssists (xG+xA).
points_addednumericTeam points added by the player's attacking output.
xpoints_addednumericExpected team points added.

Returns — asa_referees / asaReferees​

col_nametypedescription
referee_idcharacterASA referee id (base62 string; Utf8 join key).
referee_namecharacterReferee display name.
birth_datecharacterDate of birth (YYYY-MM-DD; may be null).
nationalitycharacterPlayer nationality (country name).

Returns — asa_stadia / asaStadia​

col_nametypedescription
stadium_idcharacterASA stadium id (base62 string; Utf8 join key).
stadium_namecharacterVenue name.
capacityintegerSeating capacity.
year_builtintegerYear the venue opened.
rooflogicalWhether the venue has a roof.
turflogicalWhether the playing surface is artificial turf.
streetcharacterStreet address.
citycharacterCity.
provincecharacterState/province.
countrycharacterCountry.
postal_codecharacterPostal/ZIP code.
latitudenumericLatitude (decimal degrees).
longitudenumericLongitude (decimal degrees).
field_xintegerPitch length (venue-reported field dimension).
field_yintegerPitch width (venue-reported field dimension).

Returns — asa_teams / asaTeams​

col_nametypedescription
team_idcharacterASA team id (base62 string; Utf8 join key, never numeric).
team_namecharacterFull club name.
team_short_namecharacterShort club name.
team_abbreviationcharacterShort (2-4 char) club abbreviation.

Returns — asa_teams_goals_added / asaTeamsGoalsAdded​

col_nametypedescription
team_idcharacterASA team id (base62 string; Utf8 join key, never numeric).
minutesintegerTeam minutes in the window.

Returns — asa_teams_xgoals / asaTeamsXgoals​

col_nametypedescription
team_idcharacterASA team id (base62 string; Utf8 join key, never numeric).
count_gamesintegerGames included in the window.
shots_forintegerShots taken.
shots_againstintegerShots faced.
goals_forintegerGoals scored.
goals_againstintegerGoals conceded.
goal_differenceintegergoals_for - goals_against.
xgoals_fornumericExpected goals created.
xgoals_againstnumericExpected goals conceded.
xgoal_differencenumericxgoals_for - xgoals_against.
goal_difference_minus_xgoal_differencenumericFinishing/keeping over expectation.
pointsintegerActual league points earned.
xpointsnumericExpected league points.

Returns — asa_teams_xpass / asaTeamsXpass​

col_nametypedescription
team_idcharacterASA team id (base62 string; Utf8 join key, never numeric).
count_gamesintegerGames included in the window.
attempted_passes_forintegerPasses attempted by the team.
pass_completion_percentage_fornumericActual pass completion % (for).
xpass_completion_percentage_fornumericExpected pass completion % (for).
passes_completed_over_expected_fornumericPasses completed over expected (for).
passes_completed_over_expected_p100_fornumericPasses completed over expected per 100 passes (for).
avg_vertical_distance_fornumericAverage vertical (goalward) pass distance (for).
attempted_passes_againstintegerPasses attempted by opponents.
pass_completion_percentage_againstnumericActual pass completion % (against).
xpass_completion_percentage_againstnumericExpected pass completion % (against).
passes_completed_over_expected_againstnumericPasses completed over expected (against).
passes_completed_over_expected_p100_againstnumericPasses completed over expected per 100 passes (against).
avg_vertical_distance_againstnumericAverage vertical pass distance (against).
passes_completed_over_expected_differencenumericFor minus against (passes over expected).
avg_vertical_distance_differencenumericFor minus against (vertical distance).