MyFantasyLeague RSS Requirements

MyFantasyLeague accepts player id tagged content using RSS 2.0 content feeds. RSS 0.91 and 0.92 are also supported though 2.0 is preferred.

Standard: RSS 2.0 Specification

Encoding Type

If encoding type is not defined, per the RSS specification, UTF-8 is assumed. Encoding type can be defined like so if it is not UTF-8:

<?xml version=”1.0″ encoding=”ISO-8859-1″?>

RSS requires the following channel elements to be defined:

  • title
  • link
  • description

And the following item elements are used:

title

Displayed as the headline/title to the piece of content.

link

Link back if partial content is given and more content exists at the host site.

description

The content/news itself. This can be the entire article or partial if the tag is also used.

guid

A unique identifier from the host site for their content. If no identifier exists, guid is the link to the content which is unique.

pubDate

Date of publication.

Player ID Tagging

RSS needs to be extended so that player ids can be sent in the feed. This is accomplished with namespaces. The following is how to define a namespace and how to include player id’s in the feed:

<rss version=”2.0″

xmlns=”https://backend.userland.com/rss2″

xmlns:fantasy=”https://myfantasyleague.com/rss2″>

Then playerid tags can be added per item using namespaces like so:

<fantasy:players>

<fantasy:playerid>Player ID goes here</fantasy:playerid>

<fantasy:playerid>Player ID goes here</fantasy:playerid>

.

.

</fantasy:players>

We can receive our MyFantasyLeague player id, Stats, RotoWorld or KFFL’s. If you need player ID’s our player feed is free for use and can be found here:

MyFantasyLeague XML Player Feed

If the piece of content is associated with multiple players, include all player ID’s that the article references if possible. Order is important as the first player ID listed will be the photo of the player that we associate with the article/content when it is show as a feature article at MyFantasyLeague.

Separate Fantasy Analysis

In the case where the feed contains both news and analysis on that news, put the actual news in the standard RSS <description> tag and the analysis in a custom <fantasy:analysis> tag.

Categories

MyFantasyLeague.com accepts categorized content so that we can better target the content to the reader. The RSS <category> tag is used to provide categories. For example:

<category>Commentary, Injury, Results, Waiver, Lineup, Trading</category>

The current list of supported categories is:

  • Commentary – General opinion type pieces.
  • News – Player News bits.
  • Announcement – For site announcements and things not related to players.
  • Injury – Injury info.
  • Results – Weekly wrap-up, retrospective pieces.
  • Waivers – Weekly waiver wire/free agency help.
  • Lineup – Weekly starting lineup help.
  • Trading – Trading help.
  • Draft – Draft help.
  • Projections – For actual projections, feed to be defined.
  • Contest – Contest announcements, updates, results.
  • IDP – IDP related.
  • Dynasty – Dynasty/Keeper related.
  • Auction – Auction/Salary related.
  • Podcast – Podcast.
  • Video – Video.

Multiple categories can be used. For instance, IDP and Waivers. Put as many categories in the feed as it takes to describe the piece of content. Note that categories are separated with commas per the RSS specification.

Example

<?xml version=”1.0″ encoding=”ISO-8859-1″?>

<rss version=”2.0″

xmlns=”https://backend.userland.com/rss2″

xmlns:fantasy=”https://myfantasyleague.com/rss2″>

<channel>

<title>Fantasy Player Analysis</title>

<link>https://www.yoursite.com</link>

<category>Commentary, Injury, Results, Waiver, Lineup, Trading</category>

<description>Fantasy Player Analysis from yoursite.com</description>

<language>en-US</language>

<item>

<title>RB Williams likely to begin on PUP</title>

<guid isPermaLink=”false”>9970</guid>

<description>The Tampa Tribune, reports Tampa Bay Buccaneers RB Cadillac Williams (knee) will likely start the 2008 season on the Physically Unable to Perform list.</description>

<pubDate>Mon, 30 Jun 2008 11:49:56 EDT</pubDate>

<fantasy:analysis>With the Bucs signing Earnest Graham to a new 4-year contract extension which will keep him in Tampa through the 2011 season, Williams will likely be brought back slowly from his injury. If Tampa does in fact place Cadillac on the PUP list then he will miss the first 6 games of the season and then will have to be evaluated to see if he can return. Fantasy owners should consider Graham the starter and RB Warrick Dunn the backup for Tampa Bay this season but keep Williams in mind for the second half if he is able to return to action as expected.</fantasy:analysis>

<fantasy:players>

<fantasy:playerid>7817</fantasy:playerid>

</fantasy:players>

</item>

<item>

<title>Quinn working hard in offseason</title>

<guid isPermaLink=”false”>9969</guid>

<description>ESPN.com reports Cleveland Browns QB Brady Quinn has greatly improved this offseason from a year ago. Quinn looks much more prepared and has thrown the ball well. He has also been putting in a lot of work in the film room. ‘I watch a ton of film,’ Quinn said. ‘I’ll watch whatever we’re doing over and over again. I’ll watch myself mechanically. I’ll watch Tom Brady and Peyton Manning and see what they do mechanically. That’s the thing. You don’t want to try to mimic them, but you want to see if there are things that they do that you can incorporate into your game. You are your own quarterback, and you work on what you like doing. You do what you are good at doing and then you evolve your game from there.'</description>

<pubDate>Mon, 30 Jun 2008 11:42:29 EDT</pubDate>

<fantasy:analysis>Despite the improvements in his game Quinn should not be considered as any more than a backup to Derek Anderson who is coming off a super 2007 season. If Anderson continues to play at such a high level in Cleveland then Brady Quinn could have a hard time finding playing time with the Browns and could eventually land with another team in the future. Quinn has a bright future in the NFL but it is uncertain if that future keeps him with the Browns. </fantasy:analysis>

<fantasy:players>

<fantasy:playerid>8659</fantasy:playerid>

</fantasy:players>

</item>

</channel>

</rss>