Most Viewed v2.0
| Most Viewed | |
| Resource | |
| Most Viewed | A list of the pro players who have been viewed most often within a fantasy league. |
| HTTP Methods | |
| GET | Retrieve a list of most viewed players |
| Example | |
| Get the four most viewed players | |
| XML field definitions | |
| /most_viewed | A container element for the most viewed players. |
| /most_viewed/ | A container element for the list of players. |
| /most_viewed/ | Container element for a player in the list of most viewed players. |
| /most_viewed/ | The ID of the player. |
| /most_viewed/ | The first name of the player. |
| /most_viewed/ | The full name of the player. |
| /most_viewed/ | A container element for the player’s update and injury icons. |
| /most_viewed/ | The headline of the player’s latest news update. |
| /most_viewed/ | The last name of the player. |
| /most_viewed/ | A boolean to denote if a player is on waivers in a fantasy league or no. |
| /most_viewed/ | An abbreviation for the primary position of the player. |
| /most_viewed/ | Specifies the roster status of the player on the player’s pro team. |
| /most_viewed/ | An abbreviation for the player’s pro team. |
| /most_viewed/ | A snippet of HTML code containing a link to the player’s profile. |
| /most_viewed/ | The absolute URL for the CBSSports.com profile for a player. |
| /most_viewed/ | The number of times the player has been viewed in the past three (3) hours. |
| /most_viewed/ | The number of times this player’s profile has been viewed today. |
| /most_viewed/ | If the player is injured, this field will exist and indicate the injury in the format: {injury}: {expected time of return} |
| /most_viewed/ | A number to denote the bye-week for a pro team (only applicable to football). |
| /most_viewed/ | A boolean to denote if a player is locked (can not be involved in any add/drops, trades, and lineup moves as the player’s team’s game has already started). |
| /most_viewed/ | Player’s opponent (only available for football). |
GET
Retrieve a list of most viewed players
URL
http://api.cbssports.com
Parameters
| response_format | (optional) Specifies the format in which the requested resource should be returned. Valid values are XML and JSON. The default is XML. |
| position | (optional, can only be used in league context) - Limits the players returned to ones that are eligible at the specified position |
| player_status | (optional, can only be used in league context) - Limits the players returned to ones that match the player_status (defaults to all, other valid values are free_agents and owned) |
| limit | (optional) Return only this number of players. |
Get the four most viewed players
Sample URL
http://api.cbssports.com/fantasy/players/roster-trends/most-viewed?version=2.0&limit=4
XML Response
<?xml version="1.0"?>
<result uriAlias="/players/roster-trends/most-viewed" uri="/players/roster-trends/most-viewed" statusCode="200" statusMessage="OK">
<body>
<most_viewed>
<players>
<player id="1174266">
<firstname>Alexi</firstname>
<total_views>15835</total_views>
<on_waivers>1</on_waivers>
<position>SP</position>
<icons>
<headline>Ogando stepping up for Holland</headline>
</icons>
<lastname>Ogando</lastname>
<pro_status>A</pro_status>
<recent_views>1390</recent_views>
<profile_url>http://<league_id>.baseball.cbssports.com/players/playerpage/1174266</profile_url>
<fullname>Alexi Ogando</fullname>
<profile_link><a class='playerLink' href='http://<league_id>.baseball.cbssports.com/players/playerpage/1174266'>Ogando, Alexi</a> SP TEX <span title="Ogando stepping up for Holland"><a href="http://<league_id>.baseball.cbssports.com/players/playerpage/1174266" class="playerLink" subtab="Update"><img border="0" width="10" height="10" src="http://sports.cbsimg.net/images/news-note-recent.gif"/></a></span></profile_link>
<pro_team>TEX</pro_team>
</player>
<player id="1184594">
<firstname>Clay</firstname>
<total_views>11352</total_views>
<on_waivers>0</on_waivers>
<position>SP</position>
<icons>
<headline>Buchholz tosses third career shutout</headline>
</icons>
<lastname>Buchholz</lastname>
<pro_status>A</pro_status>
<recent_views>1737</recent_views>
<profile_url>http://<league_id>.baseball.cbssports.com/players/playerpage/1184594</profile_url>
<fullname>Clay Buchholz</fullname>
<profile_link><a class='playerLink' href='http://<league_id>.baseball.cbssports.com/players/playerpage/1184594'>Buchholz, Clay</a> SP BOS <span title="Buchholz tosses third career shutout"><a href="http://<league_id>.baseball.cbssports.com/players/playerpage/1184594" class="playerLink" subtab="Update"><img border="0" width="10" height="10" src="http://sports.cbsimg.net/images/news-note-hot-recent.gif"/></a></span><img src='http://sports.cbsimg.net/images/spacer.gif' height=1 width=2><span title="Robert Andino grounds into double play, second baseman Dustin Pedroia to shortstop Mike Aviles to first baseman Kevin Youkilis. Ryan Flaherty out at 2nd."><a href="javascript:openPopup('/media/game-day/video?player_id=453329','mlbvideo', 990, 750);"><img src="http://sports.cbsimg.net/images/video.gif" border="0"></a></span></profile_link>
<pro_team>BOS</pro_team>
</player>
<player id="1953406">
<firstname>Yoenis</firstname>
<total_views>9542</total_views>
<on_waivers>1</on_waivers>
<position>CF</position>
<icons>
<injury>Hamstring: Questionable for June 8 at Arizona</injury>
<headline>Cespedes leaves with hammy injury</headline>
</icons>
<lastname>Cespedes</lastname>
<pro_status>A</pro_status>
<recent_views>920</recent_views>
<profile_url>http://<league_id>.baseball.cbssports.com/players/playerpage/1953406</profile_url>
<fullname>Yoenis Cespedes</fullname>
<profile_link><a class='playerLink' href='http://<league_id>.baseball.cbssports.com/players/playerpage/1953406'>Cespedes, Yoenis</a> CF OAK <span title="Cespedes leaves with hammy injury"><a href="http://<league_id>.baseball.cbssports.com/players/playerpage/1953406" class="playerLink" subtab="Update"><img border="0" width="10" height="10" src="http://sports.cbsimg.net/images/news-note-cold-recent.gif"/></a></span><img src='http://sports.cbsimg.net/images/spacer.gif' height=1 width=2><span title="Hamstring: Questionable for June 8 at Arizona"><a href="http://<league_id>.baseball.cbssports.com/players/playerpage/1953406" subtab="Injury Report" class="playerLink"><img border="0" width="7" height="7" src="http://sports.cbsimg.net/images/red_cross.gif"/></a></span><img src='http://sports.cbsimg.net/images/spacer.gif' height=1 width=2><span title="Cespedes' injury"><a href="javascript:openPopup('/media/game-day/video?player_id=493316','mlbvideo', 990, 750);"><img src="http://sports.cbsimg.net/images/video.gif" border="0"></a></span></profile_link>
<pro_team>OAK</pro_team>
</player>
<player id="1716842">
<firstname>Wade</firstname>
<total_views>8144</total_views>
<on_waivers>1</on_waivers>
<position>SP</position>
<icons>
<headline>D-Backs living in Wade's world</headline>
</icons>
<lastname>Miley</lastname>
<pro_status>A</pro_status>
<recent_views>768</recent_views>
<profile_url>http://<league_id>.baseball.cbssports.com/players/playerpage/1716842</profile_url>
<fullname>Wade Miley</fullname>
<profile_link><a class='playerLink' href='http://<league_id>.baseball.cbssports.com/players/playerpage/1716842'>Miley, Wade</a> SP ARI <span title="D-Backs living in Wade's world"><a href="http://<league_id>.baseball.cbssports.com/players/playerpage/1716842" class="playerLink" subtab="Update"><img border="0" width="7" height="7" src="http://sports.cbsimg.net/images/news-note.gif"/></a></span><img src='http://sports.cbsimg.net/images/spacer.gif' height=1 width=2><span title="Jason Giambi doubles (3) on a line drive to center fielder Chris Young."><a href="javascript:openPopup('/media/game-day/video?player_id=489119','mlbvideo', 990, 750);"><img src="http://sports.cbsimg.net/images/video.gif" border="0"></a></span></profile_link>
<pro_team>ARI</pro_team>
</player>
</players>
</most_viewed>
</body>
</result>JSON Response
{
"body" : {
"most_viewed" : {
"players" : [
{
"firstname" : "Alexi",
"total_views" : "15835",
"on_waivers" : 1,
"position" : "SP",
"icons" : {
"headline" : "Ogando stepping up for Holland"
},
"lastname" : "Ogando",
"pro_status" : "A",
"recent_views" : "1390",
"profile_url" : "http://<league_id>.baseball.cbssports.com/players/playerpage/1174266",
"fullname" : "Alexi Ogando",
"id" : "1174266",
"profile_link" : "<a class='playerLink' href='http://<league_id>.baseball.cbssports.com/players/playerpage/1174266'>Ogando, Alexi</a> SP TEX <span title=\"Ogando stepping up for Holland\"><a href=\"http://<league_id>.baseball.cbssports.com/players/playerpage/1174266\" class=\"playerLink\" subtab=\"Update\"><img border=\"0\" width=\"10\" height=\"10\" src=\"http://sports.cbsimg.net/images/news-note-recent.gif\"/></a></span>",
"pro_team" : "TEX"
},
{
"firstname" : "Clay",
"total_views" : "11352",
"on_waivers" : 0,
"position" : "SP",
"icons" : {
"headline" : "Buchholz tosses third career shutout"
},
"lastname" : "Buchholz",
"pro_status" : "A",
"recent_views" : "1737",
"profile_url" : "http://<league_id>.baseball.cbssports.com/players/playerpage/1184594",
"fullname" : "Clay Buchholz",
"id" : "1184594",
"profile_link" : "<a class='playerLink' href='http://<league_id>.baseball.cbssports.com/players/playerpage/1184594'>Buchholz, Clay</a> SP BOS <span title=\"Buchholz tosses third career shutout\"><a href=\"http://<league_id>.baseball.cbssports.com/players/playerpage/1184594\" class=\"playerLink\" subtab=\"Update\"><img border=\"0\" width=\"10\" height=\"10\" src=\"http://sports.cbsimg.net/images/news-note-hot-recent.gif\"/></a></span><img src='http://sports.cbsimg.net/images/spacer.gif' height=1 width=2><span title=\"Robert Andino grounds into double play, second baseman Dustin Pedroia to shortstop Mike Aviles to first baseman Kevin Youkilis. Ryan Flaherty out at 2nd.\"><a href=\"javascript:openPopup('/media/game-day/video?player_id=453329','mlbvideo', 990, 750);\"><img src=\"http://sports.cbsimg.net/images/video.gif\" border=\"0\"></a></span>",
"pro_team" : "BOS"
},
{
"firstname" : "Yoenis",
"total_views" : "9542",
"on_waivers" : 1,
"position" : "CF",
"icons" : {
"injury" : "Hamstring: Questionable for June 8 at Arizona",
"headline" : "Cespedes leaves with hammy injury"
},
"lastname" : "Cespedes",
"pro_status" : "A",
"recent_views" : "920",
"profile_url" : "http://<league_id>.baseball.cbssports.com/players/playerpage/1953406",
"fullname" : "Yoenis Cespedes",
"id" : "1953406",
"profile_link" : "<a class='playerLink' href='http://<league_id>.baseball.cbssports.com/players/playerpage/1953406'>Cespedes, Yoenis</a> CF OAK <span title=\"Cespedes leaves with hammy injury\"><a href=\"http://<league_id>.baseball.cbssports.com/players/playerpage/1953406\" class=\"playerLink\" subtab=\"Update\"><img border=\"0\" width=\"10\" height=\"10\" src=\"http://sports.cbsimg.net/images/news-note-cold-recent.gif\"/></a></span><img src='http://sports.cbsimg.net/images/spacer.gif' height=1 width=2><span title=\"Hamstring: Questionable for June 8 at Arizona\"><a href=\"http://<league_id>.baseball.cbssports.com/players/playerpage/1953406\" subtab=\"Injury Report\" class=\"playerLink\"><img border=\"0\" width=\"7\" height=\"7\" src=\"http://sports.cbsimg.net/images/red_cross.gif\"/></a></span><img src='http://sports.cbsimg.net/images/spacer.gif' height=1 width=2><span title=\"Cespedes' injury\"><a href=\"javascript:openPopup('/media/game-day/video?player_id=493316','mlbvideo', 990, 750);\"><img src=\"http://sports.cbsimg.net/images/video.gif\" border=\"0\"></a></span>",
"pro_team" : "OAK"
},
{
"firstname" : "Wade",
"total_views" : "8144",
"on_waivers" : 1,
"position" : "SP",
"icons" : {
"headline" : "D-Backs living in Wade's world"
},
"lastname" : "Miley",
"pro_status" : "A",
"recent_views" : "768",
"profile_url" : "http://<league_id>.baseball.cbssports.com/players/playerpage/1716842",
"fullname" : "Wade Miley",
"id" : "1716842",
"profile_link" : "<a class='playerLink' href='http://<league_id>.baseball.cbssports.com/players/playerpage/1716842'>Miley, Wade</a> SP ARI <span title=\"D-Backs living in Wade's world\"><a href=\"http://<league_id>.baseball.cbssports.com/players/playerpage/1716842\" class=\"playerLink\" subtab=\"Update\"><img border=\"0\" width=\"7\" height=\"7\" src=\"http://sports.cbsimg.net/images/news-note.gif\"/></a></span><img src='http://sports.cbsimg.net/images/spacer.gif' height=1 width=2><span title=\"Jason Giambi doubles (3) on a line drive to center fielder Chris Young.\"><a href=\"javascript:openPopup('/media/game-day/video?player_id=489119','mlbvideo', 990, 750);\"><img src=\"http://sports.cbsimg.net/images/video.gif\" border=\"0\"></a></span>",
"pro_team" : "ARI"
}
]
}
},
"uriAlias" : "/players/roster-trends/most-viewed",
"statusMessage" : "OK",
"uri" : "/players/roster-trends/most-viewed",
"statusCode" : 200
}Sample URL
http://api.cbssports.com/fantasy/players/roster-trends/most-viewed?version=2.0&limit=4
XML Response
<?xml version="1.0"?>
<result uriAlias="/players/roster-trends/most-viewed" uri="/players/roster-trends/most-viewed" statusCode="200" statusMessage="OK">
<body>
<most_viewed>
<players>
<player id="1251085">
<firstname>Donald</firstname>
<total_views>248</total_views>
<on_waivers>1</on_waivers>
<position>RB</position>
<icons>
<headline>Pagano: Brown will be 'every-down back'</headline>
</icons>
<lastname>Brown</lastname>
<is_locked>0</is_locked>
<opponent>@CHI</opponent>
<profile_link><a class='playerLink' href='http://<league_id>.football.cbssports.com/players/playerpage/1251085'>Brown, Donald</a> RB IND <span title="Pagano: Brown will be 'every-down back'"><a href="http://<league_id>.football.cbssports.com/players/playerpage/1251085" class="playerLink" subtab="Update"><img border="0" width="7" height="7" src="http://sports.cbsimg.net/images/news-note-hot.gif"/></a></span></profile_link>
<bye_week>4</bye_week>
<pro_status>A</pro_status>
<profile_url>http://<league_id>.football.cbssports.com/players/playerpage/1251085</profile_url>
<recent_views>24</recent_views>
<fullname>Donald Brown</fullname>
<pro_team>IND</pro_team>
</player>
<player id="1273854">
<firstname>Ryan</firstname>
<total_views>236</total_views>
<on_waivers>1</on_waivers>
<position>RB</position>
<icons>
<headline>Receptions on the rise for Mathews? </headline>
</icons>
<lastname>Mathews</lastname>
<is_locked>0</is_locked>
<opponent>@OAK</opponent>
<profile_link><a class='playerLink' href='http://<league_id>.football.cbssports.com/players/playerpage/1273854'>Mathews, Ryan</a> RB SD <span title="Receptions on the rise for Mathews? "><a href="http://<league_id>.football.cbssports.com/players/playerpage/1273854" class="playerLink" subtab="Update"><img border="0" width="10" height="10" src="http://sports.cbsimg.net/images/news-note-recent.gif"/></a></span></profile_link>
<bye_week>7</bye_week>
<pro_status>A</pro_status>
<profile_url>http://<league_id>.football.cbssports.com/players/playerpage/1273854</profile_url>
<recent_views>32</recent_views>
<fullname>Ryan Mathews</fullname>
<pro_team>SD</pro_team>
</player>
<player id="523490">
<firstname>Chris</firstname>
<total_views>214</total_views>
<on_waivers>1</on_waivers>
<position>RB</position>
<icons>
<headline>Coach noticing an improved CJ2K</headline>
</icons>
<lastname>Johnson</lastname>
<is_locked>0</is_locked>
<opponent>NE</opponent>
<profile_link><a class='playerLink' href='http://<league_id>.football.cbssports.com/players/playerpage/523490'>Johnson, Chris</a> RB TEN <span title="Coach noticing an improved CJ2K"><a href="http://<league_id>.football.cbssports.com/players/playerpage/523490" class="playerLink" subtab="Update"><img border="0" width="10" height="10" src="http://sports.cbsimg.net/images/news-note-recent.gif"/></a></span></profile_link>
<bye_week>11</bye_week>
<pro_status>A</pro_status>
<profile_url>http://<league_id>.football.cbssports.com/players/playerpage/523490</profile_url>
<recent_views>27</recent_views>
<fullname>Chris Johnson</fullname>
<pro_team>TEN</pro_team>
</player>
<player id="1123691">
<firstname>DeMarco</firstname>
<total_views>204</total_views>
<on_waivers>1</on_waivers>
<position>RB</position>
<icons>
<injury>Ankle: Probable for start of training camp</injury>
<headline>Murray cleared to practice</headline>
</icons>
<lastname>Murray</lastname>
<is_locked>0</is_locked>
<opponent>@NYG</opponent>
<profile_link><a class='playerLink' href='http://<league_id>.football.cbssports.com/players/playerpage/1123691'>Murray, DeMarco</a> RB DAL <span title="Murray cleared to practice"><a href="http://<league_id>.football.cbssports.com/players/playerpage/1123691" class="playerLink" subtab="Update"><img border="0" width="7" height="7" src="http://sports.cbsimg.net/images/news-note-hot.gif"/></a></span><img src='http://sports.cbsimg.net/images/spacer.gif' height=1 width=2><span title="Ankle: Probable for start of training camp"><a href="http://<league_id>.football.cbssports.com/players/playerpage/1123691" subtab="Injury Report" class="playerLink"><img border="0" width="7" height="7" src="http://sports.cbsimg.net/images/red_cross.gif"/></a></span></profile_link>
<bye_week>5</bye_week>
<pro_status>A</pro_status>
<profile_url>http://<league_id>.football.cbssports.com/players/playerpage/1123691</profile_url>
<recent_views>25</recent_views>
<fullname>DeMarco Murray</fullname>
<pro_team>DAL</pro_team>
</player>
</players>
</most_viewed>
</body>
</result>JSON Response
{
"body" : {
"most_viewed" : {
"players" : [
{
"firstname" : "Donald",
"total_views" : 248,
"on_waivers" : 1,
"position" : "RB",
"icons" : {
"headline" : "Pagano: Brown will be 'every-down back'"
},
"lastname" : "Brown",
"is_locked" : 0,
"opponent" : "@CHI",
"id" : "1251085",
"profile_link" : "<a class='playerLink' href='http://<league_id>.football.cbssports.com/players/playerpage/1251085'>Brown, Donald</a> RB IND <span title=\"Pagano: Brown will be 'every-down back'\"><a href=\"http://<league_id>.football.cbssports.com/players/playerpage/1251085\" class=\"playerLink\" subtab=\"Update\"><img border=\"0\" width=\"7\" height=\"7\" src=\"http://sports.cbsimg.net/images/news-note-hot.gif\"/></a></span>",
"bye_week" : "4",
"pro_status" : "A",
"profile_url" : "http://<league_id>.football.cbssports.com/players/playerpage/1251085",
"recent_views" : 24,
"fullname" : "Donald Brown",
"pro_team" : "IND"
},
{
"firstname" : "Ryan",
"total_views" : 236,
"on_waivers" : 1,
"position" : "RB",
"icons" : {
"headline" : "Receptions on the rise for Mathews? "
},
"lastname" : "Mathews",
"is_locked" : 0,
"opponent" : "@OAK",
"id" : "1273854",
"profile_link" : "<a class='playerLink' href='http://<league_id>.football.cbssports.com/players/playerpage/1273854'>Mathews, Ryan</a> RB SD <span title=\"Receptions on the rise for Mathews? \"><a href=\"http://<league_id>.football.cbssports.com/players/playerpage/1273854\" class=\"playerLink\" subtab=\"Update\"><img border=\"0\" width=\"10\" height=\"10\" src=\"http://sports.cbsimg.net/images/news-note-recent.gif\"/></a></span>",
"bye_week" : "7",
"pro_status" : "A",
"profile_url" : "http://<league_id>.football.cbssports.com/players/playerpage/1273854",
"recent_views" : 32,
"fullname" : "Ryan Mathews",
"pro_team" : "SD"
},
{
"firstname" : "Chris",
"total_views" : 214,
"on_waivers" : 1,
"position" : "RB",
"icons" : {
"headline" : "Coach noticing an improved CJ2K"
},
"lastname" : "Johnson",
"is_locked" : 0,
"opponent" : "NE",
"id" : "523490",
"profile_link" : "<a class='playerLink' href='http://<league_id>.football.cbssports.com/players/playerpage/523490'>Johnson, Chris</a> RB TEN <span title=\"Coach noticing an improved CJ2K\"><a href=\"http://<league_id>.football.cbssports.com/players/playerpage/523490\" class=\"playerLink\" subtab=\"Update\"><img border=\"0\" width=\"10\" height=\"10\" src=\"http://sports.cbsimg.net/images/news-note-recent.gif\"/></a></span>",
"bye_week" : "11",
"pro_status" : "A",
"profile_url" : "http://<league_id>.football.cbssports.com/players/playerpage/523490",
"recent_views" : 27,
"fullname" : "Chris Johnson",
"pro_team" : "TEN"
},
{
"firstname" : "DeMarco",
"total_views" : 204,
"on_waivers" : 1,
"position" : "RB",
"icons" : {
"injury" : "Ankle: Probable for start of training camp",
"headline" : "Murray cleared to practice"
},
"lastname" : "Murray",
"is_locked" : 0,
"opponent" : "@NYG",
"id" : "1123691",
"profile_link" : "<a class='playerLink' href='http://<league_id>.football.cbssports.com/players/playerpage/1123691'>Murray, DeMarco</a> RB DAL <span title=\"Murray cleared to practice\"><a href=\"http://<league_id>.football.cbssports.com/players/playerpage/1123691\" class=\"playerLink\" subtab=\"Update\"><img border=\"0\" width=\"7\" height=\"7\" src=\"http://sports.cbsimg.net/images/news-note-hot.gif\"/></a></span><img src='http://sports.cbsimg.net/images/spacer.gif' height=1 width=2><span title=\"Ankle: Probable for start of training camp\"><a href=\"http://<league_id>.football.cbssports.com/players/playerpage/1123691\" subtab=\"Injury Report\" class=\"playerLink\"><img border=\"0\" width=\"7\" height=\"7\" src=\"http://sports.cbsimg.net/images/red_cross.gif\"/></a></span>",
"bye_week" : "5",
"pro_status" : "A",
"profile_url" : "http://<league_id>.football.cbssports.com/players/playerpage/1123691",
"recent_views" : 25,
"fullname" : "DeMarco Murray",
"pro_team" : "DAL"
}
]
}
},
"uriAlias" : "/players/roster-trends/most-viewed",
"statusMessage" : "OK",
"uri" : "/players/roster-trends/most-viewed",
"statusCode" : 200
}/most_viewed/players/player/@id
The ID of the player. You can use this ID to get more information about the player by requesting the Player Outlook resource or the Player Updates resource.
/most_viewed/players/player/fullname
The full name of the player. The value is equivlent to the values of /most_viewed/players/player/firstname and /most_viewed/players/player/lastname joined by a space.
/most_viewed/players/player/position
An abbreviation for the primary position of the player. You can get a list of the abbreviations and their expansions by requesting the Positions resource.
/most_viewed/players/player/recent_views
The number of times the player has been viewed in the past three (3) hours. The URL of the players profile is given in /most_viewed/players/player/profile_url.
/most_viewed/players/player/total_views
The number of times this player’s profile has been viewed today. The URL of the players profile is given in /most_viewed/players/player/profile_url.
