-
Notifications
You must be signed in to change notification settings - Fork 19
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
Did NHL stop reporting blockedShots in the gamecenter boxscore?? #16
Comments
Grrr...... I think they've dropped some other data too. Not anyone's fault - just reporting it here in case others come across this issue. Following also used to be included but are now missing: 'powerPlayPoints', |
Yep yep. The removal of |
In case anyone finds it useful, here's function I wrote to extract blocked shots from the play-by-play endpoint. Can be adapted pretty easily to pull out other totals.
|
Interestingly enough, the above function does not yield correct results, if with "correct" we mean the numbers included in NHL's own report, such as https://www.nhl.com/scores/htmlreports/20232024/ES021109.HTM However, there's a logical reason for this. The play-by-play data uses the same {
"eventId": 453,
"periodDescriptor": {
"number": 1,
"periodType": "REG"
},
"timeInPeriod": "19:23",
"timeRemaining": "00:37",
"situationCode": "1551",
"homeTeamDefendingSide": "right",
"typeCode": 508,
"typeDescKey": "blocked-shot",
"sortOrder": 305,
"details": {
"xCoord": -66,
"yCoord": 13,
"zoneCode": "O",
"blockingPlayerId": 8477979,
"shootingPlayerId": 8471214,
"eventOwnerTeamId": 15
}
} This happens to be the only event in the game, where Washington's Nicolas Aube-Kubel (8477979) managed to block a shot. Unfortunately the If you run the function, it will tell that Aube-Kubel had 1 blocked shot, but in NHL's report - linked above - he is not credited with any blocks. So, the fix to the function would be to take into account also the |
Great site! Thanks for putting it together.
Just curious have you (or anyone else) noticed that the JSON returned from https://api-web.nhle.com/v1/gamecenter/2023020204/boxscore no longer includes blockedShots?
I know it was there until sometime recently, because I have that data all the way back to 2016 saved off in a dataframe. But when I call the API recently, blockedShots is no longer included (see below).
Just wondering if it is available somewhere else, or is I now have to aggregate the totals myself out of the play-by-play data?
cheers
-Tony
Current boxscore for a single player below. 'blockedShots' used to appear right after "hits".
{
"playerId": 8475220,
"sweaterNumber": 17,
"name": {
"default": "M. Foligno"
},
"position": "L",
"goals": 0,
"assists": 0,
"points": 0,
"plusMinus": -1,
"pim": 0,
"hits": 9,
"powerPlayGoals": 0,
"shots": 0,
"faceoffWinningPctg": 0,
"toi": "15:29"
},
The text was updated successfully, but these errors were encountered: