cwendt94 / espn-api

ESPN Fantasy API! (Football, Basketball)
MIT License
544 stars 183 forks source link

ESPN returned an HTTP 403 #539

Closed jtkulis closed 2 months ago

jtkulis commented 2 months ago

I have been working with the API for the past few weeks with no issues. However, when restarting my kernel and clearing my output I was given a 403 error. Is there any way or fix around this? I double-checked that there was no change in the swid or s2 for my specific league.

mdekarske commented 2 months ago

Same 403, it worked last week. Version 0.35.0

lbenz730 commented 2 months ago

I don't use this package but I scrape ESPN API. I found that after today, switching my url from https://fantasy.espn.com/apis/v3/games/ to https://lm-api-reads.fantasy.espn.com/apis/v3/games/ worked.

https://github.com/cwendt94/espn-api/blob/master/espn_api/requests/constant.py#L1

rytizzle commented 2 months ago

also seeing "403". everything was working just a few days ago.

kpholloway commented 2 months ago

I don't use this package but I scrape ESPN API. I found that after today, switching my url from https://fantasy.espn.com/apis/v3/games/ to https://lm-api-reads.fantasy.espn.com/apis/v3/games/ worked.

https://github.com/cwendt94/espn-api/blob/master/espn_api/requests/constant.py#L1

This resolved my issue as well. I thought I was going crazy.

lbenz730 commented 2 months ago

I don't use the package. You'd have to change the line in that file constant.py file.

rytizzle commented 2 months ago

I don't use the package. You'd have to change the line in that file constant.py file.

which sport are u using the API for? i also downloaded the package and updated the constant.py file and it still doesn't work for me :(

lbenz730 commented 2 months ago

Fantasy baseball

On Wed, Apr 24, 2024 at 9:47 PM Ryan Tom @.***> wrote:

I don't use the package. You'd have to change the line in that file constant.py file.

which sport are u using the API for? i also downloaded the package and updated the constant.py file and it still doesn't work for me :(

— Reply to this email directly, view it on GitHub https://github.com/cwendt94/espn-api/issues/539#issuecomment-2076177974, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFHSBQ7QVOWPGV62AKORLTTY7BOCNAVCNFSM6AAAAABGVZRWKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZWGE3TOOJXGQ . You are receiving this because you commented.Message ID: @.***>

rytizzle commented 2 months ago

@lbenz730 do you know how to get a list of the players on your waitlist via the API?

atagunduzalp commented 2 months ago

Having the same issue here, is it because the fantasy league is over?

rytizzle commented 2 months ago

Nope. Ongoing league.

On Thu, Apr 25, 2024, 7:48 AM atagunduzalp @.***> wrote:

Having the same issue here, is it because the fantasy league is over?

— Reply to this email directly, view it on GitHub https://github.com/cwendt94/espn-api/issues/539#issuecomment-2077417468, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIJAF2SVWI3H2F2LSKRD5DLY7EJSNAVCNFSM6AAAAABGVZRWKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZXGQYTONBWHA . You are receiving this because you commented.Message ID: @.***>

lbenz730 commented 2 months ago

@lbenz730 do you know how to get a list of the players on your waitlist via the API?

I don't sorry. You'd want to find endpoint tag for waitlist. Probably burried somewhere w/in the functions of the package.

atagunduzalp commented 2 months ago

Nope. Ongoing league.

oh I see, mine was fantasy basketball and it has finished, thought it is because of that but it looks like more general problem is going on over...

cwendt94 commented 2 months ago

Looking into this now! @lbenz730 Thanks for the fix!

cwendt94 commented 2 months ago

Fixed in v0.36.0