Test Mode 1

The parameter 'test' by itself parrots that value back. This can be used to verify that you are able to successfully connect to the API.

Example Link:

http://api.parfait.snarkybox.com/espn?test=true

What that link returns will look like this if viewed in a browser:

true

Test Mode 2

Adding the parameters 'feedtype' and 'feed' will dump the ESPN feed xml sent by ESPN, plus parrot back a table of all the possible parameters and their current values in a simple HTML web page. Information on how to find the available 'feedtype' and 'feed' values can be found here.

Example Link:

http://api.parfait.snarkybox.com/espn?test=true&feedtype=news&feed=news

What that link returns will look like this if viewed in a browser:


<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="http://sports.espn.go.com/rss/friendlyRSSDemo.xsl" type="text/xsl" media="screen"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:atom="http://purl.org/atom/ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>ESPN.com</title>
    <link>http://espn.go.com/</link>
    <description>Latest news from ESPN.com</description>
    <language>en-us</language>
    <atom:link rel="self" href="http://sports.espn.go.com/espn/rss/news?null"/>
    <lastBuildDate>Sat, 15 Nov 2014 05:32:56 PST</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <managingEditor>webmaster@espn.go.com</managingEditor>
    <image>
      <url>http://a.espncdn.com/i/tvlistings/tv_espn_original.gif</url>
      <title>ESPN logo</title>
      <link>http://espn.go.com</link>
      <width>84</width>
      <height>34</height>
    </image>
    <ttl>30</ttl>
    <dc:rights>Copyright 2014</dc:rights>
    <admin:generatorAgent rdf:resource="http://espn.go.com/rss/?v=0.9beta"/>
    <admin:errorReportsTo rdf:resource="mailto:customer.service@espn.go.com"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <item>
      <dc:creator><![CDATA[Don Van Natta Jr.]]></dc:creator>
      <title><![CDATA[Sources: GM heard Rice's account to Goodell]]></title>
      <description><![CDATA[Ravens general manager Ozzie Newsome testified under oath Thursday he heard Ray Rice tell commissioner Roger Goodell during his June 16 disciplinary hearing that he had hit his then-fiancee in a casino hotel elevator, two sources told "Outside the Lines."]]></description>
      <pubDate>Fri, 7 Nov 2014 08:40:32 PST</pubDate>
      <guid isPermaLink="false">http://espn.go.com/espn/otl/story/_/id/11832947</guid>
      <link>http://espn.go.com/espn/otl/story/_/id/11832947/baltimore-ravens-general-manager-ozzie-newsome-testified-heard-ray-rice-tell-roger-goodell-elevator-incident-sources-say</link>
    </item>
    <item>
      <dc:creator><![CDATA[Associated Press]]></dc:creator>
      <title><![CDATA[LeBron nets 41 to lead Cavs' comeback win]]></title>
      <description><![CDATA[James scores 41, Cavaliers edge Celtics 122-121]]></description>
      <pubDate>Fri, 14 Nov 2014 22:55:42 PST</pubDate>
      <guid isPermaLink="false">http://scores.espn.go.com/nba/recap?gameId=400578417</guid>
      <link>http://scores.espn.go.com/nba/recap?gameId=400578417</link>
    </item>
  </channel>
</rss>

http://sports.espn.go.com/espn/rss/news

feedtype feed layer items test version
news news     true 2017.10.08.24