Leagues collection

Description

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

HTTP Operations Supported

  • GET

URIs

URI Description Sample
http://fantasysports.yahooapis.com/fantasy/v2/leagues;league_keys={league_key1},{league_key2} Fetch specific leagues {league_key1} and {league_key2}

http://fantasysports.yahooapis.com/fantasy/v2/leagues;league_keys=223.l.431

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}

Table of Contents