With the Leagues Collection API, you can obtain the fantasy league related information at the same time.
To refer to a League resource, you'll need to provide a league_key. The league_id is a unique ID identifying a given fantasy league for a given season.