Skip to content

NHL

NHL standings, scores, play-by-play, and player statistics as SQL tables

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

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

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

Copy this request into your coding agent to get started.

Use https://query.farm/products/orchard/connectors/nhl/index.md to help me query NHL 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.

opener_final_score

Example output · captured
Connector release
v0.3.1
Engine
2.0.1
VGI protocol
3.4.0
SELECT home_team_abbrev, home_score, away_team_abbrev, away_score
FROM nhl.main.scores(date := DATE '2025-10-07')
WHERE game_id = 2025020001;
Result
home_team_abbrev home_score away_team_abbrev away_score
FLA 3 CHI 2

Quick start

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

3. Run a query

query.sql
SELECT home_team_abbrev, home_score, away_team_abbrev, away_score
FROM nhl.main.scores(date := DATE '2025-10-07')
WHERE game_id = 2025020001;
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 'nhl' AS nhl (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-nhl'
);

Overview

Read-only National Hockey League standings, schedules, scores, game detail, and player and team statistics from the NHL's public web and stats APIs

Catalog

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

nhl 1 schema
main 8 tables · 29 functions

Current and historical NHL standings, games, and statistics

Schema examples (5)
Examples (5)

Current division tables in official order.

SELECT division_name, division_rank, team_abbrev, points, games_played
FROM nhl.main.current_standings
ORDER BY division_name, division_rank;

Eastern Conference wild-card race.

SELECT wildcard_rank, team_abbrev, points, games_played
FROM nhl.main.current_standings
WHERE conference_name = 'Eastern' AND wildcard_rank > 0
ORDER BY wildcard_rank;

Goals for and against while each player was on the ice in the 2025-26 opener: play_by_play goals joined to the shift_chart interval that contains each goal's game_seconds.

WITH goals AS (SELECT game_seconds, event_owner_team_abbrev AS scoring_team FROM nhl.main.play_by_play(2025020001) WHERE event_type = 'goal') SELECT s.team_abbrev, s.player_name, count(*) FILTER (WHERE g.scoring_team = s.team_abbrev) AS on_ice_goals_for, count(*) FILTER (WHERE g.scoring_team <> s.team_abbrev) AS on_ice_goals_against
FROM goals g
JOIN nhl.main.shift_chart(2025020001) s ON g.game_seconds > s.start_seconds AND g.game_seconds <= s.end_seconds
GROUP BY ALL
ORDER BY on_ice_goals_for DESC, on_ice_goals_against, s.player_name;

Toronto's 2025-26 roster skaters with their season scoring: roster joined to skater_stats on player_id (a traded player's totals cover every club he played for).

SELECT r.sweater_number, r.player_name, r.position_code, s.games_played,
  s.goals, s.assists, s.points
FROM nhl.main.roster('TOR', season := 20252026) r
JOIN nhl.main.skater_stats(season := 20252026) s USING (player_id)
WHERE r.position_group <> 'goalies'
ORDER BY s.points DESC, r.player_name;
1 more example

2025-26 skaters with at least 50 points and 150 hits: skater_stats scoring joined to skater_realtime_stats physical play on player_id.

SELECT s.player_name, s.team_abbrevs, s.points, rt.hits, rt.blocked_shots
FROM nhl.main.skater_stats(season := 20252026) s
JOIN nhl.main.skater_realtime_stats(season := 20252026) rt USING (player_id)
WHERE s.points >= 50 AND rt.hits >= 150
ORDER BY rt.hits DESC, s.player_name;
Tables
current_goalie_leaders 1 example13 cols

Current top-ten NHL goalies per stat category

Columns
season INTEGER
NHL season id the leaderboard covers.
game_type INTEGER
NHL game type: 2 regular season, 3 playoffs.
categorynot null VARCHAR
Leader category, such as points, goals, or savePctg.
ranknot null INTEGER
Position in the NHL's ordered leader list (1 = leader).
player_id INTEGER
Stable NHL player id.
player_name VARCHAR
Player full name.
first_name VARCHAR
Player first name.
last_name VARCHAR
Player last name.
sweater_number INTEGER
Jersey number.
position VARCHAR
Position code: C, L, R, D, or G.
team_abbrev VARCHAR
Three-letter code of the player's team.
team_name VARCHAR
Team nickname, such as Oilers.
value DOUBLE
Category value: a count, a 0-1 percentage, goals-against average, or TOI seconds per game.
ConstraintsPRIMARY KEY (category, rank)
Example

Current save-percentage leaders.

SELECT rank, player_name, team_abbrev, value AS save_pct
FROM nhl.main.current_goalie_leaders
WHERE category = 'savePctg'
ORDER BY rank;
Link
current_schedule 1 example28 cols

NHL games in the seven days starting today, one row per game

Columns
game_idnot null BIGINT
NHL game id, such as 2025020001 (season, type, number).
season INTEGER
NHL season id, such as 20252026.
game_type INTEGER
NHL game type: 1 preseason, 2 regular season, 3 playoffs.
game_date DATE
Local calendar date of the game.
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled puck-drop time in UTC.
venue VARCHAR
Arena name.
venue_timezone VARCHAR
IANA time zone of the arena.
neutral_site BOOLEAN
Whether the game is played at a neutral site.
game_state VARCHAR
Game state: FUT future, PRE pregame, LIVE/CRIT in progress, FINAL/OFF finished.
game_schedule_state VARCHAR
Schedule state: OK, PPD postponed, or CNCL cancelled.
away_team_id INTEGER
NHL team id of the visiting team.
away_team_abbrev VARCHAR
Three-letter code of the visiting team.
away_team_name VARCHAR
Visiting team nickname, such as Blackhawks; join teams for the full name.
away_score INTEGER
Visiting team goals; NULL before the game starts.
away_shots_on_goal INTEGER
Visiting team shots on goal; only scores() reports it, NULL in schedules.
home_team_id INTEGER
NHL team id of the home team.
home_team_abbrev VARCHAR
Three-letter code of the home team.
home_team_name VARCHAR
Home team nickname, such as Panthers; join teams for the full name.
home_score INTEGER
Home team goals; NULL before the game starts.
home_shots_on_goal INTEGER
Home team shots on goal; only scores() reports it, NULL in schedules.
period INTEGER
Current or final period number (4+ means overtime/shootout).
period_type VARCHAR
Current or final period type: REG, OT, or SO.
last_period_type VARCHAR
How a finished game ended: REG, OT, or SO.
winning_goalie_id INTEGER
Player id of the winning goalie; schedules only, NULL in scores().
winning_goalie_name VARCHAR
Winning goalie, as an initial and last name.
winning_goal_scorer_id INTEGER
Player id of the game-winning goal scorer; schedules only, NULL in scores().
winning_goal_scorer_name VARCHAR
Game-winning goal scorer, as initial and last name.
game_center_url VARCHAR
NHL.com GameCenter URL for the game.
ConstraintsPRIMARY KEY (game_id)
Example

This week's games in start order.

SELECT game_date, start_time_utc, away_team_abbrev, home_team_abbrev, venue
FROM nhl.main.current_schedule
ORDER BY start_time_utc;
Link
current_scores 1 example28 cols

Today's NHL games with live or final scores, one row per game

Columns
game_idnot null BIGINT
NHL game id, such as 2025020001 (season, type, number).
season INTEGER
NHL season id, such as 20252026.
game_type INTEGER
NHL game type: 1 preseason, 2 regular season, 3 playoffs.
game_date DATE
Local calendar date of the game.
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled puck-drop time in UTC.
venue VARCHAR
Arena name.
venue_timezone VARCHAR
IANA time zone of the arena.
neutral_site BOOLEAN
Whether the game is played at a neutral site.
game_state VARCHAR
Game state: FUT future, PRE pregame, LIVE/CRIT in progress, FINAL/OFF finished.
game_schedule_state VARCHAR
Schedule state: OK, PPD postponed, or CNCL cancelled.
away_team_id INTEGER
NHL team id of the visiting team.
away_team_abbrev VARCHAR
Three-letter code of the visiting team.
away_team_name VARCHAR
Visiting team nickname, such as Blackhawks; join teams for the full name.
away_score INTEGER
Visiting team goals; NULL before the game starts.
away_shots_on_goal INTEGER
Visiting team shots on goal; only scores() reports it, NULL in schedules.
home_team_id INTEGER
NHL team id of the home team.
home_team_abbrev VARCHAR
Three-letter code of the home team.
home_team_name VARCHAR
Home team nickname, such as Panthers; join teams for the full name.
home_score INTEGER
Home team goals; NULL before the game starts.
home_shots_on_goal INTEGER
Home team shots on goal; only scores() reports it, NULL in schedules.
period INTEGER
Current or final period number (4+ means overtime/shootout).
period_type VARCHAR
Current or final period type: REG, OT, or SO.
last_period_type VARCHAR
How a finished game ended: REG, OT, or SO.
winning_goalie_id INTEGER
Player id of the winning goalie; schedules only, NULL in scores().
winning_goalie_name VARCHAR
Winning goalie, as an initial and last name.
winning_goal_scorer_id INTEGER
Player id of the game-winning goal scorer; schedules only, NULL in scores().
winning_goal_scorer_name VARCHAR
Game-winning goal scorer, as initial and last name.
game_center_url VARCHAR
NHL.com GameCenter URL for the game.
ConstraintsPRIMARY KEY (game_id)
Example

Today's scoreboard.

SELECT away_team_abbrev, away_score, home_team_abbrev, home_score,
  game_state, period
