Rules v3.0

Summary
Rules
Resource
RulesA list of rules for a fantasy league.
Change Log
January 17, 2014
HTTP Methods
GETRetrieve rules for a fantasy league.
Example
Retrieve Rules
XML field definitions
/rulesA container element for the list of rules.
/rules/eligibilityA container element for a list of eligibilty rules for different positions.
/rules/eligibility/player_eligThe eligibility rules for baseball players other than pitchers, as a text string.
/rules/feesA container element for rules regarding fees.
/rules/fees/activate_costA container element for fee to activate a player.
/rules/fees/activate_cost/labelLabel for fee to activate a player.
/rules/fees/activate_cost/valueFee in dollars to activate a player.
/rules/fees/add_costA container element for fee for to add a player to a team’s roster.
/rules/fees/add_cost/labelLabel for fee to add a player to a team’s roster.
/rules/fees/add_cost/valueFee in dollars to add a player to a team’s roster.
/rules/fees/drop_costA container element for fee to drop a player from a team’s roster.
/rules/fees/drop_cost/labelLabel for fee to drop a player from a team’s roster.
/rules/fees/drop_cost/valueFee in dollars to drop a player from a team’s roster.
/rules/fees/from_ir_costA container element for fee to move a player from Injured Reserve.
/rules/fees/from_ir_cost/labelDescription for fee to move a player from Injured Reserve.
/rules/fees/from_ir_cost/valueFee in US dollars to move a player from Injured Reserve.
/rules/fees/from_ml_costA container element for fee to move a player from Minors.
/rules/fees/from_ml_cost/labelDescription for fee to move a player from Minors.
/rules/fees/from_ml_cost/valueFee in US dollars to move a player from Injured Reserve
/rules/fees/reserve_costA container element for fee to bench a player.
/rules/fees/reserve_cost/labelDescription for fee to bench a player.
/rules/fees/reserve_cost/valueFee in US dollars to bench a player.
/rules/fees/to_ir_costA container element for fee to move a player to Injured Reserve.
/rules/fees/to_ir_cost/labelDescription for fee to move a player to Injured Reserve.
/rules/fees/to_ir_cost/valueFee in US dollars to move a player to Injured Reserve.
/rules/fees/to_ml_costA container element for fee to move a player to Minors.
/rules/fees/to_ml_cost/labelDescription for fee to move a player to Minors.
/rules/fees/to_ml_cost/valueFee in US dollars to move a player to Minors.
/rules/fees/trade_costA container element for fee to trade a player.
/rules/fees/trade_cost/labelDescription for fee to trade a player.
/rules/fees/trade_cost/valueFee in US dollars to trade a player.
/rules/fees/trade_flat_costA container element for fee to make a trade.
/rules/fees/trade_flat_cost/labelDescription for fee to make a trade.
/rules/fees/trade_flat_cost/valueFee in US dollars to make a trade.
/rules/player_poolThe pool of players available for the league to choose from.
/rules/player_pool/descriptionA description of the player pool rule.
/rules/player_pool/valueA code for the pool of players available for the league to choose from.
/rules/rosterA container element for the rules governing rosters.
/rules/roster/illegal_rosters_score_zeroIndicates whether a roster that does not meet the roster rules scores zero points, as a Boolean.
/rules/roster/injured_players_dont_count_against_roster_limitsIndicates whether injured players count against roster limits, as a Boolean.
/rules/roster/minor_league_players_dont_count_against_roster_limitsIndicates whether minor league players count against roster limits, as a Boolean.
/rules/roster/positionsA container element for a list of positions as they apply to roster limits.
/rules/roster/positions/positionA container element for the roster rules applying to a particular position.
/rules/roster/positions/position/abbrAn abbreviation for the position.
/rules/roster/positions/position/max_activeThe maximum number of players on the roster who may be active at this position, as an integer.
/rules/roster/positions/position/max_totalThe total number of players at this position that may be included on a roster, as an interger or No Limit.
/rules/roster/positions/position/min_activeThe minimum number of players on the roster who may be active at this position
/rules/roster/statusesA container element for a list of the statuses that players on a roster can have.
/rules/roster/statuses/statusA container element for the data on a status.
/rules/roster/statuses/status/descriptionA description of the status, as a string.
/rules/roster/statuses/status/maxThe maximum number of players who can have this status on a roster at any given time.
/rules/roster/statuses/status/minThe minimum number of players who can have this status on a roster at any given time.
/rules/scoring_systemA container element for the rule that governs how scoring is done.
/rules/scoring_system/has_weightsSpecifies whether the scoring system has weights that make certain categories more significant than others, as a boolen.
/rules/scoring_system/scoring_periodSpecifies the scoring period, as a string.
/rules/scoring_system/scoring_system
/rules/scoring_system/standings_tiebreaker
/rules/scoring_system/type
/rules/scoring_system/win_determinationSpecifies how wins are determined in a fantasy matchup, for head to head scoring systems.
/rules/transactionsA container element for the rules governing transactions.
/rules/transactions/add_drop_policyA container element for the rule that governs how adds and drops are handled.
/rules/transactions/add_drop_policy/descriptionA description of the rule that governs how adds and drops are handled.
/rules/transactions/add_drop_policy/valueSpecifies the method by which adds and drops are handled.
/rules/transactions/lineup_deadlineA container element for the rule that governs the deadline for making lineup changes.
/rules/transactions/lineup_deadline/descriptionA description of the rule that governs the deadline for making lineup changes.
/rules/transactions/lineup_deadline/valueSpecifies the deadline for making changes to a lineup.
/rules/transactions/lineup_effectiveSpecifies if the lineups can be set on a daily basis or period basis for a single period.
/rules/transactions/lineup_policyA container element for the rule that governs how owners can set their lineups.
/rules/transactions/lineup_policy/descriptionA description of the rule that governs how owners can set their lineups.
/rules/transactions/lineup_policy/valueSpecifies the rule that governs how owners can set their lineups.
/rules/transactions/lineup_restrict_i_statusA container element for the rule that governs whether or not a player who is not on the disabled list can be placed on injured status.
/rules/transactions/lineup_restrict_i_status/descriptionA description of the rule that governs whether or not a player who is not on the disabled list can be placed on injured status.
/rules/transactions/lineup_restrict_i_status/valueSpecifies whether a player who is not on the diabled list can be placed on injured status, as a Boolean.
/rules/transactions/lineup_restrict_ml_statusA container element for the rule that governs whether or not a player who is not in the minors can be placed in the Minors status.
/rules/transactions/lineup_restrict_ml_status/descriptionA description of the rule that governs whether or not a player who is not on the minors can be placed in the Minors status.
/rules/transactions/lineup_restrict_ml_status/valueSpecifies whether a player who is not in the minors can be placed on Minors status, as a boolean.
/rules/transactions/trade_deadlineA container element for the rule that specifies the trade deadline.
/rules/transactions/trade_deadline/descriptionA description of the trade deadline.
/rules/transactions/trade_deadline/valueThe trade deadline, as a date string in the form YYYYMMDD.
/rules/transactions/trade_policyA container element for the rule that governs how trades are done.
/rules/transactions/trade_policy/descriptionA description of the rule that governs how trades are done.
/rules/transactions/trade_policy/valueSpecifies the method by which trades are done.
/rules/transactions/trade_post_seasonA container element for the rule that governs whether owners may make trades in the offseason.
/rules/transactions/trade_post_season/descriptionA description of the rule that governs whether owners may make trades in the offseason.
/rules/transactions/trade_post_season/valueSpecified whether an owner can make trades in the offseason, as a Boolean.
/rules/wildcardsA container element that contains the wildcard rules for a league.
/rules/wildcards/wildcardA containter element for a wildcard.
/rules/wildcards/wildcard/addA boolean to denote whether the value for each player on the roster can be added to come up with the total for a team.
/rules/wildcards/wildcard/defaultThe default value of a wildcard.
/rules/wildcards/wildcard/display_labelDisplay label for a wildcard.
/rules/wildcards/wildcard/keyAn abbreviation for the wildcard.
/rules/wildcards/wildcard/max_activeThe maximum value of the wildcard for an active player on the roster.
/rules/wildcards/wildcard/max_totalThe maximum value of the wildcard for the team total.
/rules/wildcards/wildcard/reset_policyPolicy to denote when the wildcard value resets to the default value for a player.
/rules/fees/entry_feeA container element for the entry fee rule.
/rules/fees/entry_fee/labelA description of the entry fee.
/rules/fees/entry_fee/valueThe amount of the entry fee in US dollars.
/rules/roster/practice_squad_players_dont_count_against_roster_limitsIndicates whether practice squad players count against roster limits, as a Boolean.
/rules/transactions/add_drop_deadlineA container element for the rule that governs when the add/drops lock for a given period (only applicable to football).
/rules/transactions/add_drop_deadline/descriptionA description of the add_drop_deadline.
/rules/transactions/add_drop_deadline/valueSpecifies when the add/drops lock for a given period.
/rules/transactions/add_drop_waiver_resetA container element for the rule that specifies when a waiver order resets.
/rules/transactions/add_drop_waiver_reset/descriptionA description of the rule that specifies when a waiver order resets.
/rules/transactions/add_drop_waiver_reset/valueSpecifies the period on which the waiver order resets.
/rules/transactions/add_drop_waiver_runA container element for the rule that governs when the waiver process runs.
/rules/transactions/add_drop_waiver_run/descriptionA description of the rule that governs when the waiver process runs.
/rules/transactions/add_drop_waiver_run/valueSpecifies when the waiver process runs.
/rules/transactions/add_drop_waiver_run/value/daysSpecifies the days on which the waivers process runs, as a numerical string in which each digit represents a day of the week.

