You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like the ESPN API was changed in 2018 and every league was made private that year. Using the League() class I can access every year except 2018; from 2011 to 2023. Even after specifying the swid and espn_s2 cookies, 2018 cannot be accessed. I attempted to access league data using requests and specifying league parameters and the cookies and still cannot access the league. Using requests this is the response I receive:
{'messages': ['You are not authorized to view this League.'], 'details': [{'message': 'You are not authorized to view this League.', 'shortMessage': 'You are not authorized to view this League.', 'resolution': None, 'type': 'AUTH_LEAGUE_NOT_VISIBLE', 'metaData': None}]}
Are there workarounds or plans to extract 2018 data?
Logs/Data
No response
The text was updated successfully, but these errors were encountered:
Sport
Football
Summary
Looks like the ESPN API was changed in 2018 and every league was made private that year. Using the
League()
class I can access every year except 2018; from 2011 to 2023. Even after specifying the swid and espn_s2 cookies, 2018 cannot be accessed. I attempted to access league data usingrequests
and specifying league parameters and the cookies and still cannot access the league. Usingrequests
this is the response I receive:{'messages': ['You are not authorized to view this League.'], 'details': [{'message': 'You are not authorized to view this League.', 'shortMessage': 'You are not authorized to view this League.', 'resolution': None, 'type': 'AUTH_LEAGUE_NOT_VISIBLE', 'metaData': None}]}
Are there workarounds or plans to extract 2018 data?
Logs/Data
No response
The text was updated successfully, but these errors were encountered: