To use MyFantasyLeague.com XML Data:
- You're now looking at data for the 2008 season. If you'd like to see data for another season, simply change the URL above from http://football.myfantasyleague.com/2008/export to another 4-digit year.
- Select the data type you'd like to see XML data for (detailed explanations of the data types follow).
- Optionally, enter the 5-digit league id of the league you'd like data for. Data types that have an (L) listed next to them require a league ID to be entered.
- Optionally, enter the week number of the week you'd like data for. Data types that have an (W) listed next to them optionally allow the week parameter to be entered. If the week is not entered, the system defaults to the current week.
- Press the "Get XML" button.
- Note: To prevent either intentional or unintentional abuse of this facility, we're limiting you to 5000 requests of this program per league in any given rolling 24 hour period.
Details Regarding XML Data Types Available:
- draftTracker:
Deprecated - use TYPE=adp instead.
- players:
All player IDs, names and positions that MyFantasyLeague.com has in our database for the current year. All other data types refer only to player IDs, so if you'd like to later present any data to people, you'll need this data type for translating player IDs to player names. Our player database is updated at most once per day, and it contains more than 2,000 players - in other words, you're strongly encouraged to read this data type no more than once per day, and store it locally as needed, to optimize your system performance. Sample Document
- allRules:
All scoring rules that MyFantasyLeague.com currently supports, including: if the rule is scored for players, teams or coaches, as well as an abbreviation of the scoring rule, a short description, and a detailed description. If you plan on using the 'rules' data type, you'll also need this data type to look up the abbreviations to translate them to their detailed description for people. Sample Document
- injuries:
The player ID, status (IR, Out, Questionable, Doubtful, Probable) and details (i.e., 'Knee', 'Foot', 'Ribs', etc.) of all players on the official NFL injury report. This report is typically issued once a week in-season, on Fridays, so there is no need to get this data more frequently than that - the timestamp attribute tells you the last time this data was updated. The week parameter defaults to the most recent week that injury data is available, but can be passed in to get data for a different week. Sample Document (Week number is an optional parameter)
- practice:
The player ID, status and details of all players on the official NFL practice report. This report is issued on Wednesdays in-season, so there is no need to get this data more frequently than that - the timestamp attribute tells you the last time this data was updated. The week parameter defaults to the most recent week that practice data is available, but can be passed in to get data for a different week. Sample Document (Week number is an optional parameter)
- nflSchedule:
The NFL schedule for one week of the season, including the scheduled kickoff of the game, how many seconds remain in the game, the home team (and their score), the away team (and their score). The default week is the upcoming week of the season, however, the week parameter can be passed in to get the NFL schedule for other weeks. Sample Document (Week number is an optional parameter)
- topAdds:
The most-added players across all MyFantasyLeague.com-hosted leagues, as well as the percentage of leagues that they've been added in. Only players that have been added in more than 2% of our leagues will be displayed. This data would be helpful in creating some sort of "Who's Hot?" list. Sample Document (Week number is an optional parameter)
- topDrops:
The most-dropped players across all MyFantasyLeague.com-hosted leagues, as well as the percentage of leagues that they've been dropped in. Only players that have been dropped in more than 2% of our leagues will be displayed. This data would be helpful in creating some sort of "Who's Cold?" list. Sample Document (Week number is an optional parameter)
- league:
General league setup parameters for a given league, including: league name, roster size, IR/TS size, starting and ending week, starting lineup requirements, franchise names, division names, and more. Sample Document (5-digit league ID is required)
- rules:
League scoring rules for a given league. To understand the scoring rule abbreviations in this document, see the allRules document type above. Sample Document (5-digit league ID is required)
- rosters:
The current rosters for all franchises in a league, including player status (active roster, IR, TS), as well as all salary/contract information for that player. Sample Document (5-digit league ID is required)
- standings:
The current league standings for a given league. Sample Document (5-digit league ID is required)
- weeklyResults:
The weekly results for a given league/week, including the scores for all starter and non-starter players for all franchises in a league. The "W" parameter can be "YTD" to give all year-to-date weekly results. Sample Document (5-digit league ID is required) (Week number is an optional parameter)
- liveScoring:
Live scoring for a given league and week, including each franchise's current score, how many game seconds remaining that franchise has, players who have yet to play, and players who are currently playing. Sample Document (5-digit league ID is required) (Week number is an optional parameter)
- playerScores:
All player scores for a given league/week, including all rostered players as well as all free agents. Sample Document. A W=YTD parameter can be used for year-to-date scores, or W=AVG for weekly average scores. In addition, passing in the PLAYERS= parameter allows you to see the player scores for those specific players for all weeks of the season, year-to-date. Sample Document (5-digit league ID is required) (Week number is an optional parameter)
- draftResults:
Draft results for a given league. Sample Document (5-digit league ID is required)
- adp:
ADP results, including when the result were last updated, how many drafts the player was selected in, the average pick, minimum pick and maximum pick. Sample Document
- auctionResults:
Auction results for a given league. Sample Document (5-digit league ID is required)
- freeAgents:
Fantasy free agents for a given league. Sample Document (5-digit league ID is required)
- transactions:
All transactions for a given league.Sample Document (5-digit league ID is required) (Week number is an optional parameter)
- rss:
An RSS feed of key league data for a given league, including: league standings, current week's live scoring, last week's fantasy results, and the five newest message board topics. Sample Document (5-digit league ID is required)
- siteNews:
An RSS feed of MyFantayLeague.com site news. Sample Document
- projectedScores:
Given a player ID and projected raw stats for that player for a given week of the season, calculate the expected fantasy points, using that league's scoring system. Sample Document (5-digit league ID is required)