SpreadTrends Data API

<back to all web services

GameStats

Fetches NFL game statistics by game identifier or the 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
Parameters:
NameParameterData TypeRequiredDescription
GameIdpathintNoThe unique game identifier to fetch game statistics by.
SeasonpathintNoThe season to fetch game statistics by.
WeekpathintNoThe week 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>
  <FirstName>String</FirstName>
  <GameId>0</GameId>
  <Ints>0</Ints>
  <LastName>String</LastName>
  <Opponent>String</Opponent>
  <PassTds>0</PassTds>
  <PassYds>0</PassYds>
  <Position>String</Position>
  <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>
  <UniformNumber>0</UniformNumber>
  <Week>0</Week>
</GameStats>