Results / Los Angeles Kings at New Jersey Devils
1–3Final
Los Angeles Kings at New Jersey Devils
Score by period
| Team | 1 | 2 | 3 | T | SOG |
|---|---|---|---|---|---|
| 0 | 1 | 0 | 1 | 13 | |
| 0 | 1 | 2 | 3 | 26 |
Goals and penalties
1st period
- 3:092 min NJD Brett Pesce Hooking, drawn by Alex Laferriere
- 15:582 min LAK Brian Dumoulin Hooking, drawn by Evan Rodrigues
2nd period
- 13:252 min LAK Scott Laughton Tripping, drawn by Jack Hughes
- 15:57Goal LAK Scott Laughton (Adrian Kempe, Andre Lee) 1–0
- 18:43Goal NJD Anthony Mantha (Jesper Boqvist, Evan Rodrigues) 1–1
3rd period
- 8:08Goal NJD Brett Pesce (Luke Evangelista, Arseny Gritsyuk) 1–2
- 12:592 min NJD Timo Meier Tripping, drawn by Trevor Moore
- 18:55Goal NJD Arseny Gritsyuk (Jack Hughes, Jesper Bratt) empty net 1–3
Box score
Los Angeles Kings skaters
| Player | G | A | P | +/- | SOG | TOI |
|---|---|---|---|---|---|---|
| 21 Scott Laughton C | 1 | 0 | 1 | +1 | 1 | 14:26 |
| 9 Adrian Kempe RW | 0 | 1 | 1 | -1 | 0 | 20:41 |
| 47 Andre Lee LW | 0 | 1 | 1 | 0 | 0 | 13:28 |
| 8 Drew Doughty D | 0 | 0 | 0 | -1 | 4 | 23:27 |
| 10 Artemi Panarin LW | 0 | 0 | 0 | -2 | 3 | 23:06 |
| 14 Alex Laferriere RW | 0 | 0 | 0 | -1 | 0 | 21:32 |
| 64 Erik Gustafsson D | 0 | 0 | 0 | 0 | 0 | 21:27 |
| 92 Brandt Clarke D | 0 | 0 | 0 | -1 | 1 | 20:02 |
| 6 Joel Edmundson D | 0 | 0 | 0 | -1 | 0 | 18:55 |
| 44 Mikey Anderson D | 0 | 0 | 0 | 0 | 0 | 17:04 |
| 56 Erik Haula LW | 0 | 0 | 0 | -1 | 1 | 16:11 |
| 12 Trevor Moore LW | 0 | 0 | 0 | 0 | 1 | 15:43 |
| 2 Brian Dumoulin D | 0 | 0 | 0 | 0 | 0 | 15:30 |
| 40 Joel Armia RW | 0 | 0 | 0 | 0 | 1 | 14:10 |
| 36 Mats Zuccarello RW | 0 | 0 | 0 | 0 | 0 | 13:20 |
| 90 Corey Perry RW | 0 | 0 | 0 | -2 | 0 | 10:41 |
| 79 Samuel Helenius C | 0 | 0 | 0 | -2 | 0 | 9:51 |
| 25 Jared Wright RW | 0 | 0 | 0 | 0 | 1 | 7:57 |
Los Angeles Kings goalies
| Goalie | Dec | SA | SV | GA | SV% | TOI |
|---|---|---|---|---|---|---|
| 31 Anton Forsberg | L | 25 | 23 | 2 | .920 | 58:29 |
New Jersey Devils skaters
| Player | G | A | P | +/- | SOG | TOI |
|---|---|---|---|---|---|---|
| 81 Arseny Gritsyuk RW | 1 | 1 | 2 | +2 | 1 | 15:20 |
| 22 Brett Pesce D | 1 | 0 | 1 | +1 | 1 | 21:31 |
| 39 Anthony Mantha RW | 1 | 0 | 1 | 0 | 1 | 12:20 |
| 86 Jack Hughes C | 0 | 1 | 1 | +1 | 2 | 19:18 |
| 63 Jesper Bratt LW | 0 | 1 | 1 | +1 | 0 | 17:20 |
| 77 Luke Evangelista RW | 0 | 1 | 1 | +1 | 4 | 16:26 |
| 17 Evan Rodrigues C | 0 | 1 | 1 | 0 | 0 | 14:38 |
| 70 Jesper Boqvist C | 0 | 1 | 1 | +1 | 0 | 10:51 |
| 43 Luke Hughes D | 0 | 0 | 0 | 0 | 2 | 25:25 |
| 71 Jonas Siegenthaler D | 0 | 0 | 0 | +1 | 0 | 19:10 |
| 7 Dougie Hamilton D | 0 | 0 | 0 | +1 | 2 | 18:59 |
| 8 Johnathan Kovacevic D | 0 | 0 | 0 | 0 | 0 | 16:23 |
| 13 Nico Hischier C | 0 | 0 | 0 | +1 | 4 | 16:16 |
| 28 Timo Meier RW | 0 | 0 | 0 | -1 | 3 | 15:49 |
| 16 Connor Brown RW | 0 | 0 | 0 | 0 | 2 | 15:09 |
| 5 Brenden Dillon D | 0 | 0 | 0 | +1 | 0 | 14:51 |
| 12 Cody Glass C | 0 | 0 | 0 | 0 | 2 | 13:55 |
| 93 Amadeus Lombardi C | 0 | 0 | 0 | 0 | 2 | 12:19 |
New Jersey Devils goalies
| Goalie | Dec | SA | SV | GA | SV% | TOI |
|---|---|---|---|---|---|---|
| 34 Jake Allen | W | 13 | 12 | 1 | .923 | 60:00 |
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 84 plays
- 20:00Period end
- 19:57NJDHit Brenden Dillon, Andre Lee
- 19:41NJDGiveaway Jack Hughes
- 19:06LAKHit Brandt Clarke, Amadeus Lombardi
- 18:26NJDShot on goal backhand Cody Glass, Anton Forsberg
- 17:54NJDShot on goal wrist Timo Meier, Anton Forsberg
- 17:31NJDFaceoff Evan Rodrigues, Joel Armia
- 17:31Stoppage offside
- 17:03LAKHit Mikey Anderson, Jack Hughes
- 16:49NJDBlocked shot blocked Jack Hughes, Scott Laughton
- 16:48NJDBlocked shot blocked Jesper Bratt, Drew Doughty
- 16:37NJDShot on goal poke Luke Evangelista, Anton Forsberg
- 16:36NJDShot on goal poke Luke Evangelista, Anton Forsberg
- 16:35NJDShot on goal wrist Luke Evangelista, Anton Forsberg
- 16:19LAKGiveaway Drew Doughty
- 15:58LAKFaceoff Scott Laughton, Nico Hischier
- 15:58Stoppage tv timeout
- 15:58LAKPenalty hooking Brian Dumoulin, Evan Rodrigues
- 15:49NJDHit Johnathan Kovacevic, Brian Dumoulin
- 15:11NJDHit Brenden Dillon, Corey Perry
- 15:05NJDGiveaway Brenden Dillon
- 14:00NJDMissed shot wrist Dougie Hamilton, Anton Forsberg
- 13:57NJDMissed shot tip in Jesper Bratt, Anton Forsberg
- 13:28NJDHit Jesper Bratt, Brandt Clarke
- 13:18NJDTakeaway Jack Hughes
- 13:06LAKFaceoff Scott Laughton, Jack Hughes
- 13:06Stoppage offside
- 12:17LAKShot on goal wrist Artemi Panarin, Jake Allen
- 12:13LAKTakeaway Brian Dumoulin
- 11:53NJDFaceoff Nico Hischier, Alex Laferriere
- 11:53Stoppage goalie stopped after sog
- 11:53NJDMissed shot snap Timo Meier, Anton Forsberg
- 11:50NJDMissed shot wrap around Luke Evangelista, Anton Forsberg
- 11:41LAKGiveaway Corey Perry
- 11:07LAKHit Jared Wright, Jonas Siegenthaler
- 11:05LAKGiveaway Samuel Helenius
- 11:04NJDGiveaway Jake Allen
- 10:38NJDTakeaway Jesper Boqvist
- 10:32NJDBlocked shot blocked Anthony Mantha, Brandt Clarke
- 10:13NJDMissed shot wrist Jesper Boqvist, Anton Forsberg
- 10:12LAKHit Trevor Moore, Arseny Gritsyuk
- 10:03LAKShot on goal snap Drew Doughty, Jake Allen
- 9:56NJDHit Brenden Dillon, Mats Zuccarello
- 9:51NJDGiveaway Arseny Gritsyuk
- 9:42NJDGiveaway Jack Hughes
- 9:35NJDHit Johnathan Kovacevic, Andre Lee
- 9:32NJDMissed shot wrist Jack Hughes, Anton Forsberg
- 9:11LAKFaceoff Erik Haula, Jack Hughes
- 9:11Stoppage offside
- 8:57NJDHit Brett Pesce, Alex Laferriere
- 8:30NJDFaceoff Nico Hischier, Adrian Kempe
- 8:30Stoppage goalie stopped after sog
- 8:28LAKShot on goal tip in Trevor Moore, Jake Allen
- 8:23NJDGiveaway Jonas Siegenthaler
- 8:21LAKMissed shot wrist Joel Armia, Jake Allen
- 8:01LAKBlocked shot blocked Trevor Moore, Dougie Hamilton
- 7:51LAKMissed shot wrist Mats Zuccarello, Jake Allen
- 7:25LAKBlocked shot teammate blocked Drew Doughty, Mats Zuccarello
- 7:20LAKFaceoff Erik Haula, Evan Rodrigues
- 7:20Stoppage icing
- 7:14LAKGiveaway Alex Laferriere
- 6:56LAKGiveaway Adrian Kempe
- 6:36NJDHit Brenden Dillon, Corey Perry
- 6:23LAKHit Samuel Helenius, Luke Evangelista
- 6:18NJDGiveaway Brenden Dillon
- 6:15LAKHit Samuel Helenius, Brett Pesce
- 6:04NJDHit Timo Meier, Jared Wright
- 5:31LAKHit Scott Laughton, Jack Hughes
- 5:31NJDMissed shot slap Dougie Hamilton, Anton Forsberg
- 5:22LAKShot on goal wrist Drew Doughty, Jake Allen
- 3:36LAKGiveaway Alex Laferriere
- 3:09NJDFaceoff Nico Hischier, Alex Laferriere
- 3:09NJDPenalty hooking Brett Pesce, Alex Laferriere
- 2:56NJDGiveaway Anthony Mantha
- 2:45NJDHit Evan Rodrigues, Erik Gustafsson
- 2:34LAKHit Samuel Helenius, Brett Pesce
- 2:25LAKBlocked shot blocked Samuel Helenius, Luke Hughes
- 2:06LAKHit Samuel Helenius, Johnathan Kovacevic
- 1:12LAKHit Mikey Anderson, Luke Evangelista
- 1:00LAKHit Andre Lee, Timo Meier
- 0:17NJDHit Arseny Gritsyuk, Adrian Kempe
- 0:15NJDGiveaway Jesper Bratt
- 0:00LAKFaceoff Alex Laferriere, Jack Hughes
- 0:00Period start
2nd period 77 plays
- 20:00Period end
- 19:59NJDShot on goal slap Timo Meier, Anton Forsberg
- 19:25LAKBlocked shot blocked Drew Doughty, Nico Hischier
- 19:21LAKMissed shot snap Erik Gustafsson, Jake Allen
- 19:15NJDGiveaway Luke Hughes
- 18:47NJDHit Luke Evangelista, Mikey Anderson
- 18:47NJDTakeaway Brett Pesce
- 18:43LAKFaceoff Alex Laferriere, Nico Hischier
- 18:43NJDGoal wrist Anthony Mantha, Jesper Boqvist, Evan Rodrigues, Anton Forsberg 1–1
- 18:30NJDBlocked shot blocked Dougie Hamilton, Brandt Clarke
- 18:05NJDHit Evan Rodrigues, Brandt Clarke
- 17:56NJDFaceoff Evan Rodrigues, Samuel Helenius
- 17:56Stoppage icing
- 17:49NJDBlocked shot blocked Jack Hughes, Brandt Clarke
- 17:35NJDBlocked shot blocked Brett Pesce, Jared Wright
- 16:52NJDBlocked shot blocked Brenden Dillon, Brandt Clarke
- 16:41NJDFaceoff Cody Glass, Samuel Helenius
- 16:41Stoppage icing
- 16:34LAKGiveaway Erik Gustafsson
- 16:30LAKShot on goal slap Erik Haula, Jake Allen
- 16:19LAKHit Adrian Kempe, Johnathan Kovacevic
- 15:57LAKFaceoff Erik Haula, Cody Glass
- 15:57LAKGoal wrist Scott Laughton, Adrian Kempe, Andre Lee, Jake Allen 1–0
- 15:37LAKGiveaway Scott Laughton
- 15:29LAKHit Alex Laferriere, Dougie Hamilton
- 14:50NJDShot on goal slap Nico Hischier, Anton Forsberg
- 14:01NJDShot on goal snap Nico Hischier, Anton Forsberg
- 13:51NJDBlocked shot blocked Nico Hischier, Erik Haula
- 13:33NJDBlocked shot blocked Luke Evangelista, Joel Armia
- 13:32NJDShot on goal tip in Nico Hischier, Anton Forsberg
- 13:25NJDFaceoff Nico Hischier, Erik Haula
- 13:25LAKPenalty tripping Scott Laughton, Jack Hughes
- 12:46NJDMissed shot wrist Nico Hischier, Anton Forsberg
- 12:14LAKFaceoff Scott Laughton, Nico Hischier
- 12:14Stoppage goalie stopped after sog
- 12:12NJDShot on goal snap Jack Hughes, Anton Forsberg
- 12:10NJDBlocked shot blocked Johnathan Kovacevic, Alex Laferriere
- 12:04NJDMissed shot wrist Jack Hughes, Anton Forsberg
- 12:03NJDShot on goal wrist Jack Hughes, Anton Forsberg
- 11:43NJDGiveaway Brenden Dillon
- 10:51NJDShot on goal wrist Cody Glass, Anton Forsberg
- 10:23LAKBlocked shot blocked Erik Gustafsson, Timo Meier
- 10:14NJDGiveaway Luke Hughes
- 10:02NJDGiveaway Timo Meier
- 9:54NJDHit Nico Hischier, Mikey Anderson
- 9:25NJDMissed shot wrist Evan Rodrigues, Anton Forsberg
- 8:32LAKBlocked shot teammate blocked Drew Doughty, Adrian Kempe
- 8:28LAKBlocked shot blocked Brian Dumoulin, Anthony Mantha
- 8:21LAKShot on goal slap Drew Doughty, Jake Allen
- 7:49NJDMissed shot wrist Arseny Gritsyuk, Anton Forsberg
- 7:37NJDGiveaway Jack Hughes
- 7:18NJDShot on goal wrist Amadeus Lombardi, Anton Forsberg
- 7:05NJDShot on goal snap Amadeus Lombardi, Anton Forsberg
- 6:19NJDHit Cody Glass, Joel Edmundson
- 6:16LAKHit Andre Lee, Luke Hughes
- 6:12NJDFaceoff Cody Glass, Erik Haula
- 6:12Stoppage offside
- 6:03LAKHit Erik Haula, Luke Hughes
- 5:32NJDShot on goal wrist Luke Evangelista, Anton Forsberg
- 4:45NJDGiveaway Jesper Bratt
- 4:38NJDShot on goal wrist Dougie Hamilton, Anton Forsberg
- 4:00LAKGiveaway Erik Gustafsson
- 3:52LAKHit Drew Doughty, Luke Hughes
- 3:43LAKBlocked shot blocked Erik Gustafsson, Anthony Mantha
- 3:25NJDBlocked shot blocked Evan Rodrigues, Joel Edmundson
- 3:17NJDShot on goal wrist Luke Hughes, Anton Forsberg
- 3:05NJDMissed shot wrist Connor Brown, Anton Forsberg
- 2:36LAKMissed shot tip in Joel Armia, Jake Allen
- 2:34LAKMissed shot wrist Joel Armia, Jake Allen
- 1:48NJDBlocked shot blocked Dougie Hamilton, Mikey Anderson
- 1:35NJDShot on goal wrist Dougie Hamilton, Anton Forsberg
- 1:04LAKFaceoff Erik Haula, Nico Hischier
- 1:04Stoppage goalie stopped after sog
- 1:02NJDMissed shot wrist Timo Meier, Anton Forsberg
- 0:21LAKMissed shot slap Erik Gustafsson, Jake Allen
- 0:00LAKFaceoff Alex Laferriere, Jack Hughes
- 0:00Period start
3rd period 99 plays
- 20:00Game end
- 20:00Period end
- 19:54NJDMissed shot wrist Johnathan Kovacevic
- 19:52NJDFaceoff Nico Hischier, Alex Laferriere
- 19:52Stoppage puck in netting
- 19:50LAKBlocked shot blocked Andre Lee, Timo Meier
- 19:46LAKMissed shot wrist Erik Gustafsson, Jake Allen
- 19:45LAKMissed shot bat Artemi Panarin, Jake Allen
- 19:45LAKBlocked shot blocked Alex Laferriere, Brenden Dillon
- 19:44LAKMissed shot slap Brandt Clarke, Jake Allen
- 19:41LAKFaceoff Alex Laferriere, Nico Hischier
- 19:41Stoppage puck in netting
- 19:40LAKBlocked shot blocked Artemi Panarin, Brett Pesce
- 19:37NJDGiveaway Jake Allen
- 19:25LAKGiveaway Artemi Panarin
- 19:18NJDFaceoff Cody Glass, Adrian Kempe
- 19:18Stoppage icing
- 19:15NJDMissed shot wrist Luke Hughes
- 18:59NJDShot on goal wrist Connor Brown, Anton Forsberg
- 18:55NJDFaceoff Cody Glass, Alex Laferriere
- 18:55Stoppage visitor timeout
- 18:55NJDGoal wrist Arseny Gritsyuk, Jack Hughes, Jesper Bratt 1–3
- 17:59NJDGiveaway Luke Evangelista
- 17:38NJDMissed shot slap Nico Hischier, Anton Forsberg
- 17:25NJDHit Jesper Boqvist, Scott Laughton
- 17:22NJDTakeaway Evan Rodrigues
- 17:09LAKShot on goal wrist Artemi Panarin, Jake Allen
- 16:43LAKShot on goal wrist Drew Doughty, Jake Allen
- 16:40NJDGiveaway Dougie Hamilton
- 16:39LAKGiveaway Adrian Kempe
- 16:34NJDHit Dougie Hamilton, Erik Gustafsson
- 15:55LAKBlocked shot blocked Drew Doughty, Cody Glass
- 15:54NJDGiveaway Dougie Hamilton
- 15:52LAKFaceoff Corey Perry, Cody Glass
- 15:52Stoppage goalie stopped after sog
- 15:49LAKShot on goal wrist Artemi Panarin, Jake Allen
- 15:28LAKHit Joel Edmundson, Jesper Bratt
- 15:24LAKFaceoff Alex Laferriere, Jack Hughes
- 15:24Stoppage tv timeout
- 15:24Stoppage referee or linesman
- 15:24Stoppage high stick
- 15:14LAKBlocked shot blocked Erik Gustafsson, Dougie Hamilton
- 15:01NJDGiveaway Jonas Siegenthaler
- 13:43LAKGiveaway Artemi Panarin
- 12:59LAKFaceoff Adrian Kempe, Cody Glass
- 12:59NJDPenalty tripping Timo Meier, Trevor Moore
- 12:26LAKFaceoff Scott Laughton, Nico Hischier
- 12:26Stoppage goalie stopped after sog
- 12:22NJDShot on goal snap Nico Hischier, Anton Forsberg
- 11:21LAKFaceoff Scott Laughton, Evan Rodrigues
- 11:21Stoppage offside
- 11:01NJDGiveaway Jesper Bratt
- 10:55NJDMissed shot wrist Amadeus Lombardi, Anton Forsberg
- 10:41NJDHit Brett Pesce, Alex Laferriere
- 10:25NJDHit Brett Pesce, Alex Laferriere
- 10:18LAKFaceoff Alex Laferriere, Jack Hughes
- 10:18Stoppage icing
- 10:00NJDFaceoff Nico Hischier, Alex Laferriere
- 10:00Stoppage goalie stopped after sog
- 9:58LAKShot on goal snap Jared Wright, Jake Allen
- 9:54NJDGiveaway Johnathan Kovacevic
- 9:30LAKBlocked shot blocked Scott Laughton, Cody Glass
- 9:20NJDHit Jonas Siegenthaler, Trevor Moore
- 9:12NJDBlocked shot teammate blocked Cody Glass, Amadeus Lombardi
- 8:38LAKGiveaway Mikey Anderson
- 8:28LAKHit Brian Dumoulin, Arseny Gritsyuk
- 8:08NJDFaceoff Jack Hughes, Alex Laferriere
- 8:08NJDGoal wrist Brett Pesce, Luke Evangelista, Arseny Gritsyuk, Anton Forsberg 1–2
- 7:44NJDMissed shot tip in Arseny Gritsyuk, Anton Forsberg
- 7:41LAKGiveaway Anton Forsberg
- 7:10NJDMissed shot wrist Jack Hughes, Anton Forsberg
- 6:55LAKBlocked shot blocked Trevor Moore, Johnathan Kovacevic
- 6:33LAKHit Trevor Moore, Anthony Mantha
- 6:32LAKHit Scott Laughton, Jonas Siegenthaler
- 6:00NJDBlocked shot blocked Jesper Boqvist, Mikey Anderson
- 5:42LAKTakeaway Artemi Panarin
- 5:36NJDTakeaway Brett Pesce
- 5:21NJDBlocked shot blocked Cody Glass, Erik Gustafsson
- 4:57NJDShot on goal wrist Connor Brown, Anton Forsberg
- 4:41NJDHit Luke Evangelista, Joel Armia
- 4:29NJDShot on goal slap Timo Meier, Anton Forsberg
- 4:10NJDMissed shot slap Johnathan Kovacevic, Anton Forsberg
- 4:09NJDFaceoff Nico Hischier, Scott Laughton
- 4:09Stoppage puck in crowd
- 3:46LAKHit Artemi Panarin, Jonas Siegenthaler
- 3:12LAKTakeaway Erik Gustafsson
- 2:31LAKHit Corey Perry, Evan Rodrigues
- 1:52LAKShot on goal slap Brandt Clarke, Jake Allen
- 1:25NJDFaceoff Cody Glass, Erik Haula
- 1:25Stoppage icing
- 1:11LAKTakeaway Mikey Anderson
- 1:05LAKShot on goal backhand Joel Armia, Jake Allen
- 0:42NJDFaceoff Nico Hischier, Scott Laughton
- 0:42Stoppage puck frozen
- 0:39NJDShot on goal backhand Luke Hughes, Anton Forsberg
- 0:24NJDFaceoff Timo Meier, Scott Laughton
- 0:24Stoppage puck in crowd
- 0:00LAKFaceoff Alex Laferriere, Jack Hughes
- 0:00Period start
Team stats
LAKNJD
13Shots on goal26
51.4Faceoffs won %48.6
0/2Power play0/2
4Penalty minutes4
22Hits21
14Blocked shots13
14Giveaways22
4Takeaways5
Get this game with the SportAPI hockey API
Four requests build this page: /games/3463 for the score and team stats, /games/3463/players for the box score, /games/3463/events for goals and penalties, and /games/3463/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/3463"{ "data": {"id":3463,"start":"2026-10-24T19:30:00Z","status":"FT","decision":"REG","period":3,"clock":null,"home":{"abbreviation":"NJD","score":3,"periods":[0,1,2],"sog":26},"away":{"abbreviation":"LAK","score":1,"periods":[0,1,0],"sog":13}}, "stats": {…} }
/players
{
"data": {
"home": {
"skaters": [
{
"player": {
"id": 892,
"slug": "jack-hughes",
"name": "Jack Hughes",
"position": "C",
"jersey": "86"
},
"goals": 0,
"assists": 1,
"points": 1,
"plus_minus": 1,
"pim": 0,
"sog": 2,
"hits": 0,
"blocks": 0,
"ppg": 0,
"shg": 0,
"gwg": 0,
"fo_won": 1,
"fo_taken": 8,
"giveaways": 3,
"takeaways": 1,
"shifts": 20,
"toi_sec": 1158,
"pp_toi_sec": null,
"sh_toi_sec": null
}
],
"goalies": [
"…"
]
}
}
}
/plays
{
"data": [
{
"seq": 11,
"period": 1,
"time_sec": 0,
"type": "faceoff",
"detail": null,
"team_id": 14,
"player_ids": [
296,
892
],
"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/3463/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.