FROM nhl.main.current_scores
ORDER BY start_time_utc;
Link
current_skater_leaders 1 example13 cols

Current top-ten NHL skaters per stat category

Columns
season INTEGER
NHL season id the leaderboard covers.
game_type INTEGER
NHL game type: 2 regular season, 3 playoffs.
categorynot null VARCHAR
Leader category, such as points, goals, or savePctg.
ranknot null INTEGER
Position in the NHL's ordered leader list (1 = leader).
player_id INTEGER
Stable NHL player id.
player_name VARCHAR
Player full name.
first_name VARCHAR
Player first name.
last_name VARCHAR
Player last name.
sweater_number INTEGER
Jersey number.
position VARCHAR
Position code: C, L, R, D, or G.
team_abbrev VARCHAR
Three-letter code of the player's team.
team_name VARCHAR
Team nickname, such as Oilers.
value DOUBLE
Category value: a count, a 0-1 percentage, goals-against average, or TOI seconds per game.
ConstraintsPRIMARY KEY (category, rank)
Example

Current scoring race.

SELECT rank, player_name, team_abbrev, value AS points
FROM nhl.main.current_skater_leaders
WHERE category = 'points'
ORDER BY rank;
Link
current_standings 2 examples44 cols

Today's NHL standings, one row per team

Columns
season INTEGER
NHL season id, such as 20252026.
game_type INTEGER
NHL game type: 2 regular season.
standings_date DATE
Date the standings snapshot describes.
team_abbrevnot null VARCHAR
Three-letter team code, such as TOR.
team_name VARCHAR
Full team name, such as Toronto Maple Leafs.
team_common_name VARCHAR
Team nickname, such as Maple Leafs.
team_place_name VARCHAR
Team location, such as Toronto.
conference_abbrev VARCHAR
Conference code: E or W.
conference_name VARCHAR
Conference name, such as Eastern.
division_abbrev VARCHAR
Division code, such as A, M, C, or P.
division_name VARCHAR
Division name, such as Atlantic.
league_rank INTEGER
League-wide rank (1 = best).
conference_rank INTEGER
Position within the conference.
division_rank INTEGER
Position within the division.
wildcard_rank INTEGER
Wild-card rank; 0 for division-spot holders.
games_played INTEGER
Count of games played so far.
wins INTEGER
Wins, including overtime and shootout wins.
losses INTEGER
Regulation losses.
ot_losses INTEGER
Overtime and shootout losses (one point each).
ties INTEGER
Ties, before 2005-06.
points INTEGER
Standings points.
point_pct DOUBLE
Points divided by points available (0-1).
regulation_wins INTEGER
Regulation wins, the first tiebreaker.
regulation_plus_ot_wins INTEGER
Regulation plus overtime wins.
shootout_wins INTEGER
Games won in a shootout.
shootout_losses INTEGER
Games lost in a shootout.
goals_for INTEGER
Goals scored.
goals_against INTEGER
Goals allowed.
goal_differential INTEGER
Goals for minus goals against.
home_wins INTEGER
Wins at home.
home_losses INTEGER
Regulation losses at home.
home_ot_losses INTEGER
Overtime and shootout losses at home.
home_points INTEGER
Points earned at home.
road_wins INTEGER
Wins on the road.
road_losses INTEGER
Regulation losses on the road.
road_ot_losses INTEGER
Overtime and shootout losses on the road.
road_points INTEGER
Points earned on the road.
last_10_wins INTEGER
Wins in the last ten games.
last_10_losses INTEGER
Regulation losses in the last ten games.
last_10_ot_losses INTEGER
Overtime and shootout losses in the last ten games.
streak_code VARCHAR
Streak type: W, L, or OT.
streak_count INTEGER
Length of the current streak.
clinch_indicator VARCHAR
Clinch: p Presidents' Trophy, z conference, y division, x berth, e out.
team_logo_url VARCHAR
Team logo SVG URL.
ConstraintsPRIMARY KEY (team_abbrev)
Examples (2)

Current division tables in official order.

SELECT division_name, division_rank, team_abbrev, points, games_played
FROM nhl.main.current_standings
ORDER BY division_name, division_rank;

Eastern Conference wild-card race.

SELECT wildcard_rank, team_abbrev, points, games_played
FROM nhl.main.current_standings
WHERE conference_name = 'Eastern' AND wildcard_rank > 0
ORDER BY wildcard_rank;
Link
franchises 1 example4 cols

Every NHL franchise, active and defunct

Columns
franchise_idnot null INTEGER
NHL franchise id.
full_name VARCHAR
Most recent full name of the franchise.
common_name VARCHAR
Franchise nickname.
place_name VARCHAR
Franchise location.
ConstraintsPRIMARY KEY (franchise_id)
Example

All NHL franchises alphabetically.

SELECT franchise_id, full_name FROM nhl.main.franchises ORDER BY full_name;
Link
standings_seasons 1 example10 cols

Every NHL season since 1917-18 with standings dates and rule flags

Columns
seasonnot null INTEGER
NHL season id, such as 19171918.
standings_start DATE
First date standings exist for the season.
standings_end DATE
Last date standings exist for the season.
conferences_in_use BOOLEAN
Whether the season grouped teams into conferences.
divisions_in_use BOOLEAN
Whether the season grouped teams into divisions.
point_for_ot_loss_in_use BOOLEAN
Whether overtime losses earned a standings point.
regulation_wins_in_use BOOLEAN
Whether regulation wins were tracked as a tiebreaker.
row_in_use BOOLEAN
Whether regulation-plus-overtime wins were tracked.
ties_in_use BOOLEAN
Whether games could end in a tie.
wildcard_in_use BOOLEAN
Whether playoff qualification used wild cards.
ConstraintsPRIMARY KEY (season)
Example

Seasons whose standings used the wild card, newest first.

SELECT season, standings_start, standings_end
FROM nhl.main.standings_seasons
WHERE wildcard_in_use
ORDER BY season DESC;
Link
teams 1 example5 cols

Every current and historical NHL team with its id, tricode, and franchise

Columns
team_idnot null INTEGER
NHL team id, current or historical.
franchise_id INTEGER
Franchise id; relocated teams share one franchise.
full_name VARCHAR
Full team name.
tricode VARCHAR
Three-letter team code.
league_id INTEGER
League id; 133 is the NHL.
ConstraintsPRIMARY KEY (team_id)
Example

Every team that has played for the Avalanche/Nordiques franchise.

SELECT t.team_id, t.full_name, t.tricode
FROM nhl.main.teams t
JOIN nhl.main.franchises f USING (franchise_id)
WHERE f.common_name = 'Avalanche';
Link
Table functions
all_current_goalie_leaders () 1 example

Current NHL top-ten goalie leaders per category (scan behind current_goalie_leaders)

No arguments
Returns columns
season INTEGER
NHL season id the leaderboard covers
game_type INTEGER
NHL game type: 2 regular season, 3 playoffs
category VARCHAR
Leader category, such as points, goals, or savePctg
rank INTEGER
Position in the NHL's ordered leader list (1 = leader)
player_id INTEGER
Stable NHL player id
player_name VARCHAR
Player full name
first_name VARCHAR
Player first name
last_name VARCHAR
Player last name
sweater_number INTEGER
Jersey number
position VARCHAR
Position code: C, L, R, D, or G
team_abbrev VARCHAR
Three-letter code of the player's team
team_name VARCHAR
Team nickname, such as Oilers
value DOUBLE
Category value: a count, a 0-1 percentage, goals-against average, or TOI seconds per game
Example

Current wins leaders from the backing scan.

SELECT rank, player_name, value
FROM nhl.main.all_current_goalie_leaders()
WHERE category = 'wins'
ORDER BY rank;
Link
all_current_schedule () 1 example

NHL games in the seven days starting today (scan behind current_schedule)

No arguments
Returns columns
game_id BIGINT
NHL game id, such as 2025020001 (season, type, number)
season INTEGER
NHL season id, such as 20252026
game_type INTEGER
NHL game type: 1 preseason, 2 regular season, 3 playoffs
game_date DATE
Local calendar date of the game
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled puck-drop time in UTC
venue VARCHAR
Arena name
venue_timezone VARCHAR
IANA time zone of the arena
neutral_site BOOLEAN
Whether the game is played at a neutral site
game_state VARCHAR
Game state: FUT future, PRE pregame, LIVE/CRIT in progress, FINAL/OFF finished
game_schedule_state VARCHAR
Schedule state: OK, PPD postponed, or CNCL cancelled
away_team_id INTEGER
NHL team id of the visiting team
away_team_abbrev VARCHAR
Three-letter code of the visiting team
away_team_name VARCHAR
Visiting team nickname, such as Blackhawks; join teams for the full name
away_score INTEGER
Visiting team goals; NULL before the game starts
away_shots_on_goal INTEGER
Visiting team shots on goal; only scores() reports it, NULL in schedules
home_team_id INTEGER
NHL team id of the home team
home_team_abbrev VARCHAR
Three-letter code of the home team
home_team_name VARCHAR
Home team nickname, such as Panthers; join teams for the full name
home_score INTEGER
Home team goals; NULL before the game starts
home_shots_on_goal INTEGER
Home team shots on goal; only scores() reports it, NULL in schedules
period INTEGER
Current or final period number (4+ means overtime/shootout)
period_type VARCHAR
Current or final period type: REG, OT, or SO
last_period_type VARCHAR
How a finished game ended: REG, OT, or SO
winning_goalie_id INTEGER
Player id of the winning goalie; schedules only, NULL in scores()
winning_goalie_name VARCHAR
Winning goalie, as an initial and last name
winning_goal_scorer_id INTEGER
Player id of the game-winning goal scorer; schedules only, NULL in scores()
winning_goal_scorer_name VARCHAR
Game-winning goal scorer, as initial and last name
game_center_url VARCHAR
NHL.com GameCenter URL for the game
Example

Upcoming games from the backing scan.

SELECT game_date, away_team_abbrev, home_team_abbrev
FROM nhl.main.all_current_schedule()
ORDER BY start_time_utc;
Link
all_current_scores () 1 example

Today's NHL games with live or final scores (scan behind current_scores)

No arguments
Returns columns
game_id BIGINT
NHL game id, such as 2025020001 (season, type, number)
season INTEGER
NHL season id, such as 20252026
game_type INTEGER
NHL game type: 1 preseason, 2 regular season, 3 playoffs
game_date DATE
Local calendar date of the game
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled puck-drop time in UTC
venue VARCHAR
Arena name
venue_timezone VARCHAR
IANA time zone of the arena
neutral_site BOOLEAN
Whether the game is played at a neutral site
game_state VARCHAR
Game state: FUT future, PRE pregame, LIVE/CRIT in progress, FINAL/OFF finished
game_schedule_state VARCHAR
Schedule state: OK, PPD postponed, or CNCL cancelled
away_team_id INTEGER
NHL team id of the visiting team
away_team_abbrev VARCHAR
Three-letter code of the visiting team
away_team_name VARCHAR
Visiting team nickname, such as Blackhawks; join teams for the full name
away_score INTEGER
Visiting team goals; NULL before the game starts
away_shots_on_goal INTEGER
Visiting team shots on goal; only scores() reports it, NULL in schedules
home_team_id INTEGER
NHL team id of the home team
home_team_abbrev VARCHAR
Three-letter code of the home team
home_team_name VARCHAR
Home team nickname, such as Panthers; join teams for the full name
home_score INTEGER
Home team goals; NULL before the game starts
home_shots_on_goal INTEGER
Home team shots on goal; only scores() reports it, NULL in schedules
period INTEGER
Current or final period number (4+ means overtime/shootout)
period_type VARCHAR
Current or final period type: REG, OT, or SO
last_period_type VARCHAR
How a finished game ended: REG, OT, or SO
winning_goalie_id INTEGER
Player id of the winning goalie; schedules only, NULL in scores()
winning_goalie_name VARCHAR
Winning goalie, as an initial and last name
winning_goal_scorer_id INTEGER
Player id of the game-winning goal scorer; schedules only, NULL in scores()
winning_goal_scorer_name VARCHAR
Game-winning goal scorer, as initial and last name
game_center_url VARCHAR
NHL.com GameCenter URL for the game
Example

Today's games from the backing scan.

SELECT away_team_abbrev, away_score, home_team_abbrev, home_score,
  game_state
FROM nhl.main.all_current_scores()
ORDER BY start_time_utc;
Link
all_current_skater_leaders () 1 example

Current NHL top-ten skater leaders per category (scan behind current_skater_leaders)

No arguments
Returns columns
season INTEGER
NHL season id the leaderboard covers
game_type INTEGER
NHL game type: 2 regular season, 3 playoffs
category VARCHAR
Leader category, such as points, goals, or savePctg
rank INTEGER
Position in the NHL's ordered leader list (1 = leader)
player_id INTEGER
Stable NHL player id
player_name VARCHAR
Player full name
first_name VARCHAR
Player first name
last_name VARCHAR
Player last name
sweater_number INTEGER
Jersey number
position VARCHAR
Position code: C, L, R, D, or G
team_abbrev VARCHAR
Three-letter code of the player's team
team_name VARCHAR
Team nickname, such as Oilers
value DOUBLE
Category value: a count, a 0-1 percentage, goals-against average, or TOI seconds per game
Example

Current points leaders from the backing scan.

SELECT rank, player_name, value
FROM nhl.main.all_current_skater_leaders()
WHERE category = 'points'
ORDER BY rank;
Link
all_current_standings () 1 example

Today's NHL standings (scan behind current_standings)

No arguments
Returns columns
season INTEGER
NHL season id, such as 20252026
game_type INTEGER
NHL game type: 2 regular season
standings_date DATE
Date the standings snapshot describes
team_abbrev VARCHAR
Three-letter team code, such as TOR
team_name VARCHAR
Full team name, such as Toronto Maple Leafs
team_common_name VARCHAR
Team nickname, such as Maple Leafs
team_place_name VARCHAR
Team location, such as Toronto
conference_abbrev VARCHAR
Conference code: E or W
conference_name VARCHAR
Conference name, such as Eastern
division_abbrev VARCHAR
Division code, such as A, M, C, or P
division_name VARCHAR
Division name, such as Atlantic
league_rank INTEGER
League-wide rank (1 = best)
conference_rank INTEGER
Position within the conference
division_rank INTEGER
Position within the division
wildcard_rank INTEGER
Wild-card rank; 0 for division-spot holders
games_played INTEGER
Count of games played so far
wins INTEGER
Wins, including overtime and shootout wins
losses INTEGER
Regulation losses
ot_losses INTEGER
Overtime and shootout losses (one point each)
ties INTEGER
Ties, before 2005-06
points INTEGER
Standings points
point_pct DOUBLE
Points divided by points available (0-1)
regulation_wins INTEGER
Regulation wins, the first tiebreaker
regulation_plus_ot_wins INTEGER
Regulation plus overtime wins
shootout_wins INTEGER
Games won in a shootout
shootout_losses INTEGER
Games lost in a shootout
goals_for INTEGER
Goals scored
goals_against INTEGER
Goals allowed
goal_differential INTEGER
Goals for minus goals against
home_wins INTEGER
Wins at home
home_losses INTEGER
Regulation losses at home
home_ot_losses INTEGER
Overtime and shootout losses at home
home_points INTEGER
Points earned at home
road_wins INTEGER
Wins on the road
road_losses INTEGER
Regulation losses on the road
road_ot_losses INTEGER
Overtime and shootout losses on the road
road_points INTEGER
Points earned on the road
last_10_wins INTEGER
Wins in the last ten games
last_10_losses INTEGER
Regulation losses in the last ten games
last_10_ot_losses INTEGER
Overtime and shootout losses in the last ten games
streak_code VARCHAR
Streak type: W, L, or OT
streak_count INTEGER
Length of the current streak
clinch_indicator VARCHAR
Clinch: p Presidents' Trophy, z conference, y division, x berth, e out
team_logo_url VARCHAR
Team logo SVG URL
Example

Division leaders from the backing scan.

SELECT division_name, team_abbrev, points
FROM nhl.main.all_current_standings()
WHERE division_rank = 1
ORDER BY division_name;
Link
all_franchises () 1 example

Every NHL franchise, active and defunct (scan behind the franchises table)

No arguments
Returns columns
franchise_id INTEGER
NHL franchise id
full_name VARCHAR
Most recent full name of the franchise
common_name VARCHAR
Franchise nickname
place_name VARCHAR
Franchise location
Example

All NHL franchises alphabetically.

SELECT franchise_id, full_name
FROM nhl.main.all_franchises()
ORDER BY full_name;
Link
all_standings_seasons () 1 example

Every NHL season with standings dates and rule flags (scan behind standings_seasons)

No arguments
Returns columns
season INTEGER
NHL season id, such as 19171918
standings_start DATE
First date standings exist for the season
standings_end DATE
Last date standings exist for the season
conferences_in_use BOOLEAN
Whether the season grouped teams into conferences
divisions_in_use BOOLEAN
Whether the season grouped teams into divisions
point_for_ot_loss_in_use BOOLEAN
Whether overtime losses earned a standings point
regulation_wins_in_use BOOLEAN
Whether regulation wins were tracked as a tiebreaker
row_in_use BOOLEAN
Whether regulation-plus-overtime wins were tracked
ties_in_use BOOLEAN
Whether games could end in a tie
wildcard_in_use BOOLEAN
Whether playoff qualification used wild cards
Example

Seasons whose standings used the wild card, newest first.

SELECT season, standings_start, standings_end
FROM nhl.main.all_standings_seasons()
WHERE wildcard_in_use
ORDER BY season DESC;
Link
all_teams () 1 example

Every current and historical NHL team (scan behind the teams table)

No arguments
Returns columns
team_id INTEGER
NHL team id, current or historical
franchise_id INTEGER
Franchise id; relocated teams share one franchise
full_name VARCHAR
Full team name
tricode VARCHAR
Three-letter team code
league_id INTEGER
League id; 133 is the NHL
Example

Every team that has played for the Avalanche/Nordiques franchise.

SELECT t.team_id, t.full_name, t.tricode
FROM nhl.main.all_teams() t
JOIN nhl.main.all_franchises() f USING (franchise_id)
WHERE f.common_name = 'Avalanche';
Link
box_score (game_id BIGINT) 1 example

Skater box-score lines (both teams) for one NHL game

