Skip to content

NBA

Standings, scores, schedules, box scores, play-by-play, and player and team stats

Connector software
Free and open source
Service credentials
Not needed
Query Farm hosting
Not available yet
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/nba/index.md to help me query NBA 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.

This season's NBA scoring leaders

Example output Β· captured
Connector release
v0.3.1
Engine
2.0.1
VGI protocol
3.4.0
SELECT player_name, team_abbreviation, games_played, points
FROM nba.nba.current_player_stats
WHERE games_played >= 10
ORDER BY points DESC
LIMIT 10
Result Β· first 5 rows
player_name team_abbreviation games_played points
Luka DončiΔ‡ LAL 19 35.8
Shai Gilgeous-Alexander OKC 20 32
Victor Wembanyama SAS 20 30.9
Giannis Antetokounmpo MIA 18 28.5
Stephen Curry GSW 10 27.8

Quick start

Choose where to run NBA, 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 'nba' AS nba (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-nba'
);

3. Run a query

query.sql
SELECT player_name, team_abbreviation, games_played, points
FROM nba.nba.current_player_stats
WHERE games_played >= 10
ORDER BY points DESC
LIMIT 10
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 'nba' AS nba (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-nba'
);

Overview

Read-only NBA, WNBA, and NBA G League standings, scores, and statistics from the NBA Stats API

Catalog

Everything nba exposes once attached β€” read straight from the worker's released build.

nba 3 schemas
gleague 7 tables Β· 22 functions

NBA G League standings, scores, schedules, and statistics

Schema examples (4)
Examples (4)

Current conference standings in seeding order.

SELECT conference, playoff_rank, team_name, wins, losses,
  conference_games_back
FROM nba.gleague.current_standings
ORDER BY conference, playoff_rank;

Final 2025 standings by conference and playoff seed, beside each team's net rating from advanced_team_stats.

SELECT s.conference, s.playoff_rank, s.team_name, s.wins, s.losses,
  a.net_rating
FROM nba.gleague.standings(season := 2025) AS s
JOIN nba.gleague.advanced_team_stats(season := 2025) AS a USING (team_id)
ORDER BY s.conference, s.playoff_rank;

The 2025 Oklahoma City Blue roster with each player's per-game season averages, top scorers first.

SELECT r.jersey_number, r.player_name, r.position, p.games_played, p.points,
  p.rebounds, p.assists
FROM nba.gleague.team_roster(1612709889, season := 2025) AS r
LEFT JOIN nba.gleague.player_stats(season := 2025) AS p USING (player_id)
ORDER BY p.points DESC NULLS LAST, r.player_name;

The top ten of the official 2025 scoring leaderboard with each player's usage and true-shooting percentage.

SELECT l.rank, l.player_name, l.team_abbreviation, l.points,
  a.usage_percentage, a.true_shooting_percentage
FROM nba.gleague.league_leaders(season := 2025, stat_category := 'PTS') AS l
JOIN nba.gleague.advanced_player_stats(season := 2025) AS a USING (player_id)
ORDER BY l.rank, l.player_name
LIMIT 10;
Tables
current_player_stats 1 example36 cols

Per-game regular-season averages for every G League player this season: points, rebounds, assists, shooting, steals, blocks, and plus-minus

Columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA).
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs.
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions.
player_idnot null BIGINT
Stable NBA Stats player identifier (numeric ID).
player_name VARCHAR
Player name.
team_id BIGINT
Current or last team identifier (numeric ID).
team_abbreviation VARCHAR
Current or last team abbreviation.
team_count INTEGER
Number of teams the player appeared for; above 1 means totals span teams.
age DOUBLE
Player age in years during the season.
games_played INTEGER
Games played (count).
wins INTEGER
Team wins in games the player played.
losses INTEGER
Team losses in games the player played.
minutes DOUBLE
Minutes played under the requested per_mode.
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode).
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode).
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio).
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode).
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode).
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio).
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode).
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode).
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio).
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode).
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode).
rebounds DOUBLE
Total rebounds (count, scaled per per_mode).
assists DOUBLE
Assists (count, scaled per per_mode).
steals DOUBLE
Steals (count, scaled per per_mode).
blocks DOUBLE
Blocked shots (count, scaled per per_mode).
turnovers DOUBLE
Turnovers (count, scaled per per_mode).
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode).
points DOUBLE
Points (count, scaled per per_mode).
blocks_against DOUBLE
Shots of this player blocked by opponents (count, scaled per per_mode).
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode).
plus_minus DOUBLE
Point differential while on the floor (points).
double_doubles INTEGER
Games with double figures in two categories.
triple_doubles INTEGER
Games with double figures in three categories.
ConstraintsPRIMARY KEY (player_id)
Example

Current scoring leaders with at least ten games.

SELECT player_name, team_abbreviation, games_played, points
FROM nba.gleague.current_player_stats
WHERE games_played >= 10
ORDER BY points DESC
LIMIT 10;
Link
current_players 1 example12 cols

Players on a current G League roster with player_id and team

Columns
player_idnot null BIGINT
Stable NBA Stats player identifier (numeric ID).
player_name VARCHAR
Player name, first name first.
last_comma_first VARCHAR
Player name, last name first.
is_active BOOLEAN
Whether the player is currently on a roster.
from_year INTEGER
Start year of the player's first season in the league.
to_year INTEGER
Start year of the player's most recent season in the league.
team_id BIGINT
Current or last team identifier; NULL when unattached.
team_abbreviation VARCHAR
Current or last team abbreviation.
team_city VARCHAR
Current or last team city.
team_name VARCHAR
Current or last team nickname.
player_slug VARCHAR
URL slug of the player.
has_played BOOLEAN
Whether the player has appeared in a game.
ConstraintsPRIMARY KEY (player_id)
Example

Rostered players per team.

SELECT team_abbreviation, count(*) AS players
FROM nba.gleague.current_players
GROUP BY team_abbreviation
ORDER BY team_abbreviation;
Link
current_scoreboard 1 example26 cols

Today's G League games (US Eastern date) with live status, period, clock, and scores

Columns
game_date DATE
Scoreboard date in US Eastern time.
game_idnot null VARCHAR
Ten-character NBA Stats game identifier; keep it as text.
game_code VARCHAR
Game code, date plus away and home tricodes.
season_type VARCHAR
Season type derived from the game ID prefix.
game_status INTEGER
Game status: 1 scheduled, 2 in progress, 3 final.
game_status_text VARCHAR
Status display, such as Final, Halftime, or a tip-off time.
period INTEGER
Current or final period; 0 before tip-off.
game_clock VARCHAR
ISO-8601 time remaining in the current period, when live.
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled tip-off time in UTC.
series_text VARCHAR
Playoff series status text, when applicable.
game_label VARCHAR
Game label, such as an NBA Cup or playoff round name.
is_neutral_site BOOLEAN
Whether the game is played at a neutral site.
home_team_id BIGINT
Home team identifier (numeric ID).
home_team_tricode VARCHAR
Home team three-letter code.
home_team_city VARCHAR
Home team city.
home_team_name VARCHAR
Home team nickname.
home_wins INTEGER
Home team's season wins (count) as of this game.
home_losses INTEGER
Home team's season losses (count) as of this game.
home_score INTEGER
Home team's points; 0 before tip-off.
away_team_id BIGINT
Away team identifier (numeric ID).
away_team_tricode VARCHAR
Away team three-letter code.
away_team_city VARCHAR
Away team city.
away_team_name VARCHAR
Away team nickname.
away_wins INTEGER
Away team's season wins (count) as of this game.
away_losses INTEGER
Away team's season losses (count) as of this game.
away_score INTEGER
Away team's points; 0 before tip-off.
ConstraintsPRIMARY KEY (game_id)
Example

Today's games and scores.

SELECT away_team_tricode, away_score, home_team_tricode, home_score,
  game_status_text
FROM nba.gleague.current_scoreboard
ORDER BY start_time_utc;
Link
current_standings 1 example39 cols

Current G League regular-season standings, one row per team

Columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA).
season_type VARCHAR
Season type requested, such as Regular Season.
team_idnot null BIGINT
Stable NBA Stats team identifier (numeric ID).
team_city VARCHAR
Team city or region.
team_name VARCHAR
Team nickname, such as Lakers.
conference VARCHAR
Conference, East or West.
division VARCHAR
Division name; NULL for leagues without divisions.
playoff_rank INTEGER
Playoff seeding rank: within the conference (NBA, G League) or league-wide (WNBA).
division_rank INTEGER
Rank within the division (1 is first); NULL without divisions.
league_rank INTEGER
Rank across the whole league (1 is first), when published.
wins INTEGER
Wins (count).
losses INTEGER
Losses (count).
win_percentage DECIMAL(4,3)
Winning percentage as an exact decimal (0-1 ratio).
record VARCHAR
Win-loss record display, such as 10-2.
conference_games_back DECIMAL(5,1)
Games behind the conference leader (in games).
division_games_back DECIMAL(5,1)
Games behind the division leader (in games).
league_games_back DECIMAL(5,1)
Games behind the league's best record (in games).
home_record VARCHAR
Home win-loss record.
road_record VARCHAR
Road win-loss record.
last_ten_record VARCHAR
Win-loss record over the last ten games.
conference_record VARCHAR
Record against conference opponents.
division_record VARCHAR
Record against division opponents.
vs_east_record VARCHAR
Record against Eastern Conference teams.
vs_west_record VARCHAR
Record against Western Conference teams.
current_streak INTEGER
Current streak length in games (positive for wins, negative for losses).
current_streak_display VARCHAR
Current streak display, such as W 6 or L 2.
longest_win_streak INTEGER
Longest winning streak this season (count of games).
longest_loss_streak INTEGER
Longest losing streak this season (count of games).
points_per_game DOUBLE
Points scored per game.
opponent_points_per_game DOUBLE
Points allowed per game.
point_differential_per_game DOUBLE
Average scoring margin per game.
total_points INTEGER
Total points scored in the season (count).
opponent_total_points INTEGER
Total points allowed in the season (count).
clinch_indicator VARCHAR
Clinch marker as published, such as x, y, z, pi, or o.
clinched_playoff_berth BOOLEAN
Whether the team has clinched a playoff berth.
clinched_play_in BOOLEAN
Whether the team has clinched at least a play-in place.
clinched_division BOOLEAN
Whether the team has clinched its division.
clinched_conference BOOLEAN
Whether the team has clinched its conference.
eliminated_from_playoffs BOOLEAN
Whether the team is eliminated from its conference race.
ConstraintsPRIMARY KEY (team_id)
Example

Current conference standings in seeding order.

SELECT conference, playoff_rank, team_name, wins, losses,
  conference_games_back
FROM nba.gleague.current_standings
ORDER BY conference, playoff_rank;
Link
current_team_stats 1 example31 cols

Per-game regular-season team statistics for the current G League season

Columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA).
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs.
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions.
team_idnot null BIGINT
Stable NBA Stats team identifier (numeric ID).
team_name VARCHAR
Full team name.
games_played INTEGER
Games played (count).
wins INTEGER
Wins (count).
losses INTEGER
Losses (count).
win_percentage DECIMAL(4,3)
Winning percentage (0-1 ratio).
minutes DOUBLE
Team minutes under the requested per_mode.
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode).
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode).
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio).
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode).
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode).
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio).
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode).
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode).
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio).
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode).
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode).
rebounds DOUBLE
Total rebounds (count, scaled per per_mode).
assists DOUBLE
Assists (count, scaled per per_mode).
steals DOUBLE
Steals (count, scaled per per_mode).
blocks DOUBLE
Blocked shots (count, scaled per per_mode).
turnovers DOUBLE
Turnovers (count, scaled per per_mode).
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode).
points DOUBLE
Points (count, scaled per per_mode).
blocks_against DOUBLE
Team shots blocked by opponents.
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode).
plus_minus DOUBLE
Point differential.
ConstraintsPRIMARY KEY (team_id)
Example

Current teams by points per game.

SELECT team_name, wins, losses, points, plus_minus
FROM nba.gleague.current_team_stats
ORDER BY points DESC;
Link
current_teams 1 example15 cols

Active G League teams with team_id, abbreviation, city, nickname, first season, and all-time record and titles

Columns
team_idnot null BIGINT
Stable NBA Stats team identifier (numeric ID).
team_abbreviation VARCHAR
Team three-letter abbreviation.
team_city VARCHAR
Team city or region.
team_name VARCHAR
Team nickname.
first_season INTEGER
Start year of the franchise's first season.
last_season INTEGER
Start year of the franchise's most recent season.
seasons INTEGER
Number of seasons played by the franchise.
games INTEGER
All-time regular-season games played (count).
wins INTEGER
All-time regular-season wins (count).
losses INTEGER
All-time regular-season losses (count).
win_percentage DECIMAL(4,3)
All-time regular-season winning percentage (0-1 ratio).
playoff_appearances INTEGER
Playoff appearances (count).
division_titles INTEGER
Division titles (count).
conference_titles INTEGER
Conference titles (count).
league_titles INTEGER
League championships (count).
ConstraintsPRIMARY KEY (team_id)
Example

Teams by league championships.

SELECT team_abbreviation, team_city, team_name, league_titles
FROM nba.gleague.current_teams
ORDER BY league_titles DESC, team_abbreviation;
Link
franchise_history 1 example15 cols

All-time G League franchise records

Columns
team_id BIGINT
Stable NBA Stats team identifier shared by every era of the franchise.
row_kind VARCHAR
franchise for the all-time summary, era for one city/name era, defunct for a folded franchise.
team_city VARCHAR
City or region in this row's era.
team_name VARCHAR
Nickname in this row's era.
start_year INTEGER
Start year of the first season covered by this row.
end_year INTEGER
Start year of the last season covered by this row.
seasons INTEGER
Number of seasons covered by this row.
games INTEGER
Regular-season games (count).
wins INTEGER
Regular-season wins (count).
losses INTEGER
Regular-season losses (count).
win_percentage DECIMAL(4,3)
Regular-season winning percentage (0-1 ratio).
playoff_appearances INTEGER
Playoff appearances (count).
division_titles INTEGER
Division titles (count).
conference_titles INTEGER
Conference titles (count).
league_titles INTEGER
League championships (count).
Example

Franchises with the most league titles.

SELECT team_city, team_name, start_year, league_titles
FROM nba.gleague.franchise_history
WHERE row_kind = 'franchise'
ORDER BY league_titles DESC
LIMIT 10;
Link
Table functions
advanced_player_stats (season := INTEGER, season_type := VARCHAR) 1 example

G League advanced player ratings by season and season type

Named arguments
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
team_id BIGINT
Current or last team identifier (numeric ID)
team_abbreviation VARCHAR
Current or last team abbreviation
age DOUBLE
Player age in years during the season
games_played INTEGER
Games played (count)
minutes_per_game DOUBLE
Minutes per game
offensive_rating DOUBLE
Points produced per 100 possessions
defensive_rating DOUBLE
Points allowed per 100 possessions
net_rating DOUBLE
Offensive minus defensive rating (points per 100 possessions)
assist_percentage DOUBLE
Share of teammate field goals assisted (0-1 ratio)
assist_to_turnover DOUBLE
Assists per turnover
assist_ratio DOUBLE
Assists per 100 possessions used
offensive_rebound_percentage DOUBLE
Share of available offensive rebounds (0-1 ratio)
defensive_rebound_percentage DOUBLE
Share of available defensive rebounds (0-1 ratio)
rebound_percentage DOUBLE
Share of available rebounds (0-1 ratio)
effective_field_goal_percentage DOUBLE
Effective field-goal percentage (0-1 ratio)
true_shooting_percentage DOUBLE
True shooting percentage (0-1 ratio)
pace DOUBLE
Possessions per 48 minutes
player_impact_estimate DOUBLE
NBA Player Impact Estimate, share of game events (0-1 ratio)
possessions INTEGER
Possessions played (count)
usage_percentage DOUBLE
Share of team possessions used while on the floor (0-1 ratio)
turnover_ratio DOUBLE
Turnovers per 100 plays used, on a 0-100 scale
Example

Highest 2025 true-shooting percentage among high-usage players.

SELECT player_name, team_abbreviation, usage_percentage,
  true_shooting_percentage
FROM nba.gleague.advanced_player_stats(season := 2025)
WHERE usage_percentage >= 0.25 AND games_played >= 20
ORDER BY true_shooting_percentage DESC
LIMIT 10;
Link
advanced_team_stats (season := INTEGER, season_type := VARCHAR) 1 example

G League advanced team ratings by season and season type

Named arguments
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_name VARCHAR
Full team name
games_played INTEGER
Games played (count)
wins INTEGER
Wins (count)
losses INTEGER
Losses (count)
offensive_rating DOUBLE
Points produced per 100 possessions
defensive_rating DOUBLE
Points allowed per 100 possessions
net_rating DOUBLE
Offensive minus defensive rating (points per 100 possessions)
assist_percentage DOUBLE
Share of teammate field goals assisted (0-1 ratio)
assist_to_turnover DOUBLE
Assists per turnover
assist_ratio DOUBLE
Assists per 100 possessions used
offensive_rebound_percentage DOUBLE
Share of available offensive rebounds (0-1 ratio)
defensive_rebound_percentage DOUBLE
Share of available defensive rebounds (0-1 ratio)
rebound_percentage DOUBLE
Share of available rebounds (0-1 ratio)
effective_field_goal_percentage DOUBLE
Effective field-goal percentage (0-1 ratio)
true_shooting_percentage DOUBLE
True shooting percentage (0-1 ratio)
pace DOUBLE
Possessions per 48 minutes
player_impact_estimate DOUBLE
NBA Player Impact Estimate, share of game events (0-1 ratio)
possessions INTEGER
Possessions played (count)
turnover_percentage DOUBLE
Turnovers per possession (0-1 ratio)
Example

2025 teams ranked by net rating.

SELECT team_name, offensive_rating, defensive_rating, net_rating
FROM nba.gleague.advanced_team_stats(season := 2025)
ORDER BY net_rating DESC;
Link
all_current_player_stats () 1 example

G League Player Averages (scan behind current_player_stats)

No arguments
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
team_id BIGINT
Current or last team identifier (numeric ID)
team_abbreviation VARCHAR
Current or last team abbreviation
team_count INTEGER
Number of teams the player appeared for; above 1 means totals span teams
age DOUBLE
Player age in years during the season
games_played INTEGER
Games played (count)
wins INTEGER
Team wins in games the player played
losses INTEGER
Team losses in games the player played
minutes DOUBLE
Minutes played under the requested per_mode
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode)
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode)
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode)
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode)
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode)
rebounds DOUBLE
Total rebounds (count, scaled per per_mode)
assists DOUBLE
Assists (count, scaled per per_mode)
steals DOUBLE
Steals (count, scaled per per_mode)
blocks DOUBLE
Blocked shots (count, scaled per per_mode)
turnovers DOUBLE
Turnovers (count, scaled per per_mode)
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode)
points DOUBLE
Points (count, scaled per per_mode)
blocks_against DOUBLE
Shots of this player blocked by opponents (count, scaled per per_mode)
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode)
plus_minus DOUBLE
Point differential while on the floor (points)
double_doubles INTEGER
Games with double figures in two categories
triple_doubles INTEGER
Games with double figures in three categories
Example

Current scoring leaders with at least ten games.

SELECT player_name, team_abbreviation, games_played, points
FROM nba.gleague.all_current_player_stats()
WHERE games_played >= 10
ORDER BY points DESC
LIMIT 10;
Link
all_current_players () 1 example

Current G League Players (scan behind current_players)

No arguments
Returns columns
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name, first name first
last_comma_first VARCHAR
Player name, last name first
is_active BOOLEAN
Whether the player is currently on a roster
from_year INTEGER
Start year of the player's first season in the league
to_year INTEGER
Start year of the player's most recent season in the league
team_id BIGINT
Current or last team identifier; NULL when unattached
team_abbreviation VARCHAR
Current or last team abbreviation
team_city VARCHAR
Current or last team city
team_name VARCHAR
Current or last team nickname
player_slug VARCHAR
URL slug of the player
has_played BOOLEAN
Whether the player has appeared in a game
Example

Rostered players per team.

SELECT team_abbreviation, count(*) AS players
FROM nba.gleague.all_current_players()
GROUP BY team_abbreviation
ORDER BY team_abbreviation;
Link
all_current_scoreboard () 1 example

Today's G League Scoreboard (scan behind current_scoreboard)

