With the Leagues API, you can obtain information from a collection of leagues simultaneously. Each element beneath the Leagues Collection will be a League Resource
GET
| URI | Description | Sample |
|---|---|---|
http://fantasysports.yahooapis.com/fantasy/v2/leagues;league_keys={league_key1},{league_key2}
|
Fetch specific leagues {league_key1} and {league_key2} |
|
Any sub-resource valid for a league is a valid sub-resource under the leagues collection.
Any sub-resource for a collection of leagues is extracted using a URI like:
/leagues/{sub_resource}
OR
/leagues;league_keys={league_key1},{league_key2}/{sub_resource}
Multiple sub-resources can be extracted from leagues in the same URI using a format like:
/leagues;out={sub_resource_1},{sub_resource_2}
OR
/leagues;league_keys={league_key1},{league_key2};out={sub_resource_1},{sub_resource_2}