Skip to content

US soccer

MLS, NWSL, NEXT Pro, and USL standings, schedules, stats, and xG as SQL tables

Connector software
Free and open source
Service credentials
Not needed
Use with an agent

Install the Orchard skill in your project to help your agent find connectors, configure them, and verify SQL results.

npx skills add Query-farm/vgi-skills --skill orchard

Copy this request into your coding agent to get started.

Use https://query.farm/products/orchard/connectors/us-soccer/index.md to help me query US soccer with DuckDB or Haybarn 2.0.1 and VGI protocol 3.4. Ask only for missing details about the result I need or whether I want local execution, self-hosting or Query Farm hosting. Check the connector's actual hosting availability, credentials and input requirements. Read one format of each needed reference and the exact object declarations before writing SQL. Use a released connector, and distinguish a saved example result from anything you actually execute. If you cannot run the query, tell me what remains to verify.

mls_historical_match_result

Example output · captured
Connector release
v0.3.1
Engine
2.0.1
VGI protocol
3.4.0
SELECT home_club_abbreviation, home_goals, away_goals,
  away_club_abbreviation
FROM us_soccer.mls.match('MLS-MAT-0009NL');
Result
home_club_abbreviation home_goals away_goals away_club_abbreviation
CIN 0 2 CLB

Quick start

Choose where to run US soccer, then follow the steps below.

The connector runs alongside DuckDB or Haybarn. No Query Farm account is needed.

1. Install the vgi extension

Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.

setup.sql
SET allow_extension_repositories = 'allowed';

CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
    WITH PREFIX 'https://duckdb-extensions.query.farm';

INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;

2. Attach the connector

Attach with uvx

Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.

ATTACH 'us_soccer' AS us_soccer (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-us-soccer'
);

3. Run a query

query.sql
SELECT home_club_abbreviation, home_goals, away_goals,
  away_club_abbreviation
FROM us_soccer.mls.match('MLS-MAT-0009NL');
More example queries →
Technical details
Verified connector release
v0.3.1
Engine
2.0.1
VGI protocol
3.4.0
Verified on
December 1, 2026
Release notes on GitHub
Pin a version for production

When running the connector yourself, keep a specific release until you’re ready to upgrade. Replace the ATTACH statement above with this one and follow the same extension and credential setup.

Attach with uvx

Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.

ATTACH 'us_soccer' AS us_soccer (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-us-soccer'
);

Overview

Read-only MLS, NWSL, and American Soccer Analysis data for US professional soccer

Catalog

Everything us_soccer exposes once attached — read straight from the worker's released build.

us_soccer 3 schemas
asa 6 functions

American Soccer Analysis advanced metrics (CC BY-SA 4.0) for MLS, NWSL, and USL

Schema examples (2)
Examples (2)

2025 MLS teams by expected goal difference.

SELECT team_name, round(xgoal_difference, 1) AS xgd
FROM us_soccer.asa.xg_teams(season := 2025)
ORDER BY xgd DESC;

2025 MLS players with 1,500+ minutes ranked by goals added above average per US$1M of guaranteed compensation, joining goals_added_players to each player's latest salaries() release.

WITH pay AS (SELECT player_id, team_id, guaranteed_compensation FROM us_soccer.asa.salaries(season := 2025) QUALIFY release_date = max(release_date) OVER (PARTITION BY player_id, team_id)) SELECT g.player_name, g.team_abbreviation, round(g.goals_added_above_avg, 2) AS gplus, p.guaranteed_compensation, round(g.goals_added_above_avg / (p.guaranteed_compensation / 1e6), 2) AS gplus_per_million
FROM us_soccer.asa.goals_added_players(season := 2025, minimum_minutes := 1500) AS g
JOIN pay AS p USING (player_id, team_id)
ORDER BY gplus_per_million DESC
LIMIT 10;
Table functions
goals_added_players (league := VARCHAR, minimum_minutes := INTEGER, season := INTEGER, stage := VARCHAR) 2 examples

Player goals added (g+) by action type from American Soccer Analysis

Named arguments
league := VARCHAR
ASA league code: mls, mlsnp (MLS NEXT Pro), nwsl, uslc, usl1, usls (USL Super League), or nasl. · default "mls"
minimum_minutes := INTEGER
Only return player-team lines with at least this many minutes. · default 0
season := INTEGER
Season year (start year for usls 2024-25 style seasons). NULL selects the current year. · default null
stage := VARCHAR
regular_season (default), playoffs, or all games. · default "regular_season"
Returns columns
league VARCHAR
ASA league code, for example mls or nwsl
season INTEGER
Season year
player_id VARCHAR
Opaque ASA player identifier
player_name VARCHAR
Player name from ASA's player directory
team_id VARCHAR
Opaque ASA team identifier
team_name VARCHAR
Team name from ASA's team directory
team_abbreviation VARCHAR
Team abbreviation
general_position VARCHAR
Most common position
minutes_played INTEGER
Minutes played for this team
goals_added_raw DOUBLE
Total goals added (g+) across all action types
goals_added_above_avg DOUBLE
Total g+ relative to an average player at the position
dribbling_above_avg DOUBLE
g+ above positional average from dribbling actions
fouling_above_avg DOUBLE
g+ above positional average from fouling actions
interrupting_above_avg DOUBLE
g+ above positional average from interrupting actions
passing_above_avg DOUBLE
g+ above positional average from passing actions
receiving_above_avg DOUBLE
g+ above positional average from receiving actions
shooting_above_avg DOUBLE
g+ above positional average from shooting actions
Examples (2)

Top 2025 NWSL players by goals added above average.

SELECT player_name, team_abbreviation, general_position,
  round(goals_added_above_avg, 2) AS gplus
FROM us_soccer.asa.goals_added_players(league := 'nwsl', season := 2025, minimum_minutes := 1000)
ORDER BY goals_added_above_avg DESC
LIMIT 10;

2025 MLS players with 1,500+ minutes ranked by goals added above average per US$1M of guaranteed compensation, joining goals_added_players to each player's latest salaries() release.

WITH pay AS (SELECT player_id, team_id, guaranteed_compensation FROM us_soccer.asa.salaries(season := 2025) QUALIFY release_date = max(release_date) OVER (PARTITION BY player_id, team_id)) SELECT g.player_name, g.team_abbreviation, round(g.goals_added_above_avg, 2) AS gplus, p.guaranteed_compensation, round(g.goals_added_above_avg / (p.guaranteed_compensation / 1e6), 2) AS gplus_per_million
FROM us_soccer.asa.goals_added_players(season := 2025, minimum_minutes := 1500) AS g
JOIN pay AS p USING (player_id, team_id)
ORDER BY gplus_per_million DESC
LIMIT 10;
Link
salaries (season := INTEGER) 1 example

MLS Players Association salary releases, as compiled by American Soccer Analysis

Named arguments
season := INTEGER
Season year (start year for usls 2024-25 style seasons). NULL selects the current year. · default null
Returns columns
season INTEGER
Season year
player_id VARCHAR
Opaque ASA player identifier
player_name VARCHAR
Player name from ASA's player directory
team_id VARCHAR
Opaque ASA team identifier
team_name VARCHAR
Team name from ASA's team directory
team_abbreviation VARCHAR
Team abbreviation
mlspa_position VARCHAR
Position as reported by the MLS Players Association
base_salary DOUBLE
Annualized base salary, in US dollars
guaranteed_compensation DOUBLE
Annualized guaranteed compensation, in US dollars
release_date DATE
Date of the MLSPA salary release the figures come from
Example

Highest guaranteed compensation in the latest 2025 release.

SELECT player_name, team_abbreviation, guaranteed_compensation
FROM us_soccer.asa.salaries(season := 2025)
QUALIFY release_date = max(release_date) OVER ()
ORDER BY guaranteed_compensation DESC
LIMIT 10;
Link
teams (league := VARCHAR) 1 example

American Soccer Analysis team directory for one league

Named arguments
league := VARCHAR
ASA league code: mls, mlsnp (MLS NEXT Pro), nwsl, uslc, usl1, usls (USL Super League), or nasl. · default "mls"
Returns columns
league VARCHAR
ASA league code, for example mls or nwsl
team_id VARCHAR
Opaque ASA team identifier
team_name VARCHAR
Team name
team_short_name VARCHAR
Short team name
team_abbreviation VARCHAR
Team abbreviation
Example

USL Championship teams.

SELECT team_abbreviation, team_name
FROM us_soccer.asa.teams(league := 'uslc')
ORDER BY 2;
Link
xg_games (league := VARCHAR, season := INTEGER, stage := VARCHAR) 1 example

Match-level expected goals and expected points for a season

Named arguments
league := VARCHAR
ASA league code: mls, mlsnp (MLS NEXT Pro), nwsl, uslc, usl1, usls (USL Super League), or nasl. · default "mls"
season := INTEGER
Season year (start year for usls 2024-25 style seasons). NULL selects the current year. · default null
stage := VARCHAR
regular_season (default), playoffs, or all games. · default "regular_season"
Returns columns
league VARCHAR
ASA league code, for example mls or nwsl
season INTEGER
Season year
game_id VARCHAR
Opaque ASA game identifier
kickoff TIMESTAMP WITH TIME ZONE
Kickoff time (UTC)
home_team_id VARCHAR
Home team identifier
home_team_name VARCHAR
Home team name
away_team_id VARCHAR
Away team identifier
away_team_name VARCHAR
Away team name
home_goals INTEGER
Home goals
away_goals INTEGER
Away goals
home_xgoals DOUBLE
Home team expected goals
away_xgoals DOUBLE
Away team expected goals
home_xpoints DOUBLE
Home expected points from the xG distribution
away_xpoints DOUBLE
Away expected points from the xG distribution
Example

The 2025 MLS matches with the highest combined xG.

SELECT kickoff, home_team_name, away_team_name, home_goals, away_goals,
  round(home_xgoals + away_xgoals, 2) AS total_xg
FROM us_soccer.asa.xg_games(season := 2025)
ORDER BY total_xg DESC
LIMIT 10;
Link
xg_players (league := VARCHAR, minimum_minutes := INTEGER, season := INTEGER, stage := VARCHAR) 1 example

Player expected goals and expected assists from American Soccer Analysis