Arguments
game_id BIGINT
10-digit NHL game id: season start year, 2-digit game type, 4-digit number (2025020001 = 2025-26 regular-season game 1). Find ids with scores() or schedule().
Returns columns
game_id BIGINT
NHL game id
team_side VARCHAR
away or home
team_id INTEGER
NHL team id
team_abbrev VARCHAR
Three-letter team code
player_id INTEGER
Stable NHL player id
player_name VARCHAR
Player name as an initial and last name, such as C. McDavid
sweater_number INTEGER
Jersey number
position VARCHAR
Position code: C, L, R, or D
goals INTEGER
Goals
assists INTEGER
Assists
points INTEGER
Points
plus_minus INTEGER
Plus-minus
penalty_minutes INTEGER
Penalty minutes
hits INTEGER
Hits delivered
power_play_goals INTEGER
Power-play goals
shots_on_goal INTEGER
Shots on goal
faceoff_win_pct DOUBLE
Faceoffs won divided by faceoffs taken (0-1); 0 when none taken
toi VARCHAR
Time on ice as MM:SS
toi_seconds INTEGER
Time on ice in seconds
blocked_shots INTEGER
Opponent shots blocked
shifts INTEGER
Shifts taken
giveaways INTEGER
Giveaways
takeaways INTEGER
Takeaways
Example

Skater lines from the 2025-26 opener, by points.

SELECT team_abbrev, player_name, goals, assists, shots_on_goal, toi
FROM nhl.main.box_score(2025020001)
ORDER BY points DESC, toi_seconds DESC;
Link
box_score_goalies (game_id BIGINT) 1 example

Goalie box-score lines (both teams) for one NHL game

Arguments
game_id BIGINT
10-digit NHL game id: season start year, 2-digit game type, 4-digit number (2025020001 = 2025-26 regular-season game 1). Find ids with scores() or schedule().
Returns columns
game_id BIGINT
NHL game id
team_side VARCHAR
away or home
team_id INTEGER
NHL team id
team_abbrev VARCHAR
Three-letter team code
player_id INTEGER
Stable NHL player id
player_name VARCHAR
Player name as an initial and last name, such as C. McDavid
sweater_number INTEGER
Jersey number
starter BOOLEAN
Whether the goalie started the game
decision VARCHAR
Decision: W win, L loss, O overtime/shootout loss; NULL otherwise
shots_against INTEGER
Shots on goal faced
saves INTEGER
Saves
goals_against INTEGER
Goals allowed
save_pct DOUBLE
Saves divided by shots against (0-1); NULL without shots faced
even_strength_goals_against INTEGER
Even-strength goals allowed
power_play_goals_against INTEGER
Goals allowed while the opponent was on a power play
shorthanded_goals_against INTEGER
Goals allowed while the opponent was shorthanded
penalty_minutes INTEGER
Penalty minutes
toi VARCHAR
Time on ice as MM:SS
toi_seconds INTEGER
Time on ice in seconds
Example

Goaltending in the 2025-26 opener.

SELECT team_abbrev, player_name, decision, shots_against, saves, save_pct
FROM nhl.main.box_score_goalies(2025020001)
ORDER BY team_abbrev, toi_seconds DESC;
Link
draft_picks (year INTEGER) 1 example

Every pick of one NHL entry draft (1979 onward)

Arguments
year INTEGER
NHL entry draft year (1979 onward).
Returns columns
draft_year INTEGER
Entry draft year
round INTEGER
Draft round
pick_in_round INTEGER
Pick number within the round
overall_pick INTEGER
Overall pick number
team_id INTEGER
NHL team id of the selecting team
team_abbrev VARCHAR
Three-letter code of the selecting team
team_name VARCHAR
Full name of the selecting team
team_pick_history VARCHAR
Teams that held the pick, in order, separated by hyphens
player_name VARCHAR
Drafted player's full name
first_name VARCHAR
Drafted player's first name
last_name VARCHAR
Drafted player's last name
position_code VARCHAR
Position code: C, L, R, D, or G
country_code VARCHAR
Three-letter country code of the player
height_inches INTEGER
Height in inches at the draft
weight_pounds INTEGER
Weight in pounds at the draft
amateur_league VARCHAR
League the player was drafted from, such as OHL
amateur_club_name VARCHAR
Club the player was drafted from
Example

The first round of the 2025 NHL draft.

SELECT overall_pick, team_abbrev, player_name, position_code,
  amateur_club_name
FROM nhl.main.draft_picks(2025)
WHERE round = 1
ORDER BY overall_pick;
Link
goalie_leaders (category := VARCHAR, game_type := INTEGER, per_category := INTEGER, season := INTEGER) 1 example

NHL goalie leaderboards by category for a season and game type

Named arguments
category := VARCHAR
One leader category; NULL returns every goalie category. · default null
game_type := INTEGER
NHL game type: 2 regular season (default), 3 playoffs, or 1 preseason. · default 2
per_category := INTEGER
Players returned per category (default 10). · default 10
season := INTEGER
8-digit NHL season id such as 20252026 for 2025-26. NULL selects the current season. · default null
Returns columns
season INTEGER
NHL season id the leaderboard covers
game_type INTEGER
NHL game type: 2 regular season, 3 playoffs
category VARCHAR
Leader category, such as points, goals, or savePctg
rank INTEGER
Position in the NHL's ordered leader list (1 = leader)
player_id INTEGER
Stable NHL player id
player_name VARCHAR
Player full name
first_name VARCHAR
Player first name
last_name VARCHAR
Player last name
sweater_number INTEGER
Jersey number
position VARCHAR
Position code: C, L, R, D, or G
team_abbrev VARCHAR
Three-letter code of the player's team
team_name VARCHAR
Team nickname, such as Oilers
value DOUBLE
Category value: a count, a 0-1 percentage, goals-against average, or TOI seconds per game
Example

The 2025-26 regular-season wins leaders.

SELECT rank, player_name, team_abbrev, value AS wins
FROM nhl.main.goalie_leaders(season := 20252026, category := 'wins')
ORDER BY rank;
Link
goalie_stats (game_type := INTEGER, season := INTEGER) 1 example

Season summary for every NHL goalie (wins, save %, GAA, shutouts)

Named arguments
game_type := INTEGER
NHL game type: 2 regular season (default), 3 playoffs, or 1 preseason. · default 2
season := INTEGER
8-digit NHL season id such as 20252026 for 2025-26. NULL selects the current season. · default null
Returns columns
season INTEGER
NHL season id, such as 20252026
game_type INTEGER
NHL game type: 1 preseason, 2 regular season, 3 playoffs
player_id INTEGER
Stable NHL player id
player_name VARCHAR
Goalie full name
last_name VARCHAR
Goalie last name
team_abbrevs VARCHAR
Team codes the goalie played for this season, comma-separated
shoots_catches VARCHAR
Catching hand: L or R
games_played INTEGER
Games played
games_started INTEGER
Games started
wins INTEGER
Wins credited
losses INTEGER
Regulation losses credited
ot_losses INTEGER
Overtime and shootout losses credited
ties INTEGER
Ties credited (before 2005-06); NULL otherwise
shots_against INTEGER
Shots on goal faced
saves INTEGER
Saves
goals_against INTEGER
Goals allowed
save_pct DOUBLE
Saves divided by shots against (0-1)
goals_against_average DOUBLE
Goals allowed per 60 minutes played
shutouts INTEGER
Shutouts
time_on_ice_seconds INTEGER
Total time on ice, in seconds
goals INTEGER
Goals scored by the goalie
assists INTEGER
Assists credited to the goalie
points INTEGER
Points credited to the goalie
penalty_minutes INTEGER
Penalty minutes
Example

2025-26 save-percentage leaders with at least 40 games.

SELECT player_name, team_abbrevs, games_played, save_pct,
  goals_against_average
FROM nhl.main.goalie_stats(season := 20252026)
WHERE games_played >= 40
ORDER BY save_pct DESC
LIMIT 10;
Link
play_by_play (game_id BIGINT) 3 examples

Every event of one NHL game with x/y rink coordinates and involved players

Arguments
game_id BIGINT
10-digit NHL game id: season start year, 2-digit game type, 4-digit number (2025020001 = 2025-26 regular-season game 1). Find ids with scores() or schedule().
Returns columns
game_id BIGINT
NHL game id
event_id INTEGER
Event id, unique within the game
sort_order INTEGER
Chronological ordering key for events
period INTEGER
Period number; 4 and above are overtime (5 is a regular-season shootout)
period_type VARCHAR
Period type: REG, OT, or SO
time_in_period VARCHAR
Elapsed time in the period as MM:SS
time_remaining VARCHAR
Time remaining in the period as MM:SS
game_seconds INTEGER
Seconds since the opening faceoff, assuming 20-minute periods
situation_code VARCHAR
Four digits: away goalie in net, away skaters, home skaters, home goalie in net (1551 = 5v5)
home_team_defending_side VARCHAR
Side of the rink the home team defends: left or right
type_code INTEGER
NHL numeric event type code
event_type VARCHAR
Event type, such as goal, shot-on-goal, missed-shot, blocked-shot, hit, faceoff, or penalty
event_owner_team_id INTEGER
NHL team id credited with the event
event_owner_team_abbrev VARCHAR
Three-letter code of the team credited with the event
x_coord INTEGER
Rink x coordinate in feet from centre ice (-100 to 100)
y_coord INTEGER
Rink y coordinate in feet from centre ice (-42.5 to 42.5)
zone_code VARCHAR
Zone relative to the event owner: O offensive, D defensive, N neutral
shot_type VARCHAR
Shot type, such as wrist, snap, slap, backhand, tip-in, or deflected
reason VARCHAR
Reason for a miss or stoppage, such as wide-of-net or icing
secondary_reason VARCHAR
Secondary stoppage reason, such as tv-timeout
penalty_severity VARCHAR
Penalty class: MIN minor, MAJ major, MIS misconduct, BEN bench
penalty_type VARCHAR
Penalty infraction, such as tripping or slashing
penalty_minutes INTEGER
Penalty duration in minutes
primary_player_id INTEGER
Main actor: scorer, shooter, faceoff winner, hitter, penalized player, or puck carrier
primary_player_name VARCHAR
Full name of the primary player
secondary_player_id INTEGER
Counterpart: primary assist, goalie or blocker, faceoff loser, player hit, or penalty drawer
secondary_player_name VARCHAR
Full name of the secondary player
assist1_player_id INTEGER
Primary assist on a goal
assist2_player_id INTEGER
Secondary assist on a goal
goalie_in_net_id INTEGER
Defending goalie on a shot or goal; NULL for an empty net
away_score INTEGER
Away team score after a goal
home_score INTEGER
Home team score after a goal
away_shots_on_goal INTEGER
Away team shots on goal after a shot
home_shots_on_goal INTEGER
Home team shots on goal after a shot
Examples (3)