No arguments
Returns columns
game_date DATE
Scoreboard date in US Eastern time
game_id VARCHAR
Ten-character NBA Stats game identifier; keep it as text
game_code VARCHAR
Game code, date plus away and home tricodes
season_type VARCHAR
Season type derived from the game ID prefix
game_status INTEGER
Game status: 1 scheduled, 2 in progress, 3 final
game_status_text VARCHAR
Status display, such as Final, Halftime, or a tip-off time
period INTEGER
Current or final period; 0 before tip-off
game_clock VARCHAR
ISO-8601 time remaining in the current period, when live
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled tip-off time in UTC
series_text VARCHAR
Playoff series status text, when applicable
game_label VARCHAR
Game label, such as an NBA Cup or playoff round name
is_neutral_site BOOLEAN
Whether the game is played at a neutral site
home_team_id BIGINT
Home team identifier (numeric ID)
home_team_tricode VARCHAR
Home team three-letter code
home_team_city VARCHAR
Home team city
home_team_name VARCHAR
Home team nickname
home_wins INTEGER
Home team's season wins (count) as of this game
home_losses INTEGER
Home team's season losses (count) as of this game
home_score INTEGER
Home team's points; 0 before tip-off
away_team_id BIGINT
Away team identifier (numeric ID)
away_team_tricode VARCHAR
Away team three-letter code
away_team_city VARCHAR
Away team city
away_team_name VARCHAR
Away team nickname
away_wins INTEGER
Away team's season wins (count) as of this game
away_losses INTEGER
Away team's season losses (count) as of this game
away_score INTEGER
Away team's points; 0 before tip-off
Example

Today's games and scores.

SELECT away_team_tricode, away_score, home_team_tricode, home_score,
  game_status_text
FROM nba.gleague.all_current_scoreboard()
ORDER BY start_time_utc;
Link
all_current_standings () 1 example

Current G League Standings (scan behind current_standings)

No arguments
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_city VARCHAR
Team city or region
team_name VARCHAR
Team nickname, such as Lakers
conference VARCHAR
Conference, East or West
division VARCHAR
Division name; NULL for leagues without divisions
playoff_rank INTEGER
Playoff seeding rank: within the conference (NBA, G League) or league-wide (WNBA)
division_rank INTEGER
Rank within the division (1 is first); NULL without divisions
league_rank INTEGER
Rank across the whole league (1 is first), when published
wins INTEGER
Wins (count)
losses INTEGER
Losses (count)
win_percentage DECIMAL(4,3)
Winning percentage as an exact decimal (0-1 ratio)
record VARCHAR
Win-loss record display, such as 10-2
conference_games_back DECIMAL(5,1)
Games behind the conference leader (in games)
division_games_back DECIMAL(5,1)
Games behind the division leader (in games)
league_games_back DECIMAL(5,1)
Games behind the league's best record (in games)
home_record VARCHAR
Home win-loss record
road_record VARCHAR
Road win-loss record
last_ten_record VARCHAR
Win-loss record over the last ten games
conference_record VARCHAR
Record against conference opponents
division_record VARCHAR
Record against division opponents
vs_east_record VARCHAR
Record against Eastern Conference teams
vs_west_record VARCHAR
Record against Western Conference teams
current_streak INTEGER
Current streak length in games (positive for wins, negative for losses)
current_streak_display VARCHAR
Current streak display, such as W 6 or L 2
longest_win_streak INTEGER
Longest winning streak this season (count of games)
longest_loss_streak INTEGER
Longest losing streak this season (count of games)
points_per_game DOUBLE
Points scored per game
opponent_points_per_game DOUBLE
Points allowed per game
point_differential_per_game DOUBLE
Average scoring margin per game
total_points INTEGER
Total points scored in the season (count)
opponent_total_points INTEGER
Total points allowed in the season (count)
clinch_indicator VARCHAR
Clinch marker as published, such as x, y, z, pi, or o
clinched_playoff_berth BOOLEAN
Whether the team has clinched a playoff berth
clinched_play_in BOOLEAN
Whether the team has clinched at least a play-in place
clinched_division BOOLEAN
Whether the team has clinched its division
clinched_conference BOOLEAN
Whether the team has clinched its conference
eliminated_from_playoffs BOOLEAN
Whether the team is eliminated from its conference race
Example

Current conference standings in seeding order.

SELECT conference, playoff_rank, team_name, wins, losses,
  conference_games_back
FROM nba.gleague.all_current_standings()
ORDER BY conference, playoff_rank;
Link
all_current_team_stats () 1 example

G League Team Averages (scan behind current_team_stats)

No arguments
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_name VARCHAR
Full team name
games_played INTEGER
Games played (count)
wins INTEGER
Wins (count)
losses INTEGER
Losses (count)
win_percentage DECIMAL(4,3)
Winning percentage (0-1 ratio)
minutes DOUBLE
Team minutes under the requested per_mode
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode)
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode)
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode)
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode)
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode)
rebounds DOUBLE
Total rebounds (count, scaled per per_mode)
assists DOUBLE
Assists (count, scaled per per_mode)
steals DOUBLE
Steals (count, scaled per per_mode)
blocks DOUBLE
Blocked shots (count, scaled per per_mode)
turnovers DOUBLE
Turnovers (count, scaled per per_mode)
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode)
points DOUBLE
Points (count, scaled per per_mode)
blocks_against DOUBLE
Team shots blocked by opponents
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode)
plus_minus DOUBLE
Point differential
Example

Current teams by points per game.

SELECT team_name, wins, losses, points, plus_minus
FROM nba.gleague.all_current_team_stats()
ORDER BY points DESC;
Link
all_current_teams () 1 example

Current G League Teams (scan behind current_teams)

No arguments
Returns columns
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_abbreviation VARCHAR
Team three-letter abbreviation
team_city VARCHAR
Team city or region
team_name VARCHAR
Team nickname
first_season INTEGER
Start year of the franchise's first season
last_season INTEGER
Start year of the franchise's most recent season
seasons INTEGER
Number of seasons played by the franchise
games INTEGER
All-time regular-season games played (count)
wins INTEGER
All-time regular-season wins (count)
losses INTEGER
All-time regular-season losses (count)
win_percentage DECIMAL(4,3)
All-time regular-season winning percentage (0-1 ratio)
playoff_appearances INTEGER
Playoff appearances (count)
division_titles INTEGER
Division titles (count)
conference_titles INTEGER
Conference titles (count)
league_titles INTEGER
League championships (count)
Example

Teams by league championships.

SELECT team_abbreviation, team_city, team_name, league_titles
FROM nba.gleague.all_current_teams()
ORDER BY league_titles DESC, team_abbreviation;
Link
all_franchise_history () 1 example

G League Franchise History (scan behind franchise_history)

No arguments
Returns columns
team_id BIGINT
Stable NBA Stats team identifier shared by every era of the franchise
row_kind VARCHAR
franchise for the all-time summary, era for one city/name era, defunct for a folded franchise
team_city VARCHAR
City or region in this row's era
team_name VARCHAR
Nickname in this row's era
start_year INTEGER
Start year of the first season covered by this row
end_year INTEGER
Start year of the last season covered by this row
seasons INTEGER
Number of seasons covered by this row
games INTEGER
Regular-season games (count)
wins INTEGER
Regular-season wins (count)
losses INTEGER
Regular-season losses (count)
win_percentage DECIMAL(4,3)
Regular-season winning percentage (0-1 ratio)
playoff_appearances INTEGER
Playoff appearances (count)
division_titles INTEGER
Division titles (count)
conference_titles INTEGER
Conference titles (count)
league_titles INTEGER
League championships (count)
Example

Franchises with the most league titles.

SELECT team_city, team_name, start_year, league_titles
FROM nba.gleague.all_franchise_history()
WHERE row_kind = 'franchise'
ORDER BY league_titles DESC
LIMIT 10;
Link
box_score (game_id VARCHAR) 1 example

Traditional box score of one G League game, one row per player

Arguments
game_id VARCHAR
Ten-digit NBA Stats game identifier as text, such as '0022600201'.
Returns columns
game_id VARCHAR
Ten-character NBA Stats game identifier (numeric ID)
team_id BIGINT
Team identifier (numeric ID)
team_tricode VARCHAR
Team three-letter code
team_city VARCHAR
Team city
team_name VARCHAR
Team nickname
is_home BOOLEAN
Whether the player's team was the home team
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
position VARCHAR
Starting position (G, F, C); NULL for reserves
is_starter BOOLEAN
Whether the player started the game
status_comment VARCHAR
Inactive or did-not-play reason, when given
minutes VARCHAR
Minutes played display, MM:SS
seconds_played INTEGER
Exact playing time in seconds
field_goals_made INTEGER
Field goals made (count)
field_goals_attempted INTEGER
Field goals attempted (count)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made INTEGER
Three-point field goals made (count)
three_pointers_attempted INTEGER
Three-point field goals attempted (count)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made INTEGER
Free throws made (count)
free_throws_attempted INTEGER
Free throws attempted (count)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds INTEGER
Offensive rebounds (count)
defensive_rebounds INTEGER
Defensive rebounds (count)
rebounds INTEGER
Total rebounds (count)
assists INTEGER
Assists (count)
steals INTEGER
Steals (count)
blocks INTEGER
Blocked shots (count)
turnovers INTEGER
Turnovers (count)
personal_fouls INTEGER
Personal fouls (count)
points INTEGER
Points (count)
plus_minus INTEGER
Point differential while on the floor (points)
Example

Top scorers in game 2022500298.

SELECT team_tricode, player_name, minutes, points, rebounds, assists
FROM nba.gleague.box_score('2022500298')
ORDER BY points DESC
LIMIT 10;
Link
league_game_log (player_or_team := VARCHAR, season := INTEGER, season_type := VARCHAR) 1 example

Every G League team-game or player-game line of a season

Named arguments
player_or_team := VARCHAR
T for one row per team-game, P for one row per player-game. Β· default "T"
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
game_id VARCHAR
Ten-character NBA Stats game identifier; keep it as text
game_date DATE
Game date
season_type VARCHAR
Season type derived from the game ID prefix
player_id BIGINT
Player identifier; NULL on team rows
player_name VARCHAR
Player name; NULL on team rows
team_id BIGINT
Team identifier (numeric ID)
team_abbreviation VARCHAR
Team abbreviation
opponent_abbreviation VARCHAR
Opponent abbreviation parsed from the matchup
is_home BOOLEAN
Whether the team played at home ('vs.' rather than '@')
matchup VARCHAR
Matchup display, such as LAL vs. GSW or LAL @ BOS
win_loss VARCHAR
W or L; NULL for games not yet final
minutes INTEGER
Minutes played (count of whole minutes)
field_goals_made INTEGER
Field goals made (count)
field_goals_attempted INTEGER
Field goals attempted (count)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made INTEGER
Three-point field goals made (count)
three_pointers_attempted INTEGER
Three-point field goals attempted (count)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made INTEGER
Free throws made (count)
free_throws_attempted INTEGER
Free throws attempted (count)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds INTEGER
Offensive rebounds (count)
defensive_rebounds INTEGER
Defensive rebounds (count)
rebounds INTEGER
Total rebounds (count)
assists INTEGER
Assists (count)
steals INTEGER
Steals (count)
blocks INTEGER
Blocked shots (count)
turnovers INTEGER
Turnovers (count)
personal_fouls INTEGER
Personal fouls (count)
points INTEGER
Points (count)
plus_minus INTEGER
Point differential while on the floor (points)
Example

The highest-scoring team games of 2025.

SELECT game_date, team_abbreviation, opponent_abbreviation, points
FROM nba.gleague.league_game_log(season := 2025)
ORDER BY points DESC
LIMIT 10;
Link
league_leaders (per_mode := VARCHAR, season := INTEGER, season_type := VARCHAR, stat_category := VARCHAR) 2 examples

Official G League leaderboard for one statistic

Named arguments
per_mode := VARCHAR
PerGame, Totals, or Per48. Β· default "PerGame"
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
stat_category := VARCHAR
Statistic to rank by, such as PTS, REB, or AST. Β· default "PTS"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
stat_category VARCHAR
Statistic the leaderboard is ranked by, such as PTS
per_mode VARCHAR
Aggregation requested: Totals, PerGame, or Per48
rank INTEGER
Leaderboard rank (1 is the leader); ties share a rank
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
team_id BIGINT
Current or last team identifier (numeric ID)
team_abbreviation VARCHAR
Current or last team abbreviation
games_played INTEGER
Games played (count)
minutes DOUBLE
Minutes under the requested per_mode
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode)
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode)
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode)
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode)
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode)
rebounds DOUBLE
Total rebounds (count, scaled per per_mode)
assists DOUBLE
Assists (count, scaled per per_mode)
steals DOUBLE
Steals (count, scaled per per_mode)
blocks DOUBLE
Blocked shots (count, scaled per per_mode)
turnovers DOUBLE
Turnovers (count, scaled per per_mode)
points DOUBLE
Points (count, scaled per per_mode)
efficiency DOUBLE
NBA efficiency rating (EFF index)
Examples (2)

2025 assists-per-game leaders.

SELECT rank, player_name, team_abbreviation, assists
FROM nba.gleague.league_leaders(season := 2025, stat_category := 'AST')
ORDER BY rank
LIMIT 10;

The top ten of the official 2025 scoring leaderboard with each player's usage and true-shooting percentage.

SELECT l.rank, l.player_name, l.team_abbreviation, l.points,
  a.usage_percentage, a.true_shooting_percentage
FROM nba.gleague.league_leaders(season := 2025, stat_category := 'PTS') AS l
JOIN nba.gleague.advanced_player_stats(season := 2025) AS a USING (player_id)
ORDER BY l.rank, l.player_name
LIMIT 10;
Link
play_by_play (game_id VARCHAR) 1 example

Every play-by-play event of one G League game

Arguments
game_id VARCHAR
Ten-digit NBA Stats game identifier as text, such as '0022600201'.
Returns columns
game_id VARCHAR
Ten-character NBA Stats game identifier (numeric ID)
action_number INTEGER
Play sequence number (index); a block or steal repeats the number of the play it ended
action_id INTEGER
Event ordinal in the published feed (index); unique within the game and increasing
period INTEGER
Period number (1-4 regulation quarters, 5 and above overtime)
clock VARCHAR
ISO-8601 time remaining in the period, such as PT11M42.00S
seconds_remaining DECIMAL(6,2)
Seconds remaining in the period
team_id BIGINT
Team credited with the event; NULL for neutral events
team_tricode VARCHAR
Team three-letter code
player_id BIGINT
Player credited with the event; NULL when none
player_name VARCHAR
Player family name as published
action_type VARCHAR
Event type, such as Made Shot, Rebound, Foul, or period
sub_type VARCHAR
Event detail, such as Jump Shot or start
description VARCHAR
Play description
home_score INTEGER
Home points after the event (running score, carried forward on non-scoring plays)
away_score INTEGER
Away points after the event (running score, carried forward on non-scoring plays)
location VARCHAR
h for the home team or v for the visitors
is_field_goal BOOLEAN
Whether the event is a field-goal attempt
shot_result VARCHAR
Made or Missed for shots
shot_value INTEGER
Point value of the attempted shot (1, 2, or 3; 0 when not a shot)
shot_distance INTEGER
Shot distance in feet
x_legacy INTEGER
Legacy shot-chart x coordinate (tenths of feet from the basket)
y_legacy INTEGER
Legacy shot-chart y coordinate (tenths of feet from the basket)
Example

Made three-pointers in the fourth quarter of game 2022500298.

SELECT clock, team_tricode, player_name, description, home_score, away_score
FROM nba.gleague.play_by_play('2022500298')
WHERE period = 4 AND shot_value = 3 AND shot_result = 'Made'
ORDER BY action_id;
Link
player_career_stats (player_id BIGINT, season_type := VARCHAR) 1 example

One G League player's season-by-season career totals

Positional arguments
player_id BIGINT
Stable NBA Stats player identifier.
Named arguments
season_type := VARCHAR
Regular Season or Playoffs totals. Β· default "Regular Season"
Returns columns
season_type VARCHAR
Season type requested: Regular Season or Playoffs
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
season VARCHAR
Season key, such as 2003-04
team_id BIGINT
Team identifier; NULL on a multi-team total row
team_abbreviation VARCHAR
Team abbreviation; TOT on a multi-team total row
is_multi_team_total BOOLEAN
True for the TOT row that sums a traded player's teams
player_age DOUBLE
Player age in years during the season
games_played INTEGER
Games played (count)
games_started INTEGER
Games started (count)
minutes INTEGER
Minutes played (count of whole minutes)
field_goals_made INTEGER
Field goals made (count)
field_goals_attempted INTEGER
Field goals attempted (count)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made INTEGER
Three-point field goals made (count)
three_pointers_attempted INTEGER
Three-point field goals attempted (count)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made INTEGER
Free throws made (count)
free_throws_attempted INTEGER
Free throws attempted (count)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds INTEGER
Offensive rebounds (count)
defensive_rebounds INTEGER
Defensive rebounds (count)
rebounds INTEGER
Total rebounds (count)
assists INTEGER
Assists (count)
steals INTEGER
Steals (count)
blocks INTEGER
Blocked shots (count)
turnovers INTEGER
Turnovers (count)
personal_fouls INTEGER
Personal fouls (count)
points INTEGER
Points (count)
Example

Mac McClung's season-by-season points.

SELECT season, team_abbreviation, games_played, points
FROM nba.gleague.player_career_stats(1630644)
WHERE NOT is_multi_team_total
ORDER BY season;
Link
player_career_totals (player_id BIGINT, season_type := VARCHAR) 1 example

One G League player's whole-career totals

Positional arguments
player_id BIGINT
Stable NBA Stats player identifier.
Named arguments
season_type := VARCHAR
Regular Season or Playoffs totals. Β· default "Regular Season"
Returns columns
season_type VARCHAR
Season type requested: Regular Season or Playoffs
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
games_played INTEGER
Career games played
games_started INTEGER
Career games started
minutes INTEGER
Career minutes played
field_goals_made INTEGER
Field goals made over the career (count)
field_goals_attempted INTEGER
Field goals attempted over the career (count)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made INTEGER
Three-point field goals made over the career (count)
three_pointers_attempted INTEGER
Three-point field goals attempted over the career (count)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made INTEGER
Free throws made over the career (count)
free_throws_attempted INTEGER
Free throws attempted over the career (count)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds INTEGER
Offensive rebounds over the career (count)
defensive_rebounds INTEGER
Defensive rebounds over the career (count)
rebounds INTEGER
Total rebounds over the career (count)
assists INTEGER
Assists over the career (count)
steals INTEGER
Steals over the career (count)
blocks INTEGER
Blocked shots over the career (count)
turnovers INTEGER
Turnovers over the career (count)
personal_fouls INTEGER
Personal fouls over the career (count)
points INTEGER
Points over the career (count)
Example

Mac McClung's career regular-season totals.

SELECT games_played, points, rebounds, assists
FROM nba.gleague.player_career_totals(1630644);
Link
player_game_log (player_id BIGINT, season := INTEGER, season_type := VARCHAR) 1 example

One G League player's game-by-game lines for a season

Positional arguments
player_id BIGINT
Stable NBA Stats player identifier.
Named arguments
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
game_id VARCHAR
Ten-character NBA Stats game identifier; keep it as text
game_date DATE
Game date
season_type VARCHAR
Season type derived from the game ID prefix
player_id BIGINT
Player identifier; NULL on team rows
team_abbreviation VARCHAR
Team abbreviation
opponent_abbreviation VARCHAR
Opponent abbreviation parsed from the matchup
is_home BOOLEAN
Whether the team played at home ('vs.' rather than '@')
matchup VARCHAR
Matchup display, such as LAL vs. GSW or LAL @ BOS
win_loss VARCHAR
W or L; NULL for games not yet final
minutes INTEGER
Minutes played (count of whole minutes)
field_goals_made INTEGER
Field goals made (count)
field_goals_attempted INTEGER
Field goals attempted (count)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made INTEGER
Three-point field goals made (count)
three_pointers_attempted INTEGER
Three-point field goals attempted (count)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made INTEGER
Free throws made (count)
free_throws_attempted INTEGER
Free throws attempted (count)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds INTEGER
Offensive rebounds (count)
defensive_rebounds INTEGER
Defensive rebounds (count)
rebounds INTEGER
Total rebounds (count)
assists INTEGER
Assists (count)
steals INTEGER
Steals (count)
blocks INTEGER
Blocked shots (count)
turnovers INTEGER
Turnovers (count)
personal_fouls INTEGER
Personal fouls (count)
points INTEGER
Points (count)
plus_minus INTEGER
Point differential while on the floor (points)
Example

Mac McClung's 2025 games with at least 25 points.

SELECT game_date, matchup, points, rebounds, assists
FROM nba.gleague.player_game_log(1630644, season := 2025)
WHERE points >= 25
ORDER BY game_date;
Link
player_stats (per_mode := VARCHAR, season := INTEGER, season_type := VARCHAR) 1 example

G League player season statistics by season, season type, and per mode

