Comments (16)
There's actually a second endpoint for the history of your fantasy football league. The url is: https://fantasy.espn.com/apis/v3/games/ffl/leagueHistory/ + "league ID"?seasonId="year"
from espnff.
All of the API endpoints that I've tried appear to be redirecting to http://www.espn.com/fantasy/football/
. They've either moved their API endpoints to a new location, or got rid of it.
from espnff.
The new API is based at http://fantasy.espn.com/apis/v3
but the URLs bear no resemblance to v2
.
League pages now make a call to e.g. http://fantasy.espn.com/apis/v3/games/ffl/seasons/2018/segments/0/leagues/7168?view=mBoxscore&view=mMatchupScore&view=mSchedule&view=mScoreboard&view=mSettings&view=mStatus&view=mTeam&view=mRoster&view=modular&view=mNav
That path appears to give all the available data for a league, regardless of what you pass as the value of the view
GET parameter (obviously, as they're actually overriding it 10+ times in that URL!).
from espnff.
@rbarton65 Looks like the ESPN relaunch has totally messed this up, would gladly assist in trying to fix this up.
from espnff.
@danabrey do you by chance have a list of the new endpoints? I wrote a .NET package for this that I need to update as well. I haven't started sniffing out the endpoints yet, so I figured I'd check to see if you have.
Also, here's a URL for my league which is public unlike the link above: http://fantasy.espn.com/apis/v3/games/ffl/seasons/2019/segments/0/leagues/526113?view=mBoxscore&view=mMatchupScore&view=mSchedule&view=mScoreboard&view=mSettings&view=mStatus&view=mTeam&view=mRoster&view=modular&view=mNav
Side note: I reached out to my comish, and he said that as part of this redesign, our league got reset to private. Sounds like if you were using a public league like us, you'll need to set it to public again.
from espnff.
@scottenriquez From what I could see when I last looked, there isn't a "list" of endpoints because that's the only one. Whatever you pass as the value of the "view" GET parameter, you get everything.
Thanks for the pointer about the league being reset to private!
from espnff.
I love this project to help me score my league's non-standard scoring system.
Is this fixable (need help?) Or shall I go back to keeping score with a spreadsheet =/
from espnff.
The last activity on this project was in August 2017 so I am sort of assuming that @rbarton65 has moved on to other things, given that that was their last GitHub activity too? It might be a fork-and-fix job, and then a courtesy pull request. I am happy to help but I'm not an experienced Python developer.
from espnff.
I hacked a few things into this module for my personal use. I was planning to see if I can salvage anything using the v3 endpoints before the start of this season. If I find anything, I'll fork and post it here.
from espnff.
And look at that, someone already documented and built a "thing" with the new V3 api! https://github.com/mkreiser/ESPN-Fantasy-Football-API . This is in Node however. But, this is good, a lot of the hard work is already done.
from espnff.
I would be interested in supporting/working on anything related to this. Found another resource with a Python focus: https://stmorse.github.io/journal/espn-fantasy-v3.html
from espnff.
Here is a repo of a python V3 API in progress: https://github.com/cwendt94/ff-espn-api
from espnff.
@danabrey do you by chance have a list of the new endpoints? I wrote a .NET package for this that I need to update as well. I haven't started sniffing out the endpoints yet, so I figured I'd check to see if you have.
Also, here's a URL for my league which is public unlike the link above: http://fantasy.espn.com/apis/v3/games/ffl/seasons/2019/segments/0/leagues/526113?view=mBoxscore&view=mMatchupScore&view=mSchedule&view=mScoreboard&view=mSettings&view=mStatus&view=mTeam&view=mRoster&view=modular&view=mNav
Side note: I reached out to my comish, and he said that as part of this redesign, our league got reset to private. Sounds like if you were using a public league like us, you'll need to set it to public again.
Are you able to get the url above to work with seasons prior to 2018? I only seem to be able to get it to work with 2018 and 2019.
from espnff.
@tflurry I ran into the same issue and haven't found a way around this.
from espnff.
Yeah, ESPN just killed any sort of public access to that history. There's no way of accessing it on the front-end anymore either. Shame.
from espnff.
@scottenriquez @danabrey that's unfortunate... i wonder if we could petition to get them to make that history available... with the threat of leaving ESPN for Yahoo or someone else! lol.. we'd need a lot of signatures..
from espnff.
Related Issues (20)
- Service Unavailable HOT 3
- KeyError: 'tradeDeadline' in leagues with no trade deadline HOT 5
- Private leagues HOT 16
- What is the .mov in the example? HOT 1
- Request: Power rankings take week as optional argument. HOT 2
- Roster endpoint HOT 11
- Will the `player` endpoints be added anytime soon? HOT 7
- Meaning of power rankings
- Number of bye week teams
- Download all stats
- Adapt To Baseball
- Unable to fetch League HOT 2
- PyPI Not updated to latest version?
- Typo HOT 1
- Private League Auth HOT 1
- Unable to Pull Roster Information
- Power Rankings Break for Leagues with Deleted Members
- Bit of a noob, got this all working properly but unsure how to format/export data to excel sheet or a usable format
- issue with scoreboard HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espnff.