Every goal in the 2025-26 opener with scorer and location.

SELECT period, time_in_period, event_owner_team_abbrev, primary_player_name,
  shot_type, x_coord, y_coord, away_score, home_score
FROM nhl.main.play_by_play(2025020001)
WHERE event_type = 'goal'
ORDER BY sort_order;

Shot attempts by team and type of outcome.

SELECT event_owner_team_abbrev, event_type, count(*) AS events
FROM nhl.main.play_by_play(2025020001)
WHERE event_type IN ('goal', 'shot-on-goal', 'missed-shot', 'blocked-shot')
GROUP BY ALL
ORDER BY ALL;

Goals for and against while each player was on the ice in the 2025-26 opener: play_by_play goals joined to the shift_chart interval that contains each goal's game_seconds.

WITH goals AS (SELECT game_seconds, event_owner_team_abbrev AS scoring_team FROM nhl.main.play_by_play(2025020001) WHERE event_type = 'goal') SELECT s.team_abbrev, s.player_name, count(*) FILTER (WHERE g.scoring_team = s.team_abbrev) AS on_ice_goals_for, count(*) FILTER (WHERE g.scoring_team <> s.team_abbrev) AS on_ice_goals_against
FROM goals g
JOIN nhl.main.shift_chart(2025020001) s ON g.game_seconds > s.start_seconds AND g.game_seconds <= s.end_seconds
GROUP BY ALL
ORDER BY on_ice_goals_for DESC, on_ice_goals_against, s.player_name;
Link
player (player_id INTEGER) 1 example

One NHL player's profile, draft details, and career NHL totals

Arguments
player_id INTEGER
Stable 7-digit NHL player id, such as 8478402 (find one with player_search()).
Returns columns
player_id INTEGER
Stable NHL player id
player_name VARCHAR
Player full name
first_name VARCHAR
Player first name
last_name VARCHAR
Player last name
is_active BOOLEAN
Whether the player is currently active
current_team_id INTEGER
NHL team id of the current team; NULL for inactive players
current_team_abbrev VARCHAR
Three-letter code of the current team
current_team_name VARCHAR
Full name of the current team
sweater_number INTEGER
Current jersey number
position VARCHAR
Position code: C, L, R, D, or G
shoots_catches VARCHAR
Handedness: L or R
height_inches INTEGER
Height in inches
weight_pounds INTEGER
Weight in pounds
height_cm INTEGER
Height in centimetres
weight_kg INTEGER
Weight in kilograms
birth_date DATE
Date of birth
birth_city VARCHAR
City of birth
birth_state_province VARCHAR
State or province of birth, when recorded
birth_country VARCHAR
Three-letter country code of birth
headshot_url VARCHAR
URL of the player's NHL headshot image
draft_year INTEGER
NHL entry draft year; NULL if undrafted
draft_team_abbrev VARCHAR
Three-letter code of the drafting team
draft_round INTEGER
Draft round
draft_pick_in_round INTEGER
Pick number within the draft round
draft_overall_pick INTEGER
Overall draft pick number
in_hockey_hall_of_fame BOOLEAN
Whether the player is in the Hockey Hall of Fame
in_top_100_all_time BOOLEAN
Whether the NHL lists the player among its top 100 ever
career_games_played INTEGER
Career NHL regular-season games played
career_goals INTEGER
Career NHL regular-season goals (skaters and goalies)
career_assists INTEGER
Career NHL regular-season assists
career_points INTEGER
Career NHL regular-season points; NULL for goalies
career_wins INTEGER
Career NHL regular-season wins; goalies only
career_shutouts INTEGER
Career NHL regular-season shutouts; goalies only
career_save_pct DOUBLE
Career NHL regular-season save percentage (0-1); goalies only
career_goals_against_average DOUBLE
Career NHL regular-season goals-against average
career_playoff_games_played INTEGER
Career NHL playoff games played
career_playoff_points INTEGER
Career NHL playoff points; NULL for goalies
Example

Connor McDavid's profile and NHL career totals.

SELECT player_name, current_team_abbrev, position, birth_date, draft_year,
  draft_overall_pick, career_games_played, career_points
FROM nhl.main.player(8478402);
Link
player_career (player_id INTEGER) 1 example

One player's season-by-season lines in every league, regular season and playoffs

Arguments
player_id INTEGER
Stable 7-digit NHL player id, such as 8478402 (find one with player_search()).
Returns columns
player_id INTEGER
Stable NHL player id
season INTEGER
Season id, such as 20252026
game_type INTEGER
Game type: 2 regular season, 3 playoffs
league_abbrev VARCHAR
League of the line, such as NHL, AHL, OHL, or OG (Olympics)
team_name VARCHAR
Team name for the line
sequence INTEGER
Order of the line within the season, for players with several teams
games_played INTEGER
Games played
goals INTEGER
Goals
assists INTEGER
Assists
points INTEGER
Points; NULL for goalies
plus_minus INTEGER
Plus-minus; skaters only
penalty_minutes INTEGER
Penalty minutes
power_play_goals INTEGER
Power-play goals; skaters only
power_play_points INTEGER
Power-play points; skaters only
shorthanded_goals INTEGER
Shorthanded goals; skaters only
shorthanded_points INTEGER
Shorthanded points; skaters only
game_winning_goals INTEGER
Game-winning goals; skaters only
overtime_goals INTEGER
Overtime goals; skaters only
shots INTEGER
Shots on goal; skaters only
shooting_pct DOUBLE
Goals divided by shots (0-1); NHL skater lines only
faceoff_win_pct DOUBLE
Faceoff win percentage (0-1); NHL skater lines only
avg_toi VARCHAR
Average time on ice per game as MM:SS; NHL skater lines only
avg_toi_seconds INTEGER
Average time on ice per game in seconds
games_started INTEGER
Games started; goalies only
shots_against INTEGER
Shots on goal faced; goalies only
goals_against INTEGER
Goals allowed; goalies only
save_pct DOUBLE
Save percentage (0-1); goalies only
shutouts INTEGER
Shutouts; goalies only
wins INTEGER
Wins; goalies only
losses INTEGER
Regulation losses; goalies only
ot_losses INTEGER
Overtime and shootout losses; goalies only
ties INTEGER
Ties; goalies only, before 2005-06
goals_against_average DOUBLE
Goals allowed per 60 minutes; goalies only
time_on_ice VARCHAR
Total time on ice as MM:SS; goalies only
time_on_ice_seconds INTEGER
Total time on ice in seconds; goalies only
Example

Connor McDavid's NHL regular-season lines by season.

SELECT season, team_name, games_played, goals, assists, points
FROM nhl.main.player_career(8478402)
WHERE league_abbrev = 'NHL' AND game_type = 2
ORDER BY season;
Link
player_game_log (player_id INTEGER, game_type := INTEGER, season := INTEGER) 1 example

One NHL player's game-by-game log for a season and game type

Positional arguments
player_id INTEGER
Stable 7-digit NHL player id, such as 8478402 (find one with player_search()).
Named arguments
game_type := INTEGER
NHL game type: 2 regular season (default), 3 playoffs, or 1 preseason. · default 2
season := INTEGER
8-digit NHL season id such as 20252026 for 2025-26. NULL selects the current season. · default null
Returns columns
player_id INTEGER
Stable NHL player id
season INTEGER
Season id, such as 20252026
game_type INTEGER
Game type: 1 preseason, 2 regular season, 3 playoffs
game_id BIGINT
NHL game id; joins to box_score() and play_by_play()
game_date DATE
Local date of the game
team_abbrev VARCHAR
The player's team code for the game
opponent_abbrev VARCHAR
Opponent team code
home_road_flag VARCHAR
H for a home game, R for a road game
goals INTEGER
Goals
assists INTEGER
Assists
points INTEGER
Points; NULL for goalies
plus_minus INTEGER
Plus-minus; skaters only
penalty_minutes INTEGER
Penalty minutes
power_play_goals INTEGER
Power-play goals; skaters only
power_play_points INTEGER
Power-play points; skaters only
shorthanded_goals INTEGER
Shorthanded goals; skaters only
shorthanded_points INTEGER
Shorthanded points; skaters only
game_winning_goals INTEGER
Game-winning goals; skaters only
overtime_goals INTEGER
Overtime goals; skaters only
shots INTEGER
Shots on goal; skaters only
shifts INTEGER
Shifts taken; skaters only
toi VARCHAR
Time on ice as MM:SS
toi_seconds INTEGER
Time on ice in seconds
games_started INTEGER
Games started; goalies only
shots_against INTEGER
Shots on goal faced; goalies only
goals_against INTEGER
Goals allowed; goalies only
save_pct DOUBLE
Save percentage (0-1); goalies only
shutouts INTEGER
Shutouts; goalies only
decision VARCHAR
Goalie decision: W win, L loss, O overtime/shootout loss; NULL otherwise
Example