Named arguments
per_mode := VARCHAR
PerGame averages, season Totals, Per36 minutes, or Per100Possessions. Β· default "PerGame"
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
team_id BIGINT
Current or last team identifier (numeric ID)
team_abbreviation VARCHAR
Current or last team abbreviation
team_count INTEGER
Number of teams the player appeared for; above 1 means totals span teams
age DOUBLE
Player age in years during the season
games_played INTEGER
Games played (count)
wins INTEGER
Team wins in games the player played
losses INTEGER
Team losses in games the player played
minutes DOUBLE
Minutes played under the requested per_mode
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode)
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode)
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode)
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode)
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode)
rebounds DOUBLE
Total rebounds (count, scaled per per_mode)
assists DOUBLE
Assists (count, scaled per per_mode)
steals DOUBLE
Steals (count, scaled per per_mode)
blocks DOUBLE
Blocked shots (count, scaled per per_mode)
turnovers DOUBLE
Turnovers (count, scaled per per_mode)
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode)
points DOUBLE
Points (count, scaled per per_mode)
blocks_against DOUBLE
Shots of this player blocked by opponents (count, scaled per per_mode)
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode)
plus_minus DOUBLE
Point differential while on the floor (points)
double_doubles INTEGER
Games with double figures in two categories
triple_doubles INTEGER
Games with double figures in three categories
Example

Top 2025 scorers per game with at least 20 games.

SELECT player_name, team_abbreviation, games_played, points, rebounds,
  assists
FROM nba.gleague.player_stats(season := 2025)
WHERE games_played >= 20
ORDER BY points DESC
LIMIT 10;
Link
players (only_current := BOOLEAN) 1 example

The G League player index, current or all-time

Named arguments
only_current := BOOLEAN
True returns players on a current roster; false returns every player in league history. Β· default true
Returns columns
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name, first name first
last_comma_first VARCHAR
Player name, last name first
is_active BOOLEAN
Whether the player is currently on a roster
from_year INTEGER
Start year of the player's first season in the league
to_year INTEGER
Start year of the player's most recent season in the league
team_id BIGINT
Current or last team identifier; NULL when unattached
team_abbreviation VARCHAR
Current or last team abbreviation
team_city VARCHAR
Current or last team city
team_name VARCHAR
Current or last team nickname
player_slug VARCHAR
URL slug of the player
has_played BOOLEAN
Whether the player has appeared in a game
Example

Find a player's identifier.

SELECT player_id, player_name, team_abbreviation, from_year
FROM nba.gleague.players(only_current := false)
WHERE player_name ILIKE '%McClung%';
Link
scoreboard (game_date DATE) 1 example

G League games and scores on one date

Arguments
game_date DATE
Calendar day of the games, as the league schedules it in US Eastern time.
Returns columns
game_date DATE
Scoreboard date in US Eastern time
game_id VARCHAR
Ten-character NBA Stats game identifier; keep it as text
game_code VARCHAR
Game code, date plus away and home tricodes
season_type VARCHAR
Season type derived from the game ID prefix
game_status INTEGER
Game status: 1 scheduled, 2 in progress, 3 final
game_status_text VARCHAR
Status display, such as Final, Halftime, or a tip-off time
period INTEGER
Current or final period; 0 before tip-off
game_clock VARCHAR
ISO-8601 time remaining in the current period, when live
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled tip-off time in UTC
series_text VARCHAR
Playoff series status text, when applicable
game_label VARCHAR
Game label, such as an NBA Cup or playoff round name
is_neutral_site BOOLEAN
Whether the game is played at a neutral site
home_team_id BIGINT
Home team identifier (numeric ID)
home_team_tricode VARCHAR
Home team three-letter code
home_team_city VARCHAR
Home team city
home_team_name VARCHAR
Home team nickname
home_wins INTEGER
Home team's season wins (count) as of this game
home_losses INTEGER
Home team's season losses (count) as of this game
home_score INTEGER
Home team's points; 0 before tip-off
away_team_id BIGINT
Away team identifier (numeric ID)
away_team_tricode VARCHAR
Away team three-letter code
away_team_city VARCHAR
Away team city
away_team_name VARCHAR
Away team nickname
away_wins INTEGER
Away team's season wins (count) as of this game
away_losses INTEGER
Away team's season losses (count) as of this game
away_score INTEGER
Away team's points; 0 before tip-off
Example

Final scores on 2026-02-10.

SELECT game_id, away_team_tricode, away_score, home_team_tricode,
  home_score, game_status_text
FROM nba.gleague.scoreboard(DATE '2026-02-10')
ORDER BY game_id;
Link
standings (season := INTEGER, season_type := VARCHAR) 2 examples

G League standings by season and season type

Named arguments
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Pre Season, or PlayIn; the league publishes no playoff standings. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_city VARCHAR
Team city or region
team_name VARCHAR
Team nickname, such as Lakers
conference VARCHAR
Conference, East or West
division VARCHAR
Division name; NULL for leagues without divisions
playoff_rank INTEGER
Playoff seeding rank: within the conference (NBA, G League) or league-wide (WNBA)
division_rank INTEGER
Rank within the division (1 is first); NULL without divisions
league_rank INTEGER
Rank across the whole league (1 is first), when published
wins INTEGER
Wins (count)
losses INTEGER
Losses (count)
win_percentage DECIMAL(4,3)
Winning percentage as an exact decimal (0-1 ratio)
record VARCHAR
Win-loss record display, such as 10-2
conference_games_back DECIMAL(5,1)
Games behind the conference leader (in games)
division_games_back DECIMAL(5,1)
Games behind the division leader (in games)
league_games_back DECIMAL(5,1)
Games behind the league's best record (in games)
home_record VARCHAR
Home win-loss record
road_record VARCHAR
Road win-loss record
last_ten_record VARCHAR
Win-loss record over the last ten games
conference_record VARCHAR
Record against conference opponents
division_record VARCHAR
Record against division opponents
vs_east_record VARCHAR
Record against Eastern Conference teams
vs_west_record VARCHAR
Record against Western Conference teams
current_streak INTEGER
Current streak length in games (positive for wins, negative for losses)
current_streak_display VARCHAR
Current streak display, such as W 6 or L 2
longest_win_streak INTEGER
Longest winning streak this season (count of games)
longest_loss_streak INTEGER
Longest losing streak this season (count of games)
points_per_game DOUBLE
Points scored per game
opponent_points_per_game DOUBLE
Points allowed per game
point_differential_per_game DOUBLE
Average scoring margin per game
total_points INTEGER
Total points scored in the season (count)
opponent_total_points INTEGER
Total points allowed in the season (count)
clinch_indicator VARCHAR
Clinch marker as published, such as x, y, z, pi, or o
clinched_playoff_berth BOOLEAN
Whether the team has clinched a playoff berth
clinched_play_in BOOLEAN
Whether the team has clinched at least a play-in place
clinched_division BOOLEAN
Whether the team has clinched its division
clinched_conference BOOLEAN
Whether the team has clinched its conference
eliminated_from_playoffs BOOLEAN
Whether the team is eliminated from its conference race
Examples (2)

Final 2025 conference standings in seeding order.

SELECT conference, playoff_rank, team_city, team_name, wins, losses
FROM nba.gleague.standings(season := 2025)
ORDER BY conference, playoff_rank;

Final 2025 standings by conference and playoff seed, beside each team's net rating from advanced_team_stats.

SELECT s.conference, s.playoff_rank, s.team_name, s.wins, s.losses,
  a.net_rating
FROM nba.gleague.standings(season := 2025) AS s
JOIN nba.gleague.advanced_team_stats(season := 2025) AS a USING (team_id)
ORDER BY s.conference, s.playoff_rank;
Link
team_roster (team_id BIGINT, season := INTEGER) 2 examples

One G League team's roster for a season

Positional arguments
team_id BIGINT
Stable NBA Stats team identifier.
Named arguments
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
Returns columns
season VARCHAR
Season key of the roster
team_id BIGINT
Team identifier (numeric ID)
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
jersey_number VARCHAR
Jersey number as text; NULL until assigned
position VARCHAR
Listed position, such as G, F-C, or C
height VARCHAR
Listed height display in feet-inches, such as 6-11
height_inches INTEGER
Listed height in inches
weight_pounds INTEGER
Listed weight in pounds
birth_date DATE
Date of birth
age DOUBLE
Age in years as published by the roster
experience_years INTEGER
Prior seasons of league experience in years; 0 for rookies
school VARCHAR
College or last pre-league affiliation
how_acquired VARCHAR
How the team acquired the player, when published
Examples (2)

The current Oklahoma City Blue roster.

SELECT jersey_number, player_name, position, height, weight_pounds
FROM nba.gleague.team_roster(1612709889)
ORDER BY player_name;

The 2025 Oklahoma City Blue roster with each player's per-game season averages, top scorers first.

SELECT r.jersey_number, r.player_name, r.position, p.games_played, p.points,
  p.rebounds, p.assists
FROM nba.gleague.team_roster(1612709889, season := 2025) AS r
LEFT JOIN nba.gleague.player_stats(season := 2025) AS p USING (player_id)
ORDER BY p.points DESC NULLS LAST, r.player_name;
Link
team_stats (per_mode := VARCHAR, season := INTEGER, season_type := VARCHAR) 1 example

G League team season statistics by season, season type, and per mode

Named arguments
per_mode := VARCHAR
PerGame averages, season Totals, Per36 minutes, or Per100Possessions. Β· default "PerGame"
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_name VARCHAR
Full team name
games_played INTEGER
Games played (count)
wins INTEGER
Wins (count)
losses INTEGER
Losses (count)
win_percentage DECIMAL(4,3)
Winning percentage (0-1 ratio)
minutes DOUBLE
Team minutes under the requested per_mode
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode)
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode)
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode)
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode)
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode)
rebounds DOUBLE
Total rebounds (count, scaled per per_mode)
assists DOUBLE
Assists (count, scaled per per_mode)
steals DOUBLE
Steals (count, scaled per per_mode)
blocks DOUBLE
Blocked shots (count, scaled per per_mode)
turnovers DOUBLE
Turnovers (count, scaled per per_mode)
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode)
points DOUBLE
Points (count, scaled per per_mode)
blocks_against DOUBLE
Team shots blocked by opponents
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode)
plus_minus DOUBLE
Point differential
Example

Best 2025 three-point shooting teams.

SELECT team_name, three_pointers_made, three_point_percentage
FROM nba.gleague.team_stats(season := 2025)
ORDER BY three_point_percentage DESC;
Link
nba 8 tables Β· 23 functions

National Basketball Association standings, scores, schedules, and statistics

Schema examples (4)
Examples (4)

Current conference standings in seeding order.

SELECT conference, playoff_rank, team_name, wins, losses,
  conference_games_back
FROM nba.nba.current_standings
ORDER BY conference, playoff_rank;

Final 2025 standings by conference and playoff seed, beside each team's net rating from advanced_team_stats.

SELECT s.conference, s.playoff_rank, s.team_name, s.wins, s.losses,
  a.net_rating
FROM nba.nba.standings(season := 2025) AS s
JOIN nba.nba.advanced_team_stats(season := 2025) AS a USING (team_id)
ORDER BY s.conference, s.playoff_rank;

The 2025 Los Angeles Lakers roster with each player's per-game season averages, top scorers first.

SELECT r.jersey_number, r.player_name, r.position, p.games_played, p.points,
  p.rebounds, p.assists
FROM nba.nba.team_roster(1610612747, season := 2025) AS r
LEFT JOIN nba.nba.player_stats(season := 2025) AS p USING (player_id)
ORDER BY p.points DESC NULLS LAST, r.player_name;

The top ten of the official 2025 scoring leaderboard with each player's usage and true-shooting percentage.

SELECT l.rank, l.player_name, l.team_abbreviation, l.points,
  a.usage_percentage, a.true_shooting_percentage
FROM nba.nba.league_leaders(season := 2025, stat_category := 'PTS') AS l
JOIN nba.nba.advanced_player_stats(season := 2025) AS a USING (player_id)
ORDER BY l.rank, l.player_name
LIMIT 10;
Tables
current_player_stats 1 example36 cols

Per-game regular-season averages for every NBA player this season: points, rebounds, assists, shooting, steals, blocks, and plus-minus

Columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA).
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs.
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions.
player_idnot null BIGINT
Stable NBA Stats player identifier (numeric ID).
player_name VARCHAR
Player name.
team_id BIGINT
Current or last team identifier (numeric ID).
team_abbreviation VARCHAR
Current or last team abbreviation.
team_count INTEGER
Number of teams the player appeared for; above 1 means totals span teams.
age DOUBLE
Player age in years during the season.
games_played INTEGER
Games played (count).
wins INTEGER
Team wins in games the player played.
losses INTEGER
Team losses in games the player played.
minutes DOUBLE
Minutes played under the requested per_mode.
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode).
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode).
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio).
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode).
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode).
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio).
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode).
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode).
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio).
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode).
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode).
rebounds DOUBLE
Total rebounds (count, scaled per per_mode).
assists DOUBLE
Assists (count, scaled per per_mode).
steals DOUBLE
Steals (count, scaled per per_mode).
blocks DOUBLE
Blocked shots (count, scaled per per_mode).
turnovers DOUBLE
Turnovers (count, scaled per per_mode).
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode).
points DOUBLE
Points (count, scaled per per_mode).
blocks_against DOUBLE
Shots of this player blocked by opponents (count, scaled per per_mode).
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode).
plus_minus DOUBLE
Point differential while on the floor (points).
double_doubles INTEGER
Games with double figures in two categories.
triple_doubles INTEGER
Games with double figures in three categories.
ConstraintsPRIMARY KEY (player_id)
Example

Current scoring leaders with at least ten games.

SELECT player_name, team_abbreviation, games_played, points
FROM nba.nba.current_player_stats
WHERE games_played >= 10
ORDER BY points DESC
LIMIT 10;
Result Β· first 5 rows
player_name team_abbreviation games_played points
Luka DončiΔ‡ LAL 19 35.8
Shai Gilgeous-Alexander OKC 20 32
Victor Wembanyama SAS 20 30.9
Giannis Antetokounmpo MIA 18 28.5
Stephen Curry GSW 10 27.8
Link
current_players 1 example12 cols

Players on a current NBA roster with player_id and team

Columns
player_idnot null BIGINT
Stable NBA Stats player identifier (numeric ID).
player_name VARCHAR
Player name, first name first.
last_comma_first VARCHAR
Player name, last name first.
is_active BOOLEAN
Whether the player is currently on a roster.
from_year INTEGER
Start year of the player's first season in the league.
to_year INTEGER
Start year of the player's most recent season in the league.
team_id BIGINT
Current or last team identifier; NULL when unattached.
team_abbreviation VARCHAR
Current or last team abbreviation.
team_city VARCHAR
Current or last team city.
team_name VARCHAR
Current or last team nickname.
player_slug VARCHAR
URL slug of the player.
has_played BOOLEAN
Whether the player has appeared in a game.
ConstraintsPRIMARY KEY (player_id)
Example

Rostered players per team.

SELECT team_abbreviation, count(*) AS players
FROM nba.nba.current_players
GROUP BY team_abbreviation
ORDER BY team_abbreviation;
Link
current_schedule 1 example30 cols

The full published NBA schedule for the current season, one row per game, with date, tip-off time, arena, status, and final scores for completed games

Columns
season VARCHAR
Season key of the published schedule.
game_idnot null VARCHAR
Ten-character NBA Stats game identifier; keep it as text.
game_code VARCHAR
Game code, date plus away and home tricodes.
season_type VARCHAR
Season type derived from the game ID prefix.
game_date DATE
Game date in US Eastern time.
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled tip-off time in UTC.
game_status INTEGER
Game status: 1 scheduled, 2 in progress, 3 final.
game_status_text VARCHAR
Status display, such as Final or a tip-off time.
week_number INTEGER
Schedule week number (0 for preseason).
game_label VARCHAR
Game label, such as Preseason or an NBA Cup round.
game_sub_label VARCHAR
Secondary game label, such as a special-event name.
arena_name VARCHAR
Arena name.
arena_city VARCHAR
Arena city.
arena_state VARCHAR
Arena state or province code.
is_neutral_site BOOLEAN
Whether the game is played at a neutral site.
is_postponed BOOLEAN
Whether the league marks the game postponed.
home_team_id BIGINT
Home team identifier (numeric ID).
home_team_tricode VARCHAR
Home team three-letter code.
home_team_city VARCHAR
Home team city.
home_team_name VARCHAR
Home team nickname.
home_wins INTEGER
Home team's season wins (count) as of this game.
home_losses INTEGER
Home team's season losses (count) as of this game.
home_score INTEGER
Home team's points; 0 before tip-off.
away_team_id BIGINT
Away team identifier (numeric ID).
away_team_tricode VARCHAR
Away team three-letter code.
away_team_city VARCHAR
Away team city.
away_team_name VARCHAR
Away team nickname.
away_wins INTEGER
Away team's season wins (count) as of this game.
away_losses INTEGER
Away team's season losses (count) as of this game.
away_score INTEGER
Away team's points; 0 before tip-off.
ConstraintsPRIMARY KEY (game_id)
Example

The Los Angeles Lakers regular-season schedule with results so far.

SELECT game_date, away_team_tricode, away_score, home_team_tricode,
  home_score, game_status_text
FROM nba.nba.current_schedule
WHERE season_type = 'Regular Season' AND 1610612747 IN (home_team_id, away_team_id)
ORDER BY start_time_utc;
Link
current_scoreboard 1 example26 cols

Today's NBA games (US Eastern date) with live status, period, clock, and scores

Columns
game_date DATE
Scoreboard date in US Eastern time.
game_idnot null VARCHAR
Ten-character NBA Stats game identifier; keep it as text.
game_code VARCHAR
Game code, date plus away and home tricodes.
season_type VARCHAR
Season type derived from the game ID prefix.
game_status INTEGER
Game status: 1 scheduled, 2 in progress, 3 final.
game_status_text VARCHAR
Status display, such as Final, Halftime, or a tip-off time.
period INTEGER
Current or final period; 0 before tip-off.
game_clock VARCHAR
ISO-8601 time remaining in the current period, when live.
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled tip-off time in UTC.
series_text VARCHAR
Playoff series status text, when applicable.
game_label VARCHAR
Game label, such as an NBA Cup or playoff round name.
is_neutral_site BOOLEAN
Whether the game is played at a neutral site.
home_team_id BIGINT
Home team identifier (numeric ID).
home_team_tricode VARCHAR
Home team three-letter code.
home_team_city VARCHAR
Home team city.
home_team_name VARCHAR
Home team nickname.
home_wins INTEGER
Home team's season wins (count) as of this game.
home_losses INTEGER
Home team's season losses (count) as of this game.
home_score INTEGER
Home team's points; 0 before tip-off.
away_team_id BIGINT
Away team identifier (numeric ID).
away_team_tricode VARCHAR
Away team three-letter code.
away_team_city VARCHAR
Away team city.
away_team_name VARCHAR
Away team nickname.
away_wins INTEGER
Away team's season wins (count) as of this game.
away_losses INTEGER
Away team's season losses (count) as of this game.
away_score INTEGER
Away team's points; 0 before tip-off.
ConstraintsPRIMARY KEY (game_id)
Example

Today's games and scores.

SELECT away_team_tricode, away_score, home_team_tricode, home_score,
  game_status_text
FROM nba.nba.current_scoreboard
ORDER BY start_time_utc;
Link
current_standings 1 example39 cols

Current NBA regular-season standings, one row per team

Columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA).
season_type VARCHAR
Season type requested, such as Regular Season.
team_idnot null BIGINT
Stable NBA Stats team identifier (numeric ID).
team_city VARCHAR
Team city or region.
team_name VARCHAR
Team nickname, such as Lakers.
conference VARCHAR
Conference, East or West.
division VARCHAR
Division name; NULL for leagues without divisions.
playoff_rank INTEGER
Playoff seeding rank: within the conference (NBA, G League) or league-wide (WNBA).
division_rank INTEGER
Rank within the division (1 is first); NULL without divisions.
league_rank INTEGER
Rank across the whole league (1 is first), when published.
wins INTEGER
Wins (count).
losses INTEGER
Losses (count).
win_percentage DECIMAL(4,3)
Winning percentage as an exact decimal (0-1 ratio).
record VARCHAR
Win-loss record display, such as 10-2.
conference_games_back DECIMAL(5,1)
Games behind the conference leader (in games).
division_games_back DECIMAL(5,1)
Games behind the division leader (in games).
league_games_back DECIMAL(5,1)
Games behind the league's best record (in games).
home_record VARCHAR
Home win-loss record.
road_record VARCHAR
Road win-loss record.
last_ten_record VARCHAR
Win-loss record over the last ten games.
conference_record VARCHAR
Record against conference opponents.
division_record VARCHAR
Record against division opponents.
vs_east_record VARCHAR
Record against Eastern Conference teams.
vs_west_record VARCHAR
Record against Western Conference teams.
current_streak INTEGER
Current streak length in games (positive for wins, negative for losses).
current_streak_display VARCHAR
Current streak display, such as W 6 or L 2.
longest_win_streak INTEGER
Longest winning streak this season (count of games).
longest_loss_streak INTEGER
Longest losing streak this season (count of games).
points_per_game DOUBLE
Points scored per game.
opponent_points_per_game DOUBLE
Points allowed per game.
point_differential_per_game DOUBLE
Average scoring margin per game.
total_points INTEGER
Total points scored in the season (count).
opponent_total_points INTEGER
Total points allowed in the season (count).
clinch_indicator VARCHAR
Clinch marker as published, such as x, y, z, pi, or o.
clinched_playoff_berth BOOLEAN
Whether the team has clinched a playoff berth.
clinched_play_in BOOLEAN
Whether the team has clinched at least a play-in place.
clinched_division BOOLEAN
Whether the team has clinched its division.
clinched_conference BOOLEAN
Whether the team has clinched its conference.
eliminated_from_playoffs BOOLEAN
Whether the team is eliminated from its conference race.
ConstraintsPRIMARY KEY (team_id)
Example