Resource

Rules

Description

A list of rules for a fantasy league.  The list includes rules that cover:

  • Eligibility Rules
  • Fees
  • Roster Rules
  • Transaction Rules
  • Scoring System Rules
  • Player Pool Rules
  • Wildcard Rules

Note that these rules are all enforced by the CBSI Fantasy Sports application.  Your application is not required to enforce any of these rules.  If your application attempts to perform any operation prohibited by the rules for a particular league, and appropriate error message will be returned.  A wildcard is a custom property assigned to a player by the commissioner for a given league.

Change Log

January 17, 2014

  • Added wildcard rules

HTTP Methods

GET

Retrieve rules for a fantasy league.

URL

http://api.cbssports.com/fantasy/league/rules?version=3.0

Parameters

response_format(optional) Specifies the format in which the requested resource should be returned.  Valid values are XML and JSON.  The default is XML.

Example

Retrieve Rules

Sample URL

http://api.cbssports.com/fantasy/league/rules?version=3.0

XML Response

<?xml version="1.0"?>
<result uriAlias="/league/rules" uri="/league/rules" statusCode="200" statusMessage="OK">
  <body>
    <rules>
      <wildcards>
        <wildcard>
          <add>1</add>
          <display_label>Salary</display_label>
          <reset_policy>On Drop/Trade</reset_policy>
          <max_total>2500</max_total>
          <default>100</default>
          <max_active>1800</max_active>
          <key>salary</key>
        </wildcard>
        <wildcard>
          <add>0</add>
          <display_label>Contract</display_label>
          <reset_policy>Never</reset_policy>
          <max_total/>
          <default>07</default>
          <max_active/>
          <key>contract</key>
        </wildcard>
      </wildcards>
      <eligibility>
        <player_elig>Players are eligible at their primary position, plus positions they've played 20 games last year or 5 games this year.</player_elig>
      </eligibility>
      <fees>
        <from_ir_cost>
          <value>1</value>
          <label>Move from Injured Fee</label>
        </from_ir_cost>
        <drop_cost>
          <value>1</value>
          <label>Drop Fee</label>
        </drop_cost>
        <from_ml_cost>
          <value>1</value>
          <label>Move from Minors Fee</label>
        </from_ml_cost>
        <trade_cost>
          <value>1</value>
          <label>Trade Per-Player Fee</label>
        </trade_cost>
        <reserve_cost>
          <value>1</value>
          <label>Reserve Fee</label>
        </reserve_cost>
        <activate_cost>
          <value>1</value>
          <label>Activate Fee</label>
        </activate_cost>
        <add_cost>
          <value>1</value>
          <label>Add Fee</label>
        </add_cost>
        <to_ml_cost>
          <value>1</value>
          <label>Move to Minors Fee</label>
        </to_ml_cost>
        <trade_flat_cost>
          <value>1</value>
          <label>Trade Flat Fee</label>
        </trade_flat_cost>
        <to_ir_cost>
          <value>1</value>
          <label>Move to Injured Fee</label>
        </to_ir_cost>
      </fees>
      <roster>
        <injured_players_dont_count_against_roster_limits>1</injured_players_dont_count_against_roster_limits>
        <positions>
          <position>
            <abbr>C</abbr>
            <max_total>No Limit</max_total>
            <max_active>1</max_active>
            <min_active>1</min_active>
          </position>
          <position>
            <abbr>1B</abbr>
            <max_total>No Limit</max_total>
            <max_active>1</max_active>
            <min_active>1</min_active>
          </position>
          <position>
            <abbr>2B</abbr>
            <max_total>No Limit</max_total>
            <max_active>1</max_active>
            <min_active>1</min_active>
          </position>
          <position>
            <abbr>3B</abbr>
            <max_total>No Limit</max_total>
            <max_active>1</max_active>
            <min_active>1</min_active>
          </position>
          <position>
            <abbr>SS</abbr>
            <max_total>No Limit</max_total>
            <max_active>1</max_active>
            <min_active>1</min_active>
          </position>
          <position>
            <abbr>OF</abbr>
            <max_total>No Limit</max_total>
            <max_active>3</max_active>
            <min_active>3</min_active>
          </position>
          <position>
            <abbr>U</abbr>
            <max_total>No Limit</max_total>
            <max_active>1</max_active>
            <min_active>1</min_active>
          </position>
          <position>
            <abbr>P</abbr>
            <max_total>No Limit</max_total>
            <max_active/>
            <min_active>0</min_active>
          </position>
        </positions>
        <statuses>
          <status>
            <min>9</min>
            <max>16</max>
            <description>Active Players</description>
          </status>
          <status>
            <min>0</min>
            <max>5</max>
            <description>Reserve Players</description>
          </status>
          <status>
            <min>0</min>
            <max>0</max>
            <description>Injured Players</description>
          </status>
          <status>
            <min>0</min>
            <max>0</max>
            <description>Minors Players</description>
          </status>
          <status>
            <min>9</min>
            <max>21</max>
            <description>Total Players</description>
          </status>
        </statuses>
        <minor_league_players_dont_count_against_roster_limits>1</minor_league_players_dont_count_against_roster_limits>
        <illegal_rosters_score_zero>1</illegal_rosters_score_zero>
      </roster>
      <transactions>
        <lineup_effective>daily</lineup_effective>
        <lineup_restrict_ml_status>
          <value>0</value>
          <description>League does not require a player to be in the minors to be placed into Minors status</description>
        </lineup_restrict_ml_status>
        <add_drop_policy>
          <value>free_for_all</value>
          <description>Owners may do add/drops.</description>
        </add_drop_policy>
        <trade_policy>
          <value>free_for_all</value>
          <description>Owners may do trades.</description>
        </trade_policy>
        <trade_deadline>
          <value>20140816</value>
          <description>No trades can be made after the trade deadline of 11:59 pm et 8/16/14.</description>
        </trade_deadline>
        <lineup_restrict_i_status>
          <value>0</value>
          <description>League does not require a player to be on the disabled list to be placed into Injured status</description>
        </lineup_restrict_i_status>
        <trade_post_season>
          <value>0</value>
          <description>Owners may not make trades during the offseason.</description>
        </trade_post_season>
        <lineup_policy>
          <value>free_for_all</value>
          <description>Owners may set lineups and change players' positions from a list of their eligible positions.</description>
        </lineup_policy>
        <lineup_deadline>
          <value>five_minutes_before_first_game_of_day</value>
          <description>Lineups may be set daily up to 5 minutes prior to the first game of the day.</description>
        </lineup_deadline>
      </transactions>
      <scoring_system>
        <standings_tiebreaker>Ties in the standings are resolved in this order: Winning Percentage, Total Points.</standings_tiebreaker>
        <scoring_period>Scoring based on total stats each period.</scoring_period>
        <has_weights>0</has_weights>
        <scoring_system>Head-to-Head, Points Based System.</scoring_system>
        <win_determination>points</win_determination>
        <type>h2h</type>
      </scoring_system>
      <player_pool>
        <value>both</value>
        <description>AL and NL Players.</description>
      </player_pool>
    </rules>
  </body>
