espn-api icon indicating copy to clipboard operation
espn-api copied to clipboard

league.player_info(playerId=playerId) not returning Player objects for kickers in 2022 and 2023.

Open RyanLynchUF opened this issue 1 year ago • 1 comments

Sport

Football

Summary

I am pulling player_info for all players available in player_map for each past league of my Fantasy league. This seems to be working fine for 2020 and 2021, but running into issues in 2022 and 2023. The kickers are returning empty lists when using this function. As an example, to get Greg Zuerlein: league.player_info(playerId=14993).

Also, unrelated, but player_map doesn't return the reciprocal mapping for Josh Allen, but does return ('3918298', 'Josh Allen').

Logs/Data

No response

RyanLynchUF avatar Oct 09 '24 17:10 RyanLynchUF

Do you have a public league I can test this out on? I found an old 2022 League and was able to get Greg Zuerlein from player_info. I am guessing this might be a random ESPN API bug or something on their side because from the package nothing changes on the API call other than passing the playerId.

Yeah for Josh Allen because two players have the same name you would need to try the different playerIds and get position to know which one is which.

cwendt94 avatar Oct 15 '24 15:10 cwendt94