Current conference standings in seeding order.

SELECT conference, playoff_rank, team_name, wins, losses,
  conference_games_back
FROM nba.nba.current_standings
ORDER BY conference, playoff_rank;
Link
current_team_stats 1 example31 cols

Per-game regular-season team statistics for the current NBA season

Columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA).
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs.
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions.
team_idnot null BIGINT
Stable NBA Stats team identifier (numeric ID).
team_name VARCHAR
Full team name.
games_played INTEGER
Games played (count).
wins INTEGER
Wins (count).
losses INTEGER
Losses (count).
win_percentage DECIMAL(4,3)
Winning percentage (0-1 ratio).
minutes DOUBLE
Team minutes under the requested per_mode.
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode).
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode).
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio).
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode).
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode).
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio).
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode).
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode).
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio).
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode).
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode).
rebounds DOUBLE
Total rebounds (count, scaled per per_mode).
assists DOUBLE
Assists (count, scaled per per_mode).
steals DOUBLE
Steals (count, scaled per per_mode).
blocks DOUBLE
Blocked shots (count, scaled per per_mode).
turnovers DOUBLE
Turnovers (count, scaled per per_mode).
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode).
points DOUBLE
Points (count, scaled per per_mode).
blocks_against DOUBLE
Team shots blocked by opponents.
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode).
plus_minus DOUBLE
Point differential.
ConstraintsPRIMARY KEY (team_id)
Example

Current teams by points per game.

SELECT team_name, wins, losses, points, plus_minus
FROM nba.nba.current_team_stats
ORDER BY points DESC;
Link
current_teams 1 example15 cols

Active NBA teams with team_id, abbreviation, city, nickname, first season, and all-time record and titles

Columns
team_idnot null BIGINT
Stable NBA Stats team identifier (numeric ID).
team_abbreviation VARCHAR
Team three-letter abbreviation.
team_city VARCHAR
Team city or region.
team_name VARCHAR
Team nickname.
first_season INTEGER
Start year of the franchise's first season.
last_season INTEGER
Start year of the franchise's most recent season.
seasons INTEGER
Number of seasons played by the franchise.
games INTEGER
All-time regular-season games played (count).
wins INTEGER
All-time regular-season wins (count).
losses INTEGER
All-time regular-season losses (count).
win_percentage DECIMAL(4,3)
All-time regular-season winning percentage (0-1 ratio).
playoff_appearances INTEGER
Playoff appearances (count).
division_titles INTEGER
Division titles (count).
conference_titles INTEGER
Conference titles (count).
league_titles INTEGER
League championships (count).
ConstraintsPRIMARY KEY (team_id)
Example

Teams by league championships.

SELECT team_abbreviation, team_city, team_name, league_titles
FROM nba.nba.current_teams
ORDER BY league_titles DESC, team_abbreviation;
Link
franchise_history 1 example15 cols

All-time NBA franchise records

Columns
team_id BIGINT
Stable NBA Stats team identifier shared by every era of the franchise.
row_kind VARCHAR
franchise for the all-time summary, era for one city/name era, defunct for a folded franchise.
team_city VARCHAR
City or region in this row's era.
team_name VARCHAR
Nickname in this row's era.
start_year INTEGER
Start year of the first season covered by this row.
end_year INTEGER
Start year of the last season covered by this row.
seasons INTEGER
Number of seasons covered by this row.
games INTEGER
Regular-season games (count).
wins INTEGER
Regular-season wins (count).
losses INTEGER
Regular-season losses (count).
win_percentage DECIMAL(4,3)
Regular-season winning percentage (0-1 ratio).
playoff_appearances INTEGER
Playoff appearances (count).
division_titles INTEGER
Division titles (count).
conference_titles INTEGER
Conference titles (count).
league_titles INTEGER
League championships (count).
Example

Franchises with the most league titles.

SELECT team_city, team_name, start_year, league_titles
FROM nba.nba.franchise_history
WHERE row_kind = 'franchise'
ORDER BY league_titles DESC
LIMIT 10;
Link
Table functions
advanced_player_stats (season := INTEGER, season_type := VARCHAR) 1 example

NBA advanced player ratings by season and season type

Named arguments
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
team_id BIGINT
Current or last team identifier (numeric ID)
team_abbreviation VARCHAR
Current or last team abbreviation
age DOUBLE
Player age in years during the season
games_played INTEGER
Games played (count)
minutes_per_game DOUBLE
Minutes per game
offensive_rating DOUBLE
Points produced per 100 possessions
defensive_rating DOUBLE
Points allowed per 100 possessions
net_rating DOUBLE
Offensive minus defensive rating (points per 100 possessions)
assist_percentage DOUBLE
Share of teammate field goals assisted (0-1 ratio)
assist_to_turnover DOUBLE
Assists per turnover
assist_ratio DOUBLE
Assists per 100 possessions used
offensive_rebound_percentage DOUBLE
Share of available offensive rebounds (0-1 ratio)
defensive_rebound_percentage DOUBLE
Share of available defensive rebounds (0-1 ratio)
rebound_percentage DOUBLE
Share of available rebounds (0-1 ratio)
effective_field_goal_percentage DOUBLE
Effective field-goal percentage (0-1 ratio)
true_shooting_percentage DOUBLE
True shooting percentage (0-1 ratio)
pace DOUBLE
Possessions per 48 minutes
player_impact_estimate DOUBLE
NBA Player Impact Estimate, share of game events (0-1 ratio)
possessions INTEGER
Possessions played (count)
usage_percentage DOUBLE
Share of team possessions used while on the floor (0-1 ratio)
turnover_ratio DOUBLE
Turnovers per 100 plays used, on a 0-100 scale
Example

Highest 2025 true-shooting percentage among high-usage players.

SELECT player_name, team_abbreviation, usage_percentage,
  true_shooting_percentage
FROM nba.nba.advanced_player_stats(season := 2025)
WHERE usage_percentage >= 0.25 AND games_played >= 20
ORDER BY true_shooting_percentage DESC
LIMIT 10;
Link
advanced_team_stats (season := INTEGER, season_type := VARCHAR) 1 example

NBA advanced team ratings by season and season type

Named arguments
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_name VARCHAR
Full team name
games_played INTEGER
Games played (count)
wins INTEGER
Wins (count)
losses INTEGER
Losses (count)
offensive_rating DOUBLE
Points produced per 100 possessions
defensive_rating DOUBLE
Points allowed per 100 possessions
net_rating DOUBLE
Offensive minus defensive rating (points per 100 possessions)
assist_percentage DOUBLE
Share of teammate field goals assisted (0-1 ratio)
assist_to_turnover DOUBLE
Assists per turnover
assist_ratio DOUBLE
Assists per 100 possessions used
offensive_rebound_percentage DOUBLE
Share of available offensive rebounds (0-1 ratio)
defensive_rebound_percentage DOUBLE
Share of available defensive rebounds (0-1 ratio)
rebound_percentage DOUBLE
Share of available rebounds (0-1 ratio)
effective_field_goal_percentage DOUBLE
Effective field-goal percentage (0-1 ratio)
true_shooting_percentage DOUBLE
True shooting percentage (0-1 ratio)
pace DOUBLE
Possessions per 48 minutes
player_impact_estimate DOUBLE
NBA Player Impact Estimate, share of game events (0-1 ratio)
possessions INTEGER
Possessions played (count)
turnover_percentage DOUBLE
Turnovers per possession (0-1 ratio)
Example

2025 teams ranked by net rating.

SELECT team_name, offensive_rating, defensive_rating, net_rating
FROM nba.nba.advanced_team_stats(season := 2025)
ORDER BY net_rating DESC;
Link
all_current_player_stats () 1 example

NBA Player Averages (scan behind current_player_stats)

No arguments
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
team_id BIGINT
Current or last team identifier (numeric ID)
team_abbreviation VARCHAR
Current or last team abbreviation
team_count INTEGER
Number of teams the player appeared for; above 1 means totals span teams
age DOUBLE
Player age in years during the season
games_played INTEGER
Games played (count)
wins INTEGER
Team wins in games the player played
losses INTEGER
Team losses in games the player played
minutes DOUBLE
Minutes played under the requested per_mode
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode)
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode)
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode)
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode)
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode)
rebounds DOUBLE
Total rebounds (count, scaled per per_mode)
assists DOUBLE
Assists (count, scaled per per_mode)
steals DOUBLE
Steals (count, scaled per per_mode)
blocks DOUBLE
Blocked shots (count, scaled per per_mode)
turnovers DOUBLE
Turnovers (count, scaled per per_mode)
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode)
points DOUBLE
Points (count, scaled per per_mode)
blocks_against DOUBLE
Shots of this player blocked by opponents (count, scaled per per_mode)
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode)
plus_minus DOUBLE
Point differential while on the floor (points)
double_doubles INTEGER
Games with double figures in two categories
triple_doubles INTEGER
Games with double figures in three categories
Example

Current scoring leaders with at least ten games.

SELECT player_name, team_abbreviation, games_played, points
FROM nba.nba.all_current_player_stats()
WHERE games_played >= 10
ORDER BY points DESC
LIMIT 10;
Link
all_current_players () 1 example

Current NBA Players (scan behind current_players)

No arguments
Returns columns
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name, first name first
last_comma_first VARCHAR
Player name, last name first
is_active BOOLEAN
Whether the player is currently on a roster
from_year INTEGER
Start year of the player's first season in the league
to_year INTEGER
Start year of the player's most recent season in the league
team_id BIGINT
Current or last team identifier; NULL when unattached
team_abbreviation VARCHAR
Current or last team abbreviation
team_city VARCHAR
Current or last team city
team_name VARCHAR
Current or last team nickname
player_slug VARCHAR
URL slug of the player
has_played BOOLEAN
Whether the player has appeared in a game
Example

Rostered players per team.

SELECT team_abbreviation, count(*) AS players
FROM nba.nba.all_current_players()
GROUP BY team_abbreviation
ORDER BY team_abbreviation;
Link
all_current_schedule () 1 example

Current NBA Schedule (scan behind current_schedule)

No arguments
Returns columns
season VARCHAR
Season key of the published schedule
game_id VARCHAR
Ten-character NBA Stats game identifier; keep it as text
game_code VARCHAR
Game code, date plus away and home tricodes
season_type VARCHAR
Season type derived from the game ID prefix
game_date DATE
Game date in US Eastern time
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled tip-off time in UTC
game_status INTEGER
Game status: 1 scheduled, 2 in progress, 3 final
game_status_text VARCHAR
Status display, such as Final or a tip-off time
week_number INTEGER
Schedule week number (0 for preseason)
game_label VARCHAR
Game label, such as Preseason or an NBA Cup round
game_sub_label VARCHAR
Secondary game label, such as a special-event name
arena_name VARCHAR
Arena name
arena_city VARCHAR
Arena city
arena_state VARCHAR
Arena state or province code
is_neutral_site BOOLEAN
Whether the game is played at a neutral site
is_postponed BOOLEAN
Whether the league marks the game postponed
home_team_id BIGINT
Home team identifier (numeric ID)
home_team_tricode VARCHAR
Home team three-letter code
home_team_city VARCHAR
Home team city
home_team_name VARCHAR
Home team nickname
home_wins INTEGER
Home team's season wins (count) as of this game
home_losses INTEGER
Home team's season losses (count) as of this game
home_score INTEGER
Home team's points; 0 before tip-off
away_team_id BIGINT
Away team identifier (numeric ID)
away_team_tricode VARCHAR
Away team three-letter code
away_team_city VARCHAR
Away team city
away_team_name VARCHAR
Away team nickname
away_wins INTEGER
Away team's season wins (count) as of this game
away_losses INTEGER
Away team's season losses (count) as of this game
away_score INTEGER
Away team's points; 0 before tip-off
Example

The Los Angeles Lakers regular-season schedule with results so far.

SELECT game_date, away_team_tricode, away_score, home_team_tricode,
  home_score, game_status_text
FROM nba.nba.all_current_schedule()
WHERE season_type = 'Regular Season' AND 1610612747 IN (home_team_id, away_team_id)
ORDER BY start_time_utc;
Link
all_current_scoreboard () 1 example

Today's NBA Scoreboard (scan behind current_scoreboard)

No arguments
Returns columns
game_date DATE
Scoreboard date in US Eastern time
game_id VARCHAR
Ten-character NBA Stats game identifier; keep it as text
game_code VARCHAR
Game code, date plus away and home tricodes
season_type VARCHAR
Season type derived from the game ID prefix
game_status INTEGER
Game status: 1 scheduled, 2 in progress, 3 final
game_status_text VARCHAR
Status display, such as Final, Halftime, or a tip-off time
period INTEGER
Current or final period; 0 before tip-off
game_clock VARCHAR
ISO-8601 time remaining in the current period, when live
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled tip-off time in UTC
series_text VARCHAR
Playoff series status text, when applicable
game_label VARCHAR
Game label, such as an NBA Cup or playoff round name
is_neutral_site BOOLEAN
Whether the game is played at a neutral site
home_team_id BIGINT
Home team identifier (numeric ID)
home_team_tricode VARCHAR
Home team three-letter code
home_team_city VARCHAR
Home team city
home_team_name VARCHAR
Home team nickname
home_wins INTEGER
Home team's season wins (count) as of this game
home_losses INTEGER
Home team's season losses (count) as of this game
home_score INTEGER
Home team's points; 0 before tip-off
away_team_id BIGINT
Away team identifier (numeric ID)
away_team_tricode VARCHAR
Away team three-letter code
away_team_city VARCHAR
Away team city
away_team_name VARCHAR
Away team nickname
away_wins INTEGER
Away team's season wins (count) as of this game
away_losses INTEGER
Away team's season losses (count) as of this game
away_score INTEGER
Away team's points; 0 before tip-off
Example

Today's games and scores.

SELECT away_team_tricode, away_score, home_team_tricode, home_score,
  game_status_text
FROM nba.nba.all_current_scoreboard()
ORDER BY start_time_utc;
Link
all_current_standings () 1 example

Current NBA Standings (scan behind current_standings)

No arguments
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_city VARCHAR
Team city or region
team_name VARCHAR
Team nickname, such as Lakers
conference VARCHAR
Conference, East or West
division VARCHAR
Division name; NULL for leagues without divisions
playoff_rank INTEGER
Playoff seeding rank: within the conference (NBA, G League) or league-wide (WNBA)
division_rank INTEGER
Rank within the division (1 is first); NULL without divisions
league_rank INTEGER
Rank across the whole league (1 is first), when published
wins INTEGER
Wins (count)
losses INTEGER
Losses (count)
win_percentage DECIMAL(4,3)
Winning percentage as an exact decimal (0-1 ratio)
record VARCHAR
Win-loss record display, such as 10-2
conference_games_back DECIMAL(5,1)
Games behind the conference leader (in games)
division_games_back DECIMAL(5,1)
Games behind the division leader (in games)
league_games_back DECIMAL(5,1)
Games behind the league's best record (in games)
home_record VARCHAR
Home win-loss record
road_record VARCHAR
Road win-loss record
last_ten_record VARCHAR
Win-loss record over the last ten games
conference_record VARCHAR
Record against conference opponents
division_record VARCHAR
Record against division opponents
vs_east_record VARCHAR
Record against Eastern Conference teams
vs_west_record VARCHAR
Record against Western Conference teams
current_streak INTEGER
Current streak length in games (positive for wins, negative for losses)
current_streak_display VARCHAR
Current streak display, such as W 6 or L 2
longest_win_streak INTEGER
Longest winning streak this season (count of games)
longest_loss_streak INTEGER
Longest losing streak this season (count of games)
points_per_game DOUBLE
Points scored per game
opponent_points_per_game DOUBLE
Points allowed per game
point_differential_per_game DOUBLE
Average scoring margin per game
total_points INTEGER
Total points scored in the season (count)
opponent_total_points INTEGER
Total points allowed in the season (count)
clinch_indicator VARCHAR
Clinch marker as published, such as x, y, z, pi, or o
clinched_playoff_berth BOOLEAN
Whether the team has clinched a playoff berth
clinched_play_in BOOLEAN
Whether the team has clinched at least a play-in place
clinched_division BOOLEAN
Whether the team has clinched its division
clinched_conference BOOLEAN
Whether the team has clinched its conference
eliminated_from_playoffs BOOLEAN
Whether the team is eliminated from its conference race
Example

Current conference standings in seeding order.

SELECT conference, playoff_rank, team_name, wins, losses,
  conference_games_back
FROM nba.nba.all_current_standings()
ORDER BY conference, playoff_rank;
Link
all_current_team_stats () 1 example

NBA Team Averages (scan behind current_team_stats)

No arguments
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_name VARCHAR
Full team name
games_played INTEGER
Games played (count)
wins INTEGER
Wins (count)
losses INTEGER
Losses (count)
win_percentage DECIMAL(4,3)
Winning percentage (0-1 ratio)
minutes DOUBLE
Team minutes under the requested per_mode
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode)
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode)
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode)
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode)
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode)
rebounds DOUBLE
Total rebounds (count, scaled per per_mode)
assists DOUBLE
Assists (count, scaled per per_mode)
steals DOUBLE
Steals (count, scaled per per_mode)
blocks DOUBLE
Blocked shots (count, scaled per per_mode)
turnovers DOUBLE
Turnovers (count, scaled per per_mode)
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode)
points DOUBLE
Points (count, scaled per per_mode)
blocks_against DOUBLE
Team shots blocked by opponents
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode)
plus_minus DOUBLE
Point differential
Example

Current teams by points per game.

SELECT team_name, wins, losses, points, plus_minus
FROM nba.nba.all_current_team_stats()
ORDER BY points DESC;
Link
all_current_teams () 1 example

Current NBA Teams (scan behind current_teams)

No arguments
Returns columns
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_abbreviation VARCHAR
Team three-letter abbreviation
team_city VARCHAR
Team city or region
team_name VARCHAR
Team nickname
first_season INTEGER
Start year of the franchise's first season
last_season INTEGER
Start year of the franchise's most recent season
seasons INTEGER
Number of seasons played by the franchise
games INTEGER
All-time regular-season games played (count)
wins INTEGER
All-time regular-season wins (count)
losses INTEGER
All-time regular-season losses (count)
win_percentage DECIMAL(4,3)
All-time regular-season winning percentage (0-1 ratio)
playoff_appearances INTEGER
Playoff appearances (count)
division_titles INTEGER
Division titles (count)
conference_titles INTEGER
Conference titles (count)
league_titles INTEGER
League championships (count)
Example

Teams by league championships.

SELECT team_abbreviation, team_city, team_name, league_titles
FROM nba.nba.all_current_teams()
ORDER BY league_titles DESC, team_abbreviation;
Link
all_franchise_history () 1 example

NBA Franchise History (scan behind franchise_history)

No arguments
Returns columns
team_id BIGINT
Stable NBA Stats team identifier shared by every era of the franchise
row_kind VARCHAR
franchise for the all-time summary, era for one city/name era, defunct for a folded franchise
team_city VARCHAR
City or region in this row's era
team_name VARCHAR
Nickname in this row's era
start_year INTEGER
Start year of the first season covered by this row
end_year INTEGER
Start year of the last season covered by this row
seasons INTEGER
Number of seasons covered by this row
games INTEGER
Regular-season games (count)
wins INTEGER
Regular-season wins (count)
losses INTEGER
Regular-season losses (count)
win_percentage DECIMAL(4,3)
Regular-season winning percentage (0-1 ratio)
playoff_appearances INTEGER
Playoff appearances (count)
division_titles INTEGER
Division titles (count)
conference_titles INTEGER
Conference titles (count)
league_titles INTEGER
League championships (count)
Example

Franchises with the most league titles.

SELECT team_city, team_name, start_year, league_titles
FROM nba.nba.all_franchise_history()
WHERE row_kind = 'franchise'
ORDER BY league_titles DESC
LIMIT 10;
Link
box_score (game_id VARCHAR) 1 example

Traditional box score of one NBA game, one row per player

Arguments
game_id VARCHAR
Ten-digit NBA Stats game identifier as text, such as '0022600201'.
Returns columns
game_id VARCHAR
Ten-character NBA Stats game identifier (numeric ID)
team_id BIGINT
Team identifier (numeric ID)
team_tricode VARCHAR
Team three-letter code
team_city VARCHAR
Team city
team_name VARCHAR
Team nickname
is_home BOOLEAN
Whether the player's team was the home team
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
position VARCHAR
Starting position (G, F, C); NULL for reserves
is_starter BOOLEAN
Whether the player started the game
status_comment VARCHAR
Inactive or did-not-play reason, when given
minutes VARCHAR
Minutes played display, MM:SS
seconds_played INTEGER
Exact playing time in seconds
field_goals_made INTEGER
Field goals made (count)
field_goals_attempted INTEGER
Field goals attempted (count)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made INTEGER
Three-point field goals made (count)
three_pointers_attempted INTEGER
Three-point field goals attempted (count)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made INTEGER
Free throws made (count)
free_throws_attempted INTEGER
Free throws attempted (count)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds INTEGER
Offensive rebounds (count)
defensive_rebounds INTEGER
Defensive rebounds (count)
rebounds INTEGER
Total rebounds (count)
assists INTEGER
Assists (count)
steals INTEGER
Steals (count)
blocks INTEGER
Blocked shots (count)
turnovers INTEGER
Turnovers (count)
personal_fouls INTEGER
Personal fouls (count)
points INTEGER
Points (count)
plus_minus INTEGER
Point differential while on the floor (points)
Example

Top scorers in game 0022600201.

SELECT team_tricode, player_name, minutes, points, rebounds, assists
FROM nba.nba.box_score('0022600201')
ORDER BY points DESC
LIMIT 10;
Link
league_game_log (player_or_team := VARCHAR, season := INTEGER, season_type := VARCHAR) 1 example

Every NBA team-game or player-game line of a season

Named arguments
player_or_team := VARCHAR
T for one row per team-game, P for one row per player-game. Β· default "T"
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
game_id VARCHAR
Ten-character NBA Stats game identifier; keep it as text
game_date DATE
Game date
season_type VARCHAR
Season type derived from the game ID prefix
player_id BIGINT
Player identifier; NULL on team rows
player_name VARCHAR
Player name; NULL on team rows
team_id BIGINT
Team identifier (numeric ID)
team_abbreviation VARCHAR
Team abbreviation
opponent_abbreviation VARCHAR
Opponent abbreviation parsed from the matchup
is_home BOOLEAN
Whether the team played at home ('vs.' rather than '@')
matchup VARCHAR
Matchup display, such as LAL vs. GSW or LAL @ BOS
win_loss VARCHAR
W or L; NULL for games not yet final
minutes INTEGER
Minutes played (count of whole minutes)
field_goals_made INTEGER
Field goals made (count)
field_goals_attempted INTEGER
Field goals attempted (count)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made INTEGER
Three-point field goals made (count)
three_pointers_attempted INTEGER
Three-point field goals attempted (count)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made INTEGER
Free throws made (count)
free_throws_attempted INTEGER
Free throws attempted (count)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds INTEGER
Offensive rebounds (count)
defensive_rebounds INTEGER
Defensive rebounds (count)
rebounds INTEGER
Total rebounds (count)
assists INTEGER
Assists (count)
steals INTEGER
Steals (count)
blocks INTEGER
Blocked shots (count)
turnovers INTEGER
Turnovers (count)
personal_fouls INTEGER
Personal fouls (count)
points INTEGER
Points (count)
plus_minus INTEGER
Point differential while on the floor (points)
Example

The highest-scoring team games of 2025.

SELECT game_date, team_abbreviation, opponent_abbreviation, points
FROM nba.nba.league_game_log(season := 2025)
ORDER BY points DESC
LIMIT 10;
Link
league_leaders (per_mode := VARCHAR, season := INTEGER, season_type := VARCHAR, stat_category := VARCHAR) 2 examples

Official NBA leaderboard for one statistic

Named arguments
per_mode := VARCHAR
PerGame, Totals, or Per48. Β· default "PerGame"
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
stat_category := VARCHAR
Statistic to rank by, such as PTS, REB, or AST. Β· default "PTS"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
stat_category VARCHAR
Statistic the leaderboard is ranked by, such as PTS
per_mode VARCHAR
Aggregation requested: Totals, PerGame, or Per48
rank INTEGER
Leaderboard rank (1 is the leader); ties share a rank
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
team_id BIGINT
Current or last team identifier (numeric ID)
team_abbreviation VARCHAR
Current or last team abbreviation
games_played INTEGER
Games played (count)
minutes DOUBLE
Minutes under the requested per_mode
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode)
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode)
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode)
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode)
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode)
rebounds DOUBLE
Total rebounds (count, scaled per per_mode)
assists DOUBLE
Assists (count, scaled per per_mode)
steals DOUBLE
Steals (count, scaled per per_mode)
blocks DOUBLE
Blocked shots (count, scaled per per_mode)
turnovers DOUBLE
Turnovers (count, scaled per per_mode)
points DOUBLE
Points (count, scaled per per_mode)
efficiency DOUBLE
NBA efficiency rating (EFF index)
Examples (2)

2025 assists-per-game leaders.

SELECT rank, player_name, team_abbreviation, assists
FROM nba.nba.league_leaders(season := 2025, stat_category := 'AST')
ORDER BY rank
LIMIT 10;

The top ten of the official 2025 scoring leaderboard with each player's usage and true-shooting percentage.

SELECT l.rank, l.player_name, l.team_abbreviation, l.points,
  a.usage_percentage, a.true_shooting_percentage
FROM nba.nba.league_leaders(season := 2025, stat_category := 'PTS') AS l
JOIN nba.nba.advanced_player_stats(season := 2025) AS a USING (player_id)
ORDER BY l.rank, l.player_name
LIMIT 10;
Link
play_by_play (game_id VARCHAR) 1 example

Every play-by-play event of one NBA game

Arguments
game_id VARCHAR
Ten-digit NBA Stats game identifier as text, such as '0022600201'.
Returns columns
game_id VARCHAR
Ten-character NBA Stats game identifier (numeric ID)
action_number INTEGER
Play sequence number (index); a block or steal repeats the number of the play it ended
action_id INTEGER
Event ordinal in the published feed (index); unique within the game and increasing
period INTEGER
Period number (1-4 regulation quarters, 5 and above overtime)
clock VARCHAR
ISO-8601 time remaining in the period, such as PT11M42.00S
seconds_remaining DECIMAL(6,2)
Seconds remaining in the period
team_id BIGINT
Team credited with the event; NULL for neutral events
team_tricode VARCHAR
Team three-letter code
player_id BIGINT
Player credited with the event; NULL when none
player_name VARCHAR
Player family name as published
action_type VARCHAR
Event type, such as Made Shot, Rebound, Foul, or period
sub_type VARCHAR
Event detail, such as Jump Shot or start
description VARCHAR
Play description
home_score INTEGER
Home points after the event (running score, carried forward on non-scoring plays)
away_score INTEGER
Away points after the event (running score, carried forward on non-scoring plays)
location VARCHAR
h for the home team or v for the visitors
is_field_goal BOOLEAN
Whether the event is a field-goal attempt
shot_result VARCHAR
Made or Missed for shots
shot_value INTEGER
Point value of the attempted shot (1, 2, or 3; 0 when not a shot)
shot_distance INTEGER
Shot distance in feet
x_legacy INTEGER
Legacy shot-chart x coordinate (tenths of feet from the basket)
y_legacy INTEGER
Legacy shot-chart y coordinate (tenths of feet from the basket)
Example

Made three-pointers in the fourth quarter of game 0022600201.

SELECT clock, team_tricode, player_name, description, home_score, away_score
FROM nba.nba.play_by_play('0022600201')
WHERE period = 4 AND shot_value = 3 AND shot_result = 'Made'
ORDER BY action_id;
Link
player_career_stats (player_id BIGINT, season_type := VARCHAR) 1 example

One NBA player's season-by-season career totals

Positional arguments
player_id BIGINT
Stable NBA Stats player identifier.
Named arguments
season_type := VARCHAR
Regular Season or Playoffs totals. Β· default "Regular Season"
Returns columns
season_type VARCHAR
Season type requested: Regular Season or Playoffs
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
season VARCHAR
Season key, such as 2003-04
team_id BIGINT
Team identifier; NULL on a multi-team total row
team_abbreviation VARCHAR
Team abbreviation; TOT on a multi-team total row
is_multi_team_total BOOLEAN
True for the TOT row that sums a traded player's teams
player_age DOUBLE
Player age in years during the season
games_played INTEGER
Games played (count)
games_started INTEGER
Games started (count)
minutes INTEGER
Minutes played (count of whole minutes)
field_goals_made INTEGER
Field goals made (count)
field_goals_attempted INTEGER
Field goals attempted (count)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made INTEGER
Three-point field goals made (count)
three_pointers_attempted INTEGER
Three-point field goals attempted (count)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made INTEGER
Free throws made (count)
free_throws_attempted INTEGER
Free throws attempted (count)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds INTEGER
Offensive rebounds (count)
defensive_rebounds INTEGER
Defensive rebounds (count)
rebounds INTEGER
Total rebounds (count)
assists INTEGER
Assists (count)
steals INTEGER
Steals (count)
blocks INTEGER
Blocked shots (count)
turnovers INTEGER
Turnovers (count)
personal_fouls INTEGER
Personal fouls (count)
points INTEGER
Points (count)
Example

LeBron James's season-by-season points.

SELECT season, team_abbreviation, games_played, points
FROM nba.nba.player_career_stats(2544)
WHERE NOT is_multi_team_total
ORDER BY season;
Link
player_career_totals (player_id BIGINT, season_type := VARCHAR) 1 example

One NBA player's whole-career totals

Positional arguments
player_id BIGINT
Stable NBA Stats player identifier.
Named arguments
season_type := VARCHAR
Regular Season or Playoffs totals. Β· default "Regular Season"
Returns columns
season_type VARCHAR
Season type requested: Regular Season or Playoffs
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
games_played INTEGER
Career games played
games_started INTEGER
Career games started
minutes INTEGER
Career minutes played
field_goals_made INTEGER
Field goals made over the career (count)
field_goals_attempted INTEGER
Field goals attempted over the career (count)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made INTEGER
Three-point field goals made over the career (count)
three_pointers_attempted INTEGER
Three-point field goals attempted over the career (count)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made INTEGER
Free throws made over the career (count)
free_throws_attempted INTEGER
Free throws attempted over the career (count)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds INTEGER
Offensive rebounds over the career (count)
defensive_rebounds INTEGER
Defensive rebounds over the career (count)
rebounds INTEGER
Total rebounds over the career (count)
assists INTEGER
Assists over the career (count)
steals INTEGER
Steals over the career (count)
blocks INTEGER
Blocked shots over the career (count)
turnovers INTEGER
Turnovers over the career (count)
personal_fouls INTEGER
Personal fouls over the career (count)
points INTEGER
Points over the career (count)
Example

LeBron James's career regular-season totals.

SELECT games_played, points, rebounds, assists
FROM nba.nba.player_career_totals(2544);
Link
player_game_log (player_id BIGINT, season := INTEGER, season_type := VARCHAR) 1 example

One NBA player's game-by-game lines for a season

Positional arguments
player_id BIGINT
Stable NBA Stats player identifier.
Named arguments
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
game_id VARCHAR
Ten-character NBA Stats game identifier; keep it as text
game_date DATE
Game date
season_type VARCHAR
Season type derived from the game ID prefix
player_id BIGINT
Player identifier; NULL on team rows
team_abbreviation VARCHAR
Team abbreviation
opponent_abbreviation VARCHAR
Opponent abbreviation parsed from the matchup
is_home BOOLEAN
Whether the team played at home ('vs.' rather than '@')
matchup VARCHAR
Matchup display, such as LAL vs. GSW or LAL @ BOS
win_loss VARCHAR
W or L; NULL for games not yet final
minutes INTEGER
Minutes played (count of whole minutes)
field_goals_made INTEGER
Field goals made (count)
field_goals_attempted INTEGER
Field goals attempted (count)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made INTEGER
Three-point field goals made (count)
three_pointers_attempted INTEGER
Three-point field goals attempted (count)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made INTEGER
Free throws made (count)
free_throws_attempted INTEGER
Free throws attempted (count)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds INTEGER
Offensive rebounds (count)
defensive_rebounds INTEGER
Defensive rebounds (count)
rebounds INTEGER
Total rebounds (count)
assists INTEGER
Assists (count)
steals INTEGER
Steals (count)
blocks INTEGER
Blocked shots (count)
turnovers INTEGER
Turnovers (count)
personal_fouls INTEGER
Personal fouls (count)
points INTEGER
Points (count)
plus_minus INTEGER
Point differential while on the floor (points)
Example

LeBron James's 2025 games with at least 25 points.

SELECT game_date, matchup, points, rebounds, assists
FROM nba.nba.player_game_log(2544, season := 2025)
WHERE points >= 25
ORDER BY game_date;
Link
player_stats (per_mode := VARCHAR, season := INTEGER, season_type := VARCHAR) 1 example

NBA player season statistics by season, season type, and per mode

Named arguments
per_mode := VARCHAR
PerGame averages, season Totals, Per36 minutes, or Per100Possessions. Β· default "PerGame"
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
team_id BIGINT
Current or last team identifier (numeric ID)
team_abbreviation VARCHAR
Current or last team abbreviation
team_count INTEGER
Number of teams the player appeared for; above 1 means totals span teams
age DOUBLE
Player age in years during the season
games_played INTEGER
Games played (count)
wins INTEGER
Team wins in games the player played
losses INTEGER
Team losses in games the player played
minutes DOUBLE
Minutes played under the requested per_mode
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode)
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode)
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode)
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode)
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode)
rebounds DOUBLE
Total rebounds (count, scaled per per_mode)
assists DOUBLE
Assists (count, scaled per per_mode)
steals DOUBLE
Steals (count, scaled per per_mode)
blocks DOUBLE
Blocked shots (count, scaled per per_mode)
turnovers DOUBLE
Turnovers (count, scaled per per_mode)
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode)
points DOUBLE
Points (count, scaled per per_mode)
blocks_against DOUBLE
Shots of this player blocked by opponents (count, scaled per per_mode)
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode)
plus_minus DOUBLE
Point differential while on the floor (points)
double_doubles INTEGER
Games with double figures in two categories
triple_doubles INTEGER
Games with double figures in three categories
Example

Top 2025 scorers per game with at least 20 games.

SELECT player_name, team_abbreviation, games_played, points, rebounds,
  assists
FROM nba.nba.player_stats(season := 2025)
WHERE games_played >= 20
ORDER BY points DESC
LIMIT 10;
Link
players (only_current := BOOLEAN) 1 example

The NBA player index, current or all-time

Named arguments
only_current := BOOLEAN
True returns players on a current roster; false returns every player in league history. Β· default true
Returns columns
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name, first name first
last_comma_first VARCHAR
Player name, last name first
is_active BOOLEAN
Whether the player is currently on a roster
from_year INTEGER
Start year of the player's first season in the league
to_year INTEGER
Start year of the player's most recent season in the league
team_id BIGINT
Current or last team identifier; NULL when unattached
team_abbreviation VARCHAR
Current or last team abbreviation
team_city VARCHAR
Current or last team city
team_name VARCHAR
Current or last team nickname
player_slug VARCHAR
URL slug of the player
has_played BOOLEAN
Whether the player has appeared in a game
Example

Find a player's identifier.

SELECT player_id, player_name, team_abbreviation, from_year
FROM nba.nba.players(only_current := false)
WHERE player_name ILIKE '%LeBron%';
Link
scoreboard (game_date DATE) 1 example

NBA games and scores on one date

Arguments
game_date DATE
Calendar day of the games, as the league schedules it in US Eastern time.
Returns columns
game_date DATE
Scoreboard date in US Eastern time
game_id VARCHAR
Ten-character NBA Stats game identifier; keep it as text
game_code VARCHAR
Game code, date plus away and home tricodes
season_type VARCHAR
Season type derived from the game ID prefix
game_status INTEGER
Game status: 1 scheduled, 2 in progress, 3 final
game_status_text VARCHAR
Status display, such as Final, Halftime, or a tip-off time
period INTEGER
Current or final period; 0 before tip-off
game_clock VARCHAR
ISO-8601 time remaining in the current period, when live
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled tip-off time in UTC
series_text VARCHAR
Playoff series status text, when applicable
game_label VARCHAR
Game label, such as an NBA Cup or playoff round name
is_neutral_site BOOLEAN
Whether the game is played at a neutral site
home_team_id BIGINT
Home team identifier (numeric ID)
home_team_tricode VARCHAR
Home team three-letter code
home_team_city VARCHAR
Home team city
home_team_name VARCHAR
Home team nickname
home_wins INTEGER
Home team's season wins (count) as of this game
home_losses INTEGER
Home team's season losses (count) as of this game
home_score INTEGER
Home team's points; 0 before tip-off
away_team_id BIGINT
Away team identifier (numeric ID)
away_team_tricode VARCHAR
Away team three-letter code
away_team_city VARCHAR
Away team city
away_team_name VARCHAR
Away team nickname
away_wins INTEGER
Away team's season wins (count) as of this game
away_losses INTEGER
Away team's season losses (count) as of this game
away_score INTEGER
Away team's points; 0 before tip-off
Example

Final scores on 2026-11-09.

SELECT game_id, away_team_tricode, away_score, home_team_tricode,
  home_score, game_status_text
FROM nba.nba.scoreboard(DATE '2026-11-09')
ORDER BY game_id;
Link
standings (season := INTEGER, season_type := VARCHAR) 2 examples

NBA standings by season and season type

Named arguments
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Pre Season, or PlayIn; the league publishes no playoff standings. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_city VARCHAR
Team city or region
team_name VARCHAR
Team nickname, such as Lakers
conference VARCHAR
Conference, East or West
division VARCHAR
Division name; NULL for leagues without divisions
playoff_rank INTEGER
Playoff seeding rank: within the conference (NBA, G League) or league-wide (WNBA)
division_rank INTEGER
Rank within the division (1 is first); NULL without divisions
league_rank INTEGER
Rank across the whole league (1 is first), when published
wins INTEGER
Wins (count)
losses INTEGER
Losses (count)
win_percentage DECIMAL(4,3)
Winning percentage as an exact decimal (0-1 ratio)
record VARCHAR
Win-loss record display, such as 10-2
conference_games_back DECIMAL(5,1)
Games behind the conference leader (in games)
division_games_back DECIMAL(5,1)
Games behind the division leader (in games)
league_games_back DECIMAL(5,1)
Games behind the league's best record (in games)
home_record VARCHAR
Home win-loss record
road_record VARCHAR
Road win-loss record
last_ten_record VARCHAR
Win-loss record over the last ten games
conference_record VARCHAR
Record against conference opponents
division_record VARCHAR
Record against division opponents
vs_east_record VARCHAR
Record against Eastern Conference teams
vs_west_record VARCHAR
Record against Western Conference teams
current_streak INTEGER
Current streak length in games (positive for wins, negative for losses)
current_streak_display VARCHAR
Current streak display, such as W 6 or L 2
longest_win_streak INTEGER
Longest winning streak this season (count of games)
longest_loss_streak INTEGER
Longest losing streak this season (count of games)
points_per_game DOUBLE
Points scored per game
opponent_points_per_game DOUBLE
Points allowed per game
point_differential_per_game DOUBLE
Average scoring margin per game
total_points INTEGER
Total points scored in the season (count)
opponent_total_points INTEGER
Total points allowed in the season (count)
clinch_indicator VARCHAR
Clinch marker as published, such as x, y, z, pi, or o
clinched_playoff_berth BOOLEAN
Whether the team has clinched a playoff berth
clinched_play_in BOOLEAN
Whether the team has clinched at least a play-in place
clinched_division BOOLEAN
Whether the team has clinched its division
clinched_conference BOOLEAN
Whether the team has clinched its conference
eliminated_from_playoffs BOOLEAN
Whether the team is eliminated from its conference race
Examples (2)

Final 2025 conference standings in seeding order.

SELECT conference, playoff_rank, team_city, team_name, wins, losses
FROM nba.nba.standings(season := 2025)
ORDER BY conference, playoff_rank;

Final 2025 standings by conference and playoff seed, beside each team's net rating from advanced_team_stats.

SELECT s.conference, s.playoff_rank, s.team_name, s.wins, s.losses,
  a.net_rating
FROM nba.nba.standings(season := 2025) AS s
JOIN nba.nba.advanced_team_stats(season := 2025) AS a USING (team_id)
ORDER BY s.conference, s.playoff_rank;
Link
team_roster (team_id BIGINT, season := INTEGER) 2 examples

One NBA team's roster for a season

Positional arguments
team_id BIGINT
Stable NBA Stats team identifier.
Named arguments
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
Returns columns
season VARCHAR
Season key of the roster
team_id BIGINT
Team identifier (numeric ID)
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
jersey_number VARCHAR
Jersey number as text; NULL until assigned
position VARCHAR
Listed position, such as G, F-C, or C
height VARCHAR
Listed height display in feet-inches, such as 6-11
height_inches INTEGER
Listed height in inches
weight_pounds INTEGER
Listed weight in pounds
birth_date DATE
Date of birth
age DOUBLE
Age in years as published by the roster
experience_years INTEGER
Prior seasons of league experience in years; 0 for rookies
school VARCHAR
College or last pre-league affiliation
how_acquired VARCHAR
How the team acquired the player, when published
Examples (2)

The current Los Angeles Lakers roster.

SELECT jersey_number, player_name, position, height, weight_pounds
FROM nba.nba.team_roster(1610612747)
ORDER BY player_name;

The 2025 Los Angeles Lakers roster with each player's per-game season averages, top scorers first.

SELECT r.jersey_number, r.player_name, r.position, p.games_played, p.points,
  p.rebounds, p.assists
FROM nba.nba.team_roster(1610612747, season := 2025) AS r
LEFT JOIN nba.nba.player_stats(season := 2025) AS p USING (player_id)
ORDER BY p.points DESC NULLS LAST, r.player_name;
Link
team_stats (per_mode := VARCHAR, season := INTEGER, season_type := VARCHAR) 1 example

NBA team season statistics by season, season type, and per mode

Named arguments
per_mode := VARCHAR
PerGame averages, season Totals, Per36 minutes, or Per100Possessions. Β· default "PerGame"
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_name VARCHAR
Full team name
games_played INTEGER
Games played (count)
wins INTEGER
Wins (count)
losses INTEGER
Losses (count)
win_percentage DECIMAL(4,3)
Winning percentage (0-1 ratio)
minutes DOUBLE
Team minutes under the requested per_mode
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode)
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode)
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode)
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode)
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode)
rebounds DOUBLE
Total rebounds (count, scaled per per_mode)
assists DOUBLE
Assists (count, scaled per per_mode)
steals DOUBLE
Steals (count, scaled per per_mode)
blocks DOUBLE
Blocked shots (count, scaled per per_mode)
turnovers DOUBLE
Turnovers (count, scaled per per_mode)
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode)
points DOUBLE
Points (count, scaled per per_mode)
blocks_against DOUBLE
Team shots blocked by opponents
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode)
plus_minus DOUBLE
Point differential
Example

Best 2025 three-point shooting teams.

SELECT team_name, three_pointers_made, three_point_percentage
FROM nba.nba.team_stats(season := 2025)
ORDER BY three_point_percentage DESC;
Link
wnba 8 tables Β· 23 functions

Women's National Basketball Association standings, scores, schedules, and statistics

Schema examples (4)
Examples (4)

Current conference standings in seeding order.

SELECT conference, playoff_rank, team_name, wins, losses,
  conference_games_back
FROM nba.wnba.current_standings
ORDER BY conference, playoff_rank;

Final 2025 standings by conference and playoff seed, beside each team's net rating from advanced_team_stats.

SELECT s.conference, s.playoff_rank, s.team_name, s.wins, s.losses,
  a.net_rating
FROM nba.wnba.standings(season := 2025) AS s
JOIN nba.wnba.advanced_team_stats(season := 2025) AS a USING (team_id)
ORDER BY s.conference, s.playoff_rank;

The 2025 Las Vegas Aces roster with each player's per-game season averages, top scorers first.

SELECT r.jersey_number, r.player_name, r.position, p.games_played, p.points,
  p.rebounds, p.assists
FROM nba.wnba.team_roster(1611661319, season := 2025) AS r
LEFT JOIN nba.wnba.player_stats(season := 2025) AS p USING (player_id)
ORDER BY p.points DESC NULLS LAST, r.player_name;

The top ten of the official 2025 scoring leaderboard with each player's usage and true-shooting percentage.

SELECT l.rank, l.player_name, l.team_abbreviation, l.points,
  a.usage_percentage, a.true_shooting_percentage
FROM nba.wnba.league_leaders(season := 2025, stat_category := 'PTS') AS l
JOIN nba.wnba.advanced_player_stats(season := 2025) AS a USING (player_id)
ORDER BY l.rank, l.player_name
LIMIT 10;
Tables
current_player_stats 1 example36 cols

Per-game regular-season averages for every WNBA player this season: points, rebounds, assists, shooting, steals, blocks, and plus-minus

Columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA).
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs.
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions.
player_idnot null BIGINT
Stable NBA Stats player identifier (numeric ID).
player_name VARCHAR
Player name.
team_id BIGINT
Current or last team identifier (numeric ID).
team_abbreviation VARCHAR
Current or last team abbreviation.
team_count INTEGER
Number of teams the player appeared for; above 1 means totals span teams.
age DOUBLE
Player age in years during the season.
games_played INTEGER
Games played (count).
wins INTEGER
Team wins in games the player played.
losses INTEGER
Team losses in games the player played.
minutes DOUBLE
Minutes played under the requested per_mode.
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode).
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode).
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio).
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode).
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode).
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio).
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode).
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode).
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio).
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode).
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode).
rebounds DOUBLE
Total rebounds (count, scaled per per_mode).
assists DOUBLE
Assists (count, scaled per per_mode).
steals DOUBLE
Steals (count, scaled per per_mode).
blocks DOUBLE
Blocked shots (count, scaled per per_mode).
turnovers DOUBLE
Turnovers (count, scaled per per_mode).
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode).
points DOUBLE
Points (count, scaled per per_mode).
blocks_against DOUBLE
Shots of this player blocked by opponents (count, scaled per per_mode).
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode).
plus_minus DOUBLE
Point differential while on the floor (points).
double_doubles INTEGER
Games with double figures in two categories.
triple_doubles INTEGER
Games with double figures in three categories.
ConstraintsPRIMARY KEY (player_id)
Example

Current scoring leaders with at least ten games.

SELECT player_name, team_abbreviation, games_played, points
FROM nba.wnba.current_player_stats
WHERE games_played >= 10
ORDER BY points DESC
LIMIT 10;
Link
current_players 1 example12 cols

Players on a current WNBA roster with player_id and team

Columns
player_idnot null BIGINT
Stable NBA Stats player identifier (numeric ID).
player_name VARCHAR
Player name, first name first.
last_comma_first VARCHAR
Player name, last name first.
is_active BOOLEAN
Whether the player is currently on a roster.
from_year INTEGER
Start year of the player's first season in the league.
to_year INTEGER
Start year of the player's most recent season in the league.
team_id BIGINT
Current or last team identifier; NULL when unattached.
team_abbreviation VARCHAR
Current or last team abbreviation.
team_city VARCHAR
Current or last team city.
team_name VARCHAR
Current or last team nickname.
player_slug VARCHAR
URL slug of the player.
has_played BOOLEAN
Whether the player has appeared in a game.
ConstraintsPRIMARY KEY (player_id)
Example

Rostered players per team.

SELECT team_abbreviation, count(*) AS players
FROM nba.wnba.current_players
GROUP BY team_abbreviation
ORDER BY team_abbreviation;
Link
current_schedule 1 example30 cols

The full published WNBA schedule for the current season, one row per game, with date, tip-off time, arena, status, and final scores for completed games

Columns
season VARCHAR
Season key of the published schedule.
game_idnot null VARCHAR
Ten-character NBA Stats game identifier; keep it as text.
game_code VARCHAR
Game code, date plus away and home tricodes.
season_type VARCHAR
Season type derived from the game ID prefix.
game_date DATE
Game date in US Eastern time.
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled tip-off time in UTC.
game_status INTEGER
Game status: 1 scheduled, 2 in progress, 3 final.
game_status_text VARCHAR
Status display, such as Final or a tip-off time.
week_number INTEGER
Schedule week number (0 for preseason).
game_label VARCHAR
Game label, such as Preseason or an NBA Cup round.
game_sub_label VARCHAR
Secondary game label, such as a special-event name.
arena_name VARCHAR
Arena name.
arena_city VARCHAR
Arena city.
arena_state VARCHAR
Arena state or province code.
is_neutral_site BOOLEAN
Whether the game is played at a neutral site.
is_postponed BOOLEAN
Whether the league marks the game postponed.
home_team_id BIGINT
Home team identifier (numeric ID).
home_team_tricode VARCHAR
Home team three-letter code.
home_team_city VARCHAR
Home team city.
home_team_name VARCHAR
Home team nickname.
home_wins INTEGER
Home team's season wins (count) as of this game.
home_losses INTEGER
Home team's season losses (count) as of this game.
home_score INTEGER
Home team's points; 0 before tip-off.
away_team_id BIGINT
Away team identifier (numeric ID).
away_team_tricode VARCHAR
Away team three-letter code.
away_team_city VARCHAR
Away team city.
away_team_name VARCHAR
Away team nickname.
away_wins INTEGER
Away team's season wins (count) as of this game.
away_losses INTEGER
Away team's season losses (count) as of this game.
away_score INTEGER
Away team's points; 0 before tip-off.
ConstraintsPRIMARY KEY (game_id)
Example

The Las Vegas Aces regular-season schedule with results so far.

SELECT game_date, away_team_tricode, away_score, home_team_tricode,
  home_score, game_status_text
FROM nba.wnba.current_schedule
WHERE season_type = 'Regular Season' AND 1611661319 IN (home_team_id, away_team_id)
ORDER BY start_time_utc;
Link
current_scoreboard 1 example26 cols

Today's WNBA games (US Eastern date) with live status, period, clock, and scores

Columns
game_date DATE
Scoreboard date in US Eastern time.
game_idnot null VARCHAR
Ten-character NBA Stats game identifier; keep it as text.
game_code VARCHAR
Game code, date plus away and home tricodes.
season_type VARCHAR
Season type derived from the game ID prefix.
game_status INTEGER
Game status: 1 scheduled, 2 in progress, 3 final.
game_status_text VARCHAR
Status display, such as Final, Halftime, or a tip-off time.
period INTEGER
Current or final period; 0 before tip-off.
game_clock VARCHAR
ISO-8601 time remaining in the current period, when live.
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled tip-off time in UTC.
series_text VARCHAR
Playoff series status text, when applicable.
game_label VARCHAR
Game label, such as an NBA Cup or playoff round name.
is_neutral_site BOOLEAN
Whether the game is played at a neutral site.
home_team_id BIGINT
Home team identifier (numeric ID).
home_team_tricode VARCHAR
Home team three-letter code.
home_team_city VARCHAR
Home team city.
home_team_name VARCHAR
Home team nickname.
home_wins INTEGER
Home team's season wins (count) as of this game.
home_losses INTEGER
Home team's season losses (count) as of this game.
home_score INTEGER
Home team's points; 0 before tip-off.
away_team_id BIGINT
Away team identifier (numeric ID).
away_team_tricode VARCHAR
Away team three-letter code.
away_team_city VARCHAR
Away team city.
away_team_name VARCHAR
Away team nickname.
away_wins INTEGER
Away team's season wins (count) as of this game.
away_losses INTEGER
Away team's season losses (count) as of this game.
away_score INTEGER
Away team's points; 0 before tip-off.
ConstraintsPRIMARY KEY (game_id)
Example

Today's games and scores.

SELECT away_team_tricode, away_score, home_team_tricode, home_score,
  game_status_text
FROM nba.wnba.current_scoreboard
ORDER BY start_time_utc;
Link
current_standings 1 example39 cols

Current WNBA regular-season standings, one row per team

Columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA).
season_type VARCHAR
Season type requested, such as Regular Season.
team_idnot null BIGINT
Stable NBA Stats team identifier (numeric ID).
team_city VARCHAR
Team city or region.
team_name VARCHAR
Team nickname, such as Lakers.
conference VARCHAR
Conference, East or West.
division VARCHAR
Division name; NULL for leagues without divisions.
playoff_rank INTEGER
Playoff seeding rank: within the conference (NBA, G League) or league-wide (WNBA).
division_rank INTEGER
Rank within the division (1 is first); NULL without divisions.
league_rank INTEGER
Rank across the whole league (1 is first), when published.
wins INTEGER
Wins (count).
losses INTEGER
Losses (count).
win_percentage DECIMAL(4,3)
Winning percentage as an exact decimal (0-1 ratio).
record VARCHAR
Win-loss record display, such as 10-2.
conference_games_back DECIMAL(5,1)
Games behind the conference leader (in games).
division_games_back DECIMAL(5,1)
Games behind the division leader (in games).
league_games_back DECIMAL(5,1)
Games behind the league's best record (in games).
home_record VARCHAR
Home win-loss record.
road_record VARCHAR
Road win-loss record.
last_ten_record VARCHAR
Win-loss record over the last ten games.
conference_record VARCHAR
Record against conference opponents.
division_record VARCHAR
Record against division opponents.
vs_east_record VARCHAR
Record against Eastern Conference teams.
vs_west_record VARCHAR
Record against Western Conference teams.
current_streak INTEGER
Current streak length in games (positive for wins, negative for losses).
current_streak_display VARCHAR
Current streak display, such as W 6 or L 2.
longest_win_streak INTEGER
Longest winning streak this season (count of games).
longest_loss_streak INTEGER
Longest losing streak this season (count of games).
points_per_game DOUBLE
Points scored per game.
opponent_points_per_game DOUBLE
Points allowed per game.
point_differential_per_game DOUBLE
Average scoring margin per game.
total_points INTEGER
Total points scored in the season (count).
opponent_total_points INTEGER
Total points allowed in the season (count).
clinch_indicator VARCHAR
Clinch marker as published, such as x, y, z, pi, or o.
clinched_playoff_berth BOOLEAN
Whether the team has clinched a playoff berth.
clinched_play_in BOOLEAN
Whether the team has clinched at least a play-in place.
clinched_division BOOLEAN
Whether the team has clinched its division.
clinched_conference BOOLEAN
Whether the team has clinched its conference.
eliminated_from_playoffs BOOLEAN
Whether the team is eliminated from its conference race.
ConstraintsPRIMARY KEY (team_id)
Example

Current conference standings in seeding order.

SELECT conference, playoff_rank, team_name, wins, losses,
  conference_games_back
FROM nba.wnba.current_standings
ORDER BY conference, playoff_rank;
Link
current_team_stats 1 example31 cols

Per-game regular-season team statistics for the current WNBA season

Columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA).
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs.
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions.
team_idnot null BIGINT
Stable NBA Stats team identifier (numeric ID).
team_name VARCHAR
Full team name.
games_played INTEGER
Games played (count).
wins INTEGER
Wins (count).
losses INTEGER
Losses (count).
win_percentage DECIMAL(4,3)
Winning percentage (0-1 ratio).
minutes DOUBLE
Team minutes under the requested per_mode.
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode).
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode).
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio).
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode).
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode).
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio).
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode).
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode).
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio).
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode).
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode).
rebounds DOUBLE
Total rebounds (count, scaled per per_mode).
assists DOUBLE
Assists (count, scaled per per_mode).
steals DOUBLE
Steals (count, scaled per per_mode).
blocks DOUBLE
Blocked shots (count, scaled per per_mode).
turnovers DOUBLE
Turnovers (count, scaled per per_mode).
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode).
points DOUBLE
Points (count, scaled per per_mode).
blocks_against DOUBLE
Team shots blocked by opponents.
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode).
plus_minus DOUBLE
Point differential.
ConstraintsPRIMARY KEY (team_id)
Example

Current teams by points per game.

SELECT team_name, wins, losses, points, plus_minus
FROM nba.wnba.current_team_stats
ORDER BY points DESC;
Link
current_teams 1 example15 cols

Active WNBA teams with team_id, abbreviation, city, nickname, first season, and all-time record and titles

Columns
team_idnot null BIGINT
Stable NBA Stats team identifier (numeric ID).
team_abbreviation VARCHAR
Team three-letter abbreviation.
team_city VARCHAR
Team city or region.
team_name VARCHAR
Team nickname.
first_season INTEGER
Start year of the franchise's first season.
last_season INTEGER
Start year of the franchise's most recent season.
seasons INTEGER
Number of seasons played by the franchise.
games INTEGER
All-time regular-season games played (count).
wins INTEGER
All-time regular-season wins (count).
losses INTEGER
All-time regular-season losses (count).
win_percentage DECIMAL(4,3)
All-time regular-season winning percentage (0-1 ratio).
playoff_appearances INTEGER
Playoff appearances (count).
division_titles INTEGER
Division titles (count).
conference_titles INTEGER
Conference titles (count).
league_titles INTEGER
League championships (count).
ConstraintsPRIMARY KEY (team_id)
Example

Teams by league championships.

SELECT team_abbreviation, team_city, team_name, league_titles
FROM nba.wnba.current_teams
ORDER BY league_titles DESC, team_abbreviation;
Link
franchise_history 1 example15 cols

All-time WNBA franchise records

Columns
team_id BIGINT
Stable NBA Stats team identifier shared by every era of the franchise.
row_kind VARCHAR
franchise for the all-time summary, era for one city/name era, defunct for a folded franchise.
team_city VARCHAR
City or region in this row's era.
team_name VARCHAR
Nickname in this row's era.
start_year INTEGER
Start year of the first season covered by this row.
end_year INTEGER
Start year of the last season covered by this row.
seasons INTEGER
Number of seasons covered by this row.
games INTEGER
Regular-season games (count).
wins INTEGER
Regular-season wins (count).
losses INTEGER
Regular-season losses (count).
win_percentage DECIMAL(4,3)
Regular-season winning percentage (0-1 ratio).
playoff_appearances INTEGER
Playoff appearances (count).
division_titles INTEGER
Division titles (count).
conference_titles INTEGER
Conference titles (count).
league_titles INTEGER
League championships (count).
Example

Franchises with the most league titles.

SELECT team_city, team_name, start_year, league_titles
FROM nba.wnba.franchise_history
WHERE row_kind = 'franchise'
ORDER BY league_titles DESC
LIMIT 10;
Link
Table functions
advanced_player_stats (season := INTEGER, season_type := VARCHAR) 1 example

WNBA advanced player ratings by season and season type

Named arguments
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
team_id BIGINT
Current or last team identifier (numeric ID)
team_abbreviation VARCHAR
Current or last team abbreviation
age DOUBLE
Player age in years during the season
games_played INTEGER
Games played (count)
minutes_per_game DOUBLE
Minutes per game
offensive_rating DOUBLE
Points produced per 100 possessions
defensive_rating DOUBLE
Points allowed per 100 possessions
net_rating DOUBLE
Offensive minus defensive rating (points per 100 possessions)
assist_percentage DOUBLE
Share of teammate field goals assisted (0-1 ratio)
assist_to_turnover DOUBLE
Assists per turnover
assist_ratio DOUBLE
Assists per 100 possessions used
offensive_rebound_percentage DOUBLE
Share of available offensive rebounds (0-1 ratio)
defensive_rebound_percentage DOUBLE
Share of available defensive rebounds (0-1 ratio)
rebound_percentage DOUBLE
Share of available rebounds (0-1 ratio)
effective_field_goal_percentage DOUBLE
Effective field-goal percentage (0-1 ratio)
true_shooting_percentage DOUBLE
True shooting percentage (0-1 ratio)
pace DOUBLE
Possessions per 48 minutes
player_impact_estimate DOUBLE
NBA Player Impact Estimate, share of game events (0-1 ratio)
possessions INTEGER
Possessions played (count)
usage_percentage DOUBLE
Share of team possessions used while on the floor (0-1 ratio)
turnover_ratio DOUBLE
Turnovers per 100 plays used, on a 0-100 scale
Example

Highest 2025 true-shooting percentage among high-usage players.

SELECT player_name, team_abbreviation, usage_percentage,
  true_shooting_percentage
FROM nba.wnba.advanced_player_stats(season := 2025)
WHERE usage_percentage >= 0.25 AND games_played >= 20
ORDER BY true_shooting_percentage DESC
LIMIT 10;
Link
advanced_team_stats (season := INTEGER, season_type := VARCHAR) 1 example

WNBA advanced team ratings by season and season type