</result>

JSON Response

{
   "body" : {
      "rules" : {
         "wildcards" : [
            {
               "add" : 1,
               "display_label" : "Salary",
               "reset_policy" : "On Drop/Trade",
               "max_total" : "2500",
               "default" : "100",
               "max_active" : "1800",
               "key" : "salary"
            },
            {
               "add" : 0,
               "display_label" : "Contract",
               "reset_policy" : "Never",
               "max_total" : "",
               "default" : "07",
               "max_active" : "",
               "key" : "contract"
            }
         ],
         "eligibility" : {
            "player_elig" : "Players are eligible at their primary position, plus positions they've played 20 games last year or 5 games this year."
         },
         "fees" : {
            "from_ir_cost" : {
               "value" : "1",
               "label" : "Move from Injured Fee"
            },
            "drop_cost" : {
               "value" : "1",
               "label" : "Drop Fee"
            },
            "from_ml_cost" : {
               "value" : "1",
               "label" : "Move from Minors Fee"
            },
            "trade_cost" : {
               "value" : "1",
               "label" : "Trade Per-Player Fee"
            },
            "reserve_cost" : {
               "value" : "1",
               "label" : "Reserve Fee"
            },
            "activate_cost" : {
               "value" : "1",
               "label" : "Activate Fee"
            },
            "add_cost" : {
               "value" : "1",
               "label" : "Add Fee"
            },
            "to_ml_cost" : {
               "value" : "1",
               "label" : "Move to Minors Fee"
            },
            "trade_flat_cost" : {
               "value" : "1",
               "label" : "Trade Flat Fee"
            },
            "to_ir_cost" : {
               "value" : "1",
               "label" : "Move to Injured Fee"
            }
         },
         "roster" : {
            "injured_players_dont_count_against_roster_limits" : "1",
            "positions" : [
               {
                  "abbr" : "C",
                  "max_total" : "No Limit",
                  "max_active" : "1",
                  "min_active" : "1"
               },
               {
                  "abbr" : "1B",
                  "max_total" : "No Limit",
                  "max_active" : "1",
                  "min_active" : "1"
               },
               {
                  "abbr" : "2B",
                  "max_total" : "No Limit",
                  "max_active" : "1",
                  "min_active" : "1"
               },
               {
                  "abbr" : "3B",
                  "max_total" : "No Limit",
                  "max_active" : "1",
                  "min_active" : "1"
               },
               {
                  "abbr" : "SS",
                  "max_total" : "No Limit",
                  "max_active" : "1",
                  "min_active" : "1"
               },
               {
                  "abbr" : "OF",
                  "max_total" : "No Limit",
                  "max_active" : "3",
                  "min_active" : "3"
               },
               {
                  "abbr" : "U",
                  "max_total" : "No Limit",
                  "max_active" : "1",
                  "min_active" : "1"
               },
               {
                  "abbr" : "P",
                  "max_total" : "No Limit",
                  "max_active" : null,
                  "min_active" : "0"
               }
            ],
            "statuses" : [
               {
                  "min" : "9",
                  "max" : "16",
                  "description" : "Active Players"
               },
               {
                  "min" : "0",
                  "max" : "5",
                  "description" : "Reserve Players"
               },
               {
                  "min" : "0",
                  "max" : "0",
                  "description" : "Injured Players"
               },
               {
                  "min" : "0",
                  "max" : "0",
                  "description" : "Minors Players"
               },
               {
                  "min" : "9",
                  "max" : "21",
                  "description" : "Total Players"
               }
            ],
            "minor_league_players_dont_count_against_roster_limits" : "1",
            "illegal_rosters_score_zero" : "1"
         },
         "transactions" : {
            "lineup_effective" : "daily",
            "lineup_restrict_ml_status" : {
               "value" : 0,
               "description" : "League does not require a player to be in the minors to be placed into Minors status"
            },
            "add_drop_policy" : {
               "value" : "free_for_all",
               "description" : "Owners may do add/drops."
            },
            "trade_policy" : {
               "value" : "free_for_all",
               "description" : "Owners may do trades."
            },
            "trade_deadline" : {
               "value" : "20140816",
               "description" : "No trades can be made after the trade deadline of 11:59 pm et 8/16/14."
            },
            "lineup_restrict_i_status" : {
               "value" : 0,
               "description" : "League does not require a player to be on the disabled list to be placed into Injured status"
            },
            "trade_post_season" : {
               "value" : 0,
               "description" : "Owners may not make trades during the offseason."
            },
            "lineup_policy" : {
               "value" : "free_for_all",
               "description" : "Owners may set lineups and change players' positions from a list of their eligible positions."
            },
            "lineup_deadline" : {
               "value" : "five_minutes_before_first_game_of_day",
               "description" : "Lineups may be set daily up to 5 minutes prior to the first game of the day."
            }
         },
         "scoring_system" : {
            "standings_tiebreaker" : "Ties in the standings are resolved in this order: Winning Percentage, Total Points.",
            "scoring_period" : "Scoring based on total stats each period.",
            "has_weights" : 0,
            "scoring_system" : "Head-to-Head, Points Based System.",
            "win_determination" : "points",
            "type" : "h2h"
         },
         "player_pool" : {
            "value" : "both",
            "description" : "AL and NL Players."
         }
      }
   },
   "uriAlias" : "/league/rules",
   "statusMessage" : "OK",
   "uri" : "/league/rules",
   "statusCode" : 200
}