Named arguments
league := VARCHAR
ASA league code: mls, mlsnp (MLS NEXT Pro), nwsl, uslc, usl1, usls (USL Super League), or nasl. · default "mls"
minimum_minutes := INTEGER
Only return player-team lines with at least this many minutes. · default 0
season := INTEGER
Season year (start year for usls 2024-25 style seasons). NULL selects the current year. · default null
stage := VARCHAR
regular_season (default), playoffs, or all games. · default "regular_season"
Returns columns
league VARCHAR
ASA league code, for example mls or nwsl
season INTEGER
Season year
player_id VARCHAR
Opaque ASA player identifier
player_name VARCHAR
Player name from ASA's player directory
team_id VARCHAR
Opaque ASA team identifier
team_name VARCHAR
Team name from ASA's team directory
team_abbreviation VARCHAR
Team abbreviation
general_position VARCHAR
Most common position: GK, CB, FB, DM, CM, AM, W, or ST
minutes_played INTEGER
Minutes played for this team
shots INTEGER
Shots attempted
shots_on_target INTEGER
Shots on target
goals INTEGER
Non-own goals scored
xgoals DOUBLE
Expected goals from ASA's shot model
xplace DOUBLE
Goals added by shot placement beyond the pre-shot xG
goals_minus_xgoals DOUBLE
Goals minus expected goals
key_passes INTEGER
Passes leading to a shot
primary_assists INTEGER
Primary assists
xassists DOUBLE
Expected assists
primary_assists_minus_xassists DOUBLE
Primary assists minus expected assists
goals_plus_primary_assists INTEGER
Goals plus primary assists
xgoals_plus_xassists DOUBLE
Expected goals plus expected assists
points_added DOUBLE
Expected league points added by the player's shots and passes
xpoints_added DOUBLE
Expected points added under the xG model
Example

2025 MLS players who most outperformed their xG.

SELECT player_name, team_abbreviation, goals, round(xgoals, 1) AS xg,
  round(goals_minus_xgoals, 1) AS diff
FROM us_soccer.asa.xg_players(season := 2025, minimum_minutes := 1500)
ORDER BY goals_minus_xgoals DESC
LIMIT 10;
Link
xg_teams (league := VARCHAR, season := INTEGER, stage := VARCHAR) 1 example

Team expected goals for and against with expected points

Named arguments
league := VARCHAR
ASA league code: mls, mlsnp (MLS NEXT Pro), nwsl, uslc, usl1, usls (USL Super League), or nasl. · default "mls"
season := INTEGER
Season year (start year for usls 2024-25 style seasons). NULL selects the current year. · default null
stage := VARCHAR
regular_season (default), playoffs, or all games. · default "regular_season"
Returns columns
league VARCHAR
ASA league code, for example mls or nwsl
season INTEGER
Season year
team_id VARCHAR
Opaque ASA team identifier
team_name VARCHAR
Team name
team_abbreviation VARCHAR
Team abbreviation
games INTEGER
Matches played
shots_for INTEGER
Shots taken
shots_against INTEGER
Shots conceded
goals_for INTEGER
Goals scored
goals_against INTEGER
Goals conceded
goal_difference INTEGER
Goals for minus goals against
xgoals_for DOUBLE
Expected goals for
xgoals_against DOUBLE
Expected goals against
xgoal_difference DOUBLE
Expected goal difference
goal_difference_minus_xgoal_difference DOUBLE
Actual minus expected goal difference
points INTEGER
League points
xpoints DOUBLE
Expected points from match xG
Example

2025 MLS teams by expected goal difference.

SELECT team_name, points, round(xpoints, 1) AS xpts,
  round(xgoal_difference, 1) AS xgd
FROM us_soccer.asa.xg_teams(season := 2025)
ORDER BY xgoal_difference DESC;
Link
mls 5 tables · 18 functions

MLS, MLS NEXT Pro, and North American cup competitions from the MLS Stats API

Schema examples (4)
Examples (4)

The current Supporters' Shield table.

SELECT position, club_name, games_played, points, goal_difference
FROM us_soccer.mls.current_standings
ORDER BY position;

Clubs with the best goal difference per game.

SELECT club_name, goal_difference, games_played
FROM us_soccer.mls.current_standings
ORDER BY goal_difference DESC
LIMIT 5;

2025 MLS players who scored the largest share of their club's regular-season goals, joining player_stats to the final standings.

SELECT p.player_name, p.club_abbreviation, p.goals,
  s.goals_for AS club_goals,
  round(100.0 * p.goals / s.goals_for, 1) AS pct_of_club_goals
FROM us_soccer.mls.player_stats(season := 2025) AS p
JOIN us_soccer.mls.standings(season := 2025) AS s USING (club_id)
ORDER BY pct_of_club_goals DESC, p.player_name
LIMIT 10;

Minutes, shots, xG, and goals for every starter in MLS-MAT-0009NL, joining match_lineups to match_player_stats.

SELECT l.club_abbreviation, l.shirt_number, l.player_name, s.minutes_played,
  s.shots, round(s.xg, 2) AS xg, s.goals
FROM us_soccer.mls.match_lineups('MLS-MAT-0009NL') AS l
JOIN us_soccer.mls.match_player_stats('MLS-MAT-0009NL') AS s USING (player_id)
WHERE l.starter
ORDER BY l.club_abbreviation, l.shirt_number;
Tables
competitions 1 example6 cols

Competitions covered by the MLS Stats API, with catalog aliases

Columns
competition_idnot null VARCHAR
MLS Stats API competition identifier.
competition_name VARCHAR
Competition name in English.
competition_name_french VARCHAR
Competition name in French.
competition_type VARCHAR
League for round-robin play or Tournament for cups.
country VARCHAR
Country code the competition is registered under.
alias VARCHAR
Short alias accepted by this catalog's competition arguments.
ConstraintsPRIMARY KEY (competition_id)
Example

Competitions with catalog aliases.

SELECT alias, competition_id, competition_name
FROM us_soccer.mls.competitions
WHERE alias IS NOT NULL
ORDER BY alias;
Link
current_club_stats 1 example35 cols

Current MLS regular-season club statistics, one row per club

Columns
season INTEGER
Season year.
season_id VARCHAR
MLS season id, e.g. MLS-SEA-0001KA.
competition_id VARCHAR
MLS competition id, e.g. MLS-COM-000001.
club_idnot null VARCHAR
Stable MLS club identifier.
club_name VARCHAR
Full club name.
club_short_name VARCHAR
Short club name.
club_abbreviation VARCHAR
Club three-letter code.
matches_played INTEGER
Matches played in this competition and season.
clean_sheets INTEGER
Matches without conceding.
goals INTEGER
Goals scored.
goals_conceded INTEGER
Goals conceded.
xg DOUBLE
Expected goals created, from MLS's tracking-data model.
shots INTEGER
Shots attempted.
shots_on_target INTEGER
Shots on target.
shots_faced INTEGER
Opponent shots on target.
passes INTEGER
Passes attempted, open play and set pieces.
passes_successful INTEGER
Completed passes.
pass_completion DOUBLE
Completed passes divided by passes, 0 to 1.
possession_ratio DOUBLE
Share of ball possession, in percent.
crosses INTEGER
Crosses attempted.
corners INTEGER
Corner kicks taken.
offsides INTEGER
Times caught offside.
fouls_committed INTEGER
Fouls committed.
fouls_suffered INTEGER
Fouls suffered.
yellow_cards INTEGER
Yellow cards.
red_cards INTEGER
Straight red cards.
yellow_red_cards INTEGER
Second-yellow dismissals.
penalties_scored INTEGER
Penalties scored.
penalties_attempted INTEGER
Penalties taken.
own_goals INTEGER
Own goals conceded by this club's players.
goalkeeper_saves INTEGER
Saves by the club's goalkeepers.
aerial_duels_won INTEGER
Aerial duels won.
aerial_duels_lost INTEGER
Aerial duels lost.
counter_attacks INTEGER
Counter-attacks.
distance_covered_m DOUBLE
Total distance covered by the club's players, in meters.
ConstraintsPRIMARY KEY (club_id)
Example

Clubs by expected goals.

SELECT club_name, goals, round(xg, 1) AS xg, possession_ratio
FROM us_soccer.mls.current_club_stats
ORDER BY xg DESC;
Link
current_player_stats 2 examples50 cols

Current MLS regular-season player statistics, one row per player and club

Columns
season INTEGER
Season year.
season_id VARCHAR
MLS season id, e.g. MLS-SEA-0001KA.
competition_id VARCHAR
MLS competition id, e.g. MLS-COM-000001.
player_idnot null VARCHAR
Stable MLS player id, e.g. MLS-OBJ-000396.
player_name VARCHAR
Display name.
first_name VARCHAR
First name.
last_name VARCHAR
Last name.
goalkeeper BOOLEAN
Whether the player is a goalkeeper.
club_idnot null VARCHAR
Club of this line; one row per club.
club_short_name VARCHAR
Short club name.
club_abbreviation VARCHAR
Club three-letter code.
matches_played INTEGER
Matches played for this club.
minutes_played INTEGER
Minutes played.
substitutions_in INTEGER
Appearances as a substitute.
substitutions_out INTEGER
Times substituted off.
goals INTEGER
Goals scored.
assists INTEGER
Assists.
second_assists INTEGER
Second (pre-) assists.
goals_plus_assists INTEGER
Goals plus assists.
xg DOUBLE
Expected goals (MLS tracking model).
goals_minus_xg DOUBLE
Goals minus xg.
shots INTEGER
Shots attempted.
shots_on_target INTEGER
Shots on target.
shots_inside_box INTEGER
Shots from inside the penalty area.
headed_shots INTEGER
Headed shots.
shot_assists INTEGER
Key passes: passes leading to a shot.
passes INTEGER
Passes attempted.
passes_successful INTEGER
Completed passes.
pass_completion DOUBLE
Completed passes divided by passes, 0 to 1.
crosses INTEGER
Crosses attempted.
penalties_scored INTEGER
Penalties scored.
penalties_attempted INTEGER
Penalties taken.
offsides INTEGER
Times caught offside.
fouls_committed INTEGER
Fouls committed.
fouls_suffered INTEGER
Fouls suffered.
yellow_cards INTEGER
Yellow cards.
red_cards INTEGER
Straight red cards.
yellow_red_cards INTEGER
Second-yellow dismissals.
own_goals INTEGER
Own goals.
aerial_duels_won INTEGER
Aerial duels won.
aerial_duels_lost INTEGER
Aerial duels lost.
clearances INTEGER
Defensive clearances.
distance_covered_m DOUBLE
Distance covered, in meters.
max_speed_kmh DOUBLE
Top speed, km/h.
goalkeeper_saves INTEGER
Saves; goalkeepers only.
goals_conceded INTEGER
Goals conceded; goalkeepers only.
clean_sheets INTEGER
Goalkeeper clean sheets; NULL per match.
x_saves DOUBLE
Expected saves (goalkeepers).
x_pass DOUBLE
Expected completed open-play passes.
passing_performance DOUBLE
Open-play completions minus x_pass.
ConstraintsPRIMARY KEY (player_id, club_id)
Examples (2)

Current Golden Boot race.

SELECT player_name, club_abbreviation, goals, assists, round(xg, 1) AS xg
FROM us_soccer.mls.current_player_stats
ORDER BY goals DESC
LIMIT 10;

Goalkeepers with the most saves.

SELECT player_name, club_abbreviation, goalkeeper_saves, clean_sheets
FROM us_soccer.mls.current_player_stats
WHERE goalkeeper
ORDER BY goalkeeper_saves DESC
LIMIT 10;
Link
current_schedule 1 example24 cols

MLS-family matches from seven days ago through fourteen days ahead

