Forum Discussion

Georgeandpfunk's avatar
5 years ago
Solved

EASHL API Disabled?

Is the EASHL API disabled temporarily or permanently? I am receiving an "Acess Denied" error when attempting to run the following command (which has been working for the past two years):

curl --referer www.ea.com "https://proclubs.ea.com/api/nhl/members/stats?clubId=76815&platform=ps4"

  • Seems like the curl command needs a few non-default header values since the change.

    I'm having success adding the following values:

    Accept-Language: en-US,en;q=0.5

    User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0

    Connection: keep-alive

    Example using OPs example as a building block:

    curl --referer www.ea.com "https://proclubs.ea.com/api/nhl/members/stats?clubId=76815&platform=ps4" -H "Accept-Language: en-US,en;q=0.5" -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0" -H "Connection: keep-alive"

22 Replies

  • I posted in another thread - you can still use the api url in a web browser to return the JSON that the curl command would. For me it means a little more effort to keep the data updated, but in the short term I can at least keep my app functioning.

    I haven’t updated in a few days so hopefully the above is still true.

  • RampantAI's avatar
    RampantAI
    Seasoned Rookie
    5 years ago

    Was just coming here to post the same thing. 

    This has worked so well for me as well then stopped Nov 10th 2021. 

    Devs please help. 

    And if anyone does find a new curl command please post it. 

    So annoying when you rely on that to pull stats for your teams website. 

Featured Places

Node avatar for NHL Franchise Discussion

NHL Franchise Discussion

Long-time fan? Tell us about your knowledge with the sport and the game franchise in our NHL Franchise community forum.Latest Activity: 3 days ago
17,635 Posts