SpreadTrends Data API

<back to all web services

GameStats

Fetches NFL game statistics by game identifier or by week of a specific season.

The following routes are available for this service:
GET/api/nfl/game/{GameId}/stats
GET/api/nfl/games/{Season}/{Week}/stats
GET/api/nfl/games/{Season}/stats/{Team}
Parameters:
NameParameterData TypeRequiredDescription
GameIdpathintYesThe unique game identifier to fetch game statistics by.
SeasonpathintYesThe season to fetch game statistics by. Default is the current season.
WeekpathintYesThe week to refine season results by.
TeampathintYesThe team to refine season results by.

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

<GameStats xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpreadTrends.DataTransferObjects">
  <Att>0</Att>
  <Comp>0</Comp>
  <GameId>0</GameId>
  <Ints>0</Ints>
  <Opponent>String</Opponent>
  <PassTds>0</PassTds>
  <PassYds>0</PassYds>
  <Player>String</Player>
  <Rec>0</Rec>
  <RecTds>0</RecTds>
  <RecYds>0</RecYds>
  <Rush>0</Rush>
  <RushTds>0</RushTds>
  <RushYds>0</RushYds>
  <SackYds>0</SackYds>
  <Sacks>0</Sacks>
  <Season>0</Season>
  <Team>String</Team>
  <Week>0</Week>
</GameStats>