Connor McDavid's multi-point games in 2025-26.

SELECT game_date, opponent_abbrev, goals, assists, points, toi
FROM nhl.main.player_game_log(8478402, season := 20252026)
WHERE points >= 2
ORDER BY game_date;
Link
playoff_bracket (year INTEGER) 1 example

Stanley Cup playoff series for one year with seeds, series wins, and winners

Arguments
year INTEGER
Calendar year.
Returns columns
year INTEGER
Playoff year (the calendar year the Stanley Cup Final is played)
series_letter VARCHAR
Series letter, A through O, in bracket order
series_abbrev VARCHAR
Round code: R1, R2, ECF, WCF, or SCF
series_title VARCHAR
Round title, such as 1st Round or Stanley Cup Final
playoff_round INTEGER
Round number from 1 (first round) to 4 (final)
top_seed_team_id INTEGER
NHL team id of the higher seed
top_seed_team_abbrev VARCHAR
Three-letter code of the higher seed
top_seed_team_name VARCHAR
Full name of the higher seed
top_seed_rank_abbrev VARCHAR
Seed label of the higher seed, such as D1 or WC1
top_seed_wins INTEGER
Games won by the higher seed in the series
bottom_seed_team_id INTEGER
NHL team id of the lower seed
bottom_seed_team_abbrev VARCHAR
Three-letter code of the lower seed
bottom_seed_team_name VARCHAR
Full name of the lower seed
bottom_seed_rank_abbrev VARCHAR
Seed label of the lower seed
bottom_seed_wins INTEGER
Games won by the lower seed in the series
winning_team_id INTEGER
NHL team id of the series winner; NULL while undecided
losing_team_id INTEGER
NHL team id of the series loser; NULL while undecided
Example

The 2025 playoff bracket by round.

SELECT playoff_round, series_letter, top_seed_team_abbrev, top_seed_wins,
  bottom_seed_team_abbrev, bottom_seed_wins
FROM nhl.main.playoff_bracket(2025)
ORDER BY series_letter;
Link
roster (team VARCHAR, season := INTEGER) 2 examples

One NHL team's roster for a season with positions and biographical detail

Positional arguments
team VARCHAR
Three-letter NHL team code, such as TOR.
Named arguments
season := INTEGER
8-digit NHL season id such as 20252026 for 2025-26. NULL selects the current season. · default null
Returns columns
season INTEGER
NHL season id of the roster, such as 20252026
team_abbrev VARCHAR
Three-letter team code
player_id INTEGER
Stable NHL player id
player_name VARCHAR
Player full name
first_name VARCHAR
Player first name
last_name VARCHAR
Player last name
sweater_number INTEGER
Jersey number
position_code VARCHAR
Position code: C, L, R, D, or G
position_group VARCHAR
Roster group: forwards, defensemen, or goalies
shoots_catches VARCHAR
Handedness: L or R
height_inches INTEGER
Height in inches
weight_pounds INTEGER
Weight in pounds
height_cm INTEGER
Height in centimetres
weight_kg INTEGER
Weight in kilograms
birth_date DATE
Date of birth
birth_city VARCHAR
City of birth
birth_state_province VARCHAR
State or province of birth, when recorded
birth_country VARCHAR
Three-letter country code of birth
headshot_url VARCHAR
URL of the player's NHL headshot image
Examples (2)

Toronto's 2025-26 defensemen.

SELECT sweater_number, player_name, shoots_catches, height_inches,
  birth_country
FROM nhl.main.roster('TOR', season := 20252026)
WHERE position_group = 'defensemen'
ORDER BY sweater_number;

Toronto's 2025-26 roster skaters with their season scoring: roster joined to skater_stats on player_id (a traded player's totals cover every club he played for).

SELECT r.sweater_number, r.player_name, r.position_code, s.games_played,
  s.goals, s.assists, s.points
FROM nhl.main.roster('TOR', season := 20252026) r
JOIN nhl.main.skater_stats(season := 20252026) s USING (player_id)
WHERE r.position_group <> 'goalies'
ORDER BY s.points DESC, r.player_name;
Link
schedule (date := DATE) 1 example

NHL games in the seven days starting on a date, one row per game