Sample URL

http://api.cbssports.com/fantasy/league/rules?version=3.0

XML Response

<?xml version="1.0"?>
<result uriAlias="/league/rules" uri="/league/rules" statusCode="200" statusMessage="OK">
  <body>
    <rules>
      <eligibility>
        <player_elig>Players are eligible at their primary position.</player_elig>
      </eligibility>
      <fees>
        <entry_fee>
          <value>50</value>
          <label>League Entry Fee</label>
        </entry_fee>
      </fees>
      <roster>
        <injured_players_dont_count_against_roster_limits/>
        <practice_squad_players_dont_count_against_roster_limits>0</practice_squad_players_dont_count_against_roster_limits>
        <positions>
          <position>
            <abbr>QB</abbr>
            <max_total>3</max_total>
            <max_active>1</max_active>
            <min_active>1</min_active>
          </position>
          <position>
            <abbr>RB</abbr>
            <max_total>5</max_total>
            <max_active>2</max_active>
            <min_active>2</min_active>
          </position>
          <position>
            <abbr>WR</abbr>
            <max_total>6</max_total>
            <max_active>3</max_active>
            <min_active>3</min_active>
          </position>
          <position>
            <abbr>TE</abbr>
            <max_total>3</max_total>
            <max_active>1</max_active>
            <min_active>1</min_active>
          </position>
          <position>
            <abbr>K</abbr>
            <max_total>3</max_total>
            <max_active>1</max_active>
            <min_active>1</min_active>
          </position>
          <position>
            <abbr>DST</abbr>
            <max_total>3</max_total>
            <max_active>1</max_active>
            <min_active>1</min_active>
          </position>
        </positions>
        <statuses>
          <status>
            <min>9</min>
            <max>9</max>
            <description>Active Players</description>
          </status>
          <status>
            <min>7</min>
            <max>7</max>
            <description>Reserve Players</description>
          </status>
          <status>
            <min>0</min>
            <max>0</max>
            <description>Injured Players</description>
          </status>
          <status>
            <min>0</min>
            <max>0</max>
            <description>Practice Players</description>
          </status>
          <status>
            <min>16</min>
            <max>16</max>
            <description>Total Players</description>
          </status>
        </statuses>
        <illegal_rosters_score_zero>1</illegal_rosters_score_zero>
      </roster>
      <transactions>
        <lineup_effective/>
        <lineup_restrict_ml_status>
          <value>0</value>
          <description>League does not require a player to be in the minors to be placed into Minors status</description>
        </lineup_restrict_ml_status>
        <add_drop_waiver_reset>
          <value>weekly</value>
          <description>The waiver order resets after each weeks' games.</description>
        </add_drop_waiver_reset>
        <add_drop_policy>
          <value>waivers</value>
          <description>Add/Drops are handled by a waivers process.</description>
        </add_drop_policy>
        <trade_policy>
          <value>free_for_all</value>
          <description>Owners may do trades.</description>
        </trade_policy>
        <trade_deadline>
          <value>20131108</value>
          <description>No trades can be made after the trade deadline of 11:59 pm et 11/8/13.</description>
        </trade_deadline>
        <lineup_restrict_i_status>
          <value>0</value>
          <description>League does not require a player to be on injured reserve to be placed into Injured status</description>
        </lineup_restrict_i_status>
        <add_drop_deadline>
          <value>five_minutes_before_Sunday</value>
          <description>Transactions will lock five minutes before the first game on Sunday. Players whose teams play before Sunday will be locked for the remainder of the scoring period.</description>
        </add_drop_deadline>
        <trade_post_season>
          <value>0</value>
          <description>Owners may not make trades during the offseason.</description>
        </trade_post_season>
        <lineup_policy>
          <value>free_for_all</value>
          <description>Owners may set lineups and change players' positions from a list of their eligible positions.</description>
        </lineup_policy>
        <lineup_deadline>
          <value>game_time</value>
          <description>Lineup deadline is 5 minutes before gametime for each player.</description>
        </lineup_deadline>
        <add_drop_waiver_run>
          <value>
            <days>23456</days>
          </value>
          <description>The waiver process runs on Tuesday, Wednesday, Thursday, Friday and Saturday.</description>
        </add_drop_waiver_run>
      </transactions>
      <scoring_system>
        <standings_tiebreaker>Ties in the standings are resolved in this order: Winning Percentage, Winning Percentage, Total Points.</standings_tiebreaker>
        <scoring_period>Scoring based on total stats each period.</scoring_period>
        <has_weights>0</has_weights>
        <scoring_system>Head-to-Head, Points Based System.</scoring_system>
        <win_determination>points</win_determination>
        <type>h2h</type>
      </scoring_system>
      <player_pool>
        <value>both</value>
        <description>AFC and NFC Players.</description>
      </player_pool>
    </rules>
  </body>