Named arguments
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_name VARCHAR
Full team name
games_played INTEGER
Games played (count)
wins INTEGER
Wins (count)
losses INTEGER
Losses (count)
offensive_rating DOUBLE
Points produced per 100 possessions
defensive_rating DOUBLE
Points allowed per 100 possessions
net_rating DOUBLE
Offensive minus defensive rating (points per 100 possessions)
assist_percentage DOUBLE
Share of teammate field goals assisted (0-1 ratio)
assist_to_turnover DOUBLE
Assists per turnover
assist_ratio DOUBLE
Assists per 100 possessions used
offensive_rebound_percentage DOUBLE
Share of available offensive rebounds (0-1 ratio)
defensive_rebound_percentage DOUBLE
Share of available defensive rebounds (0-1 ratio)
rebound_percentage DOUBLE
Share of available rebounds (0-1 ratio)
effective_field_goal_percentage DOUBLE
Effective field-goal percentage (0-1 ratio)
true_shooting_percentage DOUBLE
True shooting percentage (0-1 ratio)
pace DOUBLE
Possessions per 48 minutes
player_impact_estimate DOUBLE
NBA Player Impact Estimate, share of game events (0-1 ratio)
possessions INTEGER
Possessions played (count)
turnover_percentage DOUBLE
Turnovers per possession (0-1 ratio)
Example

2025 teams ranked by net rating.

SELECT team_name, offensive_rating, defensive_rating, net_rating
FROM nba.wnba.advanced_team_stats(season := 2025)
ORDER BY net_rating DESC;
Link
all_current_player_stats () 1 example

WNBA Player Averages (scan behind current_player_stats)

No arguments
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
team_id BIGINT
Current or last team identifier (numeric ID)
team_abbreviation VARCHAR
Current or last team abbreviation
team_count INTEGER
Number of teams the player appeared for; above 1 means totals span teams
age DOUBLE
Player age in years during the season
games_played INTEGER
Games played (count)
wins INTEGER
Team wins in games the player played
losses INTEGER
Team losses in games the player played
minutes DOUBLE
Minutes played under the requested per_mode
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode)
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode)
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode)
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode)
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode)
rebounds DOUBLE
Total rebounds (count, scaled per per_mode)
assists DOUBLE
Assists (count, scaled per per_mode)
steals DOUBLE
Steals (count, scaled per per_mode)
blocks DOUBLE
Blocked shots (count, scaled per per_mode)
turnovers DOUBLE
Turnovers (count, scaled per per_mode)
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode)
points DOUBLE
Points (count, scaled per per_mode)
blocks_against DOUBLE
Shots of this player blocked by opponents (count, scaled per per_mode)
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode)
plus_minus DOUBLE
Point differential while on the floor (points)
double_doubles INTEGER
Games with double figures in two categories
triple_doubles INTEGER
Games with double figures in three categories
Example

Current scoring leaders with at least ten games.

SELECT player_name, team_abbreviation, games_played, points
FROM nba.wnba.all_current_player_stats()
WHERE games_played >= 10
ORDER BY points DESC
LIMIT 10;
Link
all_current_players () 1 example

Current WNBA Players (scan behind current_players)

No arguments
Returns columns
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name, first name first
last_comma_first VARCHAR
Player name, last name first
is_active BOOLEAN
Whether the player is currently on a roster
from_year INTEGER
Start year of the player's first season in the league
to_year INTEGER
Start year of the player's most recent season in the league
team_id BIGINT
Current or last team identifier; NULL when unattached
team_abbreviation VARCHAR
Current or last team abbreviation
team_city VARCHAR
Current or last team city
team_name VARCHAR
Current or last team nickname
player_slug VARCHAR
URL slug of the player
has_played BOOLEAN
Whether the player has appeared in a game
Example

Rostered players per team.

SELECT team_abbreviation, count(*) AS players
FROM nba.wnba.all_current_players()
GROUP BY team_abbreviation
ORDER BY team_abbreviation;
Link
all_current_schedule () 1 example

Current WNBA Schedule (scan behind current_schedule)

No arguments
Returns columns
season VARCHAR
Season key of the published schedule
game_id VARCHAR
Ten-character NBA Stats game identifier; keep it as text
game_code VARCHAR
Game code, date plus away and home tricodes
season_type VARCHAR
Season type derived from the game ID prefix
game_date DATE
Game date in US Eastern time
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled tip-off time in UTC
game_status INTEGER
Game status: 1 scheduled, 2 in progress, 3 final
game_status_text VARCHAR
Status display, such as Final or a tip-off time
week_number INTEGER
Schedule week number (0 for preseason)
game_label VARCHAR
Game label, such as Preseason or an NBA Cup round
game_sub_label VARCHAR
Secondary game label, such as a special-event name
arena_name VARCHAR
Arena name
arena_city VARCHAR
Arena city
arena_state VARCHAR
Arena state or province code
is_neutral_site BOOLEAN
Whether the game is played at a neutral site
is_postponed BOOLEAN
Whether the league marks the game postponed
home_team_id BIGINT
Home team identifier (numeric ID)
home_team_tricode VARCHAR
Home team three-letter code
home_team_city VARCHAR
Home team city
home_team_name VARCHAR
Home team nickname
home_wins INTEGER
Home team's season wins (count) as of this game
home_losses INTEGER
Home team's season losses (count) as of this game
home_score INTEGER
Home team's points; 0 before tip-off
away_team_id BIGINT
Away team identifier (numeric ID)
away_team_tricode VARCHAR
Away team three-letter code
away_team_city VARCHAR
Away team city
away_team_name VARCHAR
Away team nickname
away_wins INTEGER
Away team's season wins (count) as of this game
away_losses INTEGER
Away team's season losses (count) as of this game
away_score INTEGER
Away team's points; 0 before tip-off
Example

The Las Vegas Aces regular-season schedule with results so far.

SELECT game_date, away_team_tricode, away_score, home_team_tricode,
  home_score, game_status_text
FROM nba.wnba.all_current_schedule()
WHERE season_type = 'Regular Season' AND 1611661319 IN (home_team_id, away_team_id)
ORDER BY start_time_utc;
Link
all_current_scoreboard () 1 example

Today's WNBA Scoreboard (scan behind current_scoreboard)

No arguments
Returns columns
game_date DATE
Scoreboard date in US Eastern time
game_id VARCHAR
Ten-character NBA Stats game identifier; keep it as text
game_code VARCHAR
Game code, date plus away and home tricodes
season_type VARCHAR
Season type derived from the game ID prefix
game_status INTEGER
Game status: 1 scheduled, 2 in progress, 3 final
game_status_text VARCHAR
Status display, such as Final, Halftime, or a tip-off time
period INTEGER
Current or final period; 0 before tip-off
game_clock VARCHAR
ISO-8601 time remaining in the current period, when live
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled tip-off time in UTC
series_text VARCHAR
Playoff series status text, when applicable
game_label VARCHAR
Game label, such as an NBA Cup or playoff round name
is_neutral_site BOOLEAN
Whether the game is played at a neutral site
home_team_id BIGINT
Home team identifier (numeric ID)
home_team_tricode VARCHAR
Home team three-letter code
home_team_city VARCHAR
Home team city
home_team_name VARCHAR
Home team nickname
home_wins INTEGER
Home team's season wins (count) as of this game
home_losses INTEGER
Home team's season losses (count) as of this game
home_score INTEGER
Home team's points; 0 before tip-off
away_team_id BIGINT
Away team identifier (numeric ID)
away_team_tricode VARCHAR
Away team three-letter code
away_team_city VARCHAR
Away team city
away_team_name VARCHAR
Away team nickname
away_wins INTEGER
Away team's season wins (count) as of this game
away_losses INTEGER
Away team's season losses (count) as of this game
away_score INTEGER
Away team's points; 0 before tip-off
Example

Today's games and scores.

SELECT away_team_tricode, away_score, home_team_tricode, home_score,
  game_status_text
FROM nba.wnba.all_current_scoreboard()
ORDER BY start_time_utc;
Link
all_current_standings () 1 example

Current WNBA Standings (scan behind current_standings)

No arguments
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_city VARCHAR
Team city or region
team_name VARCHAR
Team nickname, such as Lakers
conference VARCHAR
Conference, East or West
division VARCHAR
Division name; NULL for leagues without divisions
playoff_rank INTEGER
Playoff seeding rank: within the conference (NBA, G League) or league-wide (WNBA)
division_rank INTEGER
Rank within the division (1 is first); NULL without divisions
league_rank INTEGER
Rank across the whole league (1 is first), when published
wins INTEGER
Wins (count)
losses INTEGER
Losses (count)
win_percentage DECIMAL(4,3)
Winning percentage as an exact decimal (0-1 ratio)
record VARCHAR
Win-loss record display, such as 10-2
conference_games_back DECIMAL(5,1)
Games behind the conference leader (in games)
division_games_back DECIMAL(5,1)
Games behind the division leader (in games)
league_games_back DECIMAL(5,1)
Games behind the league's best record (in games)
home_record VARCHAR
Home win-loss record
road_record VARCHAR
Road win-loss record
last_ten_record VARCHAR
Win-loss record over the last ten games
conference_record VARCHAR
Record against conference opponents
division_record VARCHAR
Record against division opponents
vs_east_record VARCHAR
Record against Eastern Conference teams
vs_west_record VARCHAR
Record against Western Conference teams
current_streak INTEGER
Current streak length in games (positive for wins, negative for losses)
current_streak_display VARCHAR
Current streak display, such as W 6 or L 2
longest_win_streak INTEGER
Longest winning streak this season (count of games)
longest_loss_streak INTEGER
Longest losing streak this season (count of games)
points_per_game DOUBLE
Points scored per game
opponent_points_per_game DOUBLE
Points allowed per game
point_differential_per_game DOUBLE
Average scoring margin per game
total_points INTEGER
Total points scored in the season (count)
opponent_total_points INTEGER
Total points allowed in the season (count)
clinch_indicator VARCHAR
Clinch marker as published, such as x, y, z, pi, or o
clinched_playoff_berth BOOLEAN
Whether the team has clinched a playoff berth
clinched_play_in BOOLEAN
Whether the team has clinched at least a play-in place
clinched_division BOOLEAN
Whether the team has clinched its division
clinched_conference BOOLEAN
Whether the team has clinched its conference
eliminated_from_playoffs BOOLEAN
Whether the team is eliminated from its conference race
Example

Current conference standings in seeding order.

SELECT conference, playoff_rank, team_name, wins, losses,
  conference_games_back
FROM nba.wnba.all_current_standings()
ORDER BY conference, playoff_rank;
Link
all_current_team_stats () 1 example

WNBA Team Averages (scan behind current_team_stats)

No arguments
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_name VARCHAR
Full team name
games_played INTEGER
Games played (count)
wins INTEGER
Wins (count)
losses INTEGER
Losses (count)
win_percentage DECIMAL(4,3)
Winning percentage (0-1 ratio)
minutes DOUBLE
Team minutes under the requested per_mode
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode)
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode)
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode)
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode)
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode)
rebounds DOUBLE
Total rebounds (count, scaled per per_mode)
assists DOUBLE
Assists (count, scaled per per_mode)
steals DOUBLE
Steals (count, scaled per per_mode)
blocks DOUBLE
Blocked shots (count, scaled per per_mode)
turnovers DOUBLE
Turnovers (count, scaled per per_mode)
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode)
points DOUBLE
Points (count, scaled per per_mode)
blocks_against DOUBLE
Team shots blocked by opponents
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode)
plus_minus DOUBLE
Point differential
Example

Current teams by points per game.

SELECT team_name, wins, losses, points, plus_minus
FROM nba.wnba.all_current_team_stats()
ORDER BY points DESC;
Link
all_current_teams () 1 example

Current WNBA Teams (scan behind current_teams)

No arguments
Returns columns
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_abbreviation VARCHAR
Team three-letter abbreviation
team_city VARCHAR
Team city or region
team_name VARCHAR
Team nickname
first_season INTEGER
Start year of the franchise's first season
last_season INTEGER
Start year of the franchise's most recent season
seasons INTEGER
Number of seasons played by the franchise
games INTEGER
All-time regular-season games played (count)
wins INTEGER
All-time regular-season wins (count)
losses INTEGER
All-time regular-season losses (count)
win_percentage DECIMAL(4,3)
All-time regular-season winning percentage (0-1 ratio)
playoff_appearances INTEGER
Playoff appearances (count)
division_titles INTEGER
Division titles (count)
conference_titles INTEGER
Conference titles (count)
league_titles INTEGER
League championships (count)
Example

Teams by league championships.

SELECT team_abbreviation, team_city, team_name, league_titles
FROM nba.wnba.all_current_teams()
ORDER BY league_titles DESC, team_abbreviation;
Link
all_franchise_history () 1 example

WNBA Franchise History (scan behind franchise_history)

No arguments
Returns columns
team_id BIGINT
Stable NBA Stats team identifier shared by every era of the franchise
row_kind VARCHAR
franchise for the all-time summary, era for one city/name era, defunct for a folded franchise
team_city VARCHAR
City or region in this row's era
team_name VARCHAR
Nickname in this row's era
start_year INTEGER
Start year of the first season covered by this row
end_year INTEGER
Start year of the last season covered by this row
seasons INTEGER
Number of seasons covered by this row
games INTEGER
Regular-season games (count)
wins INTEGER
Regular-season wins (count)
losses INTEGER
Regular-season losses (count)
win_percentage DECIMAL(4,3)
Regular-season winning percentage (0-1 ratio)
playoff_appearances INTEGER
Playoff appearances (count)
division_titles INTEGER
Division titles (count)
conference_titles INTEGER
Conference titles (count)
league_titles INTEGER
League championships (count)
Example

Franchises with the most league titles.

SELECT team_city, team_name, start_year, league_titles
FROM nba.wnba.all_franchise_history()
WHERE row_kind = 'franchise'
ORDER BY league_titles DESC
LIMIT 10;
Link
box_score (game_id VARCHAR) 1 example

Traditional box score of one WNBA game, one row per player

Arguments
game_id VARCHAR
Ten-digit NBA Stats game identifier as text, such as '0022600201'.
Returns columns
game_id VARCHAR
Ten-character NBA Stats game identifier (numeric ID)
team_id BIGINT
Team identifier (numeric ID)
team_tricode VARCHAR
Team three-letter code
team_city VARCHAR
Team city
team_name VARCHAR
Team nickname
is_home BOOLEAN
Whether the player's team was the home team
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
position VARCHAR
Starting position (G, F, C); NULL for reserves
is_starter BOOLEAN
Whether the player started the game
status_comment VARCHAR
Inactive or did-not-play reason, when given
minutes VARCHAR
Minutes played display, MM:SS
seconds_played INTEGER
Exact playing time in seconds
field_goals_made INTEGER
Field goals made (count)
field_goals_attempted INTEGER
Field goals attempted (count)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made INTEGER
Three-point field goals made (count)
three_pointers_attempted INTEGER
Three-point field goals attempted (count)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made INTEGER
Free throws made (count)
free_throws_attempted INTEGER
Free throws attempted (count)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds INTEGER
Offensive rebounds (count)
defensive_rebounds INTEGER
Defensive rebounds (count)
rebounds INTEGER
Total rebounds (count)
assists INTEGER
Assists (count)
steals INTEGER
Steals (count)
blocks INTEGER
Blocked shots (count)
turnovers INTEGER
Turnovers (count)
personal_fouls INTEGER
Personal fouls (count)
points INTEGER
Points (count)
plus_minus INTEGER
Point differential while on the floor (points)
Example

Top scorers in game 1022500200.

SELECT team_tricode, player_name, minutes, points, rebounds, assists
FROM nba.wnba.box_score('1022500200')
ORDER BY points DESC
LIMIT 10;
Link
league_game_log (player_or_team := VARCHAR, season := INTEGER, season_type := VARCHAR) 1 example

Every WNBA team-game or player-game line of a season

Named arguments
player_or_team := VARCHAR
T for one row per team-game, P for one row per player-game. Β· default "T"
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
game_id VARCHAR
Ten-character NBA Stats game identifier; keep it as text
game_date DATE
Game date
season_type VARCHAR
Season type derived from the game ID prefix
player_id BIGINT
Player identifier; NULL on team rows
player_name VARCHAR
Player name; NULL on team rows
team_id BIGINT
Team identifier (numeric ID)
team_abbreviation VARCHAR
Team abbreviation
opponent_abbreviation VARCHAR
Opponent abbreviation parsed from the matchup
is_home BOOLEAN
Whether the team played at home ('vs.' rather than '@')
matchup VARCHAR
Matchup display, such as LAL vs. GSW or LAL @ BOS
win_loss VARCHAR
W or L; NULL for games not yet final
minutes INTEGER
Minutes played (count of whole minutes)
field_goals_made INTEGER
Field goals made (count)
field_goals_attempted INTEGER
Field goals attempted (count)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made INTEGER
Three-point field goals made (count)
three_pointers_attempted INTEGER
Three-point field goals attempted (count)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made INTEGER
Free throws made (count)
free_throws_attempted INTEGER
Free throws attempted (count)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds INTEGER
Offensive rebounds (count)
defensive_rebounds INTEGER
Defensive rebounds (count)
rebounds INTEGER
Total rebounds (count)
assists INTEGER
Assists (count)
steals INTEGER
Steals (count)
blocks INTEGER
Blocked shots (count)
turnovers INTEGER
Turnovers (count)
personal_fouls INTEGER
Personal fouls (count)
points INTEGER
Points (count)
plus_minus INTEGER
Point differential while on the floor (points)
Example

The highest-scoring team games of 2025.

SELECT game_date, team_abbreviation, opponent_abbreviation, points
FROM nba.wnba.league_game_log(season := 2025)
ORDER BY points DESC
LIMIT 10;
Link
league_leaders (per_mode := VARCHAR, season := INTEGER, season_type := VARCHAR, stat_category := VARCHAR) 2 examples

Official WNBA leaderboard for one statistic

Named arguments
per_mode := VARCHAR
PerGame, Totals, or Per48. Β· default "PerGame"
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
stat_category := VARCHAR
Statistic to rank by, such as PTS, REB, or AST. Β· default "PTS"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
stat_category VARCHAR
Statistic the leaderboard is ranked by, such as PTS
per_mode VARCHAR
Aggregation requested: Totals, PerGame, or Per48
rank INTEGER
Leaderboard rank (1 is the leader); ties share a rank
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
team_id BIGINT
Current or last team identifier (numeric ID)
team_abbreviation VARCHAR
Current or last team abbreviation
games_played INTEGER
Games played (count)
minutes DOUBLE
Minutes under the requested per_mode
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode)
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode)
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode)
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode)
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode)
rebounds DOUBLE
Total rebounds (count, scaled per per_mode)
assists DOUBLE
Assists (count, scaled per per_mode)
steals DOUBLE
Steals (count, scaled per per_mode)
blocks DOUBLE
Blocked shots (count, scaled per per_mode)
turnovers DOUBLE
Turnovers (count, scaled per per_mode)
points DOUBLE
Points (count, scaled per per_mode)
efficiency DOUBLE
NBA efficiency rating (EFF index)
Examples (2)

2025 assists-per-game leaders.

SELECT rank, player_name, team_abbreviation, assists
FROM nba.wnba.league_leaders(season := 2025, stat_category := 'AST')
ORDER BY rank
LIMIT 10;

The top ten of the official 2025 scoring leaderboard with each player's usage and true-shooting percentage.

SELECT l.rank, l.player_name, l.team_abbreviation, l.points,
  a.usage_percentage, a.true_shooting_percentage
FROM nba.wnba.league_leaders(season := 2025, stat_category := 'PTS') AS l
JOIN nba.wnba.advanced_player_stats(season := 2025) AS a USING (player_id)
ORDER BY l.rank, l.player_name
LIMIT 10;
Link
play_by_play (game_id VARCHAR) 1 example

Every play-by-play event of one WNBA game

Arguments
game_id VARCHAR
Ten-digit NBA Stats game identifier as text, such as '0022600201'.
Returns columns
game_id VARCHAR
Ten-character NBA Stats game identifier (numeric ID)
action_number INTEGER
Play sequence number (index); a block or steal repeats the number of the play it ended
action_id INTEGER
Event ordinal in the published feed (index); unique within the game and increasing
period INTEGER
Period number (1-4 regulation quarters, 5 and above overtime)
clock VARCHAR
ISO-8601 time remaining in the period, such as PT11M42.00S
seconds_remaining DECIMAL(6,2)
Seconds remaining in the period
team_id BIGINT
Team credited with the event; NULL for neutral events
team_tricode VARCHAR
Team three-letter code
player_id BIGINT
Player credited with the event; NULL when none
player_name VARCHAR
Player family name as published
action_type VARCHAR
Event type, such as Made Shot, Rebound, Foul, or period
sub_type VARCHAR
Event detail, such as Jump Shot or start
description VARCHAR
Play description
home_score INTEGER
Home points after the event (running score, carried forward on non-scoring plays)
away_score INTEGER
Away points after the event (running score, carried forward on non-scoring plays)
location VARCHAR
h for the home team or v for the visitors
is_field_goal BOOLEAN
Whether the event is a field-goal attempt
shot_result VARCHAR
Made or Missed for shots
shot_value INTEGER
Point value of the attempted shot (1, 2, or 3; 0 when not a shot)
shot_distance INTEGER
Shot distance in feet
x_legacy INTEGER
Legacy shot-chart x coordinate (tenths of feet from the basket)
y_legacy INTEGER
Legacy shot-chart y coordinate (tenths of feet from the basket)
Example