Columns
match_idnot null VARCHAR
Stable MLS match identifier, for example MLS-MAT-0009NL.
competition_id VARCHAR
MLS Stats API competition identifier.
competition_name VARCHAR
Competition name.
season INTEGER
Season year.
season_id VARCHAR
MLS Stats API season identifier.
match_day INTEGER
Matchday number within the competition.
match_type VARCHAR
Round label, for example MATCHWEEK 31 or Semifinals.
planned_kickoff TIMESTAMP WITH TIME ZONE
Scheduled kickoff time.
match_status VARCHAR
Match state, for example scheduled or finalWhistle.
home_club_id VARCHAR
Home club identifier.
home_club_name VARCHAR
Home club name.
home_club_abbreviation VARCHAR
Home club three-letter code.
away_club_id VARCHAR
Away club identifier.
away_club_name VARCHAR
Away club name.
away_club_abbreviation VARCHAR
Away club three-letter code.
home_goals INTEGER
Home goals; NULL before kickoff.
away_goals INTEGER
Away goals; NULL before kickoff.
result VARCHAR
Score as home:away; NULL before kickoff.
minute_of_play VARCHAR
Last minute of play recorded, for example 90+6.
conference VARCHAR
Conference of the fixture when MLS labels it.
stadium_id VARCHAR
Stadium identifier.
stadium_name VARCHAR
Stadium name.
stadium_city VARCHAR
Stadium city.
neutral_venue BOOLEAN
Whether the match is at a neutral venue.
ConstraintsPRIMARY KEY (match_id)
Example

Upcoming fixtures.

SELECT planned_kickoff, competition_name, home_club_name, away_club_name
FROM us_soccer.mls.current_schedule
WHERE match_status = 'scheduled'
ORDER BY planned_kickoff;
Link
current_standings 2 examples24 cols

Current MLS regular-season table, one row per club

Columns
season INTEGER
Season year.
season_id VARCHAR
MLS season id, e.g. MLS-SEA-0001KA.
competition_id VARCHAR
MLS competition id, e.g. MLS-COM-000001.
competition_name VARCHAR
Competition name.
standings_split VARCHAR
Requested table: overall, home, away, or form.
group_name VARCHAR
Group label for cup group stages; NULL for a single league table.
match_day INTEGER
Latest matchday reflected in the table.
position INTEGER
Table position.
club_idnot null VARCHAR
Stable MLS club identifier.
club_name VARCHAR
Full club name.
club_short_name VARCHAR
Short club name.
club_abbreviation VARCHAR
Club three-letter code.
games_played INTEGER
Matches played.
wins INTEGER
Wins.
draws INTEGER
Draws.
losses INTEGER
Losses.
goals_for INTEGER
Goals scored.
goals_against INTEGER
Goals conceded.
goal_difference INTEGER
Goals scored minus goals conceded.
points INTEGER
League points.
points_per_game DOUBLE
Points per match as published by MLS.
goals_for_per_game DOUBLE
Goals scored per match.
goals_against_per_game DOUBLE
Goals conceded per match.
tendency VARCHAR
Recent movement in the table: up, down, or stable.
ConstraintsPRIMARY KEY (club_id)
Examples (2)

The current Supporters' Shield table.

SELECT position, club_name, games_played, points, goal_difference
FROM us_soccer.mls.current_standings
ORDER BY position;

Clubs with the best goal difference per game.

SELECT club_name, goal_difference, games_played
FROM us_soccer.mls.current_standings
ORDER BY goal_difference DESC
LIMIT 5;
Link
Table functions
all_competitions () 1 example

Competitions in the MLS Stats API (scan behind the competitions table)

No arguments
Returns columns
competition_id VARCHAR
MLS Stats API competition identifier
competition_name VARCHAR
Competition name in English
competition_name_french VARCHAR
Competition name in French
competition_type VARCHAR
League for round-robin play or Tournament for cups
country VARCHAR
Country code the competition is registered under
alias VARCHAR
Short alias accepted by this catalog's competition arguments
Example

Competitions with their catalog aliases.

SELECT competition_id, competition_name, alias
FROM us_soccer.mls.all_competitions()
ORDER BY 1;
Link
all_current_club_stats () 1 example

Current MLS regular-season club statistics (scan behind current_club_stats)

No arguments
Returns columns
season INTEGER
Season year
season_id VARCHAR
MLS season id, e.g. MLS-SEA-0001KA
competition_id VARCHAR
MLS competition id, e.g. MLS-COM-000001
club_id VARCHAR
Stable MLS club identifier
club_name VARCHAR
Full club name
club_short_name VARCHAR
Short club name
club_abbreviation VARCHAR
Club three-letter code
matches_played INTEGER
Matches played in this competition and season
clean_sheets INTEGER
Matches without conceding
goals INTEGER
Goals scored
goals_conceded INTEGER
Goals conceded
xg DOUBLE
Expected goals created, from MLS's tracking-data model
shots INTEGER
Shots attempted
shots_on_target INTEGER
Shots on target
shots_faced INTEGER
Opponent shots on target
passes INTEGER
Passes attempted, open play and set pieces
passes_successful INTEGER
Completed passes
pass_completion DOUBLE
Completed passes divided by passes, 0 to 1
possession_ratio DOUBLE
Share of ball possession, in percent
crosses INTEGER
Crosses attempted
corners INTEGER
Corner kicks taken
offsides INTEGER
Times caught offside
fouls_committed INTEGER
Fouls committed
fouls_suffered INTEGER
Fouls suffered
yellow_cards INTEGER
Yellow cards
red_cards INTEGER
Straight red cards
yellow_red_cards INTEGER
Second-yellow dismissals
penalties_scored INTEGER
Penalties scored
penalties_attempted INTEGER
Penalties taken
own_goals INTEGER
Own goals conceded by this club's players
goalkeeper_saves INTEGER
Saves by the club's goalkeepers
aerial_duels_won INTEGER
Aerial duels won
aerial_duels_lost INTEGER
Aerial duels lost
counter_attacks INTEGER
Counter-attacks
distance_covered_m DOUBLE
Total distance covered by the club's players, in meters
Example

Read current club statistics directly from the backing scan.

SELECT club_name, goals, xg
FROM us_soccer.mls.all_current_club_stats()
ORDER BY goals DESC;
Link
all_current_player_stats () 1 example

Current MLS regular-season player statistics (scan behind current_player_stats)

No arguments
Returns columns
season INTEGER
Season year
season_id VARCHAR
MLS season id, e.g. MLS-SEA-0001KA
competition_id VARCHAR
MLS competition id, e.g. MLS-COM-000001
player_id VARCHAR
Stable MLS player id, e.g. MLS-OBJ-000396
player_name VARCHAR
Display name
first_name VARCHAR
First name
last_name VARCHAR
Last name
goalkeeper BOOLEAN
Whether the player is a goalkeeper
club_id VARCHAR
Club of this line; one row per club
club_short_name VARCHAR
Short club name
club_abbreviation VARCHAR
Club three-letter code
matches_played INTEGER
Matches played for this club
minutes_played INTEGER
Minutes played
substitutions_in INTEGER
Appearances as a substitute
substitutions_out INTEGER
Times substituted off
goals INTEGER
Goals scored
assists INTEGER
Assists
second_assists INTEGER
Second (pre-) assists
goals_plus_assists INTEGER
Goals plus assists
xg DOUBLE
Expected goals (MLS tracking model)
goals_minus_xg DOUBLE
Goals minus xg
shots INTEGER
Shots attempted
shots_on_target INTEGER
Shots on target
shots_inside_box INTEGER
Shots from inside the penalty area
headed_shots INTEGER
Headed shots
shot_assists INTEGER
Key passes: passes leading to a shot
passes INTEGER
Passes attempted
passes_successful INTEGER
Completed passes
pass_completion DOUBLE
Completed passes divided by passes, 0 to 1
crosses INTEGER
Crosses attempted
penalties_scored INTEGER
Penalties scored
penalties_attempted INTEGER
Penalties taken
offsides INTEGER
Times caught offside
fouls_committed INTEGER
Fouls committed
fouls_suffered INTEGER
Fouls suffered
yellow_cards INTEGER
Yellow cards
red_cards INTEGER
Straight red cards
yellow_red_cards INTEGER
Second-yellow dismissals
own_goals INTEGER
Own goals
aerial_duels_won INTEGER
Aerial duels won
aerial_duels_lost INTEGER
Aerial duels lost
clearances INTEGER
Defensive clearances
distance_covered_m DOUBLE
Distance covered, in meters
max_speed_kmh DOUBLE
Top speed, km/h
goalkeeper_saves INTEGER
Saves; goalkeepers only
goals_conceded INTEGER
Goals conceded; goalkeepers only
clean_sheets INTEGER
Goalkeeper clean sheets; NULL per match
x_saves DOUBLE
Expected saves (goalkeepers)
x_pass DOUBLE
Expected completed open-play passes
passing_performance DOUBLE
Open-play completions minus x_pass
Example

Read current player statistics directly from the backing scan.

SELECT player_name, goals
FROM us_soccer.mls.all_current_player_stats()
ORDER BY goals DESC
LIMIT 5;
Link
all_current_schedule () 1 example

MLS-family matches from 7 days ago to 14 days ahead (scan behind current_schedule)

No arguments
Returns columns
match_id VARCHAR
Stable MLS match identifier, for example MLS-MAT-0009NL
competition_id VARCHAR
MLS Stats API competition identifier
competition_name VARCHAR
Competition name
season INTEGER
Season year
season_id VARCHAR
MLS Stats API season identifier
match_day INTEGER
Matchday number within the competition
match_type VARCHAR
Round label, for example MATCHWEEK 31 or Semifinals
planned_kickoff TIMESTAMP WITH TIME ZONE
Scheduled kickoff time
match_status VARCHAR
Match state, for example scheduled or finalWhistle
home_club_id VARCHAR
Home club identifier
home_club_name VARCHAR
Home club name
home_club_abbreviation VARCHAR
Home club three-letter code
away_club_id VARCHAR
Away club identifier
away_club_name VARCHAR
Away club name
away_club_abbreviation VARCHAR
Away club three-letter code
home_goals INTEGER
Home goals; NULL before kickoff
away_goals INTEGER
Away goals; NULL before kickoff
result VARCHAR
Score as home:away; NULL before kickoff
minute_of_play VARCHAR
Last minute of play recorded, for example 90+6
conference VARCHAR
Conference of the fixture when MLS labels it
stadium_id VARCHAR
Stadium identifier
stadium_name VARCHAR
Stadium name
stadium_city VARCHAR
Stadium city
neutral_venue BOOLEAN
Whether the match is at a neutral venue
Example

Read the rolling schedule window directly.

SELECT planned_kickoff, home_club_name, away_club_name
FROM us_soccer.mls.all_current_schedule()
ORDER BY planned_kickoff;
Link
all_current_standings () 1 example

Current MLS regular-season table (scan behind current_standings)

