Zmalski / NHL-API-Reference

Unofficial reference for the NHL API endpoints.
MIT License
257 stars 19 forks source link

how to tell which team is which side before homeTeamDefendingSide? #35

Open completelyAbsorbed opened 3 months ago

completelyAbsorbed commented 3 months ago

Hey there, I'm working on learning hockey and am trying to figure out how to intuit which side is which before homeTeamDefendingSide was implemented (2019?), and would appreciate any help! Thanks.

MunAli-Man commented 2 months ago

the Gamecenter Boxscore API defines both home and away teams. Example URL: https://api-web.nhle.com/v1/gamecenter/2023020204/boxscore

You can see the away team id here:

image