SpreadTrends Data API

<back to all web services

Games

Fetches NFL game information by identifier, season, or the week of a specific season.

The following routes are available for this service:
GET/api/nfl/games
GET/api/nfl/games/{Season}
GET/api/nfl/game/{GameId}
GET/api/nfl/games/{Season}/{Week}
Parameters:
NameParameterData TypeRequiredDescription
GameIdpathintNoThe unique identifier for which to fetch games.
SeasonpathintNoThe season to fetch games 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/Games HTTP/1.1 
Host: www.spreadtrends.com 
Content-Type: application/xml
Content-Length: length

<Games xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpreadTrends.DataTransferObjects">
  <Conditions>String</Conditions>
  <Date>0001-01-01T00:00:00</Date>
  <GameId>0</GameId>
  <Home>String</Home>
  <HomeScore>0</HomeScore>
  <Notes>String</Notes>
  <OverUnder>0</OverUnder>
  <Overtime>0</Overtime>
  <PointSpread>0</PointSpread>
  <Precipitation>String</Precipitation>
  <Season>0</Season>
  <Stadium>String</Stadium>
  <Surface>String</Surface>
  <Temperature>0</Temperature>
  <Type>String</Type>
  <Visitor>String</Visitor>
  <VisitorScore>0</VisitorScore>
  <Weather>String</Weather>
  <Week>0</Week>
  <WindDirection>String</WindDirection>
  <WindGustSpeed>0</WindGustSpeed>
  <WindSpeed>0</WindSpeed>
</Games>