No arguments
Returns columns
season INTEGER
Season year
season_id VARCHAR
MLS season id, e.g. MLS-SEA-0001KA
competition_id VARCHAR
MLS competition id, e.g. MLS-COM-000001
competition_name VARCHAR
Competition name
standings_split VARCHAR
Requested table: overall, home, away, or form
group_name VARCHAR
Group label for cup group stages; NULL for a single league table
match_day INTEGER
Latest matchday reflected in the table
position INTEGER
Table position
club_id VARCHAR
Stable MLS club identifier
club_name VARCHAR
Full club name
club_short_name VARCHAR
Short club name
club_abbreviation VARCHAR
Club three-letter code
games_played INTEGER
Matches played
wins INTEGER
Wins
draws INTEGER
Draws
losses INTEGER
Losses
goals_for INTEGER
Goals scored
goals_against INTEGER
Goals conceded
goal_difference INTEGER
Goals scored minus goals conceded
points INTEGER
League points
points_per_game DOUBLE
Points per match as published by MLS
goals_for_per_game DOUBLE
Goals scored per match
goals_against_per_game DOUBLE
Goals conceded per match
tendency VARCHAR
Recent movement in the table: up, down, or stable
Example

Read the current table directly from its backing scan.

SELECT position, club_name, points
FROM us_soccer.mls.all_current_standings()
ORDER BY position;
Link
club_stats (competition := VARCHAR, season := INTEGER) 1 example

Season club statistics for an MLS-family competition

Named arguments
competition := VARCHAR
Competition alias (mls, mls_playoffs, next_pro, next_pro_playoffs, leagues_cup, us_open_cup, canadian_championship, champions_cup, campeones_cup, all_star) or a raw MLS-COM- id. · default "mls"
season := INTEGER
Season year. NULL selects the current season. · default null
Returns columns
season INTEGER
Season year
season_id VARCHAR
MLS season id, e.g. MLS-SEA-0001KA
competition_id VARCHAR
MLS competition id, e.g. MLS-COM-000001
club_id VARCHAR
Stable MLS club identifier
club_name VARCHAR
Full club name
club_short_name VARCHAR
Short club name
club_abbreviation VARCHAR
Club three-letter code
matches_played INTEGER
Matches played in this competition and season
clean_sheets INTEGER
Matches without conceding
goals INTEGER
Goals scored
goals_conceded INTEGER
Goals conceded
xg DOUBLE
Expected goals created, from MLS's tracking-data model
shots INTEGER
Shots attempted
shots_on_target INTEGER
Shots on target
shots_faced INTEGER
Opponent shots on target
passes INTEGER
Passes attempted, open play and set pieces
passes_successful INTEGER
Completed passes
pass_completion DOUBLE
Completed passes divided by passes, 0 to 1
possession_ratio DOUBLE
Share of ball possession, in percent
crosses INTEGER
Crosses attempted
corners INTEGER
Corner kicks taken
offsides INTEGER
Times caught offside
fouls_committed INTEGER
Fouls committed
fouls_suffered INTEGER
Fouls suffered
yellow_cards INTEGER
Yellow cards
red_cards INTEGER
Straight red cards
yellow_red_cards INTEGER
Second-yellow dismissals
penalties_scored INTEGER
Penalties scored
penalties_attempted INTEGER
Penalties taken
own_goals INTEGER
Own goals conceded by this club's players
goalkeeper_saves INTEGER
Saves by the club's goalkeepers
aerial_duels_won INTEGER
Aerial duels won
aerial_duels_lost INTEGER
Aerial duels lost
counter_attacks INTEGER
Counter-attacks
distance_covered_m DOUBLE
Total distance covered by the club's players, in meters
Example

2025 MLS clubs by expected goals.

SELECT club_name, goals, round(xg, 1) AS xg, possession_ratio
FROM us_soccer.mls.club_stats(season := 2025)
ORDER BY xg DESC;
Link
clubs (competition := VARCHAR, season := INTEGER) 1 example

Clubs registered in an MLS-family competition and season

Named arguments
competition := VARCHAR
Competition alias (mls, mls_playoffs, next_pro, next_pro_playoffs, leagues_cup, us_open_cup, canadian_championship, champions_cup, campeones_cup, all_star) or a raw MLS-COM- id. · default "mls"
season := INTEGER
Season year. NULL selects the current season. · default null
Returns columns
season INTEGER
Season year
season_id VARCHAR
MLS season id, e.g. MLS-SEA-0001KA
competition_id VARCHAR
MLS competition id, e.g. MLS-COM-000001
club_id VARCHAR
Stable MLS club identifier
club_name VARCHAR
Full club name
club_short_name VARCHAR
Short club name
club_abbreviation VARCHAR
Club three-letter code
city VARCHAR
Home city
country VARCHAR
Country code
Example

Clubs in the 2025 MLS regular season.

SELECT club_abbreviation, club_name, city
FROM us_soccer.mls.clubs(season := 2025)
ORDER BY 2;
Link
match (match_id VARCHAR) 1 example

Summary of one MLS match: score, venue, attendance, formations, coaches, referee

Arguments
match_id VARCHAR
MLS match identifier, for example MLS-MAT-0009NL, from schedule().
Returns columns
match_id VARCHAR
Stable MLS match identifier, for example MLS-MAT-0009NL
competition_id VARCHAR
MLS Stats API competition identifier
competition_name VARCHAR
Competition name
season INTEGER
Season year
season_id VARCHAR
MLS Stats API season identifier
match_day INTEGER
Matchday number within the competition
match_type VARCHAR
Round label, for example MATCHWEEK 31 or Semifinals
planned_kickoff TIMESTAMP WITH TIME ZONE
Scheduled kickoff time
match_status VARCHAR
Match state, for example scheduled or finalWhistle
home_club_id VARCHAR
Home club identifier
home_club_name VARCHAR
Home club name
home_club_abbreviation VARCHAR
Home club three-letter code
away_club_id VARCHAR
Away club identifier
away_club_name VARCHAR
Away club name
away_club_abbreviation VARCHAR
Away club three-letter code
home_goals INTEGER
Home goals; NULL before kickoff
away_goals INTEGER
Away goals; NULL before kickoff
result VARCHAR
Score as home:away; NULL before kickoff
minute_of_play VARCHAR
Last minute of play recorded, for example 90+6
conference VARCHAR
Conference of the fixture when MLS labels it
stadium_id VARCHAR
Stadium identifier
stadium_name VARCHAR
Stadium name
stadium_city VARCHAR
Stadium city
kickoff TIMESTAMP WITH TIME ZONE
Actual kickoff time
attendance INTEGER
Announced attendance
stadium_capacity INTEGER
Stadium capacity
sold_out BOOLEAN
Whether the match was sold out
temperature_c INTEGER
Air temperature at kickoff, in degrees Celsius
home_formation VARCHAR
Home starting formation, for example 3-5-2
away_formation VARCHAR
Away starting formation
home_head_coach VARCHAR
Home head coach
away_head_coach VARCHAR
Away head coach
referee VARCHAR
Center referee
Example

FC Cincinnati vs Columbus Crew, 18 October 2026.

SELECT home_club_name, home_goals, away_goals, away_club_name, attendance,
  referee
FROM us_soccer.mls.match('MLS-MAT-0009NL');
Link
match_club_stats (match_id VARCHAR) 1 example

Team box score for one MLS match

Arguments
match_id VARCHAR
MLS match identifier, for example MLS-MAT-0009NL, from schedule().
Returns columns
match_id VARCHAR
MLS match identifier
team_role VARCHAR
home or away
club_id VARCHAR
Club identifier
club_name VARCHAR
Full club name
club_abbreviation VARCHAR
Club three-letter code
goals INTEGER
Goals scored
goals_conceded INTEGER
Goals conceded
xg DOUBLE
Expected goals created, from MLS's tracking-data model
shots INTEGER
Shots attempted
shots_on_target INTEGER
Shots on target
shots_faced INTEGER
Opponent shots on target
passes INTEGER
Passes attempted, open play and set pieces
passes_successful INTEGER
Completed passes
pass_completion DOUBLE
Completed passes divided by passes, 0 to 1
possession_ratio DOUBLE
Share of ball possession, in percent
crosses INTEGER
Crosses attempted
corners INTEGER
Corner kicks taken
offsides INTEGER
Times caught offside
fouls_committed INTEGER
Fouls committed
fouls_suffered INTEGER
Fouls suffered
yellow_cards INTEGER
Yellow cards
red_cards INTEGER
Straight red cards
yellow_red_cards INTEGER
Second-yellow dismissals
penalties_scored INTEGER
Penalties scored
penalties_attempted INTEGER
Penalties taken
own_goals INTEGER
Own goals conceded by this club's players
goalkeeper_saves INTEGER
Saves by the club's goalkeepers
aerial_duels_won INTEGER
Aerial duels won
aerial_duels_lost INTEGER
Aerial duels lost
counter_attacks INTEGER
Counter-attacks
distance_covered_m DOUBLE
Total distance covered by the club's players, in meters
Example

Compare both sides.

SELECT team_role, club_abbreviation, goals, shots, round(xg, 2) AS xg,
  possession_ratio
FROM us_soccer.mls.match_club_stats('MLS-MAT-0009NL')
ORDER BY team_role DESC;
Link
match_commentary (match_id VARCHAR) 1 example

English text commentary for one MLS match

Arguments
match_id VARCHAR
MLS match identifier, for example MLS-MAT-0009NL, from schedule().
Returns columns
match_id VARCHAR
MLS match identifier
event_id VARCHAR
Commentary entry identifier
event_time TIMESTAMP WITH TIME ZONE
Wall-clock time of the commented event
minute INTEGER
Elapsed match minute
second INTEGER
Elapsed second within the minute
minute_of_play VARCHAR
Displayed match minute, for example 90'+6
game_section VARCHAR
Period of play
commentary_type VARCHAR
Commentary category, for example Foul or ShotAtGoal
commentary VARCHAR
English commentary text
club_id VARCHAR
Club the entry concerns
club_abbreviation VARCHAR
Club three-letter code
player_id VARCHAR
Primary player identifier
other_player_id VARCHAR
Secondary player identifier
Example

Commentary on shots.

SELECT minute_of_play, commentary
FROM us_soccer.mls.match_commentary('MLS-MAT-0009NL')
WHERE commentary_type = 'ShotAtGoal'
ORDER BY minute, second;
Link
match_events (match_id VARCHAR) 1 example

Key events for one MLS match: goals, shots with xG, cards, substitutions, fouls

Arguments
match_id VARCHAR
MLS match identifier, for example MLS-MAT-0009NL, from schedule().
Returns columns
match_id VARCHAR
MLS match identifier
event_id BIGINT
Event identifier, unique within the match
event_type VARCHAR
Event type: shot_at_goals, cards, substitutions, fouls, and so on
event_sub_type VARCHAR
Sub-type; goals marks a shot that scored
is_goal BOOLEAN
Whether the event is a goal
event_time TIMESTAMP WITH TIME ZONE
Wall-clock event time
game_section VARCHAR
Period: firstHalf, secondHalf, extra time, or penalties
minute_of_play VARCHAR
Displayed match minute, for example 45+2
club_id VARCHAR
Acting club (shooter, booked player, fouler, or substituting club)
club_abbreviation VARCHAR
Acting club three-letter code
team_role VARCHAR
home or guest for the acting club
player_id VARCHAR
Acting player: shooter, booked player, fouler, or player coming on
player_name VARCHAR
Acting player name
other_player_id VARCHAR
Assister, fouled player, or player going off
other_player_name VARCHAR
Name of the other player
card_color VARCHAR
yellow, yellowRed, or red for card events
shot_result VARCHAR
Shot outcome, for example SavedShot or SuccessfulShot
xg DOUBLE
Expected-goals value of a shot
distance_to_goal_m DOUBLE
Shot distance from goal, in meters
position_x DOUBLE
Pitch x coordinate, in meters
position_y DOUBLE
Pitch y coordinate, in meters
final_result VARCHAR
Score at the final whistle of the section
Example

Goals and their assisters.

SELECT minute_of_play, club_abbreviation, player_name,
  other_player_name AS assist, xg
FROM us_soccer.mls.match_events('MLS-MAT-0009NL')
WHERE is_goal
ORDER BY event_time;
Link
match_lineups (match_id VARCHAR) 2 examples

Starting lineups and substitutes for one MLS match

Arguments
match_id VARCHAR
MLS match identifier, for example MLS-MAT-0009NL, from schedule().
Returns columns
match_id VARCHAR
MLS match identifier
team_role VARCHAR
home or away
club_id VARCHAR
Club identifier
club_abbreviation VARCHAR
Club three-letter code
player_id VARCHAR
MLS player identifier
player_name VARCHAR
Player full name
short_name VARCHAR
Player short display name
shirt_number INTEGER
Shirt number
lineup_position VARCHAR
Lineup position code, for example GK or LCB; NULL on the bench
starter BOOLEAN
Whether the player started
captain BOOLEAN
Whether the player captained the side
Examples (2)

Starting elevens.

SELECT team_role, shirt_number, player_name, lineup_position
FROM us_soccer.mls.match_lineups('MLS-MAT-0009NL')
WHERE starter
ORDER BY team_role, shirt_number;

Minutes, shots, xG, and goals for every starter in MLS-MAT-0009NL, joining match_lineups to match_player_stats.

SELECT l.club_abbreviation, l.shirt_number, l.player_name, s.minutes_played,
  s.shots, round(s.xg, 2) AS xg, s.goals
FROM us_soccer.mls.match_lineups('MLS-MAT-0009NL') AS l
JOIN us_soccer.mls.match_player_stats('MLS-MAT-0009NL') AS s USING (player_id)
WHERE l.starter
ORDER BY l.club_abbreviation, l.shirt_number;
Link
match_player_stats (match_id VARCHAR) 1 example

Player box score for one MLS match

Arguments
match_id VARCHAR
MLS match identifier, for example MLS-MAT-0009NL, from schedule().
Returns columns
match_id VARCHAR
MLS match identifier
club_id VARCHAR
Club identifier
club_abbreviation VARCHAR
Club three-letter code
player_id VARCHAR
MLS player identifier
player_name VARCHAR
Player display name
goalkeeper BOOLEAN
Whether the player is a goalkeeper
minutes_played INTEGER
Minutes played
substitutions_in INTEGER
Appearances as a substitute
substitutions_out INTEGER
Times substituted off
goals INTEGER
Goals scored
assists INTEGER
Assists
second_assists INTEGER
Second (pre-) assists
goals_plus_assists INTEGER
Goals plus assists
xg DOUBLE
Expected goals (MLS tracking model)
goals_minus_xg DOUBLE
Goals minus xg
shots INTEGER
Shots attempted
shots_on_target INTEGER
Shots on target
shots_inside_box INTEGER
Shots from inside the penalty area
headed_shots INTEGER
Headed shots
shot_assists INTEGER
Key passes: passes leading to a shot
passes INTEGER
Passes attempted
passes_successful INTEGER
Completed passes
pass_completion DOUBLE
Completed passes divided by passes, 0 to 1
crosses INTEGER
Crosses attempted
penalties_scored INTEGER
Penalties scored
penalties_attempted INTEGER
Penalties taken
offsides INTEGER
Times caught offside
fouls_committed INTEGER
Fouls committed
fouls_suffered INTEGER
Fouls suffered
yellow_cards INTEGER
Yellow cards
red_cards INTEGER
Straight red cards
yellow_red_cards INTEGER
Second-yellow dismissals
own_goals INTEGER
Own goals
aerial_duels_won INTEGER
Aerial duels won
aerial_duels_lost INTEGER
Aerial duels lost
clearances INTEGER
Defensive clearances
distance_covered_m DOUBLE
Distance covered, in meters
max_speed_kmh DOUBLE
Top speed, km/h
goalkeeper_saves INTEGER
Saves; goalkeepers only
goals_conceded INTEGER
Goals conceded; goalkeepers only
clean_sheets INTEGER
Goalkeeper clean sheets; NULL per match
Example

Players with the highest xG in the match.

SELECT player_name, club_abbreviation, minutes_played, shots,
  round(xg, 2) AS xg
FROM us_soccer.mls.match_player_stats('MLS-MAT-0009NL')
ORDER BY xg DESC
LIMIT 5;
Link
player_match_log (player_id VARCHAR, competition := VARCHAR, season := INTEGER) 1 example

Per-match statistics for one MLS player, newest first

Positional arguments
player_id VARCHAR
MLS player identifier, for example MLS-OBJ-000396, from player_stats().
Named arguments
competition := VARCHAR
Competition alias or MLS-COM- id; NULL for every competition. · default null
season := INTEGER
Season year; NULL for all. · default null
Returns columns
match_id VARCHAR
MLS match identifier
planned_kickoff TIMESTAMP WITH TIME ZONE
Scheduled kickoff time
competition_id VARCHAR
Competition identifier
competition_name VARCHAR
Competition name
season INTEGER
Season year
match_title VARCHAR
Home club and away club, separated by a colon
result VARCHAR
Final score as home:away
club_id VARCHAR
Club the player appeared for
club_abbreviation VARCHAR
Club three-letter code
player_id VARCHAR
MLS player identifier
player_name VARCHAR
Player display name
minutes_played INTEGER
Minutes played
substitutions_in INTEGER
Appearances as a substitute
substitutions_out INTEGER
Times substituted off
goals INTEGER
Goals scored
assists INTEGER
Assists
second_assists INTEGER
Second (pre-) assists
goals_plus_assists INTEGER
Goals plus assists
xg DOUBLE
Expected goals (MLS tracking model)
goals_minus_xg DOUBLE
Goals minus xg
shots INTEGER
Shots attempted
shots_on_target INTEGER
Shots on target
shots_inside_box INTEGER
Shots from inside the penalty area
headed_shots INTEGER
Headed shots
shot_assists INTEGER
Key passes: passes leading to a shot
passes INTEGER
Passes attempted
passes_successful INTEGER
Completed passes
pass_completion DOUBLE
Completed passes divided by passes, 0 to 1
crosses INTEGER
Crosses attempted
penalties_scored INTEGER
Penalties scored
penalties_attempted INTEGER
Penalties taken
offsides INTEGER
Times caught offside
fouls_committed INTEGER
Fouls committed
fouls_suffered INTEGER
Fouls suffered
yellow_cards INTEGER
Yellow cards
red_cards INTEGER
Straight red cards
yellow_red_cards INTEGER
Second-yellow dismissals
own_goals INTEGER
Own goals
aerial_duels_won INTEGER
Aerial duels won
aerial_duels_lost INTEGER
Aerial duels lost
clearances INTEGER
Defensive clearances
distance_covered_m DOUBLE
Distance covered, in meters
max_speed_kmh DOUBLE
Top speed, km/h
goalkeeper_saves INTEGER
Saves; goalkeepers only
goals_conceded INTEGER
Goals conceded; goalkeepers only
clean_sheets INTEGER
Goalkeeper clean sheets; NULL per match
Example

Lionel Messi's 2025 MLS regular-season match log.

SELECT planned_kickoff, match_title, minutes_played, goals, assists
FROM us_soccer.mls.player_match_log('MLS-OBJ-000396', season := 2025, competition := 'mls')
ORDER BY planned_kickoff;
Link
player_stats (competition := VARCHAR, season := INTEGER) 2 examples

Season player statistics for an MLS-family competition, per player and club

Named arguments
competition := VARCHAR
Competition alias (mls, mls_playoffs, next_pro, next_pro_playoffs, leagues_cup, us_open_cup, canadian_championship, champions_cup, campeones_cup, all_star) or a raw MLS-COM- id. · default "mls"
season := INTEGER
Season year. NULL selects the current season. · default null
Returns columns
season INTEGER
Season year
season_id VARCHAR
MLS season id, e.g. MLS-SEA-0001KA
competition_id VARCHAR
MLS competition id, e.g. MLS-COM-000001
player_id VARCHAR
Stable MLS player id, e.g. MLS-OBJ-000396
player_name VARCHAR
Display name
first_name VARCHAR
First name
last_name VARCHAR
Last name
goalkeeper BOOLEAN
Whether the player is a goalkeeper
club_id VARCHAR
Club of this line; one row per club
club_short_name VARCHAR
Short club name
club_abbreviation VARCHAR
Club three-letter code
matches_played INTEGER
Matches played for this club
minutes_played INTEGER
Minutes played
substitutions_in INTEGER
Appearances as a substitute
substitutions_out INTEGER
Times substituted off
goals INTEGER
Goals scored
assists INTEGER
Assists
second_assists INTEGER
Second (pre-) assists
goals_plus_assists INTEGER
Goals plus assists
xg DOUBLE
Expected goals (MLS tracking model)
goals_minus_xg DOUBLE
Goals minus xg
shots INTEGER
Shots attempted
shots_on_target INTEGER
Shots on target
shots_inside_box INTEGER
Shots from inside the penalty area
headed_shots INTEGER
Headed shots
shot_assists INTEGER
Key passes: passes leading to a shot
passes INTEGER
Passes attempted
passes_successful INTEGER
Completed passes
pass_completion DOUBLE
Completed passes divided by passes, 0 to 1
crosses INTEGER
Crosses attempted
penalties_scored INTEGER
Penalties scored
penalties_attempted INTEGER
Penalties taken
offsides INTEGER
Times caught offside
fouls_committed INTEGER
Fouls committed
fouls_suffered INTEGER
Fouls suffered
yellow_cards INTEGER
Yellow cards
red_cards INTEGER
Straight red cards
yellow_red_cards INTEGER
Second-yellow dismissals
own_goals INTEGER
Own goals
aerial_duels_won INTEGER
Aerial duels won
aerial_duels_lost INTEGER
Aerial duels lost
clearances INTEGER
Defensive clearances
distance_covered_m DOUBLE
Distance covered, in meters
max_speed_kmh DOUBLE
Top speed, km/h
goalkeeper_saves INTEGER
Saves; goalkeepers only
goals_conceded INTEGER
Goals conceded; goalkeepers only
clean_sheets INTEGER
Goalkeeper clean sheets; NULL per match
x_saves DOUBLE
Expected saves (goalkeepers)
x_pass DOUBLE
Expected completed open-play passes
passing_performance DOUBLE
Open-play completions minus x_pass
Examples (2)

