SpreadTrends Data API

<back to all web services

PlayerStats

Fetches NFL player statistics by name or identifier for a specific season.

The following routes are available for this service:
GET/api/nfl/player/{PlayerId}/stats
GET/api/nfl/player/{PlayerId}/stats/{Season}
GET/api/nfl/player/{LastName}/{FirstName}/stats
GET/api/nfl/player/{LastName}/{FirstName}/stats/{Season}
Parameters:
NameParameterData TypeRequiredDescription
SeasonpathintNoThe season to refine name results by. Default is the all seasons.
PlayerIdpathstringYesThe Id of the player to fetch statistics by.
LastNamepathstringYesThe last name of the player to fetch statistics by.
FirstNamepathstringYesThe first name of the player for which to fetch statistics.

To override the Content-type in your clients HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/oneway/PlayerStats HTTP/1.1 
Host: www.spreadtrends.com 
Content-Type: application/xml
Content-Length: length

<PlayerStats xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpreadTrends.DataTransferObjects">
  <Att>0</Att>
  <Comp>0</Comp>
  <CompPct>0</CompPct>
  <FirstName>String</FirstName>
  <IntPct>0</IntPct>
  <Ints>0</Ints>
  <LastName>String</LastName>
  <Opponent>String</Opponent>
  <PassAvg>0</PassAvg>
  <PassTds>0</PassTds>
  <PassYds>0</PassYds>
  <Player>String</Player>
  <PlayerId>String</PlayerId>
  <Position>String</Position>
  <Rating>0</Rating>
  <Rec>0</Rec>
  <RecAvg>0</RecAvg>
  <RecTds>0</RecTds>
  <RecYds>0</RecYds>
  <Rush>0</Rush>
  <RushAvg>0</RushAvg>
  <RushTds>0</RushTds>
  <RushYds>0</RushYds>
  <SackYds>0</SackYds>
  <Sacks>0</Sacks>
  <Season>0</Season>
  <TdPct>0</TdPct>
  <Team>String</Team>
  <Week>0</Week>
</PlayerStats>