Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a PBP version with on-ice players? #27

Open
gabed99 opened this issue Jun 2, 2024 · 3 comments
Open

Is there a PBP version with on-ice players? #27

gabed99 opened this issue Jun 2, 2024 · 3 comments

Comments

@gabed99
Copy link

gabed99 commented Jun 2, 2024

Had anyone found an API query that gets the full PBP? i.e. a) instead of b)

a) https://www.nhl.com/scores/htmlreports/20232024/PL020274.HTM
b) https://api-web.nhle.com/v1/gamecenter/2023020274/play-by-play

You can map this to shift charts, but they are notoriously inaccurate, while the on-ice player list is quite a bit better (not perfect.) The underlying JSON data for a) must exist; b) seems like a shortcut.

5 | 1 | EV | 0:0020:00 | FAC | DAL won Neu. Zone - NYR #93 ZIBANEJAD vs DAL #53 JOHNSTON | 93C 17R 20L 8D 79D 31G | 53C 63R 21L 2D 23D 41G

vs

{"eventId":101,"periodDescriptor":{"number":1,"periodType":"REG","maxRegulationPeriods":3},"timeInPeriod":"00:00","timeRemaining":"20:00","situationCode":"1551","homeTeamDefendingSide":"right","typeCode":502,"typeDescKey":"faceoff","sortOrder":11,"details":{"eventOwnerTeamId":25,"losingPlayerId":8476459,"winningPlayerId":8482740,"xCoord":0,"yCoord":0,"zoneCode":"N"}}

@m0ngr31
Copy link

m0ngr31 commented Jun 9, 2024

Are the shift charts really that inaccurate? I haven't integrated them yet, but it'd be frustrating if they are unreliable... I'd be surprised if that data isn't coming from the same place? But if it's not, there must be some internal API we don't have access to

@gabed99
Copy link
Author

gabed99 commented Jun 9, 2024

I haven't QAed these shift charts yet, but in past, you'd sometimes have 14 guys on the ice for one team. And MSG frequently forgot to put the goalie in. It might end up a wash in the end.

@m0ngr31
Copy link

m0ngr31 commented Jun 10, 2024

Shift charts are missing for the following games that I've found:

2015020497
2023030245
2023030235
2023030246
2023030236
2023030247
2023030241
2023030311
2023030242
2023030324
2023030243
2023030325
2023030244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants