cwendt94 / espn-api

ESPN Fantasy API! (Football, Basketball)
MIT License
649 stars 206 forks source link

Feature Request: Grabbing Public Waivers #576

Open dtcarls opened 1 month ago

dtcarls commented 1 month ago

Sport

Football

Summary

Requesting implementation of pulling waivers via public method to reduce/eliminate the need for SWID and ESPN_S2 for public leagues.

So currently to get waiver claims, you need to pull recent transactions which requires SWID and ESPN_S2 as (for some reason) those are private to league members. However, it's recently come to my attention that you can pull Waiver claims on leagues that are public, but "transactions" are still private.

FAAB Example: https://fantasy.espn.com/football/league/offerreport?leagueId=164483 Non-FAAB Waiver example: https://fantasy.espn.com/football/league/waiverreport?leagueId=205018

This may be able to be implemented across other sports, but I work with Football.

dtcarls commented 1 month ago

Seems that the API call is https://lm-api-reads.fantasy.espn.com/apis/v3/games/ffl/seasons/2024/segments/0/leagues/164483?scoringPeriodId=2&view=mTransactions2 and they exist under "transactions"

cwendt94 commented 1 month ago

Thanks for reporting this! That would be nice for public leagues! I will look into it