dfs-with-r / ffespn

Get ESPN fantasy football data
Other
2 stars 3 forks source link

API Error #24

Open christianlohr9 opened 6 months ago

christianlohr9 commented 6 months ago

Hi,

I just tried to fetch some projections (that are available already: https://fantasy.espn.com/football/players/projections). Unfortunately I got below mentioned error.

My assumption is that ESPN Fantasy changed their API from

Old one in api.r : http://fantasy.espn.com/apis/v3/games/ffl/ New one: https://lm-api-reads.fantasy.espn.com/apis/v3/games/ffl/

qb <- ffespn::ffespn_projections(2024, 0, "QB")
#> Error: API did not return html

Created on 2024-05-07 with reprex v2.1.0

christianlohr9 commented 6 months ago

Yh, just tried it, this API change seems to fix the issue...

gheemony commented 2 months ago

How did you change your code to fix this issue?