SpreadTrends Data API

<back to all web services

Games

Fetches NFL game information by identifier, season, or the week within a 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 to fetch games by.
SeasonpathintNoThe season to fetch games by. Default is the current season.
WeekpathintNoThe week to refine season results by.

To override the Content-type in your clients HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/oneway/Games HTTP/1.1 
Host: www.spreadtrends.com 
Content-Type: application/json
Content-Length: length

{"gameId":0,"date":"\/Date(-62135596800000-0000)\/","season":0,"week":0,"type":"String","visitor":"String","home":"String","visitorScore":0,"homeScore":0,"overtime":"String","pointSpread":0,"overUnder":0,"stadium":"String","surface":"String","notes":"String","observed":"String","temperature":0,"windSpeed":0,"windGustSpeed":0,"windDirection":"String","conditions":"String","precipitation":"String"}