Connecting ESPN
Batter’s Eye syncs with ESPN Fantasy Baseball to pull your league’s rosters, transaction history, and league settings. To enable this, you’ll need to provide your ESPN credentials.
Why ESPN Credentials?
Section titled “Why ESPN Credentials?”ESPN’s fantasy API requires authentication to access private league data. Your credentials allow Batter’s Eye to:
- Sync rosters every 15 minutes
- Show ownership badges on the Players page (who owns which player)
- Power pickup recommendations based on your actual roster
- Display league transaction history and trade trees
How to Connect
Section titled “How to Connect”- Go to Settings (gear icon in the header)
- Find the ESPN Credentials section
- Enter your ESPN SWID and ESPN_S2 cookies
Finding Your ESPN Cookies
Section titled “Finding Your ESPN Cookies”- Log into ESPN Fantasy in your browser
- Open your browser’s Developer Tools (F12 or right-click > Inspect)
- Go to the Application tab (Chrome) or Storage tab (Firefox)
- Under Cookies, find
espn.com - Copy the values for:
- SWID — looks like
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} - espn_s2 — a long alphanumeric string
- SWID — looks like
Paste both values into Settings and click Save.
Security
Section titled “Security”Your ESPN credentials are encrypted before being stored in the database using industry-standard Fernet encryption. They are never stored in plain text and are only decrypted server-side when making API calls to ESPN.
Credential Sharing
Section titled “Credential Sharing”You don’t need every league member to enter their credentials. Batter’s Eye uses a league-level fallback — if any member of your league has valid credentials saved, features like league history and trade trees will work for everyone in the league.
Troubleshooting
Section titled “Troubleshooting”- Credentials expired? ESPN cookies expire periodically. If roster sync stops working, re-enter fresh cookies from your browser.
- League not syncing? Make sure the ESPN League ID on your league matches your actual ESPN league. Check the URL in ESPN Fantasy.