</result>

JSON Response

{
   "body" : {
      "rules" : {
         "eligibility" : {
            "player_elig" : "Players are eligible at their primary position."
         },
         "fees" : {
            "entry_fee" : {
               "value" : "50",
               "label" : "League Entry Fee"
            }
         },
         "roster" : {
            "injured_players_dont_count_against_roster_limits" : "",
            "practice_squad_players_dont_count_against_roster_limits" : 0,
            "positions" : [
               {
                  "abbr" : "QB",
                  "max_total" : "3",
                  "max_active" : "1",
                  "min_active" : "1"
               },
               {
                  "abbr" : "RB",
                  "max_total" : "5",
                  "max_active" : "2",
                  "min_active" : "2"
               },
               {
                  "abbr" : "WR",
                  "max_total" : "6",
                  "max_active" : "3",
                  "min_active" : "3"
               },
               {
                  "abbr" : "TE",
                  "max_total" : "3",
                  "max_active" : "1",
                  "min_active" : "1"
               },
               {
                  "abbr" : "K",
                  "max_total" : "3",
                  "max_active" : "1",
                  "min_active" : "1"
               },
               {
                  "abbr" : "DST",
                  "max_total" : "3",
                  "max_active" : "1",
                  "min_active" : "1"
               }
            ],
            "statuses" : [
               {
                  "min" : "9",
                  "max" : "9",
                  "description" : "Active Players"
               },
               {
                  "min" : "7",
                  "max" : "7",
                  "description" : "Reserve Players"
               },
               {
                  "min" : "0",
                  "max" : "0",
                  "description" : "Injured Players"
               },
               {
                  "min" : "0",
                  "max" : "0",
                  "description" : "Practice Players"
               },
               {
                  "min" : "16",
                  "max" : "16",
                  "description" : "Total Players"
               }
            ],
            "illegal_rosters_score_zero" : "1"
         },
         "transactions" : {
            "lineup_effective" : "",
            "lineup_restrict_ml_status" : {
               "value" : 0,
               "description" : "League does not require a player to be in the minors to be placed into Minors status"
            },
            "add_drop_waiver_reset" : {
               "value" : "weekly",
               "description" : "The waiver order resets after each weeks' games."
            },
            "add_drop_policy" : {
               "value" : "waivers",
               "description" : "Add/Drops are handled by a waivers process."
            },
            "trade_policy" : {
               "value" : "free_for_all",
               "description" : "Owners may do trades."
            },
            "trade_deadline" : {
               "value" : "20131108",
               "description" : "No trades can be made after the trade deadline of 11:59 pm et 11/8/13."
            },
            "lineup_restrict_i_status" : {
               "value" : 0,
               "description" : "League does not require a player to be on injured reserve to be placed into Injured status"
            },
            "add_drop_deadline" : {
               "value" : "five_minutes_before_Sunday",
               "description" : "Transactions will lock five minutes before the first game on Sunday. Players whose teams play before Sunday will be locked for the remainder of the scoring period."
            },
            "trade_post_season" : {
               "value" : 0,
               "description" : "Owners may not make trades during the offseason."
            },
            "lineup_policy" : {
               "value" : "free_for_all",
               "description" : "Owners may set lineups and change players' positions from a list of their eligible positions."
            },
            "lineup_deadline" : {
               "value" : "game_time",
               "description" : "Lineup deadline is 5 minutes before gametime for each player."
            },
            "add_drop_waiver_run" : {
               "value" : {
                  "days" : "23456"
               },
               "description" : "The waiver process runs on Tuesday, Wednesday, Thursday, Friday and Saturday."
            }
         },
         "scoring_system" : {
            "standings_tiebreaker" : "Ties in the standings are resolved in this order: Winning Percentage, Winning Percentage, Total Points.",
            "scoring_period" : "Scoring based on total stats each period.",
            "has_weights" : 0,
            "scoring_system" : "Head-to-Head, Points Based System.",
            "win_determination" : "points",
            "type" : "h2h"
         },
         "player_pool" : {
            "value" : "both",
            "description" : "AFC and NFC Players."
         }
      }
   },
   "uriAlias" : "/league/rules",
   "statusMessage" : "OK",
   "uri" : "/league/rules",
   "statusCode" : 200
}

