Zmalski / NHL-API-Reference

Unofficial reference for the NHL API endpoints.
MIT License
267 stars 21 forks source link

Skater Stats by Date? #33

Open xStan89 opened 4 months ago

xStan89 commented 4 months ago

Anyone figure out how to aggregate stat ranges by date?

I want to recreate this from the NHL stat page: https://www.nhl.com/stats/skaters?reportType=game&dateFrom=2023-10-10&dateTo=2024-04-18&gameType=2&sort=points,goals,assists&page=0&pageSize=50

I've got this far: https://api.nhle.com/stats/rest/en/skater/summary?limit=-1&sort=skaterFullName&cayenneExp= I imagine it would go somewhere here and gameTypeId=2.

dateId>=2023-10-10 doesn't work.

Any ideas?

xStan89 commented 3 months ago

isAggregate=false&isGame=true&cayenneExp=gameDate<"YYYY-MM-DD"