Named arguments
date := DATE
Day to report, for example 2025-10-07. NULL selects today (the NHL's own 'now'). · default null
Returns columns
game_id BIGINT
NHL game id, such as 2025020001 (season, type, number)
season INTEGER
NHL season id, such as 20252026
game_type INTEGER
NHL game type: 1 preseason, 2 regular season, 3 playoffs
game_date DATE
Local calendar date of the game
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled puck-drop time in UTC
venue VARCHAR
Arena name
venue_timezone VARCHAR
IANA time zone of the arena
neutral_site BOOLEAN
Whether the game is played at a neutral site
game_state VARCHAR
Game state: FUT future, PRE pregame, LIVE/CRIT in progress, FINAL/OFF finished
game_schedule_state VARCHAR
Schedule state: OK, PPD postponed, or CNCL cancelled
away_team_id INTEGER
NHL team id of the visiting team
away_team_abbrev VARCHAR
Three-letter code of the visiting team
away_team_name VARCHAR
Visiting team nickname, such as Blackhawks; join teams for the full name
away_score INTEGER
Visiting team goals; NULL before the game starts
away_shots_on_goal INTEGER
Visiting team shots on goal; only scores() reports it, NULL in schedules
home_team_id INTEGER
NHL team id of the home team
home_team_abbrev VARCHAR
Three-letter code of the home team
home_team_name VARCHAR
Home team nickname, such as Panthers; join teams for the full name
home_score INTEGER
Home team goals; NULL before the game starts
home_shots_on_goal INTEGER
Home team shots on goal; only scores() reports it, NULL in schedules
period INTEGER
Current or final period number (4+ means overtime/shootout)
period_type VARCHAR
Current or final period type: REG, OT, or SO
last_period_type VARCHAR
How a finished game ended: REG, OT, or SO
winning_goalie_id INTEGER
Player id of the winning goalie; schedules only, NULL in scores()
winning_goalie_name VARCHAR
Winning goalie, as an initial and last name
winning_goal_scorer_id INTEGER
Player id of the game-winning goal scorer; schedules only, NULL in scores()
winning_goal_scorer_name VARCHAR
Game-winning goal scorer, as initial and last name
game_center_url VARCHAR
NHL.com GameCenter URL for the game
Example

The first week of the 2025-26 regular season.

SELECT game_date, away_team_abbrev, home_team_abbrev, away_score, home_score
FROM nhl.main.schedule(date := DATE '2025-10-07')
ORDER BY start_time_utc;
Link
scores (date := DATE) 1 example

NHL games on one date with live or final scores and shots on goal

Named arguments
date := DATE
Day to report, for example 2025-10-07. NULL selects today (the NHL's own 'now'). · default null
Returns columns
game_id BIGINT
NHL game id, such as 2025020001 (season, type, number)
season INTEGER
NHL season id, such as 20252026
game_type INTEGER
NHL game type: 1 preseason, 2 regular season, 3 playoffs
game_date DATE
Local calendar date of the game
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled puck-drop time in UTC
venue VARCHAR
Arena name
venue_timezone VARCHAR
IANA time zone of the arena
neutral_site BOOLEAN
Whether the game is played at a neutral site
game_state VARCHAR
Game state: FUT future, PRE pregame, LIVE/CRIT in progress, FINAL/OFF finished
game_schedule_state VARCHAR
Schedule state: OK, PPD postponed, or CNCL cancelled
away_team_id INTEGER
NHL team id of the visiting team
away_team_abbrev VARCHAR
Three-letter code of the visiting team
away_team_name VARCHAR
Visiting team nickname, such as Blackhawks; join teams for the full name
away_score INTEGER
Visiting team goals; NULL before the game starts
away_shots_on_goal INTEGER
Visiting team shots on goal; only scores() reports it, NULL in schedules
home_team_id INTEGER
NHL team id of the home team
home_team_abbrev VARCHAR
Three-letter code of the home team
home_team_name VARCHAR
Home team nickname, such as Panthers; join teams for the full name
home_score INTEGER
Home team goals; NULL before the game starts
home_shots_on_goal INTEGER
Home team shots on goal; only scores() reports it, NULL in schedules
period INTEGER
Current or final period number (4+ means overtime/shootout)
period_type VARCHAR
Current or final period type: REG, OT, or SO
last_period_type VARCHAR
How a finished game ended: REG, OT, or SO
winning_goalie_id INTEGER
Player id of the winning goalie; schedules only, NULL in scores()
winning_goalie_name VARCHAR
Winning goalie, as an initial and last name
winning_goal_scorer_id INTEGER
Player id of the game-winning goal scorer; schedules only, NULL in scores()
winning_goal_scorer_name VARCHAR
Game-winning goal scorer, as initial and last name
game_center_url VARCHAR
NHL.com GameCenter URL for the game
Example

Opening night of 2025-26 with shots on goal.

SELECT away_team_abbrev, away_score, home_team_abbrev, home_score,
  last_period_type
FROM nhl.main.scores(date := DATE '2025-10-07')
ORDER BY start_time_utc;
Link
shift_chart (game_id BIGINT) 1 example

Every player shift of one NHL game with start, end, and duration

Arguments
game_id BIGINT
10-digit NHL game id: season start year, 2-digit game type, 4-digit number (2025020001 = 2025-26 regular-season game 1). Find ids with scores() or schedule().
Returns columns
game_id BIGINT
NHL game id
shift_id BIGINT
Shift record id
player_id INTEGER
Stable NHL player id
player_name VARCHAR
Player full name
team_id INTEGER
NHL team id
team_abbrev VARCHAR
Three-letter team code
period INTEGER
Period number
shift_number INTEGER
The player's shift number in the game
start_time VARCHAR
Shift start as elapsed MM:SS in the period
end_time VARCHAR
Shift end as elapsed MM:SS in the period
duration VARCHAR
Shift length as MM:SS
start_seconds INTEGER
Shift start in seconds since the opening faceoff
end_seconds INTEGER
Shift end in seconds since the opening faceoff
duration_seconds INTEGER
Shift length in seconds
Example

Total ice time and shifts per player in the 2025-26 opener.

SELECT team_abbrev, player_name, count(*) AS shifts,
  sum(duration_seconds) AS seconds
FROM nhl.main.shift_chart(2025020001)
GROUP BY ALL
ORDER BY seconds DESC;
Link
skater_leaders (category := VARCHAR, game_type := INTEGER, per_category := INTEGER, season := INTEGER) 1 example

NHL skater leaderboards by category for a season and game type

Named arguments
category := VARCHAR
One leader category; NULL returns every skater category. · default null
game_type := INTEGER
NHL game type: 2 regular season (default), 3 playoffs, or 1 preseason. · default 2
per_category := INTEGER
Players returned per category (default 10). · default 10
season := INTEGER
8-digit NHL season id such as 20252026 for 2025-26. NULL selects the current season. · default null
Returns columns
season INTEGER
NHL season id the leaderboard covers
game_type INTEGER
NHL game type: 2 regular season, 3 playoffs
category VARCHAR
Leader category, such as points, goals, or savePctg
rank INTEGER
Position in the NHL's ordered leader list (1 = leader)
player_id INTEGER
Stable NHL player id
player_name VARCHAR
Player full name
first_name VARCHAR
Player first name
last_name VARCHAR
Player last name
sweater_number INTEGER
Jersey number
position VARCHAR
Position code: C, L, R, D, or G
team_abbrev VARCHAR
Three-letter code of the player's team
team_name VARCHAR
Team nickname, such as Oilers
value DOUBLE
Category value: a count, a 0-1 percentage, goals-against average, or TOI seconds per game
Example

The 2025-26 top-ten point scorers.

SELECT rank, player_name, team_abbrev, value AS points
FROM nhl.main.skater_leaders(season := 20252026, category := 'points')
ORDER BY rank;
Link
skater_realtime_stats (game_type := INTEGER, season := INTEGER) 1 example

Season hits, blocks, giveaways, takeaways, and shot attempts for every skater

Named arguments
game_type := INTEGER
NHL game type: 2 regular season (default), 3 playoffs, or 1 preseason. · default 2
season := INTEGER
8-digit NHL season id such as 20252026 for 2025-26. NULL selects the current season. · default null
Returns columns
season INTEGER
NHL season id, such as 20252026
game_type INTEGER
NHL game type: 1 preseason, 2 regular season, 3 playoffs
player_id INTEGER
Stable NHL player id
player_name VARCHAR
Player full name
last_name VARCHAR
Player last name
team_abbrevs VARCHAR
Team codes the player skated for this season, comma-separated
position_code VARCHAR
Position code: C, L, R, or D
shoots_catches VARCHAR
Handedness: L or R
games_played INTEGER
Games played
hits INTEGER
Body checks delivered
hits_per_60 DOUBLE
Hits per 60 minutes of ice time
blocked_shots INTEGER
Opponent shots blocked
blocked_shots_per_60 DOUBLE
Blocked shots per 60 minutes of ice time
giveaways INTEGER
Giveaways
giveaways_per_60 DOUBLE
Giveaways per 60 minutes of ice time
takeaways INTEGER
Takeaways
takeaways_per_60 DOUBLE
Takeaways per 60 minutes of ice time
total_shot_attempts INTEGER
All shot attempts: on goal, missed, and blocked
missed_shots INTEGER
Shot attempts that missed the net
missed_shot_wide_of_net INTEGER
Missed shots wide of the net
missed_shot_over_net INTEGER
Missed shots over the net
missed_shot_goalpost INTEGER
Missed shots that hit a goalpost
missed_shot_crossbar INTEGER
Missed shots that hit the crossbar
missed_shot_short INTEGER
Missed shots that fell short
missed_shot_failed_bank_attempt INTEGER
Missed bank-shot attempts
shot_attempts_blocked INTEGER
The player's own shot attempts that were blocked
empty_net_goals INTEGER
Empty-net goals
empty_net_assists INTEGER
Empty-net assists
empty_net_points INTEGER
Empty-net points
first_goals INTEGER
Games in which the player scored the first goal
overtime_goals INTEGER
Overtime goals
time_on_ice_per_game_seconds DOUBLE
Average time on ice per game, in seconds
Example

The most physical skaters of 2025-26.

SELECT player_name, team_abbrevs, hits, blocked_shots
FROM nhl.main.skater_realtime_stats(season := 20252026)
ORDER BY hits DESC
LIMIT 10;
Link
skater_stats (game_type := INTEGER, season := INTEGER) 3 examples

Season scoring summary for every NHL skater (goals, assists, points, TOI)

Named arguments
game_type := INTEGER
NHL game type: 2 regular season (default), 3 playoffs, or 1 preseason. · default 2
season := INTEGER
8-digit NHL season id such as 20252026 for 2025-26. NULL selects the current season. · default null
Returns columns
season INTEGER
NHL season id, such as 20252026
game_type INTEGER
NHL game type: 1 preseason, 2 regular season, 3 playoffs
player_id INTEGER
Stable NHL player id
player_name VARCHAR
Player full name
last_name VARCHAR
Player last name
team_abbrevs VARCHAR
Team codes the player skated for this season, in order, comma-separated
position_code VARCHAR
Position code: C, L, R, or D
shoots_catches VARCHAR
Handedness: L or R
games_played INTEGER
Games played
goals INTEGER
Goals
assists INTEGER
Assists
points INTEGER
Points (goals plus assists)
plus_minus INTEGER
Plus-minus
penalty_minutes INTEGER
Penalty minutes
points_per_game DOUBLE
Points per game played
even_strength_goals INTEGER
Even-strength goals
even_strength_points INTEGER
Even-strength points
power_play_goals INTEGER
Power-play goals
power_play_points INTEGER
Power-play points
shorthanded_goals INTEGER
Shorthanded goals
shorthanded_points INTEGER
Shorthanded points
game_winning_goals INTEGER
Game-winning goals
overtime_goals INTEGER
Overtime goals
shots INTEGER
Shots on goal
shooting_pct DOUBLE
Goals divided by shots on goal (0-1)
faceoff_win_pct DOUBLE
Faceoffs won divided by faceoffs taken (0-1); NULL without faceoffs
time_on_ice_per_game_seconds DOUBLE
Average time on ice per game, in seconds
Examples (3)

The 2025-26 regular-season scoring leaders.

SELECT player_name, team_abbrevs, games_played, goals, assists, points
FROM nhl.main.skater_stats(season := 20252026)
ORDER BY points DESC
LIMIT 10;

2025-26 playoff goal leaders.

SELECT player_name, team_abbrevs, goals
FROM nhl.main.skater_stats(season := 20252026, game_type := 3)
ORDER BY goals DESC
LIMIT 10;

2025-26 skaters with at least 50 points and 150 hits: skater_stats scoring joined to skater_realtime_stats physical play on player_id.

SELECT s.player_name, s.team_abbrevs, s.points, rt.hits, rt.blocked_shots
FROM nhl.main.skater_stats(season := 20252026) s
JOIN nhl.main.skater_realtime_stats(season := 20252026) rt USING (player_id)
WHERE s.points >= 50 AND rt.hits >= 150
ORDER BY rt.hits DESC, s.player_name;
Link
standings (date := DATE) 1 example

NHL standings on any date back to 1917-18, one row per team

Named arguments
date := DATE
Day to report, for example 2025-10-07. NULL selects today (the NHL's own 'now'). · default null
Returns columns
season INTEGER
NHL season id, such as 20252026
game_type INTEGER
NHL game type: 2 regular season
standings_date DATE
Date the standings snapshot describes
team_abbrev VARCHAR
Three-letter team code, such as TOR
team_name VARCHAR
Full team name, such as Toronto Maple Leafs
team_common_name VARCHAR
Team nickname, such as Maple Leafs
team_place_name VARCHAR
Team location, such as Toronto
conference_abbrev VARCHAR
Conference code: E or W
conference_name VARCHAR
Conference name, such as Eastern
division_abbrev VARCHAR
Division code, such as A, M, C, or P
division_name VARCHAR
Division name, such as Atlantic
league_rank INTEGER
League-wide rank (1 = best)
conference_rank INTEGER
Position within the conference
division_rank INTEGER
Position within the division
wildcard_rank INTEGER
Wild-card rank; 0 for division-spot holders
games_played INTEGER
Count of games played so far
wins INTEGER
Wins, including overtime and shootout wins
losses INTEGER
Regulation losses
ot_losses INTEGER
Overtime and shootout losses (one point each)
ties INTEGER
Ties, before 2005-06
points INTEGER
Standings points
point_pct DOUBLE
Points divided by points available (0-1)
regulation_wins INTEGER
Regulation wins, the first tiebreaker
regulation_plus_ot_wins INTEGER
Regulation plus overtime wins
shootout_wins INTEGER
Games won in a shootout
shootout_losses INTEGER
Games lost in a shootout
goals_for INTEGER
Goals scored
goals_against INTEGER
Goals allowed
goal_differential INTEGER
Goals for minus goals against
home_wins INTEGER
Wins at home
home_losses INTEGER
Regulation losses at home
home_ot_losses INTEGER
Overtime and shootout losses at home
home_points INTEGER
Points earned at home
road_wins INTEGER
Wins on the road
road_losses INTEGER
Regulation losses on the road
road_ot_losses INTEGER
Overtime and shootout losses on the road
road_points INTEGER
Points earned on the road
last_10_wins INTEGER
Wins in the last ten games
last_10_losses INTEGER
Regulation losses in the last ten games
last_10_ot_losses INTEGER
Overtime and shootout losses in the last ten games
streak_code VARCHAR
Streak type: W, L, or OT
streak_count INTEGER
Length of the current streak
clinch_indicator VARCHAR
Clinch: p Presidents' Trophy, z conference, y division, x berth, e out
team_logo_url VARCHAR
Team logo SVG URL
Example

Final 2023-24 Atlantic Division table.

SELECT division_rank, team_name, wins, losses, ot_losses, points
FROM nhl.main.standings(date := DATE '2024-04-18')
WHERE division_name = 'Atlantic'
ORDER BY division_rank;
Link
team_schedule (team VARCHAR, season := INTEGER) 1 example

One NHL team's full season schedule and results, including preseason and playoffs

Positional arguments
team VARCHAR
Three-letter NHL team code, such as TOR.
Named arguments
season := INTEGER
8-digit NHL season id such as 20252026 for 2025-26. NULL selects the current season. · default null
Returns columns
game_id BIGINT
NHL game id, such as 2025020001 (season, type, number)
season INTEGER
NHL season id, such as 20252026
game_type INTEGER
NHL game type: 1 preseason, 2 regular season, 3 playoffs
game_date DATE
Local calendar date of the game
start_time_utc TIMESTAMP WITH TIME ZONE
Scheduled puck-drop time in UTC
venue VARCHAR
Arena name
venue_timezone VARCHAR
IANA time zone of the arena
neutral_site BOOLEAN
Whether the game is played at a neutral site
game_state VARCHAR
Game state: FUT future, PRE pregame, LIVE/CRIT in progress, FINAL/OFF finished
game_schedule_state VARCHAR
Schedule state: OK, PPD postponed, or CNCL cancelled
away_team_id INTEGER
NHL team id of the visiting team
away_team_abbrev VARCHAR
Three-letter code of the visiting team
away_team_name VARCHAR
Visiting team nickname, such as Blackhawks; join teams for the full name
away_score INTEGER
Visiting team goals; NULL before the game starts
away_shots_on_goal INTEGER
Visiting team shots on goal; only scores() reports it, NULL in schedules
home_team_id INTEGER
NHL team id of the home team
home_team_abbrev VARCHAR
Three-letter code of the home team
home_team_name VARCHAR
Home team nickname, such as Panthers; join teams for the full name
home_score INTEGER
Home team goals; NULL before the game starts
home_shots_on_goal INTEGER
Home team shots on goal; only scores() reports it, NULL in schedules
period INTEGER
Current or final period number (4+ means overtime/shootout)
period_type VARCHAR
Current or final period type: REG, OT, or SO
last_period_type VARCHAR
How a finished game ended: REG, OT, or SO
winning_goalie_id INTEGER
Player id of the winning goalie; schedules only, NULL in scores()
winning_goalie_name VARCHAR
Winning goalie, as an initial and last name
winning_goal_scorer_id INTEGER
Player id of the game-winning goal scorer; schedules only, NULL in scores()
winning_goal_scorer_name VARCHAR
Game-winning goal scorer, as initial and last name
game_center_url VARCHAR
NHL.com GameCenter URL for the game
Example

Toronto's 2025-26 regular-season home results.

SELECT game_date, away_team_abbrev, away_score, home_score
FROM nhl.main.team_schedule('TOR', season := 20252026)
WHERE game_type = 2 AND home_team_abbrev = 'TOR'
ORDER BY game_date;
Link
team_stats (game_type := INTEGER, season := INTEGER) 1 example

Season team summary: record, goals, shots, special teams, faceoffs

Named arguments
game_type := INTEGER
NHL game type: 2 regular season (default), 3 playoffs, or 1 preseason. · default 2
season := INTEGER
8-digit NHL season id such as 20252026 for 2025-26. NULL selects the current season. · default null
Returns columns
season INTEGER
NHL season id, such as 20252026
game_type INTEGER
NHL game type: 1 preseason, 2 regular season, 3 playoffs
team_id INTEGER
NHL team id
team_name VARCHAR
Full team name
games_played INTEGER
Games played
wins INTEGER
Wins
losses INTEGER
Regulation losses
ot_losses INTEGER
Overtime and shootout losses
ties INTEGER
Ties (before 2005-06); NULL otherwise
points INTEGER
Standings points
point_pct DOUBLE
Points earned divided by points available (0-1)
regulation_wins INTEGER
Regulation wins
regulation_and_ot_wins INTEGER
Regulation plus overtime wins
shootout_wins INTEGER
Shootout wins
goals_for INTEGER
Goals scored
goals_against INTEGER
Goals allowed
goals_for_per_game DOUBLE
Goals scored per game
goals_against_per_game DOUBLE
Goals allowed per game
shots_for_per_game DOUBLE
Shots on goal per game
shots_against_per_game DOUBLE
Shots on goal allowed per game
power_play_pct DOUBLE
Power-play goals per power-play opportunity (0-1)
power_play_net_pct DOUBLE
Power-play percentage net of shorthanded goals allowed (0-1)
penalty_kill_pct DOUBLE
Share of opponent power plays killed (0-1)
penalty_kill_net_pct DOUBLE
Penalty-kill percentage net of shorthanded goals scored (0-1)
faceoff_win_pct DOUBLE
Faceoffs won divided by faceoffs taken (0-1)
shutouts INTEGER
Team shutouts
Example

2025-26 special-teams ranking.

SELECT team_name, power_play_pct, penalty_kill_pct,
  power_play_pct + penalty_kill_pct AS special_teams
FROM nhl.main.team_stats(season := 20252026)
ORDER BY special_teams DESC;
Link

Try these queries

opener_goal_events — The opener's play-by-play contains its five goals.

SELECT count(*) AS goals
FROM nhl.main.play_by_play(2025020001)
WHERE event_type = 'goal';

Uses play_by_play

current_standings_have_teams — Today's standings list every NHL team with a team code.

SELECT count(*) >= 32 AND count(team_abbrev) = count(*) AS populated
FROM nhl.main.current_standings;

Uses current_standings

Toronto's 2025-26 roster skaters with their season scoring: roster joined to skater_stats on player_id (a traded player's totals cover every club he played for).

SELECT r.sweater_number, r.player_name, r.position_code, s.games_played,
  s.goals, s.assists, s.points
FROM nhl.main.roster('TOR', season := 20252026) r
JOIN nhl.main.skater_stats(season := 20252026) s USING (player_id)
WHERE r.position_group <> 'goalies'
ORDER BY s.points DESC, r.player_name

Uses rosterskater_stats

2025-26 skaters with at least 50 points and 150 hits: skater_stats scoring joined to skater_realtime_stats physical play on player_id.

SELECT s.player_name, s.team_abbrevs, s.points, rt.hits, rt.blocked_shots
FROM nhl.main.skater_stats(season := 20252026) s
JOIN nhl.main.skater_realtime_stats(season := 20252026) rt USING (player_id)
WHERE s.points >= 50 AND rt.hits >= 150
ORDER BY rt.hits DESC, s.player_name

Uses skater_statsskater_realtime_stats

All NHL franchises alphabetically.

SELECT franchise_id, full_name FROM nhl.main.franchises ORDER BY full_name

Uses franchises

Every team that has played for the Avalanche/Nordiques franchise.

SELECT t.team_id, t.full_name, t.tricode
FROM nhl.main.teams t
JOIN nhl.main.franchises f USING (franchise_id)
WHERE f.common_name = 'Avalanche'

Uses teamsfranchises

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

Questions it can answer

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

  • Which team currently leads each NHL division and with how many points? Also say on what date the 2025-26 season's standings began.
  • Who delivered the most hits in the 2025-26 NHL regular season, and who were the top five goal scorers on the official 2025-26 leaderboard?
  • Among NHL goalies with at least 40 games in 2025-26, who had the best save percentage? Also, who led the official 2025-26 leaderboard in shutouts?
  • For the Toronto Maple Leafs in 2025-26: their regular-season home record from their schedule, their power-play percentage, and the goalies on their roster.
  • Who was the first overall pick in the 2025 NHL draft, and under which team names has the drafting franchise played?

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