GithubHelp home page GithubHelp logo

Comments (16)

cgome032 avatar cgome032 commented on June 9, 2024 3

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.

danabrey avatar danabrey commented on June 9, 2024

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.

danabrey avatar danabrey commented on June 9, 2024

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.

danabrey avatar danabrey commented on June 9, 2024

@rbarton65 Looks like the ESPN relaunch has totally messed this up, would gladly assist in trying to fix this up.

from espnff.

scottenriquez avatar scottenriquez commented on June 9, 2024

@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.

danabrey avatar danabrey commented on June 9, 2024

@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.

bluesforsalvador avatar bluesforsalvador commented on June 9, 2024

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.

danabrey avatar danabrey commented on June 9, 2024

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.

thend20 avatar thend20 commented on June 9, 2024

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.

thend20 avatar thend20 commented on June 9, 2024

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.

kstreepy avatar kstreepy commented on June 9, 2024

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.

kstreepy avatar kstreepy commented on June 9, 2024

Here is a repo of a python V3 API in progress: https://github.com/cwendt94/ff-espn-api

from espnff.

tflurry avatar tflurry commented on June 9, 2024

@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.

scottenriquez avatar scottenriquez commented on June 9, 2024

@tflurry I ran into the same issue and haven't found a way around this.

from espnff.

danabrey avatar danabrey commented on June 9, 2024

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.

tflurry avatar tflurry commented on June 9, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.