nhl 21 api for stats?

by The_REAL_RMC
Reply

Original Post

Re: nhl 21 api for stats?

★★★★★ Novice

@lounatic99 I'm sorry, I haven't solved for that. Have you looked into the data from matchType5 and matchType10 to confirm that the private matches you've played don't show up there? It looks like these only return the last five games played in each category. I tried plugging in "matchType0" through "matchType20" and 5 & 10 are the only two that have worked. Maybe a dumb question but can you view your private match history in the NHL 21 app? I'm curious whether EA even record that data on their servers.

 

I found a project on github from 2016 that seems to imply you can specify the number of matches to return in your results, but haven't gotten that to work yet either.

Message 11 of 50 (3,514 Views)

Re: nhl 21 api for stats?

★★★★ Novice
@Georgeandpfunk I tried the same things as you - 1-20 and nothing! then I viewed the source and found a value on the <option> and got it!

curl --referer www.ea.com "https://proclubs.ea.com/api/nhl/clubs/matches?clubIds=39855&platform=ps4&matchType=club_private"

Thank you for all your help!
Message 12 of 50 (3,512 Views)

Re: nhl 21 api for stats?

★★★★★ Novice

@lounatic99 You’re welcome. Curious which page source you inspected to find that? I really would like to see if the match history data can return more than five games.

Message 13 of 50 (3,500 Views)

Re: nhl 21 api for stats?

★★★★ Novice
Message 14 of 50 (3,495 Views)

Re: nhl 21 api for stats?

★★★★★ Apprentice

Thanks for the tips guys, will work on this for my team. Already lost track of this ticket!

Message 15 of 50 (3,468 Views)

Re: nhl 21 api for stats?

Champion

Did you ever find a way to see more than the last five matches?

CCP Champion Banner - Red.png

Message 16 of 50 (3,364 Views)

Re: nhl 21 api for stats?

★★★★ Novice
@PlayoffError no just 5... it's all that shows on the EA site too. You could store to a DB and keep adding new games though.
Message 17 of 50 (3,361 Views)

Re: nhl 21 api for stats?

Champion

Got it.  I was hoping to get the entire history, but I guess getting the info for games moving forward will have to do.  Thanks!

CCP Champion Banner - Red.png

Message 18 of 50 (3,358 Views)

Re: nhl 21 api for stats?

★★★★ Novice

I'm looking to find data on Players but without having the ClubID. Basically just pulling the data from this page: https://www.ea.com/games/nhl/nhl-21/pro-clubs/players

When I viewed source I found this URL https://proclubs.ea.com/api/nhl/members/search but I can't figure out the rest to return the user data. Any help would be appreciated!

Message 19 of 50 (3,212 Views)

Re: nhl 21 api for stats?

★ Novice

I am trying to figure out a way to essentially scrape all the club match history into a google sheet. I am super new to coding and this whole curl and query java script. If you could let me toward the right direction that would be great!

Message 20 of 50 (2,993 Views)