XML field definitions

/rules

A container element for the list of rules.

/rules/eligibility

A container element for a list of eligibilty rules for different positions.  The player must have played the number of games indicated at a position to be eligible to be drafted in that position.

/rules/eligibility/player_elig

The eligibility rules for baseball players other than pitchers, as a text string.

/rules/fees

A container element for rules regarding fees.  There will be a child element for each of the types of fees that a league charges.

/rules/fees/activate_cost

A container element for fee to activate a player.

/rules/fees/activate_cost/label

Label for fee to activate a player.

/rules/fees/activate_cost/value

Fee in dollars to activate a player.

/rules/fees/add_cost

A container element for fee for to add a player to a team’s roster.

/rules/fees/add_cost/label

Label for fee to add a player to a team’s roster.

/rules/fees/add_cost/value

Fee in dollars to add a player to a team’s roster.

/rules/fees/drop_cost

A container element for fee to drop a player from a team’s roster.

/rules/fees/drop_cost/label

Label for fee to drop a player from a team’s roster.

/rules/fees/drop_cost/value

Fee in dollars to drop a player from a team’s roster.

/rules/fees/from_ir_cost

A container element for fee to move a player from Injured Reserve.

/rules/fees/from_ir_cost/label

Description for fee to move a player from Injured Reserve.

/rules/fees/from_ir_cost/value

Fee in US dollars to move a player from Injured Reserve.

/rules/fees/from_ml_cost

A container element for fee to move a player from Minors.

/rules/fees/from_ml_cost/label

Description for fee to move a player from Minors.

/rules/fees/from_ml_cost/value

Fee in US dollars to move a player from Injured Reserve

/rules/fees/reserve_cost

A container element for fee to bench a player.

/rules/fees/reserve_cost/label

Description for fee to bench a player.

/rules/fees/reserve_cost/value

Fee in US dollars to bench a player.

/rules/fees/to_ir_cost

A container element for fee to move a player to Injured Reserve.

/rules/fees/to_ir_cost/label

Description for fee to move a player to Injured Reserve.

/rules/fees/to_ir_cost/value

Fee in US dollars to move a player to Injured Reserve.

/rules/fees/to_ml_cost

A container element for fee to move a player to Minors.

/rules/fees/to_ml_cost/label

Description for fee to move a player to Minors.

