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

{"gameId":0,"season":0,"week":0,"player":"String","team":"String","opponent":"String","att":0,"comp":0,"passYds":0,"passTds":0,"ints":0,"sacks":0,"sackYds":0,"rush":0,"rushYds":0,"rushTds":0,"rec":0,"recYds":0,"recTds":0}