0

Player stats

Does anybody have the information for what each stat_id is for? The only definitive one's I've found so far are 9-14.

9 Rushing - Att
10 Rushing - Yds
11 Rushing - TD
12 Receiving - Rec
13 Receiving - Yds
14 Receiving - TD

by
4 Replies
  • I should add, this is for football. I've no idea if the the stat_id from /player extends to other sports or if they differ.
    0
  • I had this same question, and it looks like the answer is found in this thread. I haven't actually tried it out yet though, so I can't vouch for the answer, other than that it sounds reasonable, I guess.
    0
  • QUOTE (drewc @ Aug 28 2010, 11:23 AM) <{POST_SNAPBACK}>
    I had this same question, and it looks like the answer is found in this thread. I haven't actually tried it out yet though, so I can't vouch for the answer, other than that it sounds reasonable, I guess.


    I'll give that a shot. How odd that it returns just an ID and no more info in a direct way.
    0
  • QUOTE (jsterken97 @ Aug 28 2010, 07:01 PM) <{POST_SNAPBACK}>
    I'll give that a shot. How odd that it returns just an ID and no more info in a direct way.

    We've also added in a "stat_categories" resource beneath the Game resource if you just want a massive list of all of the possible stat categories for a game. For example:

    CODE
    http://fantasysports.yahooapis.com/fantasy/v2/game/nfl;out=stat_categories

    CODE
      <game>
    <game_key>242</game_key>
    <game_id>242</game_id>
    <name>Football</name>
    <code>nfl</code>
    <type>full</type>

    <url>http://football.fantasysports.yahoo.com/f1</url>
    <season>2010</season>
    <stat_categories>
    <stats>
    <stat>
    <stat_id>0</stat_id>
    <name>Games Played</name>

    <display_name>GP</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>O</position_type>
    <position_type>DP</position_type>
    <position_type>K</position_type>

    <position_type>DT</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>1</stat_id>
    <name>Passing Attempts</name>
    <display_name>Pass&lt;br&gt;Att</display_name>

    <sort_order>1</sort_order>
    <position_types>
    <position_type>O</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>2</stat_id>

    <name>Completions</name>
    <display_name>Comp</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>O</position_type>
    </position_types>
    </stat>

    <stat>
    <stat_id>3</stat_id>
    <name>Incomplete Passes</name>
    <display_name>Inc</display_name>
    <sort_order>0</sort_order>
    <position_types>
    <position_type>O</position_type>

    </position_types>
    </stat>
    <stat>
    <stat_id>4</stat_id>
    <name>Passing Yards</name>
    <display_name>Pass&lt;br&gt;Yds</display_name>

    <sort_order>1</sort_order>
    <position_types>
    <position_type>O</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>5</stat_id>

    <name>Passing Touchdowns</name>
    <display_name>Pass&lt;br&gt;TD</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>O</position_type>
    </position_types>

    </stat>
    <stat>
    <stat_id>6</stat_id>
    <name>Interceptions</name>
    <display_name>Int</display_name>
    <sort_order>0</sort_order>
    <position_types>

    <position_type>O</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>7</stat_id>
    <name>Sacks</name>
    <display_name>Sack</display_name>

    <sort_order>0</sort_order>
    <position_types>
    <position_type>O</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>8</stat_id>

    <name>Rushing Attempts</name>
    <display_name>Rush&lt;br&gt;Att</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>O</position_type>
    </position_types>

    </stat>
    <stat>
    <stat_id>9</stat_id>
    <name>Rushing Yards</name>
    <display_name>Rush&lt;br&gt;Yds</display_name>
    <sort_order>1</sort_order>

    <position_types>
    <position_type>O</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>10</stat_id>
    <name>Rushing Touchdowns</name>

    <display_name>Rush&lt;br&gt;TD</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>O</position_type>
    </position_types>
    </stat>

    <stat>
    <stat_id>11</stat_id>
    <name>Receptions</name>
    <display_name>Rec</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>O</position_type>

    </position_types>
    </stat>
    <stat>
    <stat_id>12</stat_id>
    <name>Reception Yards</name>
    <display_name>Rec&lt;br&gt;Yds</display_name>

    <sort_order>1</sort_order>
    <position_types>
    <position_type>O</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>13</stat_id>

    <name>Reception Touchdowns</name>
    <display_name>Rec&lt;br&gt;TD</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>O</position_type>
    </position_types>

    </stat>
    <stat>
    <stat_id>14</stat_id>
    <name>Return Yards</name>
    <display_name>Ret&lt;br&gt;Yds</display_name>
    <sort_order>1</sort_order>

    <position_types>
    <position_type>O</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>15</stat_id>
    <name>Return Touchdowns</name>

    <display_name>Ret&lt;br&gt;TD</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>O</position_type>
    </position_types>
    </stat>

    <stat>
    <stat_id>16</stat_id>
    <name>2-Point Conversions</name>
    <display_name>2-PT</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>O</position_type>

    </position_types>
    </stat>
    <stat>
    <stat_id>17</stat_id>
    <name>Fumbles</name>
    <display_name>Fum</display_name>
    <sort_order>0</sort_order>

    <position_types>
    <position_type>O</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>18</stat_id>
    <name>Fumbles Lost</name>

    <display_name>Fum&lt;br&gt;Lost</display_name>
    <sort_order>0</sort_order>
    <position_types>
    <position_type>O</position_type>
    </position_types>
    </stat>

    <stat>
    <stat_id>19</stat_id>
    <name>Field Goals 0-19 Yards</name>
    <display_name>FG&lt;br&gt;0-19</display_name>
    <sort_order>1</sort_order>
    <position_types>

    <position_type>K</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>20</stat_id>
    <name>Field Goals 20-29 Yards</name>
    <display_name>FG&lt;br&gt;20-29</display_name>

    <sort_order>1</sort_order>
    <position_types>
    <position_type>K</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>21</stat_id>

    <name>Field Goals 30-39 Yards</name>
    <display_name>FG&lt;br&gt;30-39</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>K</position_type>
    </position_types>

    </stat>
    <stat>
    <stat_id>22</stat_id>
    <name>Field Goals 40-49 Yards</name>
    <display_name>FG&lt;br&gt;40-49</display_name>
    <sort_order>1</sort_order>

    <position_types>
    <position_type>K</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>23</stat_id>
    <name>Field Goals 50+ Yards</name>

    <display_name>FG&lt;br&gt;50+</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>K</position_type>
    </position_types>
    </stat>

    <stat>
    <stat_id>24</stat_id>
    <name>Field Goals Missed 0-19 Yards</name>
    <display_name>FGM&lt;br&gt;0-19</display_name>
    <sort_order>0</sort_order>
    <position_types>

    <position_type>K</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>25</stat_id>
    <name>Field Goals Missed 20-29 Yards</name>
    <display_name>FGM&lt;br&gt;20-29</display_name>

    <sort_order>0</sort_order>
    <position_types>
    <position_type>K</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>26</stat_id>

    <name>Field Goals Missed 30-39 Yards</name>
    <display_name>FGM&lt;br&gt;30-39</display_name>
    <sort_order>0</sort_order>
    <position_types>
    <position_type>K</position_type>
    </position_types>

    </stat>
    <stat>
    <stat_id>27</stat_id>
    <name>Field Goals Missed 40-49 Yards</name>
    <display_name>FGM&lt;br&gt;40-49</display_name>
    <sort_order>0</sort_order>

    <position_types>
    <position_type>K</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>28</stat_id>
    <name>Field Goals Missed 50+ Yards</name>

    <display_name>FGM&lt;br&gt;50+</display_name>
    <sort_order>0</sort_order>
    <position_types>
    <position_type>K</position_type>
    </position_types>
    </stat>

    <stat>
    <stat_id>29</stat_id>
    <name>Point After Attempt Made</name>
    <display_name>PAT&lt;br&gt;Made</display_name>
    <sort_order>1</sort_order>
    <position_types>

    <position_type>K</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>30</stat_id>
    <name>Point After Attempt Missed</name>
    <display_name>PAT&lt;br&gt;Miss</display_name>

    <sort_order>0</sort_order>
    <position_types>
    <position_type>K</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>31</stat_id>

    <name>Points Allowed</name>
    <display_name>Pts&lt;br&gt;Allow</display_name>
    <sort_order>0</sort_order>
    <position_types>
    <position_type>DT</position_type>
    </position_types>

    </stat>
    <stat>
    <stat_id>32</stat_id>
    <name>Sack</name>
    <display_name>Sack</display_name>
    <sort_order>1</sort_order>
    <position_types>

    <position_type>DT</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>33</stat_id>
    <name>Interception</name>
    <display_name>Int</display_name>

    <sort_order>1</sort_order>
    <position_types>
    <position_type>DT</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>34</stat_id>

    <name>Fumble Recovery</name>
    <display_name>Fum&lt;br&gt;Rec</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>DT</position_type>
    </position_types>

    </stat>
    <stat>
    <stat_id>35</stat_id>
    <name>Touchdown</name>
    <display_name>TD</display_name>
    <sort_order>1</sort_order>
    <position_types>

    <position_type>DT</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>36</stat_id>
    <name>Safety</name>
    <display_name>Safe</display_name>

    <sort_order>1</sort_order>
    <position_types>
    <position_type>DT</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>37</stat_id>

    <name>Block Kick</name>
    <display_name>Blk&lt;br&gt;Kick</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>DT</position_type>
    </position_types>

    </stat>
    <stat>
    <stat_id>38</stat_id>
    <name>Tackle Solo</name>
    <display_name>Tack&lt;br&gt;Solo</display_name>
    <sort_order>1</sort_order>

    <position_types>
    <position_type>DP</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>39</stat_id>
    <name>Tackle Assist</name>

    <display_name>Tack&lt;br&gt;Ast</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>DP</position_type>
    </position_types>
    </stat>

    <stat>
    <stat_id>40</stat_id>
    <name>Sack</name>
    <display_name>Sack</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>DP</position_type>

    </position_types>
    </stat>
    <stat>
    <stat_id>41</stat_id>
    <name>Interception</name>
    <display_name>Int</display_name>
    <sort_order>1</sort_order>

    <position_types>
    <position_type>DP</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>42</stat_id>
    <name>Fumble Force</name>

    <display_name>Fum&lt;br&gt;Force</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>DP</position_type>
    </position_types>
    </stat>

    <stat>
    <stat_id>43</stat_id>
    <name>Fumble Recovery</name>
    <display_name>Fum&lt;br&gt;Rec</display_name>
    <sort_order>1</sort_order>
    <position_types>

    <position_type>DP</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>44</stat_id>
    <name>Defensive Touchdown</name>
    <display_name>TD</display_name>

    <sort_order>1</sort_order>
    <position_types>
    <position_type>DP</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>45</stat_id>

    <name>Safety</name>
    <display_name>Safe</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>DP</position_type>
    </position_types>
    </stat>

    <stat>
    <stat_id>46</stat_id>
    <name>Pass Defended</name>
    <display_name>Pass&lt;br&gt;Def</display_name>
    <sort_order>1</sort_order>
    <position_types>

    <position_type>DP</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>47</stat_id>
    <name>Block Kick</name>
    <display_name>Blk&lt;br&gt;Kick</display_name>

    <sort_order>1</sort_order>
    <position_types>
    <position_type>DP</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>48</stat_id>

    <name>Return Yards</name>
    <display_name>Ret&lt;br&gt;Yds</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>DT</position_type>
    </position_types>

    </stat>
    <stat>
    <stat_id>49</stat_id>
    <name>Kickoff and Punt Return Touchdowns</name>
    <display_name>Kick and Punt&lt;br&gt;Ret TD</display_name>
    <sort_order>1</sort_order>

    <position_types>
    <position_type>DT</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>50</stat_id>
    <name>Points Allowed 0 points</name>

    <display_name>Pts Allow 0</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>DT</position_type>
    </position_types>
    </stat>
    <stat>

    <stat_id>51</stat_id>
    <name>Points Allowed 1-6 points</name>
    <display_name>Pts Allow 1-6</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>DT</position_type>

    </position_types>
    </stat>
    <stat>
    <stat_id>52</stat_id>
    <name>Points Allowed 7-13 points</name>
    <display_name>Pts Allow 7-13</display_name>
    <sort_order>1</sort_order>

    <position_types>
    <position_type>DT</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>53</stat_id>
    <name>Points Allowed 14-20 points</name>

    <display_name>Pts Allow 14-20</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>DT</position_type>
    </position_types>
    </stat>
    <stat>

    <stat_id>54</stat_id>
    <name>Points Allowed 21-27 points</name>
    <display_name>Pts Allow 21-27</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>DT</position_type>

    </position_types>
    </stat>
    <stat>
    <stat_id>55</stat_id>
    <name>Points Allowed 28-34 points</name>
    <display_name>Pts Allow 28-34</display_name>
    <sort_order>1</sort_order>

    <position_types>
    <position_type>DT</position_type>
    </position_types>
    </stat>
    <stat>
    <stat_id>56</stat_id>
    <name>Points Allowed 35+ points</name>

    <display_name>Pts Allow 35+</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>DT</position_type>
    </position_types>
    </stat>
    <stat>

    <stat_id>57</stat_id>
    <name>Offensive Fumble Return TD</name>
    <display_name>Fum&lt;br&gt;Ret TD</display_name>
    <sort_order>1</sort_order>
    <position_types>
    <position_type>O</position_type>

    </position_types>
    </stat>
    </stats>
    </stat_categories>
    </game>


    Er, the settings output is...larger, so just trust me on that one. It'll give you the stat category information specific to the league that you're working with. Conceptually, the reason we do this is so that we don't bloat the player or team stats response with repeated information -- we just give you the ID back, and then let you use these top level resources to map to the rest of the information related to those IDs. We ought to have the same resources available beneath a player and a team, technically, but for right now we're assuming you can construct your request in such a way that you include either a game or league resource somewhere along the way (if you feel like you need the stat data). Let me know if you need any clarification on that.
    0

Recent Posts

in Fantasy Sports API