Results / Toronto Maple Leafs at Ottawa Senators
4–2Final
Ottawa Senators
HomeToronto Maple Leafs at Ottawa Senators
Score by period
| Team | 1 | 2 | 3 | T | SOG |
|---|---|---|---|---|---|
| 0 | 1 | 3 | 4 | 24 | |
| 0 | 1 | 1 | 2 | 21 |
Goals and penalties
1st period
- 5:145 min OTT Matthew Andonovski Fighting, drawn by Landon Sim
- 5:145 min TOR Landon Sim Fighting, drawn by Matthew Andonovski
- 14:392 min TOR Marshall Rifai Holding, drawn by William Eklund
- 18:322 min OTT Ben Hutton Holding, drawn by Brandon Duhaime
2nd period
- 3:362 min OTT Sammy Blais Tripping, drawn by Landon Sim
- 3:51Goal TOR Henrik Rybinski (Vinni Lettieri, Nick Blankenburg) Power play 1–0
- 6:18Goal OTT Dylan Cozens (unassisted) 1–1
- 7:582 min TOR Brendan Brisson Unsportsmanlike conduct, drawn by Sammy Blais
- 7:585 min OTT Sammy Blais Fighting, drawn by Brendan Brisson
- 7:585 min TOR Brendan Brisson Fighting, drawn by Sammy Blais
- 13:592 min OTT Xavier Bourgault Tripping, drawn by Miroslav Holinka
3rd period
- 0:335 min OTT Cameron Crotty Fighting, drawn by Brandon Duhaime
- 0:335 min TOR Brandon Duhaime Fighting, drawn by Cameron Crotty
- 7:242 min OTT Nick Cousins Cross checking, drawn by Landon Sim
- 7:245 min OTT Nick Cousins Fighting, drawn by Landon Sim
- 7:245 min TOR Landon Sim Fighting, drawn by Nick Cousins
- 10:01Goal TOR Steven Lorentz (Marshall Rifai, Brandon Duhaime) 2–1
- 10:42Goal OTT Hoyt Stanley (Tomas Hamara, Claude Giroux) 2–2
- 15:43Goal TOR Ryan Tverberg (Jacob Quillan, Blake Smith) 3–2
- 19:242 min OTT Dylan Cozens Roughing, drawn by Philippe Myers
- 19:52Goal TOR Teddy Blueger (unassisted) Power play, empty net 4–2
Box score
Toronto Maple Leafs skaters
| Player | G | A | P | +/- | SOG | TOI |
|---|---|---|---|---|---|---|
| 73 Teddy Blueger C | 1 | 0 | 1 | +1 | 3 | 16:51 |
| 18 Steven Lorentz C | 1 | 0 | 1 | +1 | 1 | 16:41 |
| 54 Henrik Rybinski RW | 1 | 0 | 1 | -1 | 2 | 15:28 |
| 77 Ryan Tverberg C | 1 | 0 | 1 | +1 | 1 | 15:28 |
| 83 Marshall Rifai D | 0 | 1 | 1 | +1 | 0 | 22:32 |
| 71 Vinni Lettieri C | 0 | 1 | 1 | -1 | 4 | 19:44 |
| 59 Blake Smith D | 0 | 1 | 1 | -1 | 0 | 17:00 |
| 26 Jacob Quillan C | 0 | 1 | 1 | +1 | 3 | 16:01 |
| 3 Nick Blankenburg D | 0 | 1 | 1 | 0 | 0 | 14:01 |
| 24 Brandon Duhaime LW | 0 | 1 | 1 | +1 | 1 | 13:11 |
| 38 Ben Danford D | 0 | 0 | 0 | +2 | 1 | 21:40 |
| 51 Philippe Myers D | 0 | 0 | 0 | -1 | 2 | 19:40 |
| 55 Emil Andrae D | 0 | 0 | 0 | -1 | 1 | 19:35 |
| 98 Miroslav Holinka C | 0 | 0 | 0 | -1 | 0 | 15:40 |
| 33 Tinus Luc Koblar C | 0 | 0 | 0 | -1 | 2 | 15:39 |
| 90 Brendan Brisson C | 0 | 0 | 0 | -1 | 1 | 14:52 |
| 37 Luke Haymes C | 0 | 0 | 0 | +1 | 0 | 12:57 |
| 42 Landon Sim RW | 0 | 0 | 0 | -1 | 2 | 9:00 |
Toronto Maple Leafs goalies
| Goalie | Dec | SA | SV | GA | SV% | TOI |
|---|---|---|---|---|---|---|
| 41 Anthony Stolarz | W | 21 | 19 | 2 | .905 | 60:00 |
Ottawa Senators skaters
| Player | G | A | P | +/- | SOG | TOI |
|---|---|---|---|---|---|---|
| 73 Hoyt Stanley D | 1 | 0 | 1 | +2 | 2 | 19:30 |
| 24 Dylan Cozens C | 1 | 0 | 1 | +1 | 1 | 19:19 |
| 98 Tomas Hamara D | 0 | 1 | 1 | +1 | 2 | 19:16 |
| 28 Claude Giroux RW | 0 | 1 | 1 | +1 | 2 | 18:21 |
| 45 Ben Hutton D | 0 | 0 | 0 | -1 | 3 | 22:31 |
| 27 William Eklund LW | 0 | 0 | 0 | +1 | 0 | 20:16 |
| 76 Djibril Toure D | 0 | 0 | 0 | -1 | 2 | 19:46 |
| 5 Cameron Crotty D | 0 | 0 | 0 | -1 | 1 | 18:25 |
| 71 Ridly Greig C | 0 | 0 | 0 | +1 | 2 | 17:52 |
| 20 Fabian Zetterlund LW | 0 | 0 | 0 | +1 | 1 | 15:34 |
| 34 Stephen Halliday C | 0 | 0 | 0 | -1 | 1 | 15:30 |
| 82 Matthew Andonovski D | 0 | 0 | 0 | 0 | 1 | 15:23 |
| 53 Xavier Bourgault RW | 0 | 0 | 0 | -1 | 1 | 13:21 |
| 55 Blake Montgomery LW | 0 | 0 | 0 | -1 | 0 | 13:16 |
| 54 Tyler Boucher RW | 0 | 0 | 0 | -1 | 0 | 12:26 |
| 21 Nick Cousins C | 0 | 0 | 0 | -1 | 1 | 12:06 |
| 79 Sammy Blais LW | 0 | 0 | 0 | +1 | 1 | 11:31 |
| 16 Ryan Suzuki C | 0 | 0 | 0 | -1 | 0 | 10:04 |
Ottawa Senators goalies
| Goalie | Dec | SA | SV | GA | SV% | TOI |
|---|---|---|---|---|---|---|
| 35 Linus Ullmark | L | 23 | 20 | 3 | .870 | 58:50 |
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 73 plays
- 20:00Period end
- 19:54OTTShot on goal wrist Matthew Andonovski, Anthony Stolarz
- 18:54TORFaceoff Luke Haymes, Ridly Greig
- 18:54Stoppage hand pass
- 18:52TORMissed shot snap Jacob Quillan, Linus Ullmark
- 18:49TORMissed shot slap Miroslav Holinka, Linus Ullmark
- 18:32OTTFaceoff Claude Giroux, Luke Haymes
- 18:32Stoppage tv timeout
- 18:32OTTPenalty holding Ben Hutton, Brandon Duhaime
- 18:26TORShot on goal wrist Landon Sim, Linus Ullmark
- 18:14TORMissed shot wrist Ben Danford, Linus Ullmark
- 17:54TORTakeaway Henrik Rybinski
- 17:38TORMissed shot backhand Brendan Brisson, Linus Ullmark
- 17:28OTTMissed shot backhand Dylan Cozens, Anthony Stolarz
- 15:59OTTShot on goal wrist Nick Cousins, Anthony Stolarz
- 15:01OTTFaceoff Claude Giroux, Steven Lorentz
- 15:01Stoppage puck in benches
- 14:39OTTFaceoff Claude Giroux, Teddy Blueger
- 14:39Stoppage tv timeout
- 14:39TORPenalty holding Marshall Rifai, William Eklund
- 14:34TORDelayed penalty
- 14:15OTTGiveaway Fabian Zetterlund
- 13:50OTTMissed shot wrist Ridly Greig, Anthony Stolarz
- 13:40OTTHit Sammy Blais, Emil Andrae
- 13:29OTTHit Sammy Blais, Philippe Myers
- 12:58TORHit Landon Sim, Xavier Bourgault
- 12:14OTTBlocked shot teammate blocked Cameron Crotty, Stephen Halliday
- 11:43TORGiveaway Blake Smith
- 11:22OTTHit Fabian Zetterlund, Jacob Quillan
- 11:19TORBlocked shot blocked Luke Haymes, Hoyt Stanley
- 11:04TORMissed shot slap Ryan Tverberg, Linus Ullmark
- 10:57TORBlocked shot blocked Blake Smith, Hoyt Stanley
- 10:52TORHit Jacob Quillan, Hoyt Stanley
- 10:43OTTFaceoff Dylan Cozens, Luke Haymes
- 10:43Stoppage goalie stopped after sog
- 10:42OTTShot on goal wrist Djibril Toure, Anthony Stolarz
- 10:31TORGiveaway Philippe Myers
- 10:21TORShot on goal snap Tinus Luc Koblar, Linus Ullmark
- 10:15OTTFaceoff Sammy Blais, Tinus Luc Koblar
- 10:15Stoppage puck frozen
- 10:11TORShot on goal backhand Vinni Lettieri, Linus Ullmark
- 9:08OTTBlocked shot teammate blocked Cameron Crotty, Nick Cousins
- 8:51OTTHit Nick Cousins, Ben Danford
- 8:35OTTBlocked shot blocked Stephen Halliday, Blake Smith
- 7:59OTTHit Djibril Toure, Emil Andrae
- 7:54OTTMissed shot wrist William Eklund, Anthony Stolarz
- 6:01OTTHit Hoyt Stanley, Ben Danford
- 5:33TORGiveaway Emil Andrae
- 5:14TORFaceoff Henrik Rybinski, Ryan Suzuki
- 5:14TORPenalty fighting Landon Sim, Matthew Andonovski
- 5:14OTTPenalty fighting Matthew Andonovski, Landon Sim
- 5:11TORFaceoff Henrik Rybinski, Ryan Suzuki
- 5:11Stoppage goalie stopped after sog
- 5:09TORShot on goal wrist Jacob Quillan, Linus Ullmark
- 5:06OTTGiveaway Djibril Toure
- 4:47OTTShot on goal wrist Stephen Halliday, Anthony Stolarz
- 4:42OTTBlocked shot blocked Djibril Toure, Luke Haymes
- 4:18TORGiveaway Vinni Lettieri
- 4:11OTTShot on goal wrist Fabian Zetterlund, Anthony Stolarz
- 3:53TORHit Blake Smith, Fabian Zetterlund
- 3:25TORHit Emil Andrae, Sammy Blais
- 3:14OTTMissed shot wrist Tyler Boucher, Anthony Stolarz
- 3:07OTTHit Tyler Boucher, Brandon Duhaime
- 1:42TORHit Blake Smith, Nick Cousins
- 1:27TORHit Blake Smith, Stephen Halliday
- 1:13TORBlocked shot blocked Jacob Quillan, Nick Cousins
- 1:12TORFaceoff Luke Haymes, Stephen Halliday
- 1:12Stoppage puck in netting
- 1:10TORBlocked shot blocked Philippe Myers, Matthew Andonovski
- 0:27OTTHit Sammy Blais, Nick Blankenburg
- 0:09OTTHit Tyler Boucher, Nick Blankenburg
- 0:00OTTFaceoff Ridly Greig, Teddy Blueger
- 0:00Period start
2nd period 85 plays
- 20:00Period end
- 19:45OTTShot on goal wrist Ridly Greig, Anthony Stolarz
- 19:06TORShot on goal snap Vinni Lettieri, Linus Ullmark
- 18:55OTTTakeaway Djibril Toure
- 18:31TORGiveaway Brendan Brisson
- 17:59TORGiveaway Marshall Rifai
- 17:08OTTShot on goal backhand Xavier Bourgault, Anthony Stolarz
- 16:38TORHit Teddy Blueger, Ryan Suzuki
- 16:24TORHit Teddy Blueger, Nick Cousins
- 16:18OTTMissed shot tip in Nick Cousins, Anthony Stolarz
- 16:15OTTHit Nick Cousins, Blake Smith
- 16:08TORGiveaway Steven Lorentz
- 16:03TORMissed shot wrist Ben Danford, Linus Ullmark
- 15:49OTTHit Ridly Greig, Ryan Tverberg
- 15:45TORShot on goal snap Jacob Quillan, Linus Ullmark
- 15:33TORGiveaway Luke Haymes
- 15:07OTTFaceoff Claude Giroux, Jacob Quillan
- 15:07Stoppage goalie stopped after sog
- 15:04TORShot on goal wrist Henrik Rybinski, Linus Ullmark
- 15:01TORShot on goal wrist Emil Andrae, Linus Ullmark
- 14:27OTTFaceoff Dylan Cozens, Tinus Luc Koblar
- 14:27Stoppage goalie stopped after sog
- 14:25TORShot on goal wrist Tinus Luc Koblar, Linus Ullmark
- 13:59TORFaceoff Tinus Luc Koblar, Claude Giroux
- 13:59OTTPenalty tripping Xavier Bourgault, Miroslav Holinka
- 13:59OTTDelayed penalty
- 13:33OTTGiveaway Ryan Suzuki
- 13:15OTTGiveaway William Eklund
- 13:08OTTHit Tyler Boucher, Marshall Rifai
- 12:59OTTHit Ben Hutton, Brandon Duhaime
- 12:45OTTShot on goal wrist Ben Hutton, Anthony Stolarz
- 12:43OTTFaceoff Ridly Greig, Steven Lorentz
- 12:43Stoppage goalie stopped after sog
- 12:40OTTShot on goal wrist Djibril Toure, Anthony Stolarz
- 11:55OTTHit Nick Cousins, Jacob Quillan
- 11:30TORShot on goal slap Philippe Myers, Linus Ullmark
- 10:47TORFaceoff Tinus Luc Koblar, Dylan Cozens
- 10:47Stoppage puck frozen
- 10:28TORHit Landon Sim, Djibril Toure
- 10:23OTTFaceoff Ryan Suzuki, Henrik Rybinski
- 10:23Stoppage offside
- 10:06TORTakeaway Teddy Blueger
- 8:53TORShot on goal wrist Brandon Duhaime, Linus Ullmark
- 8:48OTTBlocked shot blocked Fabian Zetterlund, Philippe Myers
- 8:38OTTShot on goal wrist Ben Hutton, Anthony Stolarz
- 7:58OTTFaceoff Claude Giroux, Teddy Blueger
- 7:58TORPenalty fighting Brendan Brisson, Sammy Blais
- 7:58OTTPenalty fighting Sammy Blais, Brendan Brisson
- 7:58TORPenalty unsportsmanlike conduct Brendan Brisson, Sammy Blais, Vinni Lettieri
- 7:53OTTHit Sammy Blais, Nick Blankenburg
- 7:28OTTShot on goal slap Claude Giroux, Anthony Stolarz
- 7:26OTTTakeaway Stephen Halliday
- 7:15OTTGiveaway Stephen Halliday
- 7:12OTTMissed shot wrist Nick Cousins, Anthony Stolarz
- 6:46TORFaceoff Teddy Blueger, Stephen Halliday
- 6:46Stoppage referee or linesman
- 6:43OTTHit Blake Montgomery, Nick Blankenburg
- 6:18OTTFaceoff Ryan Suzuki, Tinus Luc Koblar
- 6:18OTTGoal wrist Dylan Cozens, Anthony Stolarz 1–1
- 6:14TORGiveaway Blake Smith
- 4:17OTTHit Ridly Greig, Philippe Myers
- 4:09OTTGiveaway Cameron Crotty
- 4:03TORHit Philippe Myers, Sammy Blais
- 4:00OTTMissed shot slap Cameron Crotty, Anthony Stolarz
- 3:51OTTFaceoff Ridly Greig, Teddy Blueger
- 3:51TORGoal snap Henrik Rybinski, Vinni Lettieri, Nick Blankenburg, Linus Ullmark 1–0
- 3:50TORShot on goal backhand Vinni Lettieri, Linus Ullmark
- 3:48TORBlocked shot blocked Nick Blankenburg, Cameron Crotty
- 3:36TORFaceoff Vinni Lettieri, Claude Giroux
- 3:36OTTPenalty tripping Sammy Blais, Landon Sim
- 3:31OTTHit Djibril Toure, Landon Sim
- 3:31OTTDelayed penalty
- 3:16OTTHit Sammy Blais, Jacob Quillan
- 3:10OTTShot on goal wrist Sammy Blais, Anthony Stolarz
- 3:00OTTMissed shot wrist Sammy Blais, Anthony Stolarz
- 2:59OTTBlocked shot blocked Sammy Blais, Ben Danford
- 2:55OTTTakeaway Tyler Boucher
- 2:05OTTFaceoff Nick Cousins, Luke Haymes
- 2:05Stoppage offside
- 0:28TORShot on goal slap Philippe Myers, Linus Ullmark
- 0:24OTTGiveaway Djibril Toure
- 0:10TORFaceoff Teddy Blueger, Claude Giroux
- 0:10Stoppage offside
- 0:00OTTFaceoff Claude Giroux, Henrik Rybinski
- 0:00Period start
3rd period 92 plays
- 20:00Game end
- 20:00Period end
- 19:52OTTFaceoff Ryan Suzuki, Henrik Rybinski
- 19:52TORGoal snap Teddy Blueger 4–2
- 19:50OTTGiveaway Ben Hutton
- 19:37OTTShot on goal tip in Ridly Greig, Anthony Stolarz
- 19:24OTTFaceoff Claude Giroux, Teddy Blueger
- 19:24Stoppage home timeout
- 19:24OTTPenalty roughing Dylan Cozens, Philippe Myers
- 19:04OTTMissed shot wrist William Eklund, Anthony Stolarz
- 18:40OTTBlocked shot blocked William Eklund, Jacob Quillan
- 18:30OTTFaceoff Ridly Greig, Jacob Quillan
- 18:30Stoppage hand pass
- 18:03OTTBlocked shot blocked Stephen Halliday, Henrik Rybinski
- 17:22OTTHit Blake Montgomery, Marshall Rifai
- 16:58OTTGiveaway William Eklund
- 16:46OTTGiveaway Fabian Zetterlund
- 16:26OTTShot on goal snap Tomas Hamara, Anthony Stolarz
- 16:04TORHit Nick Blankenburg, Sammy Blais
- 16:02OTTBlocked shot blocked Ridly Greig, Nick Blankenburg
- 15:43TORFaceoff Tinus Luc Koblar, Ridly Greig
- 15:43TORGoal snap Ryan Tverberg, Jacob Quillan, Blake Smith, Linus Ullmark 3–2
- 15:37TORShot on goal snap Jacob Quillan, Linus Ullmark
- 15:24OTTHit Tyler Boucher, Ben Danford
- 15:17OTTFaceoff Ryan Suzuki, Luke Haymes
- 15:17Stoppage referee or linesman
- 14:33TORBlocked shot blocked Emil Andrae, Fabian Zetterlund
- 14:05TORBlocked shot blocked Steven Lorentz, Ben Hutton
- 13:55OTTFaceoff Dylan Cozens, Teddy Blueger
- 13:55Stoppage goalie stopped after sog
- 13:52TORShot on goal slap Vinni Lettieri, Linus Ullmark
- 12:57OTTHit Sammy Blais, Tinus Luc Koblar
- 12:36TORBlocked shot blocked Ben Danford, Stephen Halliday
- 12:22TORMissed shot wrist Brandon Duhaime, Linus Ullmark
- 11:27OTTHit Tyler Boucher, Emil Andrae
- 10:42TORFaceoff Henrik Rybinski, Ryan Suzuki
- 10:42OTTGoal backhand Hoyt Stanley, Tomas Hamara, Claude Giroux, Anthony Stolarz 2–2
- 10:01TORFaceoff Tinus Luc Koblar, Ridly Greig
- 10:01TORGoal tip in Steven Lorentz, Marshall Rifai, Brandon Duhaime, Linus Ullmark 2–1
- 9:47TORMissed shot wrist Steven Lorentz, Linus Ullmark
- 9:42OTTGiveaway Cameron Crotty
- 9:14OTTHit Cameron Crotty, Jacob Quillan
- 9:01TORMissed shot snap Luke Haymes, Linus Ullmark
- 7:50OTTShot on goal wrist Ben Hutton, Anthony Stolarz
- 7:24OTTFaceoff Claude Giroux, Tinus Luc Koblar
- 7:24Stoppage tv timeout
- 7:24TORPenalty fighting Landon Sim, Nick Cousins
- 7:24OTTPenalty fighting Nick Cousins, Landon Sim
- 7:24OTTPenalty cross checking Nick Cousins, Landon Sim, Sammy Blais
- 7:22OTTGiveaway Tomas Hamara
- 7:19OTTHit Nick Cousins, Landon Sim
- 7:18TORShot on goal wrist Landon Sim, Linus Ullmark
- 6:35OTTGiveaway Tomas Hamara
- 6:01OTTShot on goal wrist Cameron Crotty, Anthony Stolarz
- 5:59OTTFaceoff Stephen Halliday, Steven Lorentz
- 5:59Stoppage puck in netting
- 5:40TORFaceoff Teddy Blueger, Claude Giroux
- 5:40Stoppage puck in netting
- 5:38TORBlocked shot blocked Luke Haymes, Hoyt Stanley
- 5:30OTTHit Ryan Suzuki, Marshall Rifai
- 5:16OTTHit Ryan Suzuki, Jacob Quillan
- 5:10TORTakeaway Ryan Tverberg
- 5:08OTTFaceoff Ryan Suzuki, Luke Haymes
- 5:08Stoppage goalie stopped after sog
- 5:05TORShot on goal snap Brendan Brisson, Linus Ullmark
- 4:59TORBlocked shot blocked Tinus Luc Koblar, Hoyt Stanley
- 4:17OTTFaceoff Dylan Cozens, Tinus Luc Koblar
- 4:17Stoppage goalie stopped after sog
- 4:13OTTShot on goal backhand Claude Giroux, Anthony Stolarz
- 4:00TORGiveaway Marshall Rifai
- 3:39TORMissed shot wrist Marshall Rifai, Linus Ullmark
- 3:35TORFaceoff Teddy Blueger, Ridly Greig
- 3:35Stoppage goalie stopped after sog
- 3:32TORShot on goal wrist Ben Danford, Linus Ullmark
- 3:31TORShot on goal snap Teddy Blueger, Linus Ullmark
- 3:27TORFaceoff Teddy Blueger, Ryan Suzuki
- 3:27Stoppage icing
- 3:17OTTHit Tyler Boucher, Vinni Lettieri
- 2:52OTTShot on goal wrist Hoyt Stanley, Anthony Stolarz
- 2:48OTTBlocked shot blocked Matthew Andonovski, Henrik Rybinski
- 2:19OTTGiveaway Djibril Toure
- 2:09OTTShot on goal wrist Tomas Hamara, Anthony Stolarz
- 1:02OTTHit William Eklund, Nick Blankenburg
- 0:33TORFaceoff Tinus Luc Koblar, Dylan Cozens
- 0:33TORPenalty fighting Brandon Duhaime, Cameron Crotty
- 0:33OTTPenalty fighting Cameron Crotty, Brandon Duhaime
- 0:23OTTHit Cameron Crotty, Brandon Duhaime
- 0:17TORFaceoff Teddy Blueger, Ridly Greig
- 0:17Stoppage goalie stopped after sog
- 0:13TORShot on goal wrist Teddy Blueger, Linus Ullmark
- 0:00TORFaceoff Teddy Blueger, Ridly Greig
- 0:00Period start
Team stats
TOROTT
24Shots on goal21
42.9Faceoffs won %57.1
2/5Power play0/2
24Penalty minutes30
11Hits30
8Blocked shots10
10Giveaways14
3Takeaways3
Get this game with the SportAPI hockey API
Four requests build this page: /games/3063 for the score and team stats, /games/3063/players for the box score, /games/3063/events for goals and penalties, and /games/3063/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/3063"{ "data": {"id":3063,"start":"2026-09-23T23:00:00Z","status":"FT","decision":"REG","period":3,"clock":null,"home":{"abbreviation":"OTT","score":2,"periods":[0,1,1],"sog":21},"away":{"abbreviation":"TOR","score":4,"periods":[0,1,3],"sog":24}}, "stats": {…} }
/players
{
"data": {
"home": {
"skaters": [
{
"player": {
"id": 1288,
"slug": "william-eklund",
"name": "William Eklund",
"position": "LW",
"jersey": "27"
},
"goals": 0,
"assists": 0,
"points": 0,
"plus_minus": 1,
"pim": 0,
"sog": 0,
"hits": 1,
"blocks": 0,
"ppg": 0,
"shg": 0,
"gwg": 0,
"fo_won": 0,
"fo_taken": 0,
"giveaways": 2,
"takeaways": 0,
"shifts": 22,
"toi_sec": 1216,
"pp_toi_sec": null,
"sh_toi_sec": null
}
],
"goalies": [
"…"
]
}
}
}
/plays
{
"data": [
{
"seq": 11,
"period": 1,
"time_sec": 0,
"type": "faceoff",
"detail": null,
"team_id": 7,
"player_ids": [
145,
525
],
"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/3063/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.