2025 MLS Golden Boot race.

SELECT player_name, club_abbreviation, goals, assists, round(xg, 1) AS xg
FROM us_soccer.mls.player_stats(season := 2025)
ORDER BY goals DESC
LIMIT 10;

2025 MLS players who scored the largest share of their club's regular-season goals, joining player_stats to the final standings.

SELECT p.player_name, p.club_abbreviation, p.goals,
  s.goals_for AS club_goals,
  round(100.0 * p.goals / s.goals_for, 1) AS pct_of_club_goals
FROM us_soccer.mls.player_stats(season := 2025) AS p
JOIN us_soccer.mls.standings(season := 2025) AS s USING (club_id)
ORDER BY pct_of_club_goals DESC, p.player_name
LIMIT 10;
Link
schedule (competition := VARCHAR, end_date := DATE, season := INTEGER, start_date := DATE) 1 example

MLS-family fixtures and results by season, competition, and date range

Named arguments
competition := VARCHAR
Competition alias or MLS-COM- id; NULL returns every competition in the season. · default null
end_date := DATE
Inclusive last match day, in UTC. · default null
season := INTEGER
Season year. NULL selects the current season. · default null
start_date := DATE
Inclusive first match day, in UTC. · default null
Returns columns
match_id VARCHAR
Stable MLS match identifier, for example MLS-MAT-0009NL
competition_id VARCHAR
MLS Stats API competition identifier
competition_name VARCHAR
Competition name
season INTEGER
Season year
season_id VARCHAR
MLS Stats API season identifier
match_day INTEGER
Matchday number within the competition
match_type VARCHAR
Round label, for example MATCHWEEK 31 or Semifinals
planned_kickoff TIMESTAMP WITH TIME ZONE
Scheduled kickoff time
match_status VARCHAR
Match state, for example scheduled or finalWhistle
home_club_id VARCHAR
Home club identifier
home_club_name VARCHAR
Home club name
home_club_abbreviation VARCHAR
Home club three-letter code
away_club_id VARCHAR
Away club identifier
away_club_name VARCHAR
Away club name
away_club_abbreviation VARCHAR
Away club three-letter code
home_goals INTEGER
Home goals; NULL before kickoff
away_goals INTEGER
Away goals; NULL before kickoff
result VARCHAR
Score as home:away; NULL before kickoff
minute_of_play VARCHAR
Last minute of play recorded, for example 90+6
conference VARCHAR
Conference of the fixture when MLS labels it
stadium_id VARCHAR
Stadium identifier
stadium_name VARCHAR
Stadium name
stadium_city VARCHAR
Stadium city
neutral_venue BOOLEAN
Whether the match is at a neutral venue
Example

MLS regular-season results on 18 October 2026.

SELECT match_id, home_club_abbreviation, home_goals, away_goals,
  away_club_abbreviation
FROM us_soccer.mls.schedule(season := 2026, competition := 'mls', start_date := DATE '2026-10-18', end_date := DATE '2026-10-18')
ORDER BY planned_kickoff;
Link
seasons (competition := VARCHAR) 1 example

Seasons available for an MLS competition, newest first

Named arguments
competition := VARCHAR
Competition alias (mls, mls_playoffs, next_pro, next_pro_playoffs, leagues_cup, us_open_cup, canadian_championship, champions_cup, campeones_cup, all_star) or a raw MLS-COM- id. · default "mls"
Returns columns
competition_id VARCHAR
MLS Stats API competition identifier
season INTEGER
Season year
season_id VARCHAR
MLS Stats API season identifier
Example

Every MLS NEXT Pro season.

SELECT season, season_id
FROM us_soccer.mls.seasons(competition := 'next_pro')
ORDER BY season;
Link
standings (competition := VARCHAR, season := INTEGER, split := VARCHAR) 2 examples

MLS-family league table by season, competition, and home/away/form split

Named arguments
competition := VARCHAR
Competition alias (mls, mls_playoffs, next_pro, next_pro_playoffs, leagues_cup, us_open_cup, canadian_championship, champions_cup, campeones_cup, all_star) or a raw MLS-COM- id. · default "mls"
season := INTEGER
Season year. NULL selects the current season. · default null
split := VARCHAR
overall for the full table, home or away for venue tables, form for recent form. · default "overall"
Returns columns
season INTEGER
Season year
season_id VARCHAR
MLS season id, e.g. MLS-SEA-0001KA
competition_id VARCHAR
MLS competition id, e.g. MLS-COM-000001
competition_name VARCHAR
Competition name
standings_split VARCHAR
Requested table: overall, home, away, or form
group_name VARCHAR
Group label for cup group stages; NULL for a single league table
match_day INTEGER
Latest matchday reflected in the table
position INTEGER
Table position
club_id VARCHAR
Stable MLS club identifier
club_name VARCHAR
Full club name
club_short_name VARCHAR
Short club name
club_abbreviation VARCHAR
Club three-letter code
games_played INTEGER
Matches played
wins INTEGER
Wins
draws INTEGER
Draws
losses INTEGER
Losses
goals_for INTEGER
Goals scored
goals_against INTEGER
Goals conceded
goal_difference INTEGER
Goals scored minus goals conceded
points INTEGER
League points
points_per_game DOUBLE
Points per match as published by MLS
goals_for_per_game DOUBLE
Goals scored per match
goals_against_per_game DOUBLE
Goals conceded per match
tendency VARCHAR
Recent movement in the table: up, down, or stable
Examples (2)

The final 2025 MLS regular-season table.

SELECT position, club_name, points, goal_difference
FROM us_soccer.mls.standings(season := 2025)
ORDER BY position;

The best home records in MLS NEXT Pro this season.

SELECT position, club_name, wins, points
FROM us_soccer.mls.standings(competition := 'next_pro', split := 'home')
ORDER BY position
LIMIT 10;
Link
nwsl 4 tables · 12 functions

National Women's Soccer League data from the official NWSL Sports Data Platform

Schema examples (2)
Examples (2)

The current NWSL table.

SELECT position, team_name, points
FROM us_soccer.nwsl.current_standings
ORDER BY position;

The final 2025 NWSL table with each team's leading scorer (ties broken by name) and her share of the team's goals, joining standings to player_stats.

SELECT s.position, s.team_name, s.goals_for, p.player_name, p.goals,
  round(100.0 * p.goals / s.goals_for, 1) AS pct_of_team_goals
FROM us_soccer.nwsl.standings(season := 2025) AS s
JOIN us_soccer.nwsl.player_stats(season := 2025) AS p USING (team_id)
QUALIFY row_number() OVER (PARTITION BY s.team_id ORDER BY p.goals DESC, p.player_name) = 1
ORDER BY s.position;
Tables
competitions 1 example4 cols

Competitions on the NWSL Sports Data Platform

Columns
competition_idnot null VARCHAR
Opaque NWSL platform competition identifier.
competition_name VARCHAR
Competition name, for example NWSL or NWSL Challenge Cup.
official_name VARCHAR
Official competition name.
opta_id VARCHAR
Opta provider identifier.
ConstraintsPRIMARY KEY (competition_id)
Example

Every NWSL-branded competition.

SELECT competition_name
FROM us_soccer.nwsl.competitions
WHERE competition_name LIKE 'NWSL%'
ORDER BY 1;
Link
current_matches 1 example21 cols

Current NWSL season fixtures and results, one row per match

Columns
season INTEGER
Season year.
season_id VARCHAR
Opaque NWSL platform season identifier.
match_idnot null VARCHAR
Opaque NWSL platform match identifier.
match_time TIMESTAMP WITH TIME ZONE
Kickoff time (UTC).
status VARCHAR
FINISHED, UPCOMING, LIVE, or another platform status.
phase VARCHAR
Match phase, for example FULL_TIME.
matchday VARCHAR
Matchday or round label.
home_team_id VARCHAR
Home team identifier.
home_team_name VARCHAR
Home team name.
home_team_abbreviation VARCHAR
Home team acronym.
away_team_id VARCHAR
Away team identifier.
away_team_name VARCHAR
Away team name.
away_team_abbreviation VARCHAR
Away team acronym.
home_score INTEGER
Home goals; NULL before kickoff.
away_score INTEGER
Away goals; NULL before kickoff.
home_penalty_score INTEGER
Home shoot-out goals when decided on penalties.
away_penalty_score INTEGER
Away shoot-out goals when decided on penalties.
winner_team_id VARCHAR
Winning team identifier; NULL for a draw or unplayed match.
win_reason VARCHAR
How the match was decided, for example RegularTime.
stadium_name VARCHAR
Stadium name.
city VARCHAR
Stadium city.
ConstraintsPRIMARY KEY (match_id)
Example

Most recent NWSL results.

SELECT match_time, home_team_name, home_score, away_score, away_team_name
FROM us_soccer.nwsl.current_matches
WHERE status = 'FINISHED'
ORDER BY match_time DESC
LIMIT 10;
Link
current_player_stats 1 example38 cols

Current NWSL season player statistics, one row per player

Columns
season INTEGER
Season year.
season_id VARCHAR
Opaque NWSL platform season identifier.
player_idnot null VARCHAR
Opaque NWSL platform player identifier.
player_name VARCHAR
Player full name.
short_name VARCHAR
Player short display name.
position_name VARCHAR
Goalkeeper, Defender, Midfielder, or Forward.
shirt_number INTEGER
Shirt number.
nationality VARCHAR
Nationality.
team_id VARCHAR
Opaque NWSL platform team identifier.
team_name VARCHAR
Official team name.
team_short_name VARCHAR
Short team name.
team_abbreviation VARCHAR
Team acronym, for example GFC.
games_played INTEGER
Appearances.
starts INTEGER
Starts.
minutes_played INTEGER
Minutes played.
goals INTEGER
Goals scored.
assists INTEGER
Assists.
goal_involvements INTEGER
Goals plus assists.
xg DOUBLE
Opta expected goals; NULL before 2026.
shots INTEGER
Shots attempted.
shots_on_target INTEGER
Shots on target.
key_passes INTEGER
Passes leading to a shot.
big_chances_created INTEGER
Big chances created.
passes INTEGER
Passes attempted.
pass_accuracy_pct DOUBLE
Accurate passes, in percent.
tackles_won INTEGER
Tackles won.
interceptions INTEGER
Interceptions.
recoveries INTEGER
Ball recoveries.
fouls_committed INTEGER
Fouls committed.
fouls_suffered INTEGER
Fouls suffered.
offsides INTEGER
Times caught offside.
yellow_cards INTEGER
Yellow cards.
red_cards INTEGER
Red cards.
penalties_attempted INTEGER
Penalties taken.
penalties_scored INTEGER
Penalties scored.
saves INTEGER
Saves; goalkeepers only.
clean_sheets INTEGER
Clean sheets while on the pitch.
goals_conceded INTEGER
Team goals conceded while the player was on the pitch.
ConstraintsPRIMARY KEY (player_id)
Example

Current NWSL scoring leaders.

SELECT player_name, team_abbreviation, goals, assists, round(xg, 1) AS xg
FROM us_soccer.nwsl.current_player_stats
ORDER BY goals DESC
LIMIT 10;
Link
current_standings 1 example19 cols

