SpreadTrends Data API

<back to all web services

TeamStats

Fetches NFL team statistics for a season or the week within a season.

The following routes are available for this service:
GET/api/nfl/team/{Team}/stats
GET/api/nfl/team/{Team}/stats/{Season}
GET/api/nfl/team/{Team}/stats/{Season}/{Week}
Parameters:
NameParameterData TypeRequiredDescription
SeasonpathintNoThe season to fetch team statistics by. Default is the current season.
WeekpathintNoThe week to refine season results by.
TeampathintYesThe team to fetch statistic for.

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

{"season":0,"week":0,"team":"String","games":0,"points":0,"ppg":0,"att":0,"attPerGame":0,"comp":0,"compPct":0,"compPerGame":0,"passYds":0,"passYdsPerGame":0,"passAvg":0,"passTds":0,"tdPct":0,"sacks":0,"sackYds":0,"ints":0,"intPct":0,"rating":0,"rush":0,"rushYds":0,"rushYdsPerGame":0,"rushAvg":0,"rushTds":0,"rec":0,"recYds":0,"recYdsPerGame":0,"recAvg":0,"recTds":0}