/rules/fees/to_ml_cost/value

Fee in US dollars to move a player to Minors.

/rules/fees/trade_cost

A container element for fee to trade a player.  This fee applies to each player involved in the trade.

/rules/fees/trade_cost/label

Description for fee to trade a player.

/rules/fees/trade_cost/value

Fee in US dollars to trade a player.

/rules/fees/trade_flat_cost

A container element for fee to make a trade.  This fee applies to the trade as a whole and not each player associated with the trade.

/rules/fees/trade_flat_cost/label

Description for fee to make a trade.

/rules/fees/trade_flat_cost/value

Fee in US dollars to make a trade.

/rules/player_pool

The pool of players available for the league to choose from.

/rules/player_pool/description

A description of the player pool rule.

/rules/player_pool/value

A code for the pool of players available for the league to choose from.  Possible values are a - American League only n - National League only both - Both leagues custom - Custom player pool

/rules/roster

A container element for the rules governing rosters.

/rules/roster/illegal_rosters_score_zero

Indicates whether a roster that does not meet the roster rules scores zero points, as a Boolean.  Possible values are 1 - (true -- illegal rosters score zero points) 0 - (false -- illegal rosters can score points).

/rules/roster/injured_players_dont_count_against_roster_limits

Indicates whether injured players count against roster limits, as a Boolean.  Possible values are 1 - (true -- injured players do not count against roster limits) 0 - (false -- injured players do count against roster limits).

/rules/roster/minor_league_players_dont_count_against_roster_limits

Indicates whether minor league players count against roster limits, as a Boolean.  Possible values are 1 - (true -- minor league players do not count against roster limits) 0 - (false -- minor league players do count against roster limits).

/rules/roster/positions

A container element for a list of positions as they apply to roster limits.

/rules/roster/positions/position

A container element for the roster rules applying to a particular position.

/rules/roster/positions/position/abbr

An abbreviation for the position.  You can get a list of the abbreviations and their expansions by requesting the Positions resource.

/rules/roster/positions/position/max_active

The maximum number of players on the roster who may be active at this position, as an integer.

/rules/roster/positions/position/max_total

The total number of players at this position that may be included on a roster, as an interger or No Limit.

/rules/roster/positions/position/min_active

The minimum number of players on the roster who may be active at this position

/rules/roster/statuses

A container element for a list of the statuses that players on a roster can have.

/rules/roster/statuses/status

A container element for the data on a status.

/rules/roster/statuses/status/description

A description of the status, as a string.  The roster status values correspond to the expansions of the roster status abreviations returned in /rosters/teams/team/players/player/roster_status.  Possible values are Active, Reserve, Injured, Minors, Total.

/rules/roster/statuses/status/max

The maximum number of players who can have this status on a roster at any given time.

/rules/roster/statuses/status/min

The minimum number of players who can have this status on a roster at any given time.

/rules/scoring_system

A container element for the rule that governs how scoring is done.

/rules/scoring_system/has_weights

Specifies whether the scoring system has weights that make certain categories more significant than others, as a boolen.  Possible values are 1 (true) and 0 (false).

/rules/scoring_system/scoring_period

Specifies the scoring period, as a string.  For display purposes only.

/rules/scoring_system/scoring_system

Specifies the scoring system, as a string.  Possible values are

Head-to-Head, Points Basedfor Head-to-Head Points Leagues
Head-to-Head, Number of Categoriesfor Head-to-Head, Most Categories is a Win Leagues
Head-to-Head, Individual Categoriesfor Head-to-Head, Each Category is a Win Leagues
Rotisseriefor Rotisserie Leagues
Ranked, Points Basedfor Ranked Leagues

/rules/scoring_system/standings_tiebreaker

Specifies the method by which ties are broken, as a string.  Possible values are

noneNo Standings Tiebrakers
h2hrecHead to Head Record
winpctWinning Percentage
totptsTotal Points
divrecDivision Record
ptsagstPoints Against

/rules/scoring_system/type

Specifies the type of scoring system, as one of the following values

rotoRotisserie
h2hhead to head
pointsRanked (points based)

/rules/scoring_system/win_determination

Specifies how wins are determined in a fantasy matchup, for head to head scoring systems.  Possible values are points - Most points is a win total_categories - Most categories is a win individual categories - Each category is a win

/rules/transactions

A container element for the rules governing transactions.

/rules/transactions/add_drop_policy

A container element for the rule that governs how adds and drops are handled.

/rules/transactions/add_drop_policy/description

A description of the rule that governs how adds and drops are handled.

/rules/transactions/add_drop_policy/value

Specifies the method by which adds and drops are handled.  Possible values are waivers - Adds and drops are handled via waivers. none - Owners are not allowed to do add/drops. faab_approve - Commissioner Approved Free Agent Auction Bidding process is used. faab_auto - Automated Free Agent Auction Bidding process is used. approve - Add Drops need to be approved by commissioner. free_for_all - Owners can make add/drops as they wish.

/rules/transactions/lineup_deadline

A container element for the rule that governs the deadline for making lineup changes.

/rules/transactions/lineup_deadline/description

A description of the rule that governs the deadline for making lineup changes.

/rules/transactions/lineup_deadline/value

Specifies the deadline for making changes to a lineup.  The possible values for baseball are as follows.

  • five_minutes_before_first_game_of_period - Lineups are set once for the start of each period.  Deadline is 5 minutes before gametime on the first day of the period.
  • five_minutes_before_first_game_of_day - Lineups may be set daily up to 5 minutes prior to the first game of the day.

/rules/transactions/lineup_effective

