Results / Los Angeles Kings at Ottawa Senators
2–4Final
Ottawa Senators
HomeLos Angeles Kings at Ottawa Senators
Score by period
| Team | 1 | 2 | 3 | T | SOG |
|---|---|---|---|---|---|
| 1 | 0 | 1 | 2 | 21 | |
| 0 | 1 | 3 | 4 | 28 |
Goals and penalties
1st period
- 1:262 min LAK Adrian Kempe High sticking, drawn by Shane Pinto
- 4:18Goal LAK Mats Zuccarello (Drew Doughty) 1–0
- 8:162 min LAK Kevin Fiala Interference, drawn by Ridly Greig
- 13:252 min OTT Thomas Chabot Closing hand on puck
- 16:202 min OTT Tim Stützle Interference, drawn by Brian Dumoulin
2nd period
- 7:002 min OTT Artem Zub Interference, drawn by Quinton Byfield
- 19:06Goal OTT Nick Cousins (Jordan Spence, Jake Sanderson) 1–1
3rd period
- 0:30Goal OTT Tim Stützle (Dylan Cozens, Fabian Zetterlund) 1–2
- 5:172 min LAK Andre Lee Holding, drawn by Tyler Kleven
- 5:54Goal OTT Stephen Halliday (Tim Stützle, Jake Sanderson) Power play 1–3
- 7:16Goal OTT Tim Stützle (Dylan Cozens) 1–4
- 10:14Goal LAK Quinton Byfield (Kevin Fiala) 2–4
- 12:432 min OTT Jordan Spence Abuse of officials
- 14:392 min LAK Drew Doughty Cross checking, drawn by Ridly Greig
Box score
Los Angeles Kings skaters
| Player | G | A | P | +/- | SOG | TOI |
|---|
Los Angeles Kings goalies
| Goalie | Dec | SA | SV | GA | SV% | TOI |
|---|
Ottawa Senators skaters
| Player | G | A | P | +/- | SOG | TOI |
|---|
Ottawa Senators goalies
| Goalie | Dec | SA | SV | GA | SV% | TOI |
|---|
Play-by-play
Every faceoff, shot, hit, giveaway, takeaway, stoppage and goal, newest first. Each play also has rink coordinates in feet in the API.
1st period 105 plays
- 20:00Period end
- 19:32OTTHit Tyler Kleven, Andre Lee
- 19:16OTTShot on goal wrist Nick Cousins, Anton Forsberg
- 19:04LAKHit Joel Armia, Jordan Spence
- 19:00LAKShot on goal wrist Joel Armia, Linus Ullmark
- 18:48LAKHit Samuel Helenius, Sammy Blais
- 18:33LAKHit Samuel Helenius, Shane Pinto
- 18:18LAKMissed shot wrist Brandt Clarke, Linus Ullmark
- 18:04LAKMissed shot slap Drew Doughty, Linus Ullmark
- 16:50OTTFaceoff Claude Giroux, Quinton Byfield
- 16:50Stoppage goalie stopped after sog
- 16:47LAKShot on goal tip in Alex Laferriere, Linus Ullmark
- 16:28OTTShot on goal wrist Ridly Greig, Anton Forsberg
- 16:23OTTFaceoff Shane Pinto, Quinton Byfield
- 16:23Stoppage puck frozen
- 16:20OTTFaceoff Shane Pinto, Adrian Kempe
- 16:20Stoppage tv timeout
- 16:20OTTPenalty interference Tim Stützle, Brian Dumoulin
- 16:11OTTBlocked shot blocked Tim Stützle, Brian Dumoulin
- 15:18OTTFaceoff Tim Stützle, Samuel Helenius
- 15:18Stoppage puck in benches
- 15:17LAKHit Erik Haula, Michael Amadio
- 15:03LAKHit Corey Perry, Nikolas Matinpalo
- 14:57LAKMissed shot tip in Erik Haula, Linus Ullmark
- 14:44LAKShot on goal tip in Kevin Fiala, Linus Ullmark
- 14:42OTTHit Tyler Kleven, Corey Perry
- 14:05LAKMissed shot snap Adrian Kempe, Linus Ullmark
- 13:53LAKMissed shot slap Mats Zuccarello, Linus Ullmark
- 13:28OTTGiveaway Jake Sanderson
- 13:25OTTFaceoff Shane Pinto, Quinton Byfield
- 13:25OTTPenalty closing hand on puck Thomas Chabot
- 13:06LAKHit Andre Lee, Michael Amadio
- 12:31OTTShot on goal wrist Ridly Greig, Anton Forsberg
- 12:12OTTFaceoff Ridly Greig, Quinton Byfield
- 12:12Stoppage puck frozen
- 12:10LAKShot on goal backhand Samuel Helenius, Linus Ullmark
- 12:04OTTHit Drake Batherson, Corey Perry
- 12:02OTTHit Sammy Blais, Samuel Helenius
- 11:50OTTHit Sammy Blais, Drew Doughty
- 11:34OTTHit Sammy Blais, Drew Doughty
- 11:16LAKHit Joel Edmundson, Stephen Halliday
- 11:13OTTFaceoff Stephen Halliday, Scott Laughton
- 11:13Stoppage tv timeout
- 11:13Stoppage puck in netting
- 11:11OTTShot on goal wrist Ridly Greig, Anton Forsberg
- 11:06OTTBlocked shot blocked Michael Amadio, Erik Gustafsson
- 11:05OTTMissed shot backhand Claude Giroux, Anton Forsberg
- 11:03OTTShot on goal wrist Tyler Kleven, Anton Forsberg
- 10:20OTTBlocked shot teammate blocked Thomas Chabot, Dylan Cozens
- 9:59LAKFaceoff Quinton Byfield, Shane Pinto
- 9:59Stoppage referee or linesman
- 9:58OTTMissed shot tip in Dylan Cozens, Anton Forsberg
- 9:49OTTShot on goal backhand Ridly Greig, Anton Forsberg
- 9:30OTTBlocked shot blocked Jake Sanderson, Joel Edmundson
- 8:56OTTShot on goal tip in Shane Pinto, Anton Forsberg
- 8:16OTTFaceoff Tim Stützle, Quinton Byfield
- 8:16Stoppage tv timeout
- 8:16LAKPenalty interference Kevin Fiala, Ridly Greig
- 8:12LAKDelayed penalty
- 7:54LAKBlocked shot blocked Brian Dumoulin, Nikolas Matinpalo
- 7:50LAKMissed shot slap Mikey Anderson, Linus Ullmark
- 7:39LAKShot on goal wrist Mikey Anderson, Linus Ullmark
- 7:15OTTShot on goal snap Philip Tomasino, Anton Forsberg
- 7:14LAKHit Drew Doughty, Shane Pinto
- 7:04OTTHit Drake Batherson, Alex Turcotte
- 6:50OTTMissed shot backhand Drake Batherson, Anton Forsberg
- 6:50LAKGiveaway Alex Turcotte
- 6:26OTTTakeaway Jake Sanderson
- 6:08LAKBlocked shot blocked Erik Gustafsson, Tim Stützle
- 6:00LAKHit Erik Gustafsson, Tim Stützle
- 5:40LAKFaceoff Alex Laferriere, Dylan Cozens
- 5:40Stoppage puck in benches
- 5:30OTTFaceoff Shane Pinto, Erik Haula
- 5:30Stoppage goalie stopped after sog
- 5:29OTTShot on goal wrist Jordan Spence, Anton Forsberg
- 4:52LAKHit Corey Perry, Stephen Halliday
- 4:32OTTHit Stephen Halliday, Mikey Anderson
- 4:23OTTHit Nick Cousins, Mikey Anderson
- 4:18LAKFaceoff Samuel Helenius, Stephen Halliday
- 4:18LAKGoal snap Mats Zuccarello, Drew Doughty, Linus Ullmark 1–0
- 4:08OTTBlocked shot blocked Artem Zub, Drew Doughty
- 4:01OTTFaceoff Dylan Cozens, Adrian Kempe
- 4:01Stoppage goalie stopped after sog
- 4:00OTTShot on goal wrist Ridly Greig, Anton Forsberg
- 3:58OTTShot on goal snap Ridly Greig, Anton Forsberg
- 3:35LAKHit Adrian Kempe, Shane Pinto
- 3:08LAKHit Mikey Anderson, Dylan Cozens
- 2:56OTTBlocked shot blocked Ridly Greig, Brian Dumoulin
- 2:48OTTShot on goal wrist Ridly Greig, Anton Forsberg
- 1:36OTTFaceoff Tim Stützle, Quinton Byfield
- 1:36Stoppage puck in crowd
- 1:34OTTBlocked shot blocked Tim Stützle, Mikey Anderson
- 1:26OTTFaceoff Tim Stützle, Quinton Byfield
- 1:26LAKPenalty high sticking Adrian Kempe, Shane Pinto
- 1:26Stoppage puck in netting
- 1:23LAKBlocked shot blocked Alex Laferriere, Jake Sanderson
- 1:08OTTHit Drake Batherson, Mikey Anderson
- 0:41OTTHit Fabian Zetterlund, Erik Haula
- 0:38OTTHit Tim Stützle, Joel Armia
- 0:33OTTShot on goal wrist Tyler Kleven, Anton Forsberg
- 0:23OTTBlocked shot blocked Tyler Kleven, Joel Edmundson
- 0:23LAKGiveaway Drew Doughty
- 0:14LAKGiveaway Joel Armia
- 0:00OTTFaceoff Tim Stützle, Erik Haula
- 0:00Period start
2nd period 93 plays
- 20:00Period end
- 19:52OTTHit Dylan Cozens, Brian Dumoulin
- 19:06OTTFaceoff Claude Giroux, Erik Haula
- 19:06OTTGoal wrist Nick Cousins, Jordan Spence, Jake Sanderson, Anton Forsberg 1–1
- 18:53OTTMissed shot slap Jake Sanderson, Anton Forsberg
- 18:43OTTBlocked shot teammate blocked Stephen Halliday, Sammy Blais
- 18:32LAKMissed shot tip in Scott Laughton, Linus Ullmark
- 18:30LAKHit Scott Laughton, Jake Sanderson
- 17:48OTTShot on goal wrist Philip Tomasino, Anton Forsberg
- 17:35OTTHit Drake Batherson, Brian Dumoulin
- 17:12LAKHit Alex Laferriere, Ridly Greig
- 16:57OTTHit Shane Pinto, Joel Edmundson
- 16:38LAKShot on goal wrist Mats Zuccarello, Linus Ullmark
- 16:18OTTFaceoff Claude Giroux, Quinton Byfield
- 16:18Stoppage goalie stopped after sog
- 16:16OTTShot on goal wrist Artem Zub, Anton Forsberg
- 15:56OTTBlocked shot blocked Dylan Cozens, Erik Gustafsson
- 15:46LAKHit Erik Haula, Fabian Zetterlund
- 15:43LAKGiveaway Erik Gustafsson
- 15:31LAKGiveaway Brandt Clarke
- 15:27OTTHit Dylan Cozens, Erik Haula
- 15:25OTTHit Fabian Zetterlund, Erik Gustafsson
- 15:21OTTHit Dylan Cozens, Erik Haula
- 15:21LAKBlocked shot blocked Joel Armia, Tyler Kleven
- 15:11LAKHit Alex Turcotte, Dylan Cozens
- 15:09LAKHit Erik Haula, Tyler Kleven
- 15:03LAKFaceoff Erik Haula, Dylan Cozens
- 15:03Stoppage tv timeout
- 15:03Stoppage puck in crowd
- 14:30LAKHit Alex Turcotte, Nick Cousins
- 14:20OTTHit Nick Cousins, Alex Turcotte
- 13:59LAKHit Andre Lee, Shane Pinto
- 13:45OTTBlocked shot teammate blocked Stephen Halliday, Shane Pinto
- 13:30OTTBlocked shot blocked Nikolas Matinpalo, Alex Laferriere
- 12:42LAKMissed shot backhand Kevin Fiala, Linus Ullmark
- 11:58OTTHit Nick Cousins, Scott Laughton
- 11:24LAKHit Joel Edmundson, Dylan Cozens
- 11:15LAKHit Samuel Helenius, Nick Cousins
- 11:10OTTBlocked shot blocked Thomas Chabot, Samuel Helenius
- 11:02OTTBlocked shot blocked Jordan Spence, Joel Edmundson
- 10:59LAKGiveaway Drew Doughty
- 10:32LAKHit Joel Armia, Tyler Kleven
- 10:22LAKMissed shot wrist Brian Dumoulin, Linus Ullmark
- 10:04OTTMissed shot backhand Tyler Kleven, Anton Forsberg
- 10:02OTTFaceoff Claude Giroux, Erik Haula
- 10:02Stoppage tv timeout
- 10:02Stoppage puck in crowd
- 9:59OTTBlocked shot blocked Fabian Zetterlund, Joel Edmundson
- 9:48OTTMissed shot tip in Dylan Cozens, Anton Forsberg
- 9:35LAKGiveaway Scott Laughton
- 9:26OTTMissed shot wrist Thomas Chabot, Anton Forsberg
- 9:10OTTHit Ridly Greig, Kevin Fiala
- 8:59LAKShot on goal wrist Erik Gustafsson, Linus Ullmark
- 8:46LAKBlocked shot blocked Erik Gustafsson, Jake Sanderson
- 8:34LAKShot on goal slap Erik Gustafsson, Linus Ullmark
- 8:29LAKShot on goal slap Erik Gustafsson, Linus Ullmark
- 7:35OTTGiveaway Thomas Chabot
- 7:31LAKMissed shot snap Adrian Kempe, Linus Ullmark
- 7:00OTTFaceoff Ridly Greig, Alex Laferriere
- 7:00OTTPenalty interference Artem Zub, Quinton Byfield
- 6:54OTTGiveaway Artem Zub
- 6:36LAKShot on goal snap Corey Perry, Linus Ullmark
- 6:21LAKHit Samuel Helenius, Nick Cousins
- 6:19OTTHit Tyler Kleven, Corey Perry
- 6:09LAKFaceoff Alex Laferriere, Stephen Halliday
- 6:09Stoppage tv timeout
- 6:09Stoppage referee or linesman
- 6:05OTTShot on goal wrist Thomas Chabot, Anton Forsberg
- 5:48OTTBlocked shot blocked Thomas Chabot, Brandt Clarke
- 5:42LAKHit Alex Laferriere, Tim Stützle
- 5:33LAKHit Alex Laferriere, Dylan Cozens
- 5:14OTTFaceoff Shane Pinto, Alex Laferriere
- 5:14Stoppage icing
- 4:39OTTFaceoff Shane Pinto, Quinton Byfield
- 4:39Stoppage puck in netting
- 4:37LAKBlocked shot blocked Erik Haula, Artem Zub
- 4:31LAKMissed shot wrist Joel Armia, Linus Ullmark
- 4:30OTTGiveaway Linus Ullmark
- 4:21OTTHit Ridly Greig, Erik Gustafsson
- 3:44OTTHit Tim Stützle, Mikey Anderson
- 3:41LAKHit Andre Lee, Tyler Kleven
- 3:31LAKShot on goal snap Mikey Anderson, Linus Ullmark
- 2:56LAKHit Samuel Helenius, Tyler Kleven
- 2:38LAKGiveaway Samuel Helenius
- 2:25LAKFaceoff Samuel Helenius, Ridly Greig
- 2:25Stoppage icing
- 2:16OTTHit Nick Cousins, Drew Doughty
- 1:38OTTHit Claude Giroux, Brandt Clarke
- 0:18LAKFaceoff Alex Laferriere, Tim Stützle
- 0:18Stoppage goalie stopped after sog
- 0:17OTTShot on goal snap Drake Batherson, Anton Forsberg
- 0:00LAKFaceoff Erik Haula, Shane Pinto
- 0:00Period start
3rd period 130 plays
- 20:00Game end
- 20:00Period end
- 19:26LAKHit Kevin Fiala, Thomas Chabot
- 19:18LAKFaceoff Quinton Byfield, Claude Giroux
- 19:18Stoppage offside
- 19:00OTTFaceoff Ridly Greig, Quinton Byfield
- 19:00Stoppage goalie stopped after sog
- 18:58LAKMissed shot backhand Kevin Fiala, Linus Ullmark
- 18:37OTTFaceoff Shane Pinto, Quinton Byfield
- 18:37Stoppage icing
- 18:33LAKHit Kevin Fiala, Jake Sanderson
- 18:31OTTFaceoff Shane Pinto, Quinton Byfield
- 18:31Stoppage goalie stopped after sog
- 18:29LAKShot on goal backhand Quinton Byfield, Linus Ullmark
- 18:28LAKMissed shot tip in Quinton Byfield, Linus Ullmark
- 18:14LAKShot on goal snap Mats Zuccarello, Linus Ullmark
- 18:04LAKBlocked shot blocked Kevin Fiala, Jake Sanderson
- 17:58LAKBlocked shot blocked Quinton Byfield, Artem Zub
- 17:47LAKFaceoff Quinton Byfield, Ridly Greig
- 17:47Stoppage puck frozen
- 17:44LAKBlocked shot blocked Alex Laferriere, Jake Sanderson
- 17:25LAKFaceoff Quinton Byfield, Shane Pinto
- 17:25Stoppage icing
- 17:07LAKFaceoff Quinton Byfield, Ridly Greig
- 17:07Stoppage puck in benches
- 17:02LAKFaceoff Quinton Byfield, Ridly Greig
- 17:02Stoppage tv timeout
- 17:02Stoppage puck in netting
- 16:59OTTShot on goal snap Ridly Greig, Anton Forsberg
- 16:50LAKMissed shot tip in Adrian Kempe, Linus Ullmark
- 16:34OTTGiveaway Thomas Chabot
- 14:39LAKFaceoff Quinton Byfield, Tim Stützle
- 14:39LAKPenalty cross checking Drew Doughty, Ridly Greig
- 14:35OTTMissed shot wrist Ridly Greig, Anton Forsberg
- 14:15LAKMissed shot snap Kevin Fiala, Linus Ullmark
- 13:27OTTMissed shot wrist Shane Pinto, Anton Forsberg
- 13:22LAKGiveaway Adrian Kempe
- 13:12OTTMissed shot wrist Shane Pinto, Anton Forsberg
- 13:11OTTShot on goal wrist Shane Pinto, Anton Forsberg
- 13:02OTTHit Artem Zub, Mats Zuccarello
- 12:52LAKMissed shot bat Alex Laferriere, Linus Ullmark
- 12:51LAKShot on goal wrist Alex Laferriere, Linus Ullmark
- 12:43LAKFaceoff Quinton Byfield, Shane Pinto
- 12:43OTTPenalty abuse of officials Jordan Spence
- 12:39OTTDelayed penalty
- 12:12OTTHit Jordan Spence, Brian Dumoulin
- 11:59OTTGiveaway Thomas Chabot
- 11:39OTTShot on goal snap Ridly Greig, Anton Forsberg
- 11:31LAKGiveaway Brandt Clarke
- 11:27OTTGiveaway Tyler Kleven
- 11:06LAKGiveaway Adrian Kempe
- 10:45OTTFaceoff Dylan Cozens, Alex Laferriere
- 10:45Stoppage icing
- 10:29LAKGiveaway Mats Zuccarello
- 10:14OTTFaceoff Ridly Greig, Alex Laferriere
- 10:14LAKGoal wrist Quinton Byfield, Kevin Fiala, Linus Ullmark 2–4
- 10:12OTTDelayed penalty
- 10:10LAKMissed shot wrist Quinton Byfield, Linus Ullmark
- 10:07OTTFaceoff Ridly Greig, Quinton Byfield
- 10:07Stoppage tv timeout
- 10:07Stoppage goalie stopped after sog
- 10:05LAKShot on goal slap Kevin Fiala, Linus Ullmark
- 10:01OTTHit Tim Stützle, Alex Turcotte
- 9:49LAKHit Alex Turcotte, Jake Sanderson
- 9:45OTTFaceoff Claude Giroux, Quinton Byfield
- 9:45Stoppage icing
- 9:30LAKFaceoff Alex Laferriere, Claude Giroux
- 9:30Stoppage icing
- 9:26OTTHit Michael Amadio, Drew Doughty
- 9:18OTTHit Claude Giroux, Mats Zuccarello
- 9:00OTTHit Fabian Zetterlund, Brian Dumoulin
- 8:43OTTMissed shot wrist Thomas Chabot, Anton Forsberg
- 8:37OTTFaceoff Tim Stützle, Erik Haula
- 8:37Stoppage icing
- 8:30OTTMissed shot tip in Shane Pinto, Anton Forsberg
- 8:08LAKFaceoff Erik Haula, Shane Pinto
- 8:08Stoppage goalie stopped after sog
- 8:05OTTShot on goal snap Stephen Halliday, Anton Forsberg
- 7:58LAKHit Drew Doughty, Tyler Kleven
- 7:55LAKBlocked shot blocked Brandt Clarke, Stephen Halliday
- 7:36LAKShot on goal slap Drew Doughty, Linus Ullmark
- 7:31LAKFaceoff Scott Laughton, Ridly Greig
- 7:31Stoppage goalie stopped after sog
- 7:28LAKShot on goal wrist Corey Perry, Linus Ullmark
- 7:25LAKFaceoff Scott Laughton, Stephen Halliday
- 7:25Stoppage tv timeout
- 7:25Stoppage puck in benches
- 7:23LAKHit Samuel Helenius, Stephen Halliday
- 7:16LAKFaceoff Samuel Helenius, Stephen Halliday
- 7:16OTTGoal wrist Tim Stützle, Dylan Cozens, Anton Forsberg 1–4
- 7:08OTTHit Dylan Cozens, Brian Dumoulin
- 7:04LAKMissed shot wrist Adrian Kempe, Linus Ullmark
- 6:54LAKHit Mikey Anderson, Jake Sanderson
- 6:40LAKHit Mikey Anderson, Claude Giroux
- 6:31OTTHit Ridly Greig, Brandt Clarke
- 6:19OTTMissed shot slap Jordan Spence, Anton Forsberg
- 6:08OTTGiveaway Jordan Spence
- 6:03LAKMissed shot wrist Brandt Clarke, Linus Ullmark
- 6:01OTTGiveaway Thomas Chabot
- 5:54LAKFaceoff Quinton Byfield, Ridly Greig
- 5:54OTTGoal wrist Stephen Halliday, Tim Stützle, Jake Sanderson, Anton Forsberg 1–3
- 5:17LAKFaceoff Quinton Byfield, Tim Stützle
- 5:17Stoppage goalie stopped after sog
- 5:17LAKPenalty holding Andre Lee, Tyler Kleven
- 5:15OTTShot on goal snap Nikolas Matinpalo, Anton Forsberg
- 4:57LAKDelayed penalty
- 4:34LAKHit Joel Edmundson, Shane Pinto
- 4:25LAKFaceoff Erik Haula, Stephen Halliday
- 4:25Stoppage goalie stopped after sog
- 4:22OTTShot on goal wrist Claude Giroux, Anton Forsberg
- 4:17OTTShot on goal wrist Ridly Greig, Anton Forsberg
- 4:07OTTHit Claude Giroux, Brandt Clarke
- 3:44OTTFaceoff Ridly Greig, Alex Laferriere
- 3:44Stoppage goalie stopped after sog
- 3:42LAKShot on goal wrist Alex Turcotte, Linus Ullmark
- 3:19OTTFaceoff Dylan Cozens, Quinton Byfield
- 3:19Stoppage offside
- 3:18LAKHit Alex Laferriere, Michael Amadio
- 3:12OTTFaceoff Ridly Greig, Alex Laferriere
- 3:12Stoppage goalie stopped after sog
- 3:09LAKShot on goal wrist Brandt Clarke, Linus Ullmark
- 3:00OTTFaceoff Tim Stützle, Alex Laferriere
- 3:00Stoppage icing
- 2:34OTTHit Sammy Blais, Mikey Anderson
- 1:42LAKHit Quinton Byfield, Jordan Spence
- 0:30OTTFaceoff Ridly Greig, Alex Laferriere
- 0:30OTTGoal wrist Tim Stützle, Dylan Cozens, Fabian Zetterlund, Anton Forsberg 1–2
- 0:26LAKDelayed penalty
- 0:00OTTFaceoff Tim Stützle, Erik Haula
- 0:00Period start
Team stats
LAKOTT
21Shots on goal28
41.1Faceoffs won %58.9
0/4Power play1/4
8Penalty minutes8
37Hits36
13Blocked shots10
12Giveaways9
0Takeaways1
Get this game with the SportAPI hockey API
Four requests build this page: /games/3838 for the score and team stats, /games/3838/players for the box score, /games/3838/events for goals and penalties, and /games/3838/plays for the play-by-play (add ?period=2 for one period). During a game, read them about once a minute.
curl -H "X-API-Key: YOUR_API_KEY" \
"https://sportapi.ai/api/hockey/games/3838"{ "data": {"id":3838,"start":"2026-11-22T00:00:00Z","status":"FT","decision":"REG","period":3,"clock":null,"home":{"abbreviation":"OTT","score":4,"periods":[0,1,3],"sog":28},"away":{"abbreviation":"LAK","score":2,"periods":[1,0,1],"sog":21}}, "stats": {…} }
/players
{
"data": {
"home": {
"skaters": [
[]
],
"goalies": [
"…"
]
}
}
}
/plays
{
"data": [
{
"seq": 11,
"period": 1,
"time_sec": 0,
"type": "faceoff",
"detail": null,
"team_id": 7,
"player_ids": [
147,
81
],
"home_score": null,
"away_score": null,
"x": 0,
"y": 0
},
"…"
]
}<?php
$key = getenv('SPORTAPI_KEY');
$ctx = stream_context_create(['http' => ['header' => "X-API-Key: $key\r\n"]]);
$res = json_decode(file_get_contents('https://sportapi.ai/api/hockey/games/3838/events', false, $ctx), true);
foreach ($res['data'] as $e) {
if ($e['type'] !== 'goal') continue;
printf("P%d %s %s %d-%d\n", $e['period'], gmdate('i:s', $e['time_sec']), $e['player']['name'], $e['away_score'], $e['home_score']);
}Keep your API key on the server and never call the API from JavaScript in the browser. Save each answer for a few minutes too, so that page views don't use up your daily limit.
Endpoints, fields and status codes are in the API docs. A free key is on the hockey API page.