Current NWSL regular-season table, one row per team

Columns
season INTEGER
Season year.
season_id VARCHAR
Opaque NWSL platform season identifier.
standings_split VARCHAR
Requested table: overall, home, or away.
position INTEGER
Table position.
team_idnot null VARCHAR
Opaque NWSL platform team identifier.
team_name VARCHAR
Official team name.
team_short_name VARCHAR
Short team name.
team_abbreviation VARCHAR
Team acronym, for example GFC.
games_played INTEGER
Matches played.
wins INTEGER
Wins.
draws INTEGER
Draws.
losses INTEGER
Losses.
goals_for INTEGER
Goals scored.
goals_against INTEGER
Goals conceded.
goal_difference INTEGER
Goals scored minus goals conceded.
points INTEGER
League points.
form VARCHAR
Recent results, oldest to newest, as W/D/L letters.
movement VARCHAR
Recent movement in the table: up, down, or stable.
qualification VARCHAR
Qualification zone label, for example Final Series.
ConstraintsPRIMARY KEY (team_id)
Example

The current NWSL table.

SELECT position, team_name, points, form
FROM us_soccer.nwsl.current_standings
ORDER BY position;
Link
Table functions
all_competitions () 1 example

Competitions on the NWSL Sports Data Platform (scan behind the competitions table)

No arguments
Returns columns
competition_id VARCHAR
Opaque NWSL platform competition identifier
competition_name VARCHAR
Competition name, for example NWSL or NWSL Challenge Cup
official_name VARCHAR
Official competition name
opta_id VARCHAR
Opta provider identifier
Example

Every competition name.

SELECT competition_name FROM us_soccer.nwsl.all_competitions() ORDER BY 1;
Link
all_current_matches () 1 example

Current NWSL season fixtures and results (scan behind current_matches)

No arguments
Returns columns
season INTEGER
Season year
season_id VARCHAR
Opaque NWSL platform season identifier
match_id VARCHAR
Opaque NWSL platform match identifier
match_time TIMESTAMP WITH TIME ZONE
Kickoff time (UTC)
status VARCHAR
FINISHED, UPCOMING, LIVE, or another platform status
phase VARCHAR
Match phase, for example FULL_TIME
matchday VARCHAR
Matchday or round label
home_team_id VARCHAR
Home team identifier
home_team_name VARCHAR
Home team name
home_team_abbreviation VARCHAR
Home team acronym
away_team_id VARCHAR
Away team identifier
away_team_name VARCHAR
Away team name
away_team_abbreviation VARCHAR
Away team acronym
home_score INTEGER
Home goals; NULL before kickoff
away_score INTEGER
Away goals; NULL before kickoff
home_penalty_score INTEGER
Home shoot-out goals when decided on penalties
away_penalty_score INTEGER
Away shoot-out goals when decided on penalties
winner_team_id VARCHAR
Winning team identifier; NULL for a draw or unplayed match
win_reason VARCHAR
How the match was decided, for example RegularTime
stadium_name VARCHAR
Stadium name
city VARCHAR
Stadium city
Example

Upcoming matches this season.

SELECT match_time, home_team_name, away_team_name
FROM us_soccer.nwsl.all_current_matches()
WHERE status = 'UPCOMING'
ORDER BY match_time;
Link
all_current_player_stats () 1 example

Current NWSL player statistics (scan behind current_player_stats)

No arguments
Returns columns
season INTEGER
Season year
season_id VARCHAR
Opaque NWSL platform season identifier
player_id VARCHAR
Opaque NWSL platform player identifier
player_name VARCHAR
Player full name
short_name VARCHAR
Player short display name
position_name VARCHAR
Goalkeeper, Defender, Midfielder, or Forward
shirt_number INTEGER
Shirt number
nationality VARCHAR
Nationality
team_id VARCHAR
Opaque NWSL platform team identifier
team_name VARCHAR
Official team name
team_short_name VARCHAR
Short team name
team_abbreviation VARCHAR
Team acronym, for example GFC
games_played INTEGER
Appearances
starts INTEGER
Starts
minutes_played INTEGER
Minutes played
goals INTEGER
Goals scored
assists INTEGER
Assists
goal_involvements INTEGER
Goals plus assists
xg DOUBLE
Opta expected goals; NULL before 2026
shots INTEGER
Shots attempted
shots_on_target INTEGER
Shots on target
key_passes INTEGER
Passes leading to a shot
big_chances_created INTEGER
Big chances created
passes INTEGER
Passes attempted
pass_accuracy_pct DOUBLE
Accurate passes, in percent
tackles_won INTEGER
Tackles won
interceptions INTEGER
Interceptions
recoveries INTEGER
Ball recoveries
fouls_committed INTEGER
Fouls committed
fouls_suffered INTEGER
Fouls suffered
offsides INTEGER
Times caught offside
yellow_cards INTEGER
Yellow cards
red_cards INTEGER
Red cards
penalties_attempted INTEGER
Penalties taken
penalties_scored INTEGER
Penalties scored
saves INTEGER
Saves; goalkeepers only
clean_sheets INTEGER
Clean sheets while on the pitch
goals_conceded INTEGER
Team goals conceded while the player was on the pitch
Example

Read current player statistics directly from the backing scan.

SELECT player_name, goals
FROM us_soccer.nwsl.all_current_player_stats()
ORDER BY goals DESC
LIMIT 5;
Link
all_current_standings () 1 example

Current NWSL league table (scan behind current_standings)

No arguments
Returns columns
season INTEGER
Season year
season_id VARCHAR
Opaque NWSL platform season identifier
standings_split VARCHAR
Requested table: overall, home, or away
position INTEGER
Table position
team_id VARCHAR
Opaque NWSL platform team identifier
team_name VARCHAR
Official team name
team_short_name VARCHAR
Short team name
team_abbreviation VARCHAR
Team acronym, for example GFC
games_played INTEGER
Matches played
wins INTEGER
Wins
draws INTEGER
Draws
losses INTEGER
Losses
goals_for INTEGER
Goals scored
goals_against INTEGER
Goals conceded
goal_difference INTEGER
Goals scored minus goals conceded
points INTEGER
League points
form VARCHAR
Recent results, oldest to newest, as W/D/L letters
movement VARCHAR
Recent movement in the table: up, down, or stable
qualification VARCHAR
Qualification zone label, for example Final Series
Example

Read the current table directly from its backing scan.

SELECT position, team_name, points
FROM us_soccer.nwsl.all_current_standings()
ORDER BY 1;
Link
match_events (match_id VARCHAR) 1 example

Event feed for one NWSL match: goals, shots, cards, substitutions, fouls

Arguments
match_id VARCHAR
Opaque NWSL match id from matches(), for example nwsl::Football_Match::834675f3....
Returns columns
match_id VARCHAR
Opaque NWSL platform match identifier
event_id VARCHAR
Event identifier, unique within the match
event_type VARCHAR
Event type, for example goal, attempt-saved, substitution, or foul
label VARCHAR
Human-readable event label
description VARCHAR
Event description text
event_time TIMESTAMP WITH TIME ZONE
Wall-clock event time
phase VARCHAR
Period of play, for example FirstHalf
minute INTEGER
Match minute
added_time INTEGER
Stoppage-time minute added to minute
team_id VARCHAR
Team the event belongs to
team_abbreviation VARCHAR
Team acronym
player_id VARCHAR
Primary player identifier
player_name VARCHAR
Primary player name
home_score INTEGER
Running home score at the time of the event
away_score INTEGER
Running away score at the time of the event
shot_result VARCHAR
Shot outcome for shot events
Example

Goals and shots in the 2026 season opener.

SELECT minute, team_abbreviation, player_name, event_type, description
FROM us_soccer.nwsl.match_events('nwsl::Football_Match::834675f37cea4328bece6743d94c7d2d')
WHERE event_type IN ('goal', 'attempt-saved', 'attempt-missed')
ORDER BY event_time;
Link
matches (competition := VARCHAR, season := INTEGER) 1 example

NWSL fixtures and results for a season

Named arguments
competition := VARCHAR
Competition name from the competitions table (for example NWSL Challenge Cup) or its opaque id. · default "NWSL"
season := INTEGER
Season year. NULL selects the season that most recently started. · default null
Returns columns
season INTEGER
Season year
season_id VARCHAR
Opaque NWSL platform season identifier
match_id VARCHAR
Opaque NWSL platform match identifier
match_time TIMESTAMP WITH TIME ZONE
Kickoff time (UTC)
status VARCHAR
FINISHED, UPCOMING, LIVE, or another platform status
phase VARCHAR
Match phase, for example FULL_TIME
matchday VARCHAR
Matchday or round label
home_team_id VARCHAR
Home team identifier
home_team_name VARCHAR
Home team name
home_team_abbreviation VARCHAR
Home team acronym
away_team_id VARCHAR
Away team identifier
away_team_name VARCHAR
Away team name
away_team_abbreviation VARCHAR
Away team acronym
home_score INTEGER
Home goals; NULL before kickoff
away_score INTEGER
Away goals; NULL before kickoff
home_penalty_score INTEGER
Home shoot-out goals when decided on penalties
away_penalty_score INTEGER
Away shoot-out goals when decided on penalties
winner_team_id VARCHAR
Winning team identifier; NULL for a draw or unplayed match
win_reason VARCHAR
How the match was decided, for example RegularTime
stadium_name VARCHAR
Stadium name
city VARCHAR
Stadium city
Example

Gotham FC's 2025 results.

SELECT match_time, home_team_abbreviation, home_score, away_score,
  away_team_abbreviation
FROM us_soccer.nwsl.matches(season := 2025)
WHERE 'GFC' IN (home_team_abbreviation, away_team_abbreviation)
ORDER BY match_time;
Link
player_stats (competition := VARCHAR, season := INTEGER) 1 example

Season player statistics for the NWSL

Named arguments
competition := VARCHAR
Competition name from the competitions table (for example NWSL Challenge Cup) or its opaque id. · default "NWSL"
season := INTEGER
Season year. NULL selects the season that most recently started. · default null
Returns columns
season INTEGER
Season year
season_id VARCHAR
Opaque NWSL platform season identifier
player_id VARCHAR
Opaque NWSL platform player identifier
player_name VARCHAR
Player full name
short_name VARCHAR
Player short display name
position_name VARCHAR
Goalkeeper, Defender, Midfielder, or Forward
shirt_number INTEGER
Shirt number
nationality VARCHAR
Nationality
team_id VARCHAR
Opaque NWSL platform team identifier
team_name VARCHAR
Official team name
team_short_name VARCHAR
Short team name
team_abbreviation VARCHAR
Team acronym, for example GFC
games_played INTEGER
Appearances
starts INTEGER
Starts
minutes_played INTEGER
Minutes played
goals INTEGER
Goals scored
assists INTEGER
Assists
goal_involvements INTEGER
Goals plus assists
xg DOUBLE
Opta expected goals; NULL before 2026
shots INTEGER
Shots attempted
shots_on_target INTEGER
Shots on target
key_passes INTEGER
Passes leading to a shot
big_chances_created INTEGER
Big chances created
passes INTEGER
Passes attempted
pass_accuracy_pct DOUBLE
Accurate passes, in percent
tackles_won INTEGER
Tackles won
interceptions INTEGER
Interceptions
recoveries INTEGER
Ball recoveries
fouls_committed INTEGER
Fouls committed
fouls_suffered INTEGER
Fouls suffered
offsides INTEGER
Times caught offside
yellow_cards INTEGER
Yellow cards
red_cards INTEGER
Red cards
penalties_attempted INTEGER
Penalties taken
penalties_scored INTEGER
Penalties scored
saves INTEGER
Saves; goalkeepers only
clean_sheets INTEGER
Clean sheets while on the pitch
goals_conceded INTEGER
Team goals conceded while the player was on the pitch
Example