Made three-pointers in the fourth quarter of game 1022500200.

SELECT clock, team_tricode, player_name, description, home_score, away_score
FROM nba.wnba.play_by_play('1022500200')
WHERE period = 4 AND shot_value = 3 AND shot_result = 'Made'
ORDER BY action_id;
Link
player_career_stats (player_id BIGINT, season_type := VARCHAR) 1 example

One WNBA player's season-by-season career totals

Positional arguments
player_id BIGINT
Stable NBA Stats player identifier.
Named arguments
season_type := VARCHAR
Regular Season or Playoffs totals. Β· default "Regular Season"
Returns columns
season_type VARCHAR
Season type requested: Regular Season or Playoffs
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
season VARCHAR
Season key, such as 2003-04
team_id BIGINT
Team identifier; NULL on a multi-team total row
team_abbreviation VARCHAR
Team abbreviation; TOT on a multi-team total row
is_multi_team_total BOOLEAN
True for the TOT row that sums a traded player's teams
player_age DOUBLE
Player age in years during the season
games_played INTEGER
Games played (count)
games_started INTEGER
Games started (count)
minutes INTEGER
Minutes played (count of whole minutes)
field_goals_made INTEGER
Field goals made (count)
field_goals_attempted INTEGER
Field goals attempted (count)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made INTEGER
Three-point field goals made (count)
three_pointers_attempted INTEGER
Three-point field goals attempted (count)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made INTEGER
Free throws made (count)
free_throws_attempted INTEGER
Free throws attempted (count)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds INTEGER
Offensive rebounds (count)
defensive_rebounds INTEGER
Defensive rebounds (count)
rebounds INTEGER
Total rebounds (count)
assists INTEGER
Assists (count)
steals INTEGER
Steals (count)
blocks INTEGER
Blocked shots (count)
turnovers INTEGER
Turnovers (count)
personal_fouls INTEGER
Personal fouls (count)
points INTEGER
Points (count)
Example

A’ja Wilson's season-by-season points.

SELECT season, team_abbreviation, games_played, points
FROM nba.wnba.player_career_stats(1628932)
WHERE NOT is_multi_team_total
ORDER BY season;
Link
player_career_totals (player_id BIGINT, season_type := VARCHAR) 1 example

One WNBA player's whole-career totals

Positional arguments
player_id BIGINT
Stable NBA Stats player identifier.
Named arguments
season_type := VARCHAR
Regular Season or Playoffs totals. Β· default "Regular Season"
Returns columns
season_type VARCHAR
Season type requested: Regular Season or Playoffs
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
games_played INTEGER
Career games played
games_started INTEGER
Career games started
minutes INTEGER
Career minutes played
field_goals_made INTEGER
Field goals made over the career (count)
field_goals_attempted INTEGER
Field goals attempted over the career (count)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made INTEGER
Three-point field goals made over the career (count)
three_pointers_attempted INTEGER
Three-point field goals attempted over the career (count)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made INTEGER
Free throws made over the career (count)
free_throws_attempted INTEGER
Free throws attempted over the career (count)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds INTEGER
Offensive rebounds over the career (count)
defensive_rebounds INTEGER
Defensive rebounds over the career (count)
rebounds INTEGER
Total rebounds over the career (count)
assists INTEGER
Assists over the career (count)
steals INTEGER
Steals over the career (count)
blocks INTEGER
Blocked shots over the career (count)
turnovers INTEGER
Turnovers over the career (count)
personal_fouls INTEGER
Personal fouls over the career (count)
points INTEGER
Points over the career (count)
Example

A’ja Wilson's career regular-season totals.

SELECT games_played, points, rebounds, assists
FROM nba.wnba.player_career_totals(1628932);
Link
player_game_log (player_id BIGINT, season := INTEGER, season_type := VARCHAR) 1 example

One WNBA player's game-by-game lines for a season

Positional arguments
player_id BIGINT
Stable NBA Stats player identifier.
Named arguments
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
game_id VARCHAR
Ten-character NBA Stats game identifier; keep it as text
game_date DATE
Game date
season_type VARCHAR
Season type derived from the game ID prefix
player_id BIGINT
Player identifier; NULL on team rows
team_abbreviation VARCHAR
Team abbreviation
opponent_abbreviation VARCHAR
Opponent abbreviation parsed from the matchup
is_home BOOLEAN
Whether the team played at home ('vs.' rather than '@')
matchup VARCHAR
Matchup display, such as LAL vs. GSW or LAL @ BOS
win_loss VARCHAR
W or L; NULL for games not yet final
minutes INTEGER
Minutes played (count of whole minutes)
field_goals_made INTEGER
Field goals made (count)
field_goals_attempted INTEGER
Field goals attempted (count)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made INTEGER
Three-point field goals made (count)
three_pointers_attempted INTEGER
Three-point field goals attempted (count)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made INTEGER
Free throws made (count)
free_throws_attempted INTEGER
Free throws attempted (count)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds INTEGER
Offensive rebounds (count)
defensive_rebounds INTEGER
Defensive rebounds (count)
rebounds INTEGER
Total rebounds (count)
assists INTEGER
Assists (count)
steals INTEGER
Steals (count)
blocks INTEGER
Blocked shots (count)
turnovers INTEGER
Turnovers (count)
personal_fouls INTEGER
Personal fouls (count)
points INTEGER
Points (count)
plus_minus INTEGER
Point differential while on the floor (points)
Example

A’ja Wilson's 2025 games with at least 25 points.

SELECT game_date, matchup, points, rebounds, assists
FROM nba.wnba.player_game_log(1628932, season := 2025)
WHERE points >= 25
ORDER BY game_date;
Link
player_stats (per_mode := VARCHAR, season := INTEGER, season_type := VARCHAR) 1 example

WNBA player season statistics by season, season type, and per mode

Named arguments
per_mode := VARCHAR
PerGame averages, season Totals, Per36 minutes, or Per100Possessions. Β· default "PerGame"
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
team_id BIGINT
Current or last team identifier (numeric ID)
team_abbreviation VARCHAR
Current or last team abbreviation
team_count INTEGER
Number of teams the player appeared for; above 1 means totals span teams
age DOUBLE
Player age in years during the season
games_played INTEGER
Games played (count)
wins INTEGER
Team wins in games the player played
losses INTEGER
Team losses in games the player played
minutes DOUBLE
Minutes played under the requested per_mode
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode)
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode)
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode)
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode)
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode)
rebounds DOUBLE
Total rebounds (count, scaled per per_mode)
assists DOUBLE
Assists (count, scaled per per_mode)
steals DOUBLE
Steals (count, scaled per per_mode)
blocks DOUBLE
Blocked shots (count, scaled per per_mode)
turnovers DOUBLE
Turnovers (count, scaled per per_mode)
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode)
points DOUBLE
Points (count, scaled per per_mode)
blocks_against DOUBLE
Shots of this player blocked by opponents (count, scaled per per_mode)
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode)
plus_minus DOUBLE
Point differential while on the floor (points)
double_doubles INTEGER
Games with double figures in two categories
triple_doubles INTEGER
Games with double figures in three categories
Example

Top 2025 scorers per game with at least 20 games.

SELECT player_name, team_abbreviation, games_played, points, rebounds,
  assists
FROM nba.wnba.player_stats(season := 2025)
WHERE games_played >= 20
ORDER BY points DESC
LIMIT 10;
Link
players (only_current := BOOLEAN) 1 example

The WNBA player index, current or all-time

Named arguments
only_current := BOOLEAN
True returns players on a current roster; false returns every player in league history. Β· default true
Returns columns
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name, first name first
last_comma_first VARCHAR
Player name, last name first
is_active BOOLEAN
Whether the player is currently on a roster
from_year INTEGER
Start year of the player's first season in the league
to_year INTEGER
Start year of the player's most recent season in the league
team_id BIGINT
Current or last team identifier; NULL when unattached
team_abbreviation VARCHAR
Current or last team abbreviation
team_city VARCHAR
Current or last team city
team_name VARCHAR
Current or last team nickname
player_slug VARCHAR
URL slug of the player
has_played BOOLEAN
Whether the player has appeared in a game
Example

Find a player's identifier.

SELECT player_id, player_name, team_abbreviation, from_year
FROM nba.wnba.players(only_current := false)
WHERE player_name ILIKE '%Wilson%';
Link
scoreboard (game_date DATE) 1 example

WNBA games and scores on one date

Arguments
game_date DATE
Calendar day of the games, as the league schedules it in US Eastern time.
Returns columns
game_date DATE
Scoreboard date in US Eastern time
game_id VARCHAR
Ten-character NBA Stats game identifier; keep it as text
game_code VARCHAR
Game code, date plus away and home tricodes
season_type VARCHAR
Season type derived from the game ID prefix
game_status INTEGER
Game status: 1 scheduled, 2 in progress, 3 final
game_status_text VARCHAR
Status display, such as Final, Halftime, or a tip-off time
period INTEGER
Current or final period; 0 before tip-off
game_clock VARCHAR
ISO-8601 time remaining in the current period, when live
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled tip-off time in UTC
series_text VARCHAR
Playoff series status text, when applicable
game_label VARCHAR
Game label, such as an NBA Cup or playoff round name
is_neutral_site BOOLEAN
Whether the game is played at a neutral site
home_team_id BIGINT
Home team identifier (numeric ID)
home_team_tricode VARCHAR
Home team three-letter code
home_team_city VARCHAR
Home team city
home_team_name VARCHAR
Home team nickname
home_wins INTEGER
Home team's season wins (count) as of this game
home_losses INTEGER
Home team's season losses (count) as of this game
home_score INTEGER
Home team's points; 0 before tip-off
away_team_id BIGINT
Away team identifier (numeric ID)
away_team_tricode VARCHAR
Away team three-letter code
away_team_city VARCHAR
Away team city
away_team_name VARCHAR
Away team nickname
away_wins INTEGER
Away team's season wins (count) as of this game
away_losses INTEGER
Away team's season losses (count) as of this game
away_score INTEGER
Away team's points; 0 before tip-off
Example

Final scores on 2026-07-15.

SELECT game_id, away_team_tricode, away_score, home_team_tricode,
  home_score, game_status_text
FROM nba.wnba.scoreboard(DATE '2026-07-15')
ORDER BY game_id;
Link
standings (season := INTEGER, season_type := VARCHAR) 2 examples

WNBA standings by season and season type

Named arguments
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Pre Season, or PlayIn; the league publishes no playoff standings. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_city VARCHAR
Team city or region
team_name VARCHAR
Team nickname, such as Lakers
conference VARCHAR
Conference, East or West
division VARCHAR
Division name; NULL for leagues without divisions
playoff_rank INTEGER
Playoff seeding rank: within the conference (NBA, G League) or league-wide (WNBA)
division_rank INTEGER
Rank within the division (1 is first); NULL without divisions
league_rank INTEGER
Rank across the whole league (1 is first), when published
wins INTEGER
Wins (count)
losses INTEGER
Losses (count)
win_percentage DECIMAL(4,3)
Winning percentage as an exact decimal (0-1 ratio)
record VARCHAR
Win-loss record display, such as 10-2
conference_games_back DECIMAL(5,1)
Games behind the conference leader (in games)
division_games_back DECIMAL(5,1)
Games behind the division leader (in games)
league_games_back DECIMAL(5,1)
Games behind the league's best record (in games)
home_record VARCHAR
Home win-loss record
road_record VARCHAR
Road win-loss record
last_ten_record VARCHAR
Win-loss record over the last ten games
conference_record VARCHAR
Record against conference opponents
division_record VARCHAR
Record against division opponents
vs_east_record VARCHAR
Record against Eastern Conference teams
vs_west_record VARCHAR
Record against Western Conference teams
current_streak INTEGER
Current streak length in games (positive for wins, negative for losses)
current_streak_display VARCHAR
Current streak display, such as W 6 or L 2
longest_win_streak INTEGER
Longest winning streak this season (count of games)
longest_loss_streak INTEGER
Longest losing streak this season (count of games)
points_per_game DOUBLE
Points scored per game
opponent_points_per_game DOUBLE
Points allowed per game
point_differential_per_game DOUBLE
Average scoring margin per game
total_points INTEGER
Total points scored in the season (count)
opponent_total_points INTEGER
Total points allowed in the season (count)
clinch_indicator VARCHAR
Clinch marker as published, such as x, y, z, pi, or o
clinched_playoff_berth BOOLEAN
Whether the team has clinched a playoff berth
clinched_play_in BOOLEAN
Whether the team has clinched at least a play-in place
clinched_division BOOLEAN
Whether the team has clinched its division
clinched_conference BOOLEAN
Whether the team has clinched its conference
eliminated_from_playoffs BOOLEAN
Whether the team is eliminated from its conference race
Examples (2)

Final 2025 conference standings in seeding order.

SELECT conference, playoff_rank, team_city, team_name, wins, losses
FROM nba.wnba.standings(season := 2025)
ORDER BY conference, playoff_rank;

Final 2025 standings by conference and playoff seed, beside each team's net rating from advanced_team_stats.

SELECT s.conference, s.playoff_rank, s.team_name, s.wins, s.losses,
  a.net_rating
FROM nba.wnba.standings(season := 2025) AS s
JOIN nba.wnba.advanced_team_stats(season := 2025) AS a USING (team_id)
ORDER BY s.conference, s.playoff_rank;
Link
team_roster (team_id BIGINT, season := INTEGER) 2 examples

One WNBA team's roster for a season

Positional arguments
team_id BIGINT
Stable NBA Stats team identifier.
Named arguments
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
Returns columns
season VARCHAR
Season key of the roster
team_id BIGINT
Team identifier (numeric ID)
player_id BIGINT
Stable NBA Stats player identifier (numeric ID)
player_name VARCHAR
Player name
jersey_number VARCHAR
Jersey number as text; NULL until assigned
position VARCHAR
Listed position, such as G, F-C, or C
height VARCHAR
Listed height display in feet-inches, such as 6-11
height_inches INTEGER
Listed height in inches
weight_pounds INTEGER
Listed weight in pounds
birth_date DATE
Date of birth
age DOUBLE
Age in years as published by the roster
experience_years INTEGER
Prior seasons of league experience in years; 0 for rookies
school VARCHAR
College or last pre-league affiliation
how_acquired VARCHAR
How the team acquired the player, when published
Examples (2)

The current Las Vegas Aces roster.

SELECT jersey_number, player_name, position, height, weight_pounds
FROM nba.wnba.team_roster(1611661319)
ORDER BY player_name;

The 2025 Las Vegas Aces roster with each player's per-game season averages, top scorers first.

SELECT r.jersey_number, r.player_name, r.position, p.games_played, p.points,
  p.rebounds, p.assists
FROM nba.wnba.team_roster(1611661319, season := 2025) AS r
LEFT JOIN nba.wnba.player_stats(season := 2025) AS p USING (player_id)
ORDER BY p.points DESC NULLS LAST, r.player_name;
Link
team_stats (per_mode := VARCHAR, season := INTEGER, season_type := VARCHAR) 1 example

WNBA team season statistics by season, season type, and per mode

Named arguments
per_mode := VARCHAR
PerGame averages, season Totals, Per36 minutes, or Per100Possessions. Β· default "PerGame"
season := INTEGER
Start year of the season: 2025 means 2025-26 in the NBA and G League and the 2025 season in the WNBA. NULL selects the current or most recent season. Β· default null
season_type := VARCHAR
Regular Season, Playoffs, Pre Season, or PlayIn. Β· default "Regular Season"
Returns columns
season VARCHAR
Season key: 2025-26 (NBA, G League) or 2025 (WNBA)
season_type VARCHAR
Season type requested, such as Regular Season or Playoffs
per_mode VARCHAR
Aggregation requested: Totals, PerGame, Per36, or Per100Possessions
team_id BIGINT
Stable NBA Stats team identifier (numeric ID)
team_name VARCHAR
Full team name
games_played INTEGER
Games played (count)
wins INTEGER
Wins (count)
losses INTEGER
Losses (count)
win_percentage DECIMAL(4,3)
Winning percentage (0-1 ratio)
minutes DOUBLE
Team minutes under the requested per_mode
field_goals_made DOUBLE
Field goals made (count, scaled per per_mode)
field_goals_attempted DOUBLE
Field goals attempted (count, scaled per per_mode)
field_goal_percentage DOUBLE
Field-goal percentage (0-1 ratio)
three_pointers_made DOUBLE
Three-point field goals made (count, scaled per per_mode)
three_pointers_attempted DOUBLE
Three-point field goals attempted (count, scaled per per_mode)
three_point_percentage DOUBLE
Three-point percentage (0-1 ratio)
free_throws_made DOUBLE
Free throws made (count, scaled per per_mode)
free_throws_attempted DOUBLE
Free throws attempted (count, scaled per per_mode)
free_throw_percentage DOUBLE
Free-throw percentage (0-1 ratio)
offensive_rebounds DOUBLE
Offensive rebounds (count, scaled per per_mode)
defensive_rebounds DOUBLE
Defensive rebounds (count, scaled per per_mode)
rebounds DOUBLE
Total rebounds (count, scaled per per_mode)
assists DOUBLE
Assists (count, scaled per per_mode)
steals DOUBLE
Steals (count, scaled per per_mode)
blocks DOUBLE
Blocked shots (count, scaled per per_mode)
turnovers DOUBLE
Turnovers (count, scaled per per_mode)
personal_fouls DOUBLE
Personal fouls (count, scaled per per_mode)
points DOUBLE
Points (count, scaled per per_mode)
blocks_against DOUBLE
Team shots blocked by opponents
fouls_drawn DOUBLE
Personal fouls drawn (count, scaled per per_mode)
plus_minus DOUBLE
Point differential
Example

Best 2025 three-point shooting teams.

SELECT team_name, three_pointers_made, three_point_percentage
FROM nba.wnba.team_stats(season := 2025)
ORDER BY three_point_percentage DESC;
Link

Try these queries

nba_teams_are_populated β€” The NBA has thirty active teams with stable identifiers.

SELECT count(*) = 30 AS thirty_teams FROM nba.nba.current_teams;

Uses current_teamscurrent_teamscurrent_teams

wnba_franchises_include_summaries β€” Every active WNBA team has an all-time franchise summary row.

SELECT count(*) >= 13 AS populated
FROM nba.wnba.franchise_history
WHERE row_kind = 'franchise';

Uses franchise_historyfranchise_historyfranchise_history

historical_standings_balance β€” Final 2025-26 NBA standings: 30 teams whose wins equal their losses in total.

SELECT count(*) = 30 AND sum(wins) = sum(losses) AS balanced
FROM nba.nba.standings(season := 2025);

Uses standingsstandingsstandings

box_score_points_match_scoreboard β€” A completed game's player points sum to the published final score.

SELECT (SELECT sum(points) FROM nba.nba.box_score('0022600201')) = (SELECT home_score + away_score FROM nba.nba.scoreboard(DATE '2026-11-08') WHERE game_id = '0022600201') AS consistent;

Uses box_scorebox_scorebox_scorescoreboardscoreboard

Current conference standings in seeding order.

SELECT conference, playoff_rank, team_name, wins, losses,
  conference_games_back
FROM nba.gleague.current_standings
ORDER BY conference, playoff_rank

Uses current_standingscurrent_standingscurrent_standings

The 2025 Oklahoma City Blue roster with each player's per-game season averages, top scorers first.

SELECT r.jersey_number, r.player_name, r.position, p.games_played, p.points,
  p.rebounds, p.assists
FROM nba.gleague.team_roster(1612709889, season := 2025) AS r
LEFT JOIN nba.gleague.player_stats(season := 2025) AS p USING (player_id)
ORDER BY p.points DESC NULLS LAST, r.player_name

Uses team_rosterteam_rosterteam_rosterplayer_statsplayer_stats

97 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.

  • Who leads each NBA conference right now, and what is each leader's scoring average?
  • List the final 2025-26 NBA Western Conference standings in seeding order, with each franchise's all-time championship count.
  • Which NBA games are on today's scoreboard, and in which arena is each one played?
  • Who is the tallest player on the current Los Angeles Lakers roster?
  • How many career regular-season points has LeBron James scored, and in which season did he score the most?
  • In NBA game 0022600201, who won, who was the top scorer, and how many of his points came in the fourth quarter?

NBA 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.