To use MyFantasyLeague.com XML Data:
- We'll shortly start using 5-digit player IDs! See this blog post for more details!
- 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.
- We're always interested in improving our XML export functionality - if you're using this feed, and would like to see more data added to it, please let us know by submitting a support ticket to us!
- 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.
- If you're a developer with experience on any of the popular smartphone platforms (iPhone, Blackberry, Android, etc.), we'd love to hear from you to discuss the possibility of offering a native application on one of those platforms.
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)
- 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 current 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)
- topStarters:
The most-started players across all MyFantasyLeague.com-hosted leagues, as well as the percentage of leagues that they've been started in. Only players that have been started in more than 1% of our leagues will be displayed. Sample Document (Week number is an optional parameter)
- topOwns:
The most-owned players across all MyFantasyLeague.com-hosted leagues, as well as the percentage of leagues that they're owned in. Only players that are owned in more than 1% of our leagues will be displayed. 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. See below for attribute description. (5-digit league ID is required)
- h2hw = Overall Wins
- h2hl = Overall Losses
- h2ht = Overall Ties
- divw = Divisional Wins
- divl = Divisional Losses
- divt = Divisional Ties
- divpf = Divisional Points For (Total Year-to-Date Points Scored In Divisional Games)
- confw = Conference Wins
- confl = Conference Losses
- conft = Conference Ties
- confpf = Conference Points For (Total Year-to-Date Points Scored In Conference Games)
- pf = Points For (Total Year-to-Date Point Scored)
- pa = Points Against (Total Year-to-Date Opponent Points Scored)
- avgpa = Average Points Against (Weekly Average Opponent Points Scored)
- maxpa = Maximum Points Against (Highest Weekly Points Against)
- minpa = Minimum Points Against (Lowest Weekly Points Against)
- pp = Potential Points
- bbidspent = Total Amount Spent YTD On Blind Bidding
- op = Offensive Points
- dp = Defensive Points
- pwr = Power Rank
- acct = Accounting Balance
- salary = Total Salary
- vp = Victory Points
- 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 (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. FRANCHISES is an optional parameter you can pass in with this document type to indicate that you want to limit the data to leagues of a certain number of franchises.Sample Document
- aav:
AAV results, including when the result were last updated, how many auctions the player was selected in and the average auction value. FRANCHISES is an optional parameter you can pass in with this document type to indicate that you want to limit the data to leagues of a certain number of franchises.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. If no raw stats are provided, the system will use the raw stats that fantasysharks.com projects for the upcoming week of the season. Sample Document with raw stats provided (5-digit league ID is required)
- leagueSearch:
Given a case-insensitive search string, find all leagues named with that search string on MyFantasyLeague.com. Search string must be at least three characters long. Sample Document
- messageBoard:
Display a summary of the recent message board posts to a league message board. Sample Document (5-digit league ID is required)
- messageBoardThread:
Display posts in a thread from a league message board. Sample Document (5-digit league ID is required)
- playerProfile:
Display a summary of information regarding a player, including DOB, ADP ranking, height/weight. Sample Document
- accounting:
Display a summary of the league accounting records. Sample Document (5-digit league ID is required)
- calendar:
Display a summary of the league calendar. Sample Document (5-digit league ID is required)