Specifies if the lineups can be set on a daily basis or period basis for a single period.  The possible values are as follows.

  • daily - Lineups can be set daily.
  • weekly - Lineups can be set once per period on the first day of the period.

/rules/transactions/lineup_policy

A container element for the rule that governs how owners can set their lineups.

/rules/transactions/lineup_policy/description

A description of the rule that governs how owners can set their lineups.

/rules/transactions/lineup_policy/value

Specifies the rule that governs how owners can set their lineups.  Possible values are free_for_all - Owners may set lineups and change player’s position to any position on their list of eligible positions. no_positions - Owners may set lineups, but not change positions. none - Owners may not set their lineups.

/rules/transactions/lineup_restrict_i_status

A container element for the rule that governs whether or not a player who is not on the disabled list can be placed on injured status.

/rules/transactions/lineup_restrict_i_status/description

A description of the rule that governs whether or not a player who is not on the disabled list can be placed on injured status.

/rules/transactions/lineup_restrict_i_status/value

Specifies whether a player who is not on the diabled list can be placed on injured status, as a Boolean.  Possible values are 1 - (true) Only a player on the disabled list can be placed on injured status.  0 - (false) Any player can be placed on injured status.

/rules/transactions/lineup_restrict_ml_status

A container element for the rule that governs whether or not a player who is not in the minors can be placed in the Minors status.

/rules/transactions/lineup_restrict_ml_status/description

A description of the rule that governs whether or not a player who is not on the minors can be placed in the Minors status.

/rules/transactions/lineup_restrict_ml_status/value

Specifies whether a player who is not in the minors can be placed on Minors status, as a boolean.  Possible values are 1 - (true) Only a player in the minors can be placed on Minors status.  0 - (false) Any player can be placed on minors status.

/rules/transactions/trade_deadline

A container element for the rule that specifies the trade deadline.

/rules/transactions/trade_deadline/description

A description of the trade deadline.

/rules/transactions/trade_deadline/value

The trade deadline, as a date string in the form YYYYMMDD.

/rules/transactions/trade_policy

A container element for the rule that governs how trades are done.

/rules/transactions/trade_policy/description

A description of the rule that governs how trades are done.

/rules/transactions/trade_policy/value

Specifies the method by which trades are done.  Possible values are “free_for_all, vote, and approve.  For a description of the trade policy, see the description in the Rules resource.

/rules/transactions/trade_post_season

A container element for the rule that governs whether owners may make trades in the offseason.

/rules/transactions/trade_post_season/description

A description of the rule that governs whether owners may make trades in the offseason.

/rules/transactions/trade_post_season/value

Specified whether an owner can make trades in the offseason, as a Boolean.  Possible values are 1 - (true) Owner can make trades in the offseason.  0 - (false) Owners can not make trades in the offseason.

/rules/wildcards

A container element that contains the wildcard rules for a league.  If a league does not use wildcards, the node does not exist.

/rules/wildcards/wildcard

A containter element for a wildcard.

/rules/wildcards/wildcard/add

A boolean to denote whether the value for each player on the roster can be added to come up with the total for a team.

/rules/wildcards/wildcard/default

The default value of a wildcard.

/rules/wildcards/wildcard/display_label

Display label for a wildcard.

/rules/wildcards/wildcard/key

An abbreviation for the wildcard.

/rules/wildcards/wildcard/max_active

The maximum value of the wildcard for an active player on the roster.

/rules/wildcards/wildcard/max_total

The maximum value of the wildcard for the team total.

/rules/wildcards/wildcard/reset_policy

Policy to denote when the wildcard value resets to the default value for a player.  Possible values are Never - never reset the wildcard to default value.  On Drop - reset the wildcard to default value when the player is dropped from a roster.  On Trade - reset the wildcard to default value when the player is traded.  On Drop/Trade - reset the wildcard to default value when the player is either dropped or traded.

/rules/fees/entry_fee

A container element for the entry fee rule.

/rules/fees/entry_fee/label

A description of the entry fee.

/rules/fees/entry_fee/value

The amount of the entry fee in US dollars.

/rules/roster/practice_squad_players_dont_count_against_roster_limits

Indicates whether practice squad players count against roster limits, as a Boolean.  Possible values are 1 (true -- practice squad players do not count against roster limits) and 0 (false -- practice squad players do count against roster limits).

/rules/transactions/add_drop_deadline

A container element for the rule that governs when the add/drops lock for a given period (only applicable to football).

/rules/transactions/add_drop_deadline/description

A description of the add_drop_deadline.

/rules/transactions/add_drop_deadline/value

Specifies when the add/drops lock for a given period.  Possbile values are first_game - Five Minutes before the first game of the period. five_minutes_before_Sunday - Five Minutes before the first game of Sunday.

/rules/transactions/add_drop_waiver_reset

A container element for the rule that specifies when a waiver order resets.

/rules/transactions/add_drop_waiver_reset/description

A description of the rule that specifies when a waiver order resets.

/rules/transactions/add_drop_waiver_reset/value

Specifies the period on which the waiver order resets.  Possible values are weekly and never.

/rules/transactions/add_drop_waiver_run

A container element for the rule that governs when the waiver process runs.

/rules/transactions/add_drop_waiver_run/description

A description of the rule that governs when the waiver process runs.

/rules/transactions/add_drop_waiver_run/value

Specifies when the waiver process runs.

/rules/transactions/add_drop_waiver_run/value/days

Specifies the days on which the waivers process runs, as a numerical string in which each digit represents a day of the week.  Sunday is represented by 0, Monday by 1, etc., thus a value of 036 means the waiver process runs on Sunday, Wednesday, and Saturday.

Specifies the player’s roster status on a fantasy team.