SpreadTrends Data API

<back to all web services

Predictions

Fetches projected winners for upcoming NFL games.

The following routes are available for this service:
GET/api/nfl/predictions
GET/api/nfl/predictions/{Season}
GET/api/nfl/predictions/{Season}/{Week}
Parameters:
NameParameterData TypeRequiredDescription
SeasonpathintNoThe season to fetch games by. Default is the current season.
WeekpathintNoThe week to refine season results by. Default is upcoming games.

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

<Predictions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpreadTrends.DataTransferObjects">
  <ActualWinner>String</ActualWinner>
  <Date>0001-01-01T00:00:00</Date>
  <Home>String</Home>
  <PointSpread>0</PointSpread>
  <Projected>String</Projected>
  <Rating>0</Rating>
  <Season>0</Season>
  <Visitor>String</Visitor>
  <Week>0</Week>
</Predictions>