SpreadTrends Data API

<back to all web services

TeamStats

Fetches NFL team statistics for a season or the week within a season.

The following routes are available for this service:
GET/api/nfl/team/{Team}/stats
GET/api/nfl/team/{Team}/stats/{Season}
GET/api/nfl/team/{Team}/stats/{Season}/{Week}
Parameters:
NameParameterData TypeRequiredDescription
SeasonpathintNoThe season to fetch team statistics by. Default is the current season.
WeekpathintNoThe week to refine season results by.
TeampathintYesThe team to fetch statistic for.

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/TeamStats HTTP/1.1 
Host: www.spreadtrends.com 
Content-Type: application/xml
Content-Length: length

<TeamStats xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpreadTrends.DataTransferObjects">
  <Att>0</Att>
  <AttPerGame>0</AttPerGame>
  <Comp>0</Comp>
  <CompPct>0</CompPct>
  <CompPerGame>0</CompPerGame>
  <Games>0</Games>
  <IntPct>0</IntPct>
  <Ints>0</Ints>
  <PPG>0</PPG>
  <PassAvg>0</PassAvg>
  <PassTds>0</PassTds>
  <PassYds>0</PassYds>
  <PassYdsPerGame>0</PassYdsPerGame>
  <Points>0</Points>
  <Rating>0</Rating>
  <Rec>0</Rec>
  <RecAvg>0</RecAvg>
  <RecTds>0</RecTds>
  <RecYds>0</RecYds>
  <RecYdsPerGame>0</RecYdsPerGame>
  <Rush>0</Rush>
  <RushAvg>0</RushAvg>
  <RushTds>0</RushTds>
  <RushYds>0</RushYds>
  <RushYdsPerGame>0</RushYdsPerGame>
  <SackYds>0</SackYds>
  <Sacks>0</Sacks>
  <Season>0</Season>
  <TdPct>0</TdPct>
  <Team>String</Team>
  <Week>0</Week>
</TeamStats>