2025 NWSL Golden Boot race.

SELECT player_name, team_abbreviation, goals, assists, shots
FROM us_soccer.nwsl.player_stats(season := 2025)
ORDER BY goals DESC
LIMIT 10;
Link
roster (team VARCHAR, season := INTEGER) 1 example

NWSL team roster for a season

Positional arguments
team VARCHAR
Team acronym (GFC), short name, official name, or opaque team id.
Named arguments
season := INTEGER
Season year. NULL selects the season that most recently started. · default null
Returns columns
season INTEGER
Season year
season_id VARCHAR
Opaque NWSL platform season identifier
team_id VARCHAR
Opaque NWSL platform team identifier
team_name VARCHAR
Team name
player_id VARCHAR
Opaque NWSL platform player identifier
player_name VARCHAR
Player full name
shirt_number INTEGER
Shirt number
position_name VARCHAR
Goalkeeper, Defender, Midfielder, or Forward
nationality VARCHAR
Nationality
date_of_birth DATE
Date of birth
height_cm INTEGER
Height, in centimeters
weight_kg INTEGER
Weight, in kilograms
status VARCHAR
Roster status, for example Active
Example

Gotham FC's 2026 roster.

SELECT shirt_number, player_name, position_name, nationality
FROM us_soccer.nwsl.roster('GFC', season := 2026)
ORDER BY shirt_number;
Link
seasons (competition := VARCHAR) 1 example

Seasons for an NWSL platform competition, newest first

Named arguments
competition := VARCHAR
Competition name from the competitions table (for example NWSL Challenge Cup) or its opaque id. · default "NWSL"
Returns columns
competition_id VARCHAR
Opaque NWSL platform competition identifier
competition_name VARCHAR
Competition name
season INTEGER
Season year
season_id VARCHAR
Opaque NWSL platform season identifier
start_date DATE
First scheduled day of the season (UTC)
end_date DATE
Last scheduled day of the season (UTC)
Example

NWSL regular seasons with their date ranges.

SELECT season, start_date, end_date
FROM us_soccer.nwsl.seasons()
ORDER BY season;
Link
standings (competition := VARCHAR, season := INTEGER, split := VARCHAR) 2 examples

NWSL league table by season with overall, home, and away splits

Named arguments
competition := VARCHAR
Competition name from the competitions table (for example NWSL Challenge Cup) or its opaque id. · default "NWSL"
season := INTEGER
Season year. NULL selects the season that most recently started. · default null
split := VARCHAR
overall for the league table, home or away for venue tables. · default "overall"
Returns columns
season INTEGER
Season year
season_id VARCHAR
Opaque NWSL platform season identifier
standings_split VARCHAR
Requested table: overall, home, or away
position INTEGER
Table position
team_id VARCHAR
Opaque NWSL platform team identifier
team_name VARCHAR
Official team name
team_short_name VARCHAR
Short team name
team_abbreviation VARCHAR
Team acronym, for example GFC
games_played INTEGER
Matches played
wins INTEGER
Wins
draws INTEGER
Draws
losses INTEGER
Losses
goals_for INTEGER
Goals scored
goals_against INTEGER
Goals conceded
goal_difference INTEGER
Goals scored minus goals conceded
points INTEGER
League points
form VARCHAR
Recent results, oldest to newest, as W/D/L letters
movement VARCHAR
Recent movement in the table: up, down, or stable
qualification VARCHAR
Qualification zone label, for example Final Series
Examples (2)

The final 2025 NWSL table.

SELECT position, team_name, points, goal_difference
FROM us_soccer.nwsl.standings(season := 2025)
ORDER BY position;

The final 2025 NWSL table with each team's leading scorer (ties broken by name) and her share of the team's goals, joining standings to player_stats.

SELECT s.position, s.team_name, s.goals_for, p.player_name, p.goals,
  round(100.0 * p.goals / s.goals_for, 1) AS pct_of_team_goals
FROM us_soccer.nwsl.standings(season := 2025) AS s
JOIN us_soccer.nwsl.player_stats(season := 2025) AS p USING (team_id)
QUALIFY row_number() OVER (PARTITION BY s.team_id ORDER BY p.goals DESC, p.player_name) = 1
ORDER BY s.position;
Link
team_stats (competition := VARCHAR, season := INTEGER) 1 example

Season team statistics for the NWSL

Named arguments
competition := VARCHAR
Competition name from the competitions table (for example NWSL Challenge Cup) or its opaque id. · default "NWSL"
season := INTEGER
Season year. NULL selects the season that most recently started. · default null
Returns columns
season INTEGER
Season year
season_id VARCHAR
Opaque NWSL platform season identifier
team_id VARCHAR
Opaque NWSL platform team identifier
team_name VARCHAR
Official team name
team_short_name VARCHAR
Short team name
team_abbreviation VARCHAR
Team acronym, for example GFC
games_played INTEGER
Matches played
points INTEGER
League points
wins INTEGER
Wins
draws INTEGER
Draws
losses INTEGER
Losses
goals INTEGER
Goals scored
goals_against INTEGER
Goals conceded
home_goals INTEGER
Goals scored at home
away_goals INTEGER
Goals scored away
shots INTEGER
Shots attempted
shots_on_target INTEGER
Shots on target, including goals
shots_conceded INTEGER
Opponent shots
possession_pct DOUBLE
Average possession, in percent
pass_accuracy_pct DOUBLE
Accurate passes, in percent
passes INTEGER
Passes attempted
ppda DOUBLE
Opponent passes allowed per defensive action; lower is more pressing
tackles_won INTEGER
Tackles won
interceptions INTEGER
Interceptions
recoveries INTEGER
Ball recoveries
clearances INTEGER
Clearances
clean_sheets INTEGER
Matches without conceding
corners INTEGER
Corners won
fouls_committed INTEGER
Fouls committed
yellow_cards INTEGER
Yellow cards
red_cards INTEGER
Red cards
Example

2025 NWSL teams by possession.

SELECT team_name, possession_pct, pass_accuracy_pct, goals
FROM us_soccer.nwsl.team_stats(season := 2025)
ORDER BY possession_pct DESC;
Link
teams (competition := VARCHAR, season := INTEGER) 1 example

Teams entered in an NWSL season

Named arguments
competition := VARCHAR
Competition name from the competitions table (for example NWSL Challenge Cup) or its opaque id. · default "NWSL"
season := INTEGER
Season year. NULL selects the season that most recently started. · default null
Returns columns
season INTEGER
Season year
season_id VARCHAR
Opaque NWSL platform season identifier
team_id VARCHAR
Opaque NWSL platform team identifier
team_name VARCHAR
Official team name
team_short_name VARCHAR
Short team name
team_abbreviation VARCHAR
Team acronym, for example GFC
country_code VARCHAR
Country code
opta_id VARCHAR
Opta provider identifier
Example

Teams in the 2026 NWSL season.

SELECT team_abbreviation, team_name
FROM us_soccer.nwsl.teams(season := 2026)
ORDER BY 2;
Link

Try these queries

mls_current_standings_are_populated — The current MLS table contains club rows with stable identifiers.

SELECT count(*) > 0 AND count(club_id) = count(*) AS populated
FROM us_soccer.mls.current_standings;

Uses current_standingscurrent_standings

mls_2025_has_thirty_clubs — The final 2025 MLS regular-season table has 30 clubs.

SELECT count(*) AS clubs FROM us_soccer.mls.standings(season := 2025);

Uses standingsstandings

asa_2025_mls_team_xg — ASA publishes 2025 team xG for all 30 MLS clubs.

SELECT count(*) AS teams FROM us_soccer.asa.xg_teams(season := 2025);

Uses xg_teams

2025 MLS players with 1,500+ minutes ranked by goals added above average per US$1M of guaranteed compensation, joining goals_added_players to each player's latest salaries() release.

WITH pay AS (SELECT player_id, team_id, guaranteed_compensation FROM us_soccer.asa.salaries(season := 2025) QUALIFY release_date = max(release_date) OVER (PARTITION BY player_id, team_id)) SELECT g.player_name, g.team_abbreviation, round(g.goals_added_above_avg, 2) AS gplus, p.guaranteed_compensation, round(g.goals_added_above_avg / (p.guaranteed_compensation / 1e6), 2) AS gplus_per_million
FROM us_soccer.asa.goals_added_players(season := 2025, minimum_minutes := 1500) AS g
JOIN pay AS p USING (player_id, team_id)
ORDER BY gplus_per_million DESC
LIMIT 10

Uses salariesgoals_added_players

Top 2025 NWSL players by goals added above average.

SELECT player_name, team_abbreviation, general_position,
  round(goals_added_above_avg, 2) AS gplus
FROM us_soccer.asa.goals_added_players(league := 'nwsl', season := 2025, minimum_minutes := 1000)
ORDER BY goals_added_above_avg DESC
LIMIT 10

Uses goals_added_players

USL Championship teams.

SELECT team_abbreviation, team_name
FROM us_soccer.asa.teams(league := 'uslc')
ORDER BY 2

Uses teamsteams

1 more example

nwsl_2025_has_fourteen_teams — The final 2025 NWSL table has 14 teams.

SELECT count(*) AS teams FROM us_soccer.nwsl.standings(season := 2025);

Uses standingsstandings

51 more examples in the Catalog, each listed under the table or function it uses.

Questions it can answer

Plain-English questions from the worker's agent test tasks. An AI agent with this catalog attached should answer each one with SQL.

  • Which club is top of the current MLS regular-season table, and with how many points?
  • Who scored the most MLS regular-season goals in 2025, and for which club?
  • Summarize MLS match MLS-MAT-0009NL (FC Cincinnati vs Columbus Crew, 18 October 2026): the score, who scored, and which side created more expected goals.
  • List Columbus Crew's starting eleven in MLS match MLS-MAT-0009NL and the commentary lines describing shots.
  • Using his match log, how many MLS regular-season goals did Lionel Messi (MLS player id MLS-OBJ-000396) score in 2025, and in how many matches?
  • Which club finished top of MLS NEXT Pro in 2025, and how many goals did it score?

US soccer is an independent open-source connector from Query.Farm. It is not affiliated with, endorsed by or sponsored by the services, projects or organisations it works with. Product names, logos and trademarks belong to their respective owners.