Skip to content
Christian Wendt edited this page Sep 28, 2019 · 20 revisions

Welcome to the ff-espn-api wiki!

I am going to use this wiki as the main source for package documentation and a better explanation of package fields and functions.

If you can't find something or have a question please feel free to open a issue!

Getting Started

You will need your league id and year. For private leagues you will also need two more parameters; your swid and espn_s2. I would suggest to still use swid and espn_s2 even if your league is public so that you will be able to use the recent activity feature.

from ff_espn_api import League
league_id = 1234
year = 2018
swid = '{03JFJHW-FWFWF-044G}' # example swid
espn_s2 = 'ASCWDWheghjwwqfwjqhgjkjgegkje'# example espn_s2
league = League(league_id, year, espn_s2, swid)

Check out League Object page to find out all the information you can get on your League!