Early Access: Import your ESPN leagues
Added 2021-11-05 13:41:45 +0000 UTCHey everyone,
So here's the way authorization of ESPN private leagues works. Since there's no official API it isn't done by authenticating against a login, it's done by grabbing cookies from your browser when you're logged in.
These cookies don't expire for a year, so you can save them once and they should be good to use for the rest of the season.
Rather than messing around with trying to find the cookies yourself, I've made a Chrome and Firefox extension to find them for you.
The Chrome one is available via:
https://chrome.google.com/webstore/detail/espn-cookie-finder/oapfffhnckhffnpiophbcmjnpomjkfcj
The Firefox version is available via:
https://addons.mozilla.org/firefox/addon/espn-cookie-finder/
You'll need to add one of them (depending on which web browser you use) to get the cookie values you need.
Once you have it installed and you're logged into the Hashtag Basketball league tools, you'll need to visit the following URLs (these will be available on the dashboard once it's officially live).
The first step is to go to:
https://hashtagbasketball.com/import-v2/authorize-espn.aspx
Log into your ESPN fantasy league in another browser tab, click the Chrome or Firefox extension icon (the red hashtag icon with a circle around it) and it'll show you the 2 values to copy and paste into the page (just use the copy buttons next to each).
Once you've entered the values and clicked the Authorize button, go to https://hashtagbasketball.com/import-v2/import-league-espn.aspx and enter your league id like you normally would for Yahoo or Fantrax.
The league id is the number part of the league URL after leagueid= eg. https://fantasy.espn.com/basketball/team?leagueId=73793086 means the league id is 73793086 - once you've imported your league the ESPN league should appear on your dashboard with tools to use.

Let me know if you've tried this out, and if it does or doesn't works for you!
PS. If you have a spare few seconds, please give the extension you used a 5 star rating.
Chat soon,
Joey
Comments
Just sent you a message!
MFHFB
2021-11-06 11:58:05 +0000 UTCHi! How many leagues do you currently have left on your dashboard? The length of the id shouldn't make a difference. Can you try importing it again and letting me know the league id? I'll check the database to see what went wrong.
Hashtag Basketball
2021-11-06 11:54:08 +0000 UTCSo, first league worked but it was the wrong league type (cats instead of points). I deleted everything and went through the steps again and now i get the "Ooops"-page all the time Edit: It's a bit weird, my LeagueID is only 5 digits long, that's why it won't import. Tried it with another league which has 8 digits and it worked flawlessly there
MFHFB
2021-11-06 11:32:18 +0000 UTCThanks for testing it out! It should be available on the dashboard tomorrow.
Hashtag Basketball
2021-11-05 23:39:21 +0000 UTCJust run through all these steps in about 2 minutes and it works like a dream. Thanks so much for adding this support. I feel like I can finally use your site properly now!
Zack Webb
2021-11-05 